diff --git a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/BrowserSiteListItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/BrowserSiteListItemRequestBuilder.cs index 43604efc9ea..e82559e5bd8 100644 --- a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/BrowserSiteListItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/BrowserSiteListItemRequestBuilder.cs @@ -44,7 +44,7 @@ public BrowserSiteListItemRequestBuilder(Dictionary pathParamete public BrowserSiteListItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a browserSiteList object. + /// Delete a browserSiteList object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -64,7 +64,7 @@ public async Task DeleteAsync(Action - /// Get a browserSiteList that contains browserSite and browserSharedCookie resources. + /// Get a browserSiteList that contains browserSite and browserSharedCookie resources. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, BrowserSiteList.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a browserSiteList object. + /// Update the properties of a browserSiteList object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -106,7 +106,7 @@ public async Task PatchAsync(BrowserSiteList body, Action(requestInfo, BrowserSiteList.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a browserSiteList object. + /// Delete a browserSiteList object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a browserSiteList that contains browserSite and browserSharedCookie resources. + /// Get a browserSiteList that contains browserSite and browserSharedCookie resources. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -156,7 +156,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a browserSiteList object. + /// Update the properties of a browserSiteList object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -207,7 +207,7 @@ public BrowserSiteListItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a browserSiteList that contains browserSite and browserSharedCookie resources. + /// Get a browserSiteList that contains browserSite and browserSharedCookie resources. This API is supported in the following national cloud deployments. /// public class BrowserSiteListItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Publish/PublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Publish/PublishRequestBuilder.cs index e8e0d98db84..eccf8b17891 100644 --- a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Publish/PublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Publish/PublishRequestBuilder.cs @@ -29,7 +29,7 @@ public PublishRequestBuilder(Dictionary pathParameters, IRequest public PublishRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}/publish", rawUrl) { } /// - /// Publish the specified browserSiteList for devices to download. + /// Publish the specified browserSiteList for devices to download. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(PublishPostRequestBody body, Action return await RequestAdapter.SendAsync(requestInfo, BrowserSiteList.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Publish the specified browserSiteList for devices to download. + /// Publish the specified browserSiteList for devices to download. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/Item/BrowserSharedCookieItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/Item/BrowserSharedCookieItemRequestBuilder.cs index 4ae585824d6..cbd881f8945 100644 --- a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/Item/BrowserSharedCookieItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/Item/BrowserSharedCookieItemRequestBuilder.cs @@ -29,7 +29,7 @@ public BrowserSharedCookieItemRequestBuilder(Dictionary pathPara public BrowserSharedCookieItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}/sharedCookies/{browserSharedCookie%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a browserSharedCookie from a browserSiteList. + /// Delete a browserSharedCookie from a browserSiteList. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get a session cookie that can be shared between a Microsoft Edge process and an Internet Explorer process, while using Internet Explorer mode. + /// Get a session cookie that can be shared between a Microsoft Edge process and an Internet Explorer process, while using Internet Explorer mode. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, BrowserSharedCookie.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a browserSharedCookie object. + /// Update the properties of a browserSharedCookie object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(BrowserSharedCookie body, Acti return await RequestAdapter.SendAsync(requestInfo, BrowserSharedCookie.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a browserSharedCookie from a browserSiteList. + /// Delete a browserSharedCookie from a browserSiteList. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a session cookie that can be shared between a Microsoft Edge process and an Internet Explorer process, while using Internet Explorer mode. + /// Get a session cookie that can be shared between a Microsoft Edge process and an Internet Explorer process, while using Internet Explorer mode. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a browserSharedCookie object. + /// Update the properties of a browserSharedCookie object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public BrowserSharedCookieItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a session cookie that can be shared between a Microsoft Edge process and an Internet Explorer process, while using Internet Explorer mode. + /// Get a session cookie that can be shared between a Microsoft Edge process and an Internet Explorer process, while using Internet Explorer mode. This API is supported in the following national cloud deployments. /// public class BrowserSharedCookieItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/SharedCookiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/SharedCookiesRequestBuilder.cs index 0db0ad76dcb..89e838bf404 100644 --- a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/SharedCookiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/SharedCookiesRequestBuilder.cs @@ -42,7 +42,7 @@ public SharedCookiesRequestBuilder(Dictionary pathParameters, IR public SharedCookiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}/sharedCookies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the browserSharedCookie objects and their properties. + /// Get a list of the browserSharedCookie objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, BrowserSharedCookieCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new browserSharedCookie object in a browserSiteList. + /// Create a new browserSharedCookie object in a browserSiteList. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(BrowserSharedCookie body, Actio return await RequestAdapter.SendAsync(requestInfo, BrowserSharedCookie.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the browserSharedCookie objects and their properties. + /// Get a list of the browserSharedCookie objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new browserSharedCookie object in a browserSiteList. + /// Create a new browserSharedCookie object in a browserSiteList. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SharedCookiesRequestBuilder WithUrl(string rawUrl) { return new SharedCookiesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the browserSharedCookie objects and their properties. + /// Get a list of the browserSharedCookie objects and their properties. This API is supported in the following national cloud deployments. /// public class SharedCookiesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/Item/BrowserSiteItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/Item/BrowserSiteItemRequestBuilder.cs index e3db940930c..f2cebcb6ae7 100644 --- a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/Item/BrowserSiteItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/Item/BrowserSiteItemRequestBuilder.cs @@ -29,7 +29,7 @@ public BrowserSiteItemRequestBuilder(Dictionary pathParameters, public BrowserSiteItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}/sites/{browserSite%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a browserSite from a browserSiteList. + /// Delete a browserSite from a browserSiteList. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get a browserSite that resides on a browserSiteList. + /// Get a browserSite that resides on a browserSiteList. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, BrowserSite.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a browserSite object. + /// Update the properties of a browserSite object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(BrowserSite body, Action(requestInfo, BrowserSite.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a browserSite from a browserSiteList. + /// Delete a browserSite from a browserSiteList. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a browserSite that resides on a browserSiteList. + /// Get a browserSite that resides on a browserSiteList. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a browserSite object. + /// Update the properties of a browserSite object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public BrowserSiteItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a browserSite that resides on a browserSiteList. + /// Get a browserSite that resides on a browserSiteList. This API is supported in the following national cloud deployments. /// public class BrowserSiteItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/SitesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/SitesRequestBuilder.cs index ee6d8446a72..a3bb7e106b2 100644 --- a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/SitesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/SitesRequestBuilder.cs @@ -42,7 +42,7 @@ public SitesRequestBuilder(Dictionary pathParameters, IRequestAd public SitesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}/sites{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the browserSite objects and their properties. + /// Get a list of the browserSite objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, BrowserSiteCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new browserSite object in a browserSiteList. + /// Create a new browserSite object in a browserSiteList. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(BrowserSite body, Action(requestInfo, BrowserSite.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the browserSite objects and their properties. + /// Get a list of the browserSite objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new browserSite object in a browserSiteList. + /// Create a new browserSite object in a browserSiteList. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SitesRequestBuilder WithUrl(string rawUrl) { return new SitesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the browserSite objects and their properties. + /// Get a list of the browserSite objects and their properties. This API is supported in the following national cloud deployments. /// public class SitesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/SiteListsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/SiteListsRequestBuilder.cs index 05f1bdc336a..c8aedaec650 100644 --- a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/SiteListsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/SiteListsRequestBuilder.cs @@ -42,7 +42,7 @@ public SiteListsRequestBuilder(Dictionary pathParameters, IReque public SiteListsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/edge/internetExplorerMode/siteLists{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the browserSiteList objects and their properties. + /// Get a list of the browserSiteList objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, BrowserSiteListCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new browserSiteList object to support Internet Explorer mode. + /// Create a new browserSiteList object to support Internet Explorer mode. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(BrowserSiteList body, Action(requestInfo, BrowserSiteList.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the browserSiteList objects and their properties. + /// Get a list of the browserSiteList objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new browserSiteList object to support Internet Explorer mode. + /// Create a new browserSiteList object to support Internet Explorer mode. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SiteListsRequestBuilder WithUrl(string rawUrl) { return new SiteListsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the browserSiteList objects and their properties. + /// Get a list of the browserSiteList objects and their properties. This API is supported in the following national cloud deployments. /// public class SiteListsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/HealthOverviewsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/HealthOverviewsRequestBuilder.cs index 26e4805afe5..2de517021e3 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/HealthOverviewsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/HealthOverviewsRequestBuilder.cs @@ -42,7 +42,7 @@ public HealthOverviewsRequestBuilder(Dictionary pathParameters, public HealthOverviewsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/serviceAnnouncement/healthOverviews{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the serviceHealth resources from the healthOverviews navigation property. This operation provides the health report of all subscribed services for a tenant. + /// Retrieve the serviceHealth resources from the healthOverviews navigation property. This operation provides the health report of all subscribed services for a tenant. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ServiceHealth body, Action(requestInfo, ServiceHealth.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the serviceHealth resources from the healthOverviews navigation property. This operation provides the health report of all subscribed services for a tenant. + /// Retrieve the serviceHealth resources from the healthOverviews navigation property. This operation provides the health report of all subscribed services for a tenant. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public HealthOverviewsRequestBuilder WithUrl(string rawUrl) { return new HealthOverviewsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the serviceHealth resources from the healthOverviews navigation property. This operation provides the health report of all subscribed services for a tenant. + /// Retrieve the serviceHealth resources from the healthOverviews navigation property. This operation provides the health report of all subscribed services for a tenant. This API is supported in the following national cloud deployments. /// public class HealthOverviewsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/ServiceHealthItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/ServiceHealthItemRequestBuilder.cs index 9505ac6aceb..8f70c08cd09 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/ServiceHealthItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/ServiceHealthItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a serviceHealth object. This operation provides the health information of a specified service for a tenant. + /// Retrieve the properties and relationships of a serviceHealth object. This operation provides the health information of a specified service for a tenant. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a serviceHealth object. This operation provides the health information of a specified service for a tenant. + /// Retrieve the properties and relationships of a serviceHealth object. This operation provides the health information of a specified service for a tenant. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public ServiceHealthItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a serviceHealth object. This operation provides the health information of a specified service for a tenant. + /// Retrieve the properties and relationships of a serviceHealth object. This operation provides the health information of a specified service for a tenant. This API is supported in the following national cloud deployments. /// public class ServiceHealthItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Issues/IssuesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Issues/IssuesRequestBuilder.cs index f5c739ed5cd..fbe38adab62 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Issues/IssuesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Issues/IssuesRequestBuilder.cs @@ -42,7 +42,7 @@ public IssuesRequestBuilder(Dictionary pathParameters, IRequestA public IssuesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/serviceAnnouncement/issues{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve serviceHealthIssue resources from the issues navigation property. This operation retrieves information about all service health issues that exist for the tenant. + /// Retrieve serviceHealthIssue resources from the issues navigation property. This operation retrieves information about all service health issues that exist for the tenant. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ServiceHealthIssue body, Action< return await RequestAdapter.SendAsync(requestInfo, ServiceHealthIssue.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve serviceHealthIssue resources from the issues navigation property. This operation retrieves information about all service health issues that exist for the tenant. + /// Retrieve serviceHealthIssue resources from the issues navigation property. This operation retrieves information about all service health issues that exist for the tenant. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public IssuesRequestBuilder WithUrl(string rawUrl) { return new IssuesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve serviceHealthIssue resources from the issues navigation property. This operation retrieves information about all service health issues that exist for the tenant. + /// Retrieve serviceHealthIssue resources from the issues navigation property. This operation retrieves information about all service health issues that exist for the tenant. This API is supported in the following national cloud deployments. /// public class IssuesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Issues/Item/ServiceHealthIssueItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Issues/Item/ServiceHealthIssueItemRequestBuilder.cs index 5dde94d10c6..c1356222676 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Issues/Item/ServiceHealthIssueItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Issues/Item/ServiceHealthIssueItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a serviceHealthIssue object. This operation retrieves a specified service health issue for tenant. The operation returns an error if the issue does not exist for the tenant. + /// Retrieve the properties and relationships of a serviceHealthIssue object. This operation retrieves a specified service health issue for tenant. The operation returns an error if the issue does not exist for the tenant. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a serviceHealthIssue object. This operation retrieves a specified service health issue for tenant. The operation returns an error if the issue does not exist for the tenant. + /// Retrieve the properties and relationships of a serviceHealthIssue object. This operation retrieves a specified service health issue for tenant. The operation returns an error if the issue does not exist for the tenant. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public ServiceHealthIssueItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a serviceHealthIssue object. This operation retrieves a specified service health issue for tenant. The operation returns an error if the issue does not exist for the tenant. + /// Retrieve the properties and relationships of a serviceHealthIssue object. This operation retrieves a specified service health issue for tenant. The operation returns an error if the issue does not exist for the tenant. This API is supported in the following national cloud deployments. /// public class ServiceHealthIssueItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchivePostResponse.cs similarity index 68% rename from src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs rename to src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchivePostResponse.cs index 89a38ccbd7b..c719fbc7fc6 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchivePostResponse.cs @@ -5,8 +5,8 @@ using System.IO; using System.Linq; using System; -namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.GetMemberGroups { - public class GetMemberGroupsPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable { +namespace Microsoft.Graph.Admin.ServiceAnnouncement.Messages.Archive { + public class ArchivePostResponse : IAdditionalDataHolder, IBackedModel, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get { return BackingStore?.Get>("additionalData"); } @@ -14,15 +14,15 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The securityEnabledOnly property - public bool? SecurityEnabledOnly { - get { return BackingStore?.Get("securityEnabledOnly"); } - set { BackingStore?.Set("securityEnabledOnly", value); } + /// The value property + public bool? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberGroupsPostRequestBody and sets the default values. + /// Instantiates a new archivePostResponse and sets the default values. /// - public GetMemberGroupsPostRequestBody() { + public ArchivePostResponse() { BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); AdditionalData = new Dictionary(); } @@ -30,16 +30,16 @@ public GetMemberGroupsPostRequestBody() { /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ArchivePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberGroupsPostRequestBody(); + return new ArchivePostResponse(); } /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"securityEnabledOnly", n => { SecurityEnabledOnly = n.GetBoolValue(); } }, + {"value", n => { Value = n.GetBoolValue(); } }, }; } /// @@ -48,7 +48,7 @@ public IDictionary> GetFieldDeserializers() { /// Serialization writer to use to serialize this model public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("securityEnabledOnly", SecurityEnabledOnly); + writer.WriteBoolValue("value", Value); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchiveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchiveRequestBuilder.cs index 0e1f4255eb3..8b7295307be 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchiveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchiveRequestBuilder.cs @@ -28,13 +28,36 @@ public ArchiveRequestBuilder(Dictionary pathParameters, IRequest public ArchiveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/serviceAnnouncement/messages/archive", rawUrl) { } /// - /// Archive a list of serviceUpdateMessages for the signed in user. + /// Archive a list of serviceUpdateMessages for the signed in user. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsArchivePostResponseAsync(ArchivePostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsArchivePostResponseAsync(ArchivePostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ArchivePostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Archive a list of serviceUpdateMessages for the signed in user. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsArchivePostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(ArchivePostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(ArchivePostRequestBody body, Action return await RequestAdapter.SendAsync(requestInfo, ArchiveResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Archive a list of serviceUpdateMessages for the signed in user. + /// Archive a list of serviceUpdateMessages for the signed in user. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchiveResponse.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchiveResponse.cs index 8de2f79f5db..a37adc9189b 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchiveResponse.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchiveResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Admin.ServiceAnnouncement.Messages.Archive { - public class ArchiveResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public bool? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new archiveResponse and sets the default values. - /// - public ArchiveResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use archivePostResponse instead.")] + public class ArchiveResponse : ArchivePostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static ArchiveResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new ArchiveResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ArchiveResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoritePostResponse.cs similarity index 68% rename from src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs rename to src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoritePostResponse.cs index 4269f71500b..a7cedb11153 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoritePostResponse.cs @@ -5,8 +5,8 @@ using System.IO; using System.Linq; using System; -namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.GetMemberObjects { - public class GetMemberObjectsPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable { +namespace Microsoft.Graph.Admin.ServiceAnnouncement.Messages.Favorite { + public class FavoritePostResponse : IAdditionalDataHolder, IBackedModel, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get { return BackingStore?.Get>("additionalData"); } @@ -14,15 +14,15 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The securityEnabledOnly property - public bool? SecurityEnabledOnly { - get { return BackingStore?.Get("securityEnabledOnly"); } - set { BackingStore?.Set("securityEnabledOnly", value); } + /// The value property + public bool? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getMemberObjectsPostRequestBody and sets the default values. + /// Instantiates a new favoritePostResponse and sets the default values. /// - public GetMemberObjectsPostRequestBody() { + public FavoritePostResponse() { BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); AdditionalData = new Dictionary(); } @@ -30,16 +30,16 @@ public GetMemberObjectsPostRequestBody() { /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + public static FavoritePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberObjectsPostRequestBody(); + return new FavoritePostResponse(); } /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"securityEnabledOnly", n => { SecurityEnabledOnly = n.GetBoolValue(); } }, + {"value", n => { Value = n.GetBoolValue(); } }, }; } /// @@ -48,7 +48,7 @@ public IDictionary> GetFieldDeserializers() { /// Serialization writer to use to serialize this model public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("securityEnabledOnly", SecurityEnabledOnly); + writer.WriteBoolValue("value", Value); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoriteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoriteRequestBuilder.cs index 3da037fc00f..fbf340b8a9c 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoriteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoriteRequestBuilder.cs @@ -28,13 +28,36 @@ public FavoriteRequestBuilder(Dictionary pathParameters, IReques public FavoriteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/serviceAnnouncement/messages/favorite", rawUrl) { } /// - /// Change the status of a list of serviceUpdateMessages to favorite for the signed in user. + /// Change the status of a list of serviceUpdateMessages to favorite for the signed in user. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsFavoritePostResponseAsync(FavoritePostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsFavoritePostResponseAsync(FavoritePostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FavoritePostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Change the status of a list of serviceUpdateMessages to favorite for the signed in user. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsFavoritePostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(FavoritePostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(FavoritePostRequestBody body, Acti return await RequestAdapter.SendAsync(requestInfo, FavoriteResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Change the status of a list of serviceUpdateMessages to favorite for the signed in user. + /// Change the status of a list of serviceUpdateMessages to favorite for the signed in user. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoriteResponse.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoriteResponse.cs index ea8ec170ce3..332ebeae778 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoriteResponse.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoriteResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Admin.ServiceAnnouncement.Messages.Favorite { - public class FavoriteResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public bool? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new favoriteResponse and sets the default values. - /// - public FavoriteResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use favoritePostResponse instead.")] + public class FavoriteResponse : FavoritePostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static FavoriteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new FavoriteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FavoriteResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index c6051b2e64f..c42b7c1015c 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -42,7 +42,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/serviceAnnouncement/messages/{serviceUpdateMessage%2Did}/attachments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of attachments associated with a service message. + /// Get the list of attachments associated with a service message. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ServiceAnnouncementAt return await RequestAdapter.SendAsync(requestInfo, ServiceAnnouncementAttachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of attachments associated with a service message. + /// Get the list of attachments associated with a service message. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of attachments associated with a service message. + /// Get the list of attachments associated with a service message. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Item/ServiceAnnouncementAttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Item/ServiceAnnouncementAttachmentItemRequestBuilder.cs index 54c2723e64e..d8481327360 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Item/ServiceAnnouncementAttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Item/ServiceAnnouncementAttachmentItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a serviceAnnouncementAttachment object. + /// Read the properties and relationships of a serviceAnnouncementAttachment object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a serviceAnnouncementAttachment object. + /// Read the properties and relationships of a serviceAnnouncementAttachment object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public ServiceAnnouncementAttachmentItemRequestBuilderDeleteRequestConfiguration } } /// - /// Read the properties and relationships of a serviceAnnouncementAttachment object. + /// Read the properties and relationships of a serviceAnnouncementAttachment object. This API is supported in the following national cloud deployments. /// public class ServiceAnnouncementAttachmentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/ServiceUpdateMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/ServiceUpdateMessageItemRequestBuilder.cs index 58fe06ff98f..5b5ccaac3b3 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/ServiceUpdateMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/ServiceUpdateMessageItemRequestBuilder.cs @@ -58,7 +58,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a serviceUpdateMessage object. This operation retrieves a specified service update message for the tenant. The operation returns an error if the message does not exist for the tenant. + /// Retrieve the properties and relationships of a serviceUpdateMessage object. This operation retrieves a specified service update message for the tenant. The operation returns an error if the message does not exist for the tenant. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -123,7 +123,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a serviceUpdateMessage object. This operation retrieves a specified service update message for the tenant. The operation returns an error if the message does not exist for the tenant. + /// Retrieve the properties and relationships of a serviceUpdateMessage object. This operation retrieves a specified service update message for the tenant. The operation returns an error if the message does not exist for the tenant. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -200,7 +200,7 @@ public ServiceUpdateMessageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a serviceUpdateMessage object. This operation retrieves a specified service update message for the tenant. The operation returns an error if the message does not exist for the tenant. + /// Retrieve the properties and relationships of a serviceUpdateMessage object. This operation retrieves a specified service update message for the tenant. The operation returns an error if the message does not exist for the tenant. This API is supported in the following national cloud deployments. /// public class ServiceUpdateMessageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadPostResponse.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadPostResponse.cs new file mode 100644 index 00000000000..9691e862af1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadPostResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Admin.ServiceAnnouncement.Messages.MarkRead { + public class MarkReadPostResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public bool? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new markReadPostResponse and sets the default values. + /// + public MarkReadPostResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static MarkReadPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new MarkReadPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadRequestBuilder.cs index 3c5344eba0d..8fbf948d429 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadRequestBuilder.cs @@ -28,13 +28,36 @@ public MarkReadRequestBuilder(Dictionary pathParameters, IReques public MarkReadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/serviceAnnouncement/messages/markRead", rawUrl) { } /// - /// Mark a list of serviceUpdateMessages as read for the signed in user. + /// Mark a list of serviceUpdateMessages as read for the signed in user. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsMarkReadPostResponseAsync(MarkReadPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsMarkReadPostResponseAsync(MarkReadPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MarkReadPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Mark a list of serviceUpdateMessages as read for the signed in user. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsMarkReadPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(MarkReadPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(MarkReadPostRequestBody body, Acti return await RequestAdapter.SendAsync(requestInfo, MarkReadResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Mark a list of serviceUpdateMessages as read for the signed in user. + /// Mark a list of serviceUpdateMessages as read for the signed in user. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadResponse.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadResponse.cs index 33c9f70e7c5..e5b41c80adf 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadResponse.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Admin.ServiceAnnouncement.Messages.MarkRead { - public class MarkReadResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public bool? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new markReadResponse and sets the default values. - /// - public MarkReadResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use markReadPostResponse instead.")] + public class MarkReadResponse : MarkReadPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static MarkReadResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new MarkReadResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new MarkReadResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadPostResponse.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadPostResponse.cs new file mode 100644 index 00000000000..c69ab3bce35 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadPostResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Admin.ServiceAnnouncement.Messages.MarkUnread { + public class MarkUnreadPostResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public bool? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new markUnreadPostResponse and sets the default values. + /// + public MarkUnreadPostResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static MarkUnreadPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new MarkUnreadPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadRequestBuilder.cs index 401a8930364..77a9a118038 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadRequestBuilder.cs @@ -28,13 +28,36 @@ public MarkUnreadRequestBuilder(Dictionary pathParameters, IRequ public MarkUnreadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/serviceAnnouncement/messages/markUnread", rawUrl) { } /// - /// Mark a list of serviceUpdateMessages as unread for the signed in user. + /// Mark a list of serviceUpdateMessages as unread for the signed in user. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsMarkUnreadPostResponseAsync(MarkUnreadPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsMarkUnreadPostResponseAsync(MarkUnreadPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MarkUnreadPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Mark a list of serviceUpdateMessages as unread for the signed in user. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsMarkUnreadPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(MarkUnreadPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(MarkUnreadPostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, MarkUnreadResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Mark a list of serviceUpdateMessages as unread for the signed in user. + /// Mark a list of serviceUpdateMessages as unread for the signed in user. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadResponse.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadResponse.cs index a17b552a435..bb8c653d237 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadResponse.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Admin.ServiceAnnouncement.Messages.MarkUnread { - public class MarkUnreadResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public bool? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new markUnreadResponse and sets the default values. - /// - public MarkUnreadResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use markUnreadPostResponse instead.")] + public class MarkUnreadResponse : MarkUnreadPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static MarkUnreadResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new MarkUnreadResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new MarkUnreadResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MessagesRequestBuilder.cs index 586a40ff0ba..5030f42acc7 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MessagesRequestBuilder.cs @@ -72,7 +72,7 @@ public MessagesRequestBuilder(Dictionary pathParameters, IReques public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/serviceAnnouncement/messages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the serviceUpdateMessage resources from the messages navigation property. This operation retrieves all service update messages that exist for the tenant. + /// Retrieve the serviceUpdateMessage resources from the messages navigation property. This operation retrieves all service update messages that exist for the tenant. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public async Task PostAsync(ServiceUpdateMessage body, Act return await RequestAdapter.SendAsync(requestInfo, ServiceUpdateMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the serviceUpdateMessage resources from the messages navigation property. This operation retrieves all service update messages that exist for the tenant. + /// Retrieve the serviceUpdateMessage resources from the messages navigation property. This operation retrieves all service update messages that exist for the tenant. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -174,7 +174,7 @@ public MessagesRequestBuilder WithUrl(string rawUrl) { return new MessagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the serviceUpdateMessage resources from the messages navigation property. This operation retrieves all service update messages that exist for the tenant. + /// Retrieve the serviceUpdateMessage resources from the messages navigation property. This operation retrieves all service update messages that exist for the tenant. This API is supported in the following national cloud deployments. /// public class MessagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchivePostResponse.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchivePostResponse.cs new file mode 100644 index 00000000000..ae0feb3bc69 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchivePostResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Admin.ServiceAnnouncement.Messages.Unarchive { + public class UnarchivePostResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public bool? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new unarchivePostResponse and sets the default values. + /// + public UnarchivePostResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static UnarchivePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new UnarchivePostResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchiveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchiveRequestBuilder.cs index a893d49cf25..856f9cf7bf0 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchiveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchiveRequestBuilder.cs @@ -28,13 +28,36 @@ public UnarchiveRequestBuilder(Dictionary pathParameters, IReque public UnarchiveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/serviceAnnouncement/messages/unarchive", rawUrl) { } /// - /// Unarchive a list of serviceUpdateMessages for the signed in user. + /// Unarchive a list of serviceUpdateMessages for the signed in user. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsUnarchivePostResponseAsync(UnarchivePostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsUnarchivePostResponseAsync(UnarchivePostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, UnarchivePostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Unarchive a list of serviceUpdateMessages for the signed in user. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsUnarchivePostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(UnarchivePostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(UnarchivePostRequestBody body, Ac return await RequestAdapter.SendAsync(requestInfo, UnarchiveResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Unarchive a list of serviceUpdateMessages for the signed in user. + /// Unarchive a list of serviceUpdateMessages for the signed in user. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchiveResponse.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchiveResponse.cs index 0f7d4bf74f1..fde3bd0382c 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchiveResponse.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchiveResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Admin.ServiceAnnouncement.Messages.Unarchive { - public class UnarchiveResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public bool? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new unarchiveResponse and sets the default values. - /// - public UnarchiveResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use unarchivePostResponse instead.")] + public class UnarchiveResponse : UnarchivePostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static UnarchiveResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new UnarchiveResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new UnarchiveResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoritePostResponse.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoritePostResponse.cs new file mode 100644 index 00000000000..0be8bd8cf4e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoritePostResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Admin.ServiceAnnouncement.Messages.Unfavorite { + public class UnfavoritePostResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public bool? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new unfavoritePostResponse and sets the default values. + /// + public UnfavoritePostResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static UnfavoritePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new UnfavoritePostResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoriteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoriteRequestBuilder.cs index 2b24ec5406f..7cf91e4cd0c 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoriteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoriteRequestBuilder.cs @@ -28,13 +28,36 @@ public UnfavoriteRequestBuilder(Dictionary pathParameters, IRequ public UnfavoriteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/serviceAnnouncement/messages/unfavorite", rawUrl) { } /// - /// Remove the favorite status of serviceUpdateMessages for the signed in user. + /// Remove the favorite status of serviceUpdateMessages for the signed in user. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsUnfavoritePostResponseAsync(UnfavoritePostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsUnfavoritePostResponseAsync(UnfavoritePostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, UnfavoritePostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Remove the favorite status of serviceUpdateMessages for the signed in user. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsUnfavoritePostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(UnfavoritePostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(UnfavoritePostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, UnfavoriteResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Remove the favorite status of serviceUpdateMessages for the signed in user. + /// Remove the favorite status of serviceUpdateMessages for the signed in user. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoriteResponse.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoriteResponse.cs index 2df05130463..57002abd978 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoriteResponse.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoriteResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Admin.ServiceAnnouncement.Messages.Unfavorite { - public class UnfavoriteResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public bool? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new unfavoriteResponse and sets the default values. - /// - public UnfavoriteResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use unfavoritePostResponse instead.")] + public class UnfavoriteResponse : UnfavoritePostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static UnfavoriteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new UnfavoriteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new UnfavoriteResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Admin/Sharepoint/Settings/SettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Sharepoint/Settings/SettingsRequestBuilder.cs index 2fbaa9769be..26f70d2e8bc 100644 --- a/src/Microsoft.Graph/Generated/Admin/Sharepoint/Settings/SettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/Sharepoint/Settings/SettingsRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get the tenant-level settings for SharePoint and OneDrive. + /// Get the tenant-level settings for SharePoint and OneDrive. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, SharepointSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update one or more tenant-level settings for SharePoint and OneDrive. + /// Update one or more tenant-level settings for SharePoint and OneDrive. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the tenant-level settings for SharePoint and OneDrive. + /// Get the tenant-level settings for SharePoint and OneDrive. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update one or more tenant-level settings for SharePoint and OneDrive. + /// Update one or more tenant-level settings for SharePoint and OneDrive. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -191,7 +191,7 @@ public SettingsRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the tenant-level settings for SharePoint and OneDrive. + /// Get the tenant-level settings for SharePoint and OneDrive. This API is supported in the following national cloud deployments. /// public class SettingsRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Agreements/Item/Acceptances/AcceptancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Agreements/Item/Acceptances/AcceptancesRequestBuilder.cs index 89f16800ddf..22cb011c753 100644 --- a/src/Microsoft.Graph/Generated/Agreements/Item/Acceptances/AcceptancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Agreements/Item/Acceptances/AcceptancesRequestBuilder.cs @@ -42,7 +42,7 @@ public AcceptancesRequestBuilder(Dictionary pathParameters, IReq public AcceptancesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/agreements/{agreement%2Did}/acceptances{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the details about the acceptance records for a specific agreement. + /// Get the details about the acceptance records for a specific agreement. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(AgreementAcceptance body, Actio return await RequestAdapter.SendAsync(requestInfo, AgreementAcceptance.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the details about the acceptance records for a specific agreement. + /// Get the details about the acceptance records for a specific agreement. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public AcceptancesRequestBuilder WithUrl(string rawUrl) { return new AcceptancesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the details about the acceptance records for a specific agreement. + /// Get the details about the acceptance records for a specific agreement. This API is supported in the following national cloud deployments. /// public class AcceptancesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/FileRequestBuilder.cs b/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/FileRequestBuilder.cs index 21853276da9..392250ed82c 100644 --- a/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/FileRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/FileRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the details of an agreement file, including the language and version information. The default file can have multiple versions, each with its own language, that can be retrieved by specifying the Accept-Language header. + /// Retrieve the details of an agreement file, including the language and version information. The default file can have multiple versions, each with its own language, that can be retrieved by specifying the Accept-Language header. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the details of an agreement file, including the language and version information. The default file can have multiple versions, each with its own language, that can be retrieved by specifying the Accept-Language header. + /// Retrieve the details of an agreement file, including the language and version information. The default file can have multiple versions, each with its own language, that can be retrieved by specifying the Accept-Language header. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public FileRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the details of an agreement file, including the language and version information. The default file can have multiple versions, each with its own language, that can be retrieved by specifying the Accept-Language header. + /// Retrieve the details of an agreement file, including the language and version information. The default file can have multiple versions, each with its own language, that can be retrieved by specifying the Accept-Language header. This API is supported in the following national cloud deployments. /// public class FileRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/Localizations/LocalizationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/Localizations/LocalizationsRequestBuilder.cs index a0d3eb994b5..09b70d3d209 100644 --- a/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/Localizations/LocalizationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/Localizations/LocalizationsRequestBuilder.cs @@ -42,7 +42,7 @@ public LocalizationsRequestBuilder(Dictionary pathParameters, IR public LocalizationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/agreements/{agreement%2Did}/file/localizations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the default and localized agreement files. + /// Get a list of the default and localized agreement files. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(AgreementFileLocalization return await RequestAdapter.SendAsync(requestInfo, AgreementFileLocalization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the default and localized agreement files. + /// Get a list of the default and localized agreement files. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public LocalizationsRequestBuilder WithUrl(string rawUrl) { return new LocalizationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the default and localized agreement files. + /// Get a list of the default and localized agreement files. This API is supported in the following national cloud deployments. /// public class LocalizationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Agreements/Item/Files/FilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Agreements/Item/Files/FilesRequestBuilder.cs index 447f159a315..7f94a02717e 100644 --- a/src/Microsoft.Graph/Generated/Agreements/Item/Files/FilesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Agreements/Item/Files/FilesRequestBuilder.cs @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, AgreementFileLocalizationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new localized agreement file. + /// Create a new localized agreement file. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new localized agreement file. + /// Create a new localized agreement file. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/AppDefinitionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/AppDefinitionsRequestBuilder.cs index 5e0e7a8ddaa..bc93d925294 100644 --- a/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/AppDefinitionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/AppDefinitionsRequestBuilder.cs @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, TeamsAppDefinitionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update an app previously published to the Microsoft Teams app catalog. To update an app, the distributionMethod property for the app must be set to organization. This API specifically updates an app published to your organization's app catalog (the tenant app catalog). + /// Update an app previously published to the Microsoft Teams app catalog. To update an app, the distributionMethod property for the app must be set to organization. This API specifically updates an app published to your organization's app catalog (the tenant app catalog). This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update an app previously published to the Microsoft Teams app catalog. To update an app, the distributionMethod property for the app must be set to organization. This API specifically updates an app published to your organization's app catalog (the tenant app catalog). + /// Update an app previously published to the Microsoft Teams app catalog. To update an app, the distributionMethod property for the app must be set to organization. This API specifically updates an app published to your organization's app catalog (the tenant app catalog). This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/Bot/BotRequestBuilder.cs b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/Bot/BotRequestBuilder.cs index b75af94b96f..49b55c01711 100644 --- a/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/Bot/BotRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/Bot/BotRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get the bot associated with a specific definition of the TeamsApp. + /// Get the bot associated with a specific definition of the TeamsApp. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the bot associated with a specific definition of the TeamsApp. + /// Get the bot associated with a specific definition of the TeamsApp. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public BotRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the bot associated with a specific definition of the TeamsApp. + /// Get the bot associated with a specific definition of the TeamsApp. This API is supported in the following national cloud deployments. /// public class BotRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/TeamsAppDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/TeamsAppDefinitionItemRequestBuilder.cs index e574a352f4e..372ac450315 100644 --- a/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/TeamsAppDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/TeamsAppDefinitionItemRequestBuilder.cs @@ -72,7 +72,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.TeamsAppDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Publish an app to the Microsoft Teams apps catalog.Specifically, this API publishes the app to your organization's catalog (the tenant app catalog);the created resource will have a distributionMethod property value of organization. The requiresReview property allows any user to submit an app for review by an administrator. Admins can approve or reject these apps via this API or the Microsoft Teams admin center. + /// Publish an app to the Microsoft Teams app catalog.Specifically, this API publishes the app to your organization's catalog (the tenant app catalog);the created resource has a distributionMethod property value of organization. The requiresReview property allows any user to submit an app for review by an administrator. Admins can approve or reject these apps via this API or the Microsoft Teams admin center. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -144,7 +144,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Publish an app to the Microsoft Teams apps catalog.Specifically, this API publishes the app to your organization's catalog (the tenant app catalog);the created resource will have a distributionMethod property value of organization. The requiresReview property allows any user to submit an app for review by an administrator. Admins can approve or reject these apps via this API or the Microsoft Teams admin center. + /// Publish an app to the Microsoft Teams app catalog.Specifically, this API publishes the app to your organization's catalog (the tenant app catalog);the created resource has a distributionMethod property value of organization. The requiresReview property allows any user to submit an app for review by an administrator. Admins can approve or reject these apps via this API or the Microsoft Teams admin center. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/TeamsAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/TeamsAppItemRequestBuilder.cs index 43fdd3029f7..d0f8b46e280 100644 --- a/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/TeamsAppItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/TeamsAppItemRequestBuilder.cs @@ -34,7 +34,7 @@ public TeamsAppItemRequestBuilder(Dictionary pathParameters, IRe public TeamsAppItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete teamsApp + /// This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -94,7 +94,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.TeamsApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete teamsApp + /// This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/TeamsAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/TeamsAppsRequestBuilder.cs index 03da6e8a2c6..39000b5c944 100644 --- a/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/TeamsAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/TeamsAppsRequestBuilder.cs @@ -42,7 +42,7 @@ public TeamsAppsRequestBuilder(Dictionary pathParameters, IReque public TeamsAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/appCatalogs/teamsApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List apps from the Microsoft Teams app catalog.This includes apps from the Microsoft Teams store, as well as apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request. + /// List apps from the Microsoft Teams app catalog.This includes apps from the Microsoft Teams store, as well as apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TeamsAppCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Publish an app to the Microsoft Teams apps catalog.Specifically, this API publishes the app to your organization's catalog (the tenant app catalog);the created resource will have a distributionMethod property value of organization. The requiresReview property allows any user to submit an app for review by an administrator. Admins can approve or reject these apps via this API or the Microsoft Teams admin center. + /// Publish an app to the Microsoft Teams app catalog.Specifically, this API publishes the app to your organization's catalog (the tenant app catalog);the created resource has a distributionMethod property value of organization. The requiresReview property allows any user to submit an app for review by an administrator. Admins can approve or reject these apps via this API or the Microsoft Teams admin center. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.TeamsApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List apps from the Microsoft Teams app catalog.This includes apps from the Microsoft Teams store, as well as apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request. + /// List apps from the Microsoft Teams app catalog.This includes apps from the Microsoft Teams store, as well as apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Publish an app to the Microsoft Teams apps catalog.Specifically, this API publishes the app to your organization's catalog (the tenant app catalog);the created resource will have a distributionMethod property value of organization. The requiresReview property allows any user to submit an app for review by an administrator. Admins can approve or reject these apps via this API or the Microsoft Teams admin center. + /// Publish an app to the Microsoft Teams app catalog.Specifically, this API publishes the app to your organization's catalog (the tenant app catalog);the created resource has a distributionMethod property value of organization. The requiresReview property allows any user to submit an app for review by an administrator. Admins can approve or reject these apps via this API or the Microsoft Teams admin center. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public TeamsAppsRequestBuilder WithUrl(string rawUrl) { return new TeamsAppsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List apps from the Microsoft Teams app catalog.This includes apps from the Microsoft Teams store, as well as apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request. + /// List apps from the Microsoft Teams app catalog.This includes apps from the Microsoft Teams store, as well as apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request. This API is supported in the following national cloud deployments. /// public class TeamsAppsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/ApplicationTemplates/ApplicationTemplatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/ApplicationTemplates/ApplicationTemplatesRequestBuilder.cs index 4b990b51689..23e9654b869 100644 --- a/src/Microsoft.Graph/Generated/ApplicationTemplates/ApplicationTemplatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ApplicationTemplates/ApplicationTemplatesRequestBuilder.cs @@ -42,7 +42,7 @@ public ApplicationTemplatesRequestBuilder(Dictionary pathParamet public ApplicationTemplatesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applicationTemplates{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of applicationTemplate objects from the Azure AD application gallery. + /// Retrieve a list of applicationTemplate objects from the Azure AD application gallery. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ApplicationTemplateCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of applicationTemplate objects from the Azure AD application gallery. + /// Retrieve a list of applicationTemplate objects from the Azure AD application gallery. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public ApplicationTemplatesRequestBuilder WithUrl(string rawUrl) { return new ApplicationTemplatesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of applicationTemplate objects from the Azure AD application gallery. + /// Retrieve a list of applicationTemplate objects from the Azure AD application gallery. This API is supported in the following national cloud deployments. /// public class ApplicationTemplatesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/ApplicationTemplates/Item/ApplicationTemplateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/ApplicationTemplates/Item/ApplicationTemplateItemRequestBuilder.cs index 7e9782fec43..69791f82874 100644 --- a/src/Microsoft.Graph/Generated/ApplicationTemplates/Item/ApplicationTemplateItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ApplicationTemplates/Item/ApplicationTemplateItemRequestBuilder.cs @@ -34,7 +34,7 @@ public ApplicationTemplateItemRequestBuilder(Dictionary pathPara public ApplicationTemplateItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applicationTemplates/{applicationTemplate%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Retrieve the properties of an applicationTemplate object. + /// Retrieve the properties of an applicationTemplate object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task GetAsync(Action(requestInfo, ApplicationTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the properties of an applicationTemplate object. + /// Retrieve the properties of an applicationTemplate object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,7 +87,7 @@ public ApplicationTemplateItemRequestBuilder WithUrl(string rawUrl) { return new ApplicationTemplateItemRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the properties of an applicationTemplate object. + /// Retrieve the properties of an applicationTemplate object. This API is supported in the following national cloud deployments. /// public class ApplicationTemplateItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/ApplicationTemplates/Item/Instantiate/InstantiateRequestBuilder.cs b/src/Microsoft.Graph/Generated/ApplicationTemplates/Item/Instantiate/InstantiateRequestBuilder.cs index df383e2f421..9c61cec1193 100644 --- a/src/Microsoft.Graph/Generated/ApplicationTemplates/Item/Instantiate/InstantiateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ApplicationTemplates/Item/Instantiate/InstantiateRequestBuilder.cs @@ -29,7 +29,7 @@ public InstantiateRequestBuilder(Dictionary pathParameters, IReq public InstantiateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applicationTemplates/{applicationTemplate%2Did}/instantiate", rawUrl) { } /// - /// Add an instance of an application from the Azure AD application gallery into your directory. You can also use this API to instantiate non-gallery apps. Use the following ID for the applicationTemplate object: 8adf8e6e-67b2-4cf2-a259-e3dc5476c621. + /// Add an instance of an application from the Azure AD application gallery into your directory. You can also use this API to instantiate non-gallery apps. Use the following ID for the applicationTemplate object: 8adf8e6e-67b2-4cf2-a259-e3dc5476c621. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(InstantiatePostRequestB return await RequestAdapter.SendAsync(requestInfo, ApplicationServicePrincipal.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add an instance of an application from the Azure AD application gallery into your directory. You can also use this API to instantiate non-gallery apps. Use the following ID for the applicationTemplate object: 8adf8e6e-67b2-4cf2-a259-e3dc5476c621. + /// Add an instance of an application from the Azure AD application gallery into your directory. You can also use this API to instantiate non-gallery apps. Use the following ID for the applicationTemplate object: 8adf8e6e-67b2-4cf2-a259-e3dc5476c621. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Applications/ApplicationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/ApplicationsRequestBuilder.cs index f98aa9d455e..6d03c11cd3d 100644 --- a/src/Microsoft.Graph/Generated/Applications/ApplicationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/ApplicationsRequestBuilder.cs @@ -62,7 +62,7 @@ public ApplicationsRequestBuilder(Dictionary pathParameters, IRe public ApplicationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of applications in this organization. + /// Get the list of applications in this organization. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -82,7 +82,7 @@ public async Task GetAsync(Action(requestInfo, ApplicationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new application object. + /// Create a new application object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -104,7 +104,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Application.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of applications in this organization. + /// Get the list of applications in this organization. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -130,7 +130,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new application object. + /// Create a new application object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -165,7 +165,7 @@ public ApplicationsRequestBuilder WithUrl(string rawUrl) { return new ApplicationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of applications in this organization. + /// Get the list of applications in this organization. This API is supported in the following national cloud deployments. /// public class ApplicationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Applications/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Applications/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..5beaad47dd7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Applications/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Applications.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Application.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Applications/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Delta/DeltaRequestBuilder.cs index 375956355bf..7de434dab63 100644 --- a/src/Microsoft.Graph/Generated/Applications/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Applications/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Applications/Delta/DeltaResponse.cs index 0ecf7d57146..91ce02dc927 100644 --- a/src/Microsoft.Graph/Generated/Applications/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Applications/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Applications.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Application.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs similarity index 83% rename from src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs rename to src/Microsoft.Graph/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs index c6680e6e1ee..04493268d7b 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -5,8 +5,8 @@ using System.IO; using System.Linq; using System; -namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.GetAvailableExtensionProperties { - public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { +namespace Microsoft.Graph.Applications.GetAvailableExtensionProperties { + public class GetAvailableExtensionPropertiesPostResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -25,9 +25,9 @@ public List Value { /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static new GetAvailableExtensionPropertiesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetAvailableExtensionPropertiesResponse(); + return new GetAvailableExtensionPropertiesPostResponse(); } /// /// The deserialization information for the current model diff --git a/src/Microsoft.Graph/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index b1096026d7d..dcbd5c4ca14 100644 --- a/src/Microsoft.Graph/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -28,13 +28,36 @@ public GetAvailableExtensionPropertiesRequestBuilder(Dictionary public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/getAvailableExtensionProperties", rawUrl) { } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetAvailableExtensionPropertiesPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetAvailabl return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index 8f165bc2969..e86794c5859 100644 --- a/src/Microsoft.Graph/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Applications.GetAvailableExtensionProperties { - public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAvailableExtensionPropertiesPostResponse instead.")] + public class GetAvailableExtensionPropertiesResponse : GetAvailableExtensionPropertiesPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Applications/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/Applications/GetByIds/GetByIdsPostResponse.cs new file mode 100644 index 00000000000..ee4ca1ed83d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Applications/GetByIds/GetByIdsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Applications.GetByIds { + public class GetByIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetByIdsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Applications/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/GetByIds/GetByIdsRequestBuilder.cs index fa2449e09a6..376ecf4f2d1 100644 --- a/src/Microsoft.Graph/Generated/Applications/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/GetByIds/GetByIdsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetByIdsRequestBuilder(Dictionary pathParameters, IReques public GetByIdsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/getByIds", rawUrl) { } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetByIdsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetByIdsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetByIdsPostRequestBody body, Acti return await RequestAdapter.SendAsync(requestInfo, GetByIdsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Applications/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/Applications/GetByIds/GetByIdsResponse.cs index 01fc1241e28..1f90feeecae 100644 --- a/src/Microsoft.Graph/Generated/Applications/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/Applications/GetByIds/GetByIdsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Applications.GetByIds { - public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getByIdsPostResponse instead.")] + public class GetByIdsResponse : GetByIdsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Applications/Item/AddKey/AddKeyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/AddKey/AddKeyRequestBuilder.cs index ef5babb46fc..ca3aac83fca 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/AddKey/AddKeyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/AddKey/AddKeyRequestBuilder.cs @@ -29,7 +29,7 @@ public AddKeyRequestBuilder(Dictionary pathParameters, IRequestA public AddKeyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/addKey", rawUrl) { } /// - /// Add a key credential to an application. This method, along with removeKey can be used by an application to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. Applications that don’t have any existing valid certificates (no certificates have been added yet, or all certificates have expired), won’t be able to use this service action. You can use the Update application operation to perform an update instead. + /// Add a key credential to an application. This method, along with removeKey can be used by an application to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. Applications that don’t have any existing valid certificates (no certificates have been added yet, or all certificates have expired), won’t be able to use this service action. You can use the Update application operation to perform an update instead. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(AddKeyPostRequestBody body, Action(requestInfo, KeyCredential.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a key credential to an application. This method, along with removeKey can be used by an application to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. Applications that don’t have any existing valid certificates (no certificates have been added yet, or all certificates have expired), won’t be able to use this service action. You can use the Update application operation to perform an update instead. + /// Add a key credential to an application. This method, along with removeKey can be used by an application to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. Applications that don’t have any existing valid certificates (no certificates have been added yet, or all certificates have expired), won’t be able to use this service action. You can use the Update application operation to perform an update instead. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Applications/Item/AddPassword/AddPasswordRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/AddPassword/AddPasswordRequestBuilder.cs index d0b02d5b34c..baee28cfb80 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/AddPassword/AddPasswordRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/AddPassword/AddPasswordRequestBuilder.cs @@ -29,7 +29,7 @@ public AddPasswordRequestBuilder(Dictionary pathParameters, IReq public AddPasswordRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/addPassword", rawUrl) { } /// - /// Adds a strong password or secret to an application. + /// Adds a strong password or secret to an application. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(AddPasswordPostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, PasswordCredential.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Adds a strong password or secret to an application. + /// Adds a strong password or secret to an application. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Item/Ref/RefRequestBuilder.cs index bdbace76136..d95faa39ee1 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Item/Ref/RefRequestBuilder.cs @@ -28,7 +28,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/appManagementPolicies/{appManagementPolicy%2Did}/$ref{?%40id*}", rawUrl) { } /// - /// Remove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. + /// Remove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Remove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. + /// Remove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -80,7 +80,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. + /// Remove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderDeleteQueryParameters { /// Delete Uri diff --git a/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Ref/RefRequestBuilder.cs index 94240017674..e9254f74bc8 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Ref/RefRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task GetAsync(Action(requestInfo, StringCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Assign an appManagementPolicy policy object to an application or service principal object. The application or service principal adopts this policy over the tenant-wide tenantAppManagementPolicy setting. Only one policy object can be assigned to an application or service principal. + /// Assign an appManagementPolicy policy object to an application or service principal object. The application or service principal adopts this policy over the tenant-wide tenantAppManagementPolicy setting. Only one policy object can be assigned to an application or service principal. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Assign an appManagementPolicy policy object to an application or service principal object. The application or service principal adopts this policy over the tenant-wide tenantAppManagementPolicy setting. Only one policy object can be assigned to an application or service principal. + /// Assign an appManagementPolicy policy object to an application or service principal object. The application or service principal adopts this policy over the tenant-wide tenantAppManagementPolicy setting. Only one policy object can be assigned to an application or service principal. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Applications/Item/ApplicationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/ApplicationItemRequestBuilder.cs index e7be6c07353..35e281922d4 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/ApplicationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/ApplicationItemRequestBuilder.cs @@ -134,7 +134,7 @@ public ApplicationItemRequestBuilder(Dictionary pathParameters, public ApplicationItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. + /// Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -154,7 +154,7 @@ public async Task DeleteAsync(Action - /// Get the properties and relationships of an application object. + /// Get the properties and relationships of an application object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -174,7 +174,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Application.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an application object. + /// Update the properties of an application object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -196,7 +196,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Application.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. + /// Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -220,7 +220,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties and relationships of an application object. + /// Get the properties and relationships of an application object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -246,7 +246,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an application object. + /// Update the properties of an application object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -297,7 +297,7 @@ public ApplicationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the properties and relationships of an application object. + /// Get the properties and relationships of an application object. This API is supported in the following national cloud deployments. /// public class ApplicationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs similarity index 85% rename from src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsResponse.cs rename to src/Microsoft.Graph/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs index ba2febe5f7f..bfba58804c1 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -5,8 +5,8 @@ using System.IO; using System.Linq; using System; -namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.GetMemberObjects { - public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { +namespace Microsoft.Graph.Applications.Item.CheckMemberGroups { + public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -25,9 +25,9 @@ public List Value { /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static new GetMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberObjectsResponse(); + return new CheckMemberGroupsPostResponse(); } /// /// The deserialization information for the current model diff --git a/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index 806e90a3b4e..f5c0d70a36d 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index d996e88d9d3..82d42a0a714 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Applications.Item.CheckMemberGroups { - public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberGroupsPostResponse instead.")] + public class CheckMemberGroupsResponse : CheckMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs similarity index 85% rename from src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs rename to src/Microsoft.Graph/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs index f928ddcc820..eb97782cabd 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -5,8 +5,8 @@ using System.IO; using System.Linq; using System; -namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.CheckMemberGroups { - public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { +namespace Microsoft.Graph.Applications.Item.CheckMemberObjects { + public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -25,9 +25,9 @@ public List Value { /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static new CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberGroupsResponse(); + return new CheckMemberObjectsPostResponse(); } /// /// The deserialization information for the current model diff --git a/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index adeaa7b3960..52f5faa1241 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -34,6 +34,28 @@ public CheckMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAd /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action checkMemberObjects + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index d36435ee81d..47b8aeb78c0 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Applications.Item.CheckMemberObjects { - public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberObjectsPostResponse instead.")] + public class CheckMemberObjectsResponse : CheckMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Applications/Item/ExtensionProperties/ExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/ExtensionProperties/ExtensionPropertiesRequestBuilder.cs index aa1b1617e67..dc3ecfc88b0 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/ExtensionProperties/ExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/ExtensionProperties/ExtensionPropertiesRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionPropertiesRequestBuilder(Dictionary pathParamete public ExtensionPropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/extensionProperties{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of directory extension definitions, represented by extensionProperty objects on an application. + /// Retrieve the list of directory extension definitions, represented by extensionProperty objects on an application. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionPropertyCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new directory extension definition, represented by an extensionProperty object. + /// Create a new directory extension definition, represented by an extensionProperty object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(ExtensionProperty body, Action(requestInfo, ExtensionProperty.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of directory extension definitions, represented by extensionProperty objects on an application. + /// Retrieve the list of directory extension definitions, represented by extensionProperty objects on an application. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new directory extension definition, represented by an extensionProperty object. + /// Create a new directory extension definition, represented by an extensionProperty object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ExtensionPropertiesRequestBuilder WithUrl(string rawUrl) { return new ExtensionPropertiesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of directory extension definitions, represented by extensionProperty objects on an application. + /// Retrieve the list of directory extension definitions, represented by extensionProperty objects on an application. This API is supported in the following national cloud deployments. /// public class ExtensionPropertiesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Applications/Item/ExtensionProperties/Item/ExtensionPropertyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/ExtensionProperties/Item/ExtensionPropertyItemRequestBuilder.cs index 8502e034547..ab079eb8ad7 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/ExtensionProperties/Item/ExtensionPropertyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/ExtensionProperties/Item/ExtensionPropertyItemRequestBuilder.cs @@ -29,7 +29,7 @@ public ExtensionPropertyItemRequestBuilder(Dictionary pathParame public ExtensionPropertyItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/extensionProperties/{extensionProperty%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a directory extension definition represented by an extensionProperty object. You can delete only directory extensions that aren't synced from on-premises active directory (AD). + /// Delete a directory extension definition represented by an extensionProperty object. You can delete only directory extensions that aren't synced from on-premises active directory (AD). This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Read a directory extension definition represented by an extensionProperty object. + /// Read a directory extension definition represented by an extensionProperty object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(ExtensionProperty body, Action(requestInfo, ExtensionProperty.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a directory extension definition represented by an extensionProperty object. You can delete only directory extensions that aren't synced from on-premises active directory (AD). + /// Delete a directory extension definition represented by an extensionProperty object. You can delete only directory extensions that aren't synced from on-premises active directory (AD). This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read a directory extension definition represented by an extensionProperty object. + /// Read a directory extension definition represented by an extensionProperty object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public ExtensionPropertyItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read a directory extension definition represented by an extensionProperty object. + /// Read a directory extension definition represented by an extensionProperty object. This API is supported in the following national cloud deployments. /// public class ExtensionPropertyItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Applications/Item/FederatedIdentityCredentials/FederatedIdentityCredentialsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/FederatedIdentityCredentials/FederatedIdentityCredentialsRequestBuilder.cs index 141c2cf7ced..ac2e1069626 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/FederatedIdentityCredentials/FederatedIdentityCredentialsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/FederatedIdentityCredentials/FederatedIdentityCredentialsRequestBuilder.cs @@ -42,7 +42,7 @@ public FederatedIdentityCredentialsRequestBuilder(Dictionary pat public FederatedIdentityCredentialsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/federatedIdentityCredentials{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the federatedIdentityCredential objects and their properties. + /// Get a list of the federatedIdentityCredential objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action return await RequestAdapter.SendAsync(requestInfo, FederatedIdentityCredentialCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new federatedIdentityCredential object for an application. By configuring a trust relationship between your Azure AD application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. + /// Create a new federatedIdentityCredential object for an application. By configuring a trust relationship between your Azure AD application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(FederatedIdentityCreden return await RequestAdapter.SendAsync(requestInfo, FederatedIdentityCredential.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the federatedIdentityCredential objects and their properties. + /// Get a list of the federatedIdentityCredential objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new federatedIdentityCredential object for an application. By configuring a trust relationship between your Azure AD application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. + /// Create a new federatedIdentityCredential object for an application. By configuring a trust relationship between your Azure AD application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public FederatedIdentityCredentialsRequestBuilder WithUrl(string rawUrl) { return new FederatedIdentityCredentialsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the federatedIdentityCredential objects and their properties. + /// Get a list of the federatedIdentityCredential objects and their properties. This API is supported in the following national cloud deployments. /// public class FederatedIdentityCredentialsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Applications/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilder.cs index e36ba84b0a7..be241a872b4 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilder.cs @@ -29,7 +29,7 @@ public FederatedIdentityCredentialItemRequestBuilder(Dictionary public FederatedIdentityCredentialItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/federatedIdentityCredentials/{federatedIdentityCredential%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a federatedIdentityCredential object from an application. + /// Delete a federatedIdentityCredential object from an application. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a federatedIdentityCredential object. + /// Read the properties and relationships of a federatedIdentityCredential object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, FederatedIdentityCredential.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a federatedIdentityCredential object. + /// Update the properties of a federatedIdentityCredential object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(FederatedIdentityCrede return await RequestAdapter.SendAsync(requestInfo, FederatedIdentityCredential.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a federatedIdentityCredential object from an application. + /// Delete a federatedIdentityCredential object from an application. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a federatedIdentityCredential object. + /// Read the properties and relationships of a federatedIdentityCredential object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a federatedIdentityCredential object. + /// Update the properties of a federatedIdentityCredential object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public FederatedIdentityCredentialItemRequestBuilderDeleteRequestConfiguration() } } /// - /// Read the properties and relationships of a federatedIdentityCredential object. + /// Read the properties and relationships of a federatedIdentityCredential object. This API is supported in the following national cloud deployments. /// public class FederatedIdentityCredentialItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs similarity index 85% rename from src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsResponse.cs rename to src/Microsoft.Graph/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs index e46309dfe9a..6544c9ec66b 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -5,8 +5,8 @@ using System.IO; using System.Linq; using System; -namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.GetMemberGroups { - public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { +namespace Microsoft.Graph.Applications.Item.GetMemberGroups { + public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -25,9 +25,9 @@ public List Value { /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static new GetMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberGroupsResponse(); + return new GetMemberGroupsPostResponse(); } /// /// The deserialization information for the current model diff --git a/src/Microsoft.Graph/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index 638ad287840..5b2e51a4d41 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberGroupsRequestBuilder(Dictionary pathParameters, public GetMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/getMemberGroups", rawUrl) { } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberGroupsPostRequestB return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsResponse.cs index d82845beede..f160d126b48 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Applications.Item.GetMemberGroups { - public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberGroupsPostResponse instead.")] + public class GetMemberGroupsResponse : GetMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs similarity index 84% rename from src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs rename to src/Microsoft.Graph/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs index 917843f5d45..4a13cfb4df2 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -5,8 +5,8 @@ using System.IO; using System.Linq; using System; -namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.CheckMemberObjects { - public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { +namespace Microsoft.Graph.Applications.Item.GetMemberObjects { + public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -25,9 +25,9 @@ public List Value { /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static new CheckMemberObjectsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberObjectsResponse(); + return new GetMemberObjectsPostResponse(); } /// /// The deserialization information for the current model diff --git a/src/Microsoft.Graph/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index 8e41eec3607..0413952370c 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberObjectsRequestBuilder(Dictionary pathParameters, public GetMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/getMemberObjects", rawUrl) { } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberObjectsPostReques return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsResponse.cs index b9bdb570472..09e45cb0240 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Applications.Item.GetMemberObjects { - public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberObjectsPostResponse instead.")] + public class GetMemberObjectsResponse : GetMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Owners/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Owners/Item/Ref/RefRequestBuilder.cs index 286ef8b5c91..d05b716a778 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Owners/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Owners/Item/Ref/RefRequestBuilder.cs @@ -28,7 +28,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/owners/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { } /// - /// Remove an owner from an application. As a recommended best practice, apps should have at least two owners. + /// Remove an owner from an application. As a recommended best practice, apps should have at least two owners. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Remove an owner from an application. As a recommended best practice, apps should have at least two owners. + /// Remove an owner from an application. As a recommended best practice, apps should have at least two owners. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -80,7 +80,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove an owner from an application. As a recommended best practice, apps should have at least two owners. + /// Remove an owner from an application. As a recommended best practice, apps should have at least two owners. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderDeleteQueryParameters { /// Delete Uri diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Owners/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Owners/Ref/RefRequestBuilder.cs index 515a4ecb781..931e3e60b17 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Owners/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Owners/Ref/RefRequestBuilder.cs @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, StringCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add an owner to an application by posting to the owners collection. + /// Add an owner to an application by posting to the owners collection. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -97,7 +97,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add an owner to an application by posting to the owners collection. + /// Add an owner to an application by posting to the owners collection. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Applications/Item/RemoveKey/RemoveKeyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/RemoveKey/RemoveKeyRequestBuilder.cs index b9a61f01db6..da6302b1758 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/RemoveKey/RemoveKeyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/RemoveKey/RemoveKeyRequestBuilder.cs @@ -28,7 +28,7 @@ public RemoveKeyRequestBuilder(Dictionary pathParameters, IReque public RemoveKeyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/removeKey", rawUrl) { } /// - /// Remove a key credential from an application. This method along with addKey can be used by an application to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. + /// Remove a key credential from an application. This method along with addKey can be used by an application to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(RemoveKeyPostRequestBody body, Action - /// Remove a key credential from an application. This method along with addKey can be used by an application to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. + /// Remove a key credential from an application. This method along with addKey can be used by an application to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Applications/Item/RemovePassword/RemovePasswordRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/RemovePassword/RemovePasswordRequestBuilder.cs index 5f88cf7c813..074b0b97eea 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/RemovePassword/RemovePasswordRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/RemovePassword/RemovePasswordRequestBuilder.cs @@ -28,7 +28,7 @@ public RemovePasswordRequestBuilder(Dictionary pathParameters, I public RemovePasswordRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/removePassword", rawUrl) { } /// - /// Remove a password from an application. + /// Remove a password from an application. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(RemovePasswordPostRequestBody body, Action - /// Remove a password from an application. + /// Remove a password from an application. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Restore/RestoreRequestBuilder.cs index 0f763f31df7..ed0309dd55f 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Restore/RestoreRequestBuilder.cs @@ -29,7 +29,7 @@ public RestoreRequestBuilder(Dictionary pathParameters, IRequest public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Applications/Item/SetVerifiedPublisher/SetVerifiedPublisherRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/SetVerifiedPublisher/SetVerifiedPublisherRequestBuilder.cs index 9f6940fef79..3635f1dcd7a 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/SetVerifiedPublisher/SetVerifiedPublisherRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/SetVerifiedPublisher/SetVerifiedPublisherRequestBuilder.cs @@ -28,7 +28,7 @@ public SetVerifiedPublisherRequestBuilder(Dictionary pathParamet public SetVerifiedPublisherRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/setVerifiedPublisher", rawUrl) { } /// - /// Set the verifiedPublisher on an application. For more information, including prerequisites to setting a verified publisher, see Publisher verification. + /// Set the verifiedPublisher on an application. For more information, including prerequisites to setting a verified publisher, see Publisher verification. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SetVerifiedPublisherPostRequestBody body, Action - /// Set the verifiedPublisher on an application. For more information, including prerequisites to setting a verified publisher, see Publisher verification. + /// Set the verifiedPublisher on an application. For more information, including prerequisites to setting a verified publisher, see Publisher verification. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenRequestBuilder.cs index 4ab5ad7e32a..30645a971c2 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenRequestBuilder.cs @@ -28,7 +28,7 @@ public AcquireAccessTokenRequestBuilder(Dictionary pathParameter public AcquireAccessTokenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/synchronization/acquireAccessToken", rawUrl) { } /// - /// Acquire an OAuth access token to authorize the Azure AD provisioning service to provision users into an application. + /// Acquire an OAuth access token to authorize the Azure AD provisioning service to provision users into an application. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcquireAccessTokenPostRequestBody body, Action - /// Acquire an OAuth access token to authorize the Azure AD provisioning service to provision users into an application. + /// Acquire an OAuth access token to authorize the Azure AD provisioning service to provision users into an application. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Pause/PauseRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Pause/PauseRequestBuilder.cs index cbe77540ad4..5f8f57e4d1c 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Pause/PauseRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Pause/PauseRequestBuilder.cs @@ -28,7 +28,7 @@ public PauseRequestBuilder(Dictionary pathParameters, IRequestAd public PauseRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/pause", rawUrl) { } /// - /// Temporarily stop a running synchronization job. All the progress, including job state, is persisted, and the job will continue from where it left off when a start call is made. + /// Temporarily stop a running synchronization job. All the progress, including job state, is persisted, and the job will continue from where it left off when a start call is made. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Temporarily stop a running synchronization job. All the progress, including job state, is persisted, and the job will continue from where it left off when a start call is made. + /// Temporarily stop a running synchronization job. All the progress, including job state, is persisted, and the job will continue from where it left off when a start call is made. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.cs index 00f761f59f9..9e0a881b4d0 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.cs @@ -29,7 +29,7 @@ public ProvisionOnDemandRequestBuilder(Dictionary pathParameters public ProvisionOnDemandRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/provisionOnDemand", rawUrl) { } /// - /// Select a user and provision the account on-demand. The rate limit for this API is 5 requests per 10 seconds. + /// Select a user and provision the account on-demand. The rate limit for this API is 5 requests per 10 seconds. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(ProvisionOnDemandPostReque return await RequestAdapter.SendAsync(requestInfo, StringKeyStringValuePair.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Select a user and provision the account on-demand. The rate limit for this API is 5 requests per 10 seconds. + /// Select a user and provision the account on-demand. The rate limit for this API is 5 requests per 10 seconds. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Restart/RestartRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Restart/RestartRequestBuilder.cs index ca78776da4e..af253cea64b 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Restart/RestartRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Restart/RestartRequestBuilder.cs @@ -28,7 +28,7 @@ public RestartRequestBuilder(Dictionary pathParameters, IRequest public RestartRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/restart", rawUrl) { } /// - /// Restart a stopped synchronization job, forcing it to reprocess all the objects in the directory. Optionally clears existing the synchronization state and previous errors. + /// Restart a stopped synchronization job, forcing it to reprocess all the objects in the directory. Optionally clears existing the synchronization state and previous errors. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(RestartPostRequestBody body, Action - /// Restart a stopped synchronization job, forcing it to reprocess all the objects in the directory. Optionally clears existing the synchronization state and previous errors. + /// Restart a stopped synchronization job, forcing it to reprocess all the objects in the directory. Optionally clears existing the synchronization state and previous errors. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs index 1ff8191e471..eccfb96b423 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs @@ -29,7 +29,7 @@ public DiscoverRequestBuilder(Dictionary pathParameters, IReques public DiscoverRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema/directories/{directoryDefinition%2Did}/discover", rawUrl) { } /// - /// Discover the latest schema definition for provisioning to an application. + /// Discover the latest schema definition for provisioning to an application. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, DirectoryDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Discover the latest schema definition for provisioning to an application. + /// Discover the latest schema definition for provisioning to an application. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsGetResponse.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsGetResponse.cs new file mode 100644 index 00000000000..8acb5e8eafd --- /dev/null +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Applications.Item.Synchronization.Jobs.Item.Schema.FilterOperators { + public class FilterOperatorsGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterOperatorsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterOperatorsGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(FilterOperatorSchema.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs index 642a1bcb8be..a41f52b5dde 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs @@ -33,6 +33,26 @@ public FilterOperatorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterOperatorsGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFilterOperatorsGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterOperatorsGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterOperators + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFilterOperatorsGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsResponse.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsResponse.cs index a6234bc3c08..44c726dd555 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsResponse.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Applications.Item.Synchronization.Jobs.Item.Schema.FilterOperators { - public class FilterOperatorsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use filterOperatorsGetResponse instead.")] + public class FilterOperatorsResponse : FilterOperatorsGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterOperatorsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(FilterOperatorSchema.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsGetResponse.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsGetResponse.cs new file mode 100644 index 00000000000..e1ad8e52d05 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Applications.Item.Synchronization.Jobs.Item.Schema.Functions { + public class FunctionsGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FunctionsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FunctionsGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(AttributeMappingFunctionSchema.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsRequestBuilder.cs index e0fac0244b5..db6617c9897 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsRequestBuilder.cs @@ -33,6 +33,26 @@ public FunctionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFunctionsGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFunctionsGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FunctionsGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function functions + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFunctionsGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsResponse.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsResponse.cs index 82a43011e01..18ef29d3585 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsResponse.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Applications.Item.Synchronization.Jobs.Item.Schema.Functions { - public class FunctionsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use functionsGetResponse instead.")] + public class FunctionsResponse : FunctionsGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FunctionsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(AttributeMappingFunctionSchema.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs index 0fdbb3966df..023e62fca3f 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs @@ -29,7 +29,7 @@ public ParseExpressionRequestBuilder(Dictionary pathParameters, public ParseExpressionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema/parseExpression", rawUrl) { } /// - /// Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. + /// Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(ParseExpressionPostRequestB return await RequestAdapter.SendAsync(requestInfo, ParseExpressionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. + /// Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/SchemaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/SchemaRequestBuilder.cs index bbf1f1d0937..ad2cf10fd33 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/SchemaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/SchemaRequestBuilder.cs @@ -68,7 +68,7 @@ public async Task DeleteAsync(Action - /// Retrieve the schema for a given synchronization job or template. + /// Retrieve the schema for a given synchronization job or template. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -134,7 +134,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the schema for a given synchronization job or template. + /// Retrieve the schema for a given synchronization job or template. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -211,7 +211,7 @@ public SchemaRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the schema for a given synchronization job or template. + /// Retrieve the schema for a given synchronization job or template. This API is supported in the following national cloud deployments. /// public class SchemaRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Start/StartRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Start/StartRequestBuilder.cs index f37beea42fb..d65445ad3b2 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Start/StartRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Start/StartRequestBuilder.cs @@ -28,7 +28,7 @@ public StartRequestBuilder(Dictionary pathParameters, IRequestAd public StartRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/start", rawUrl) { } /// - /// Start an existing synchronization job. If the job is in a paused state, it will continue processing changes from the point where it was paused. If the job is in quarantine, the quarantine status will be cleared. Do not create scripts to call the start job continuously while it's running because that can cause the service to stop running. Use the start job only when the job is currently paused or in quarantine. + /// Start an existing synchronization job. If the job is in a paused state, it continues processing changes from the point where it was paused. If the job is in quarantine, the quarantine status is cleared. Don't create scripts to call the start job continuously while it's running because that can cause the service to stop running. Use the start job only when the job is currently paused or in quarantine. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Start an existing synchronization job. If the job is in a paused state, it will continue processing changes from the point where it was paused. If the job is in quarantine, the quarantine status will be cleared. Do not create scripts to call the start job continuously while it's running because that can cause the service to stop running. Use the start job only when the job is currently paused or in quarantine. + /// Start an existing synchronization job. If the job is in a paused state, it continues processing changes from the point where it was paused. If the job is in quarantine, the quarantine status is cleared. Don't create scripts to call the start job continuously while it's running because that can cause the service to stop running. Use the start job only when the job is currently paused or in quarantine. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/SynchronizationJobItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/SynchronizationJobItemRequestBuilder.cs index c6881062df5..c7e53b727ba 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/SynchronizationJobItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/SynchronizationJobItemRequestBuilder.cs @@ -59,7 +59,7 @@ public SynchronizationJobItemRequestBuilder(Dictionary pathParam public SynchronizationJobItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Stop the synchronization job, and permanently delete all the state associated with it. Synchronized accounts are left as-is. + /// Stop the synchronization job, and permanently delete all the state associated with it. Synchronized accounts are left as-is. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -79,7 +79,7 @@ public async Task DeleteAsync(Action - /// Retrieve the existing synchronization job and its properties. + /// Retrieve the existing synchronization job and its properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -120,7 +120,7 @@ public async Task PatchAsync(SynchronizationJob body, Action return await RequestAdapter.SendAsync(requestInfo, SynchronizationJob.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Stop the synchronization job, and permanently delete all the state associated with it. Synchronized accounts are left as-is. + /// Stop the synchronization job, and permanently delete all the state associated with it. Synchronized accounts are left as-is. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the existing synchronization job and its properties. + /// Retrieve the existing synchronization job and its properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -221,7 +221,7 @@ public SynchronizationJobItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the existing synchronization job and its properties. + /// Retrieve the existing synchronization job and its properties. This API is supported in the following national cloud deployments. /// public class SynchronizationJobItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsRequestBuilder.cs index 4601d202d33..30a3e72d900 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsRequestBuilder.cs @@ -28,7 +28,7 @@ public ValidateCredentialsRequestBuilder(Dictionary pathParamete public ValidateCredentialsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/validateCredentials", rawUrl) { } /// - /// Validate that the credentials are valid in the tenant. + /// Validate that the credentials are valid in the tenant. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ValidateCredentialsPostRequestBody body, Action - /// Validate that the credentials are valid in the tenant. + /// Validate that the credentials are valid in the tenant. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/JobsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/JobsRequestBuilder.cs index f3cb34c8d4e..ea33cd11ef6 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/JobsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/JobsRequestBuilder.cs @@ -47,7 +47,7 @@ public JobsRequestBuilder(Dictionary pathParameters, IRequestAda public JobsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List existing jobs for a given application instance (service principal). + /// List existing jobs for a given application instance (service principal). This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, SynchronizationJobCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create new synchronization job with a default synchronization schema. The job is created in a disabled state. Call Start job to start synchronization. + /// Create new synchronization job with a default synchronization schema. The job is created in a disabled state. Call Start job to start synchronization. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(SynchronizationJob body, Action< return await RequestAdapter.SendAsync(requestInfo, SynchronizationJob.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List existing jobs for a given application instance (service principal). + /// List existing jobs for a given application instance (service principal). This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new synchronization job with a default synchronization schema. The job is created in a disabled state. Call Start job to start synchronization. + /// Create new synchronization job with a default synchronization schema. The job is created in a disabled state. Call Start job to start synchronization. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public JobsRequestBuilder WithUrl(string rawUrl) { return new JobsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List existing jobs for a given application instance (service principal). + /// List existing jobs for a given application instance (service principal). This API is supported in the following national cloud deployments. /// public class JobsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs index 3ef7b1bf88b..5083a0a5835 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs @@ -29,7 +29,7 @@ public DiscoverRequestBuilder(Dictionary pathParameters, IReques public DiscoverRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema/directories/{directoryDefinition%2Did}/discover", rawUrl) { } /// - /// Discover the latest schema definition for provisioning to an application. + /// Discover the latest schema definition for provisioning to an application. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, DirectoryDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Discover the latest schema definition for provisioning to an application. + /// Discover the latest schema definition for provisioning to an application. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsGetResponse.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsGetResponse.cs new file mode 100644 index 00000000000..4c36ab4222d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Applications.Item.Synchronization.Templates.Item.Schema.FilterOperators { + public class FilterOperatorsGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterOperatorsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterOperatorsGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(FilterOperatorSchema.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs index 298f67f6d86..ebbfdd11170 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs @@ -33,6 +33,26 @@ public FilterOperatorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterOperatorsGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFilterOperatorsGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterOperatorsGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterOperators + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFilterOperatorsGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsResponse.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsResponse.cs index 7674bbeed74..7617cef2913 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsResponse.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Applications.Item.Synchronization.Templates.Item.Schema.FilterOperators { - public class FilterOperatorsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use filterOperatorsGetResponse instead.")] + public class FilterOperatorsResponse : FilterOperatorsGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterOperatorsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(FilterOperatorSchema.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsGetResponse.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsGetResponse.cs new file mode 100644 index 00000000000..fcd2845e77c --- /dev/null +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Applications.Item.Synchronization.Templates.Item.Schema.Functions { + public class FunctionsGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FunctionsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FunctionsGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(AttributeMappingFunctionSchema.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsRequestBuilder.cs index ccacaae3523..9b1e2266bfc 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsRequestBuilder.cs @@ -33,6 +33,26 @@ public FunctionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFunctionsGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFunctionsGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FunctionsGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function functions + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFunctionsGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsResponse.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsResponse.cs index cde086bda64..00d9e226395 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsResponse.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Applications.Item.Synchronization.Templates.Item.Schema.Functions { - public class FunctionsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use functionsGetResponse instead.")] + public class FunctionsResponse : FunctionsGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FunctionsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(AttributeMappingFunctionSchema.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs index 50b70d0eb8e..d44442e5e13 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs @@ -29,7 +29,7 @@ public ParseExpressionRequestBuilder(Dictionary pathParameters, public ParseExpressionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema/parseExpression", rawUrl) { } /// - /// Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. + /// Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(ParseExpressionPostRequestB return await RequestAdapter.SendAsync(requestInfo, ParseExpressionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. + /// Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilder.cs index 5c4ce96d30f..4523588a73c 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Pre-configured synchronization settings for a particular application. + /// Preconfigured synchronization settings for a particular application. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -72,7 +72,7 @@ public async Task GetAsync(Action(requestInfo, SynchronizationTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update (override) the synchronization template associated with a given application. + /// Update (override) the synchronization template associated with a given application. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Pre-configured synchronization settings for a particular application. + /// Preconfigured synchronization settings for a particular application. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update (override) the synchronization template associated with a given application. + /// Update (override) the synchronization template associated with a given application. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -195,7 +195,7 @@ public SynchronizationTemplateItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Pre-configured synchronization settings for a particular application. + /// Preconfigured synchronization settings for a particular application. /// public class SynchronizationTemplateItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/TemplatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/TemplatesRequestBuilder.cs index 19218acfe83..42aac1a1fe8 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/TemplatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/TemplatesRequestBuilder.cs @@ -42,7 +42,7 @@ public TemplatesRequestBuilder(Dictionary pathParameters, IReque public TemplatesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/synchronization/templates{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List the synchronization templates associated with a given application or service principal. + /// List the synchronization templates associated with a given application or service principal. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(SynchronizationTemplate bod return await RequestAdapter.SendAsync(requestInfo, SynchronizationTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List the synchronization templates associated with a given application or service principal. + /// List the synchronization templates associated with a given application or service principal. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public TemplatesRequestBuilder WithUrl(string rawUrl) { return new TemplatesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List the synchronization templates associated with a given application or service principal. + /// List the synchronization templates associated with a given application or service principal. This API is supported in the following national cloud deployments. /// public class TemplatesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Item/Ref/RefRequestBuilder.cs index ccdb9354aa1..0f3960452f0 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Item/Ref/RefRequestBuilder.cs @@ -28,7 +28,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/{tokenIssuancePolicy%2Did}/$ref{?%40id*}", rawUrl) { } /// - /// Remove a tokenIssuancePolicy from an application. + /// Remove a tokenIssuancePolicy from an application. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Remove a tokenIssuancePolicy from an application. + /// Remove a tokenIssuancePolicy from an application. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -80,7 +80,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a tokenIssuancePolicy from an application. + /// Remove a tokenIssuancePolicy from an application. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderDeleteQueryParameters { /// Delete Uri diff --git a/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Ref/RefRequestBuilder.cs index 5edd79c8493..2ab2274cf52 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Ref/RefRequestBuilder.cs @@ -29,7 +29,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { } /// - /// List the tokenIssuancePolicy objects that are assigned to an application. + /// List the tokenIssuancePolicy objects that are assigned to an application. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, StringCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Assign a tokenIssuancePolicy to an application. + /// Assign a tokenIssuancePolicy to an application. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -71,7 +71,7 @@ public async Task PostAsync(ReferenceCreate body, Action - /// List the tokenIssuancePolicy objects that are assigned to an application. + /// List the tokenIssuancePolicy objects that are assigned to an application. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -97,7 +97,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Assign a tokenIssuancePolicy to an application. + /// Assign a tokenIssuancePolicy to an application. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -131,7 +131,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// List the tokenIssuancePolicy objects that are assigned to an application. + /// List the tokenIssuancePolicy objects that are assigned to an application. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.cs index fa9fb4d2d6f..1018448e70a 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.cs @@ -47,7 +47,7 @@ public TokenIssuancePoliciesRequestBuilder(Dictionary pathParame public TokenIssuancePoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List the tokenIssuancePolicy objects that are assigned to an application. + /// List the tokenIssuancePolicy objects that are assigned to an application. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, TokenIssuancePolicyCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List the tokenIssuancePolicy objects that are assigned to an application. + /// List the tokenIssuancePolicy objects that are assigned to an application. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -100,7 +100,7 @@ public TokenIssuancePoliciesRequestBuilder WithUrl(string rawUrl) { return new TokenIssuancePoliciesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List the tokenIssuancePolicy objects that are assigned to an application. + /// List the tokenIssuancePolicy objects that are assigned to an application. This API is supported in the following national cloud deployments. /// public class TokenIssuancePoliciesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Item/Ref/RefRequestBuilder.cs index 8430268b250..9fb280ab169 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Item/Ref/RefRequestBuilder.cs @@ -28,7 +28,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/{tokenLifetimePolicy%2Did}/$ref{?%40id*}", rawUrl) { } /// - /// Remove a tokenLifetimePolicy from an application. + /// Remove a tokenLifetimePolicy from an application. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Remove a tokenLifetimePolicy from an application. + /// Remove a tokenLifetimePolicy from an application. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -80,7 +80,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a tokenLifetimePolicy from an application. + /// Remove a tokenLifetimePolicy from an application. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderDeleteQueryParameters { /// Delete Uri diff --git a/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilder.cs index 5cde5bab4d5..b205190b539 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilder.cs @@ -29,7 +29,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { } /// - /// List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. + /// List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, StringCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Assign a tokenLifetimePolicy to an application. You can have multiple tokenLifetimePolicy policies in a tenant but can assign only one tokenLifetimePolicy per application. + /// Assign a tokenLifetimePolicy to an application. You can have multiple tokenLifetimePolicy policies in a tenant but can assign only one tokenLifetimePolicy per application. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -71,7 +71,7 @@ public async Task PostAsync(ReferenceCreate body, Action - /// List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. + /// List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -97,7 +97,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Assign a tokenLifetimePolicy to an application. You can have multiple tokenLifetimePolicy policies in a tenant but can assign only one tokenLifetimePolicy per application. + /// Assign a tokenLifetimePolicy to an application. You can have multiple tokenLifetimePolicy policies in a tenant but can assign only one tokenLifetimePolicy per application. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -131,7 +131,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. + /// List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.cs index d463cec12a6..d4d3c497a3d 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.cs @@ -47,7 +47,7 @@ public TokenLifetimePoliciesRequestBuilder(Dictionary pathParame public TokenLifetimePoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. + /// List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, TokenLifetimePolicyCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. + /// List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -100,7 +100,7 @@ public TokenLifetimePoliciesRequestBuilder WithUrl(string rawUrl) { return new TokenLifetimePoliciesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. + /// List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. This API is supported in the following national cloud deployments. /// public class TokenLifetimePoliciesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Applications/Item/UnsetVerifiedPublisher/UnsetVerifiedPublisherRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/UnsetVerifiedPublisher/UnsetVerifiedPublisherRequestBuilder.cs index 6d885bb0b18..a1e98e13b51 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/UnsetVerifiedPublisher/UnsetVerifiedPublisherRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/UnsetVerifiedPublisher/UnsetVerifiedPublisherRequestBuilder.cs @@ -28,7 +28,7 @@ public UnsetVerifiedPublisherRequestBuilder(Dictionary pathParam public UnsetVerifiedPublisherRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/unsetVerifiedPublisher", rawUrl) { } /// - /// Unset the verifiedPublisher previously set on an application, removing all verified publisher properties. For more information, see Publisher verification. + /// Unset the verifiedPublisher previously set on an application, removing all verified publisher properties. For more information, see Publisher verification. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Unset the verifiedPublisher previously set on an application, removing all verified publisher properties. For more information, see Publisher verification. + /// Unset the verifiedPublisher previously set on an application, removing all verified publisher properties. For more information, see Publisher verification. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Applications/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/ValidateProperties/ValidatePropertiesRequestBuilder.cs index c7ba3290b43..49accf22613 100644 --- a/src/Microsoft.Graph/Generated/Applications/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -28,7 +28,7 @@ public ValidatePropertiesRequestBuilder(Dictionary pathParameter public ValidatePropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/validateProperties", rawUrl) { } /// - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ValidatePropertiesPostRequestBody body, Action - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilder.cs b/src/Microsoft.Graph/Generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilder.cs index c6cbba95f1e..5c8d7726f16 100644 --- a/src/Microsoft.Graph/Generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilder.cs @@ -31,7 +31,7 @@ public ApplicationsWithAppIdRequestBuilder(Dictionary pathParame public ApplicationsWithAppIdRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications(appId='{appId}'){?%24select,%24expand}", rawUrl) { } /// - /// Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. + /// Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -51,7 +51,7 @@ public async Task DeleteAsync(Action - /// Get the properties and relationships of an application object. + /// Get the properties and relationships of an application object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -71,7 +71,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Application.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an application object. + /// Update the properties of an application object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -93,7 +93,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Application.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. + /// Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -117,7 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties and relationships of an application object. + /// Get the properties and relationships of an application object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an application object. + /// Update the properties of an application object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -194,7 +194,7 @@ public ApplicationsWithAppIdRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the properties and relationships of an application object. + /// Get the properties and relationships of an application object. This API is supported in the following national cloud deployments. /// public class ApplicationsWithAppIdRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/AuditLogs/DirectoryAudits/DirectoryAuditsRequestBuilder.cs b/src/Microsoft.Graph/Generated/AuditLogs/DirectoryAudits/DirectoryAuditsRequestBuilder.cs index c473a4265e6..77760321fff 100644 --- a/src/Microsoft.Graph/Generated/AuditLogs/DirectoryAudits/DirectoryAuditsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AuditLogs/DirectoryAudits/DirectoryAuditsRequestBuilder.cs @@ -42,7 +42,7 @@ public DirectoryAuditsRequestBuilder(Dictionary pathParameters, public DirectoryAuditsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/auditLogs/directoryAudits{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of audit logs generated by Azure Active Directory (Azure AD). This includes audit logs generated by various services within Azure AD, including user, app, device and group Management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), and self- service group management, and so on. + /// Get the list of audit logs generated by Azure Active Directory (Azure AD). This includes audit logs generated by various services within Azure AD, including user, app, device and group Management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), and self- service group management, and so on. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(DirectoryAudit body, Action(requestInfo, DirectoryAudit.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of audit logs generated by Azure Active Directory (Azure AD). This includes audit logs generated by various services within Azure AD, including user, app, device and group Management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), and self- service group management, and so on. + /// Get the list of audit logs generated by Azure Active Directory (Azure AD). This includes audit logs generated by various services within Azure AD, including user, app, device and group Management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), and self- service group management, and so on. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public DirectoryAuditsRequestBuilder WithUrl(string rawUrl) { return new DirectoryAuditsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of audit logs generated by Azure Active Directory (Azure AD). This includes audit logs generated by various services within Azure AD, including user, app, device and group Management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), and self- service group management, and so on. + /// Get the list of audit logs generated by Azure Active Directory (Azure AD). This includes audit logs generated by various services within Azure AD, including user, app, device and group Management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), and self- service group management, and so on. This API is supported in the following national cloud deployments. /// public class DirectoryAuditsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/AuditLogs/DirectoryAudits/Item/DirectoryAuditItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/AuditLogs/DirectoryAudits/Item/DirectoryAuditItemRequestBuilder.cs index d16278b094b..96b0f196964 100644 --- a/src/Microsoft.Graph/Generated/AuditLogs/DirectoryAudits/Item/DirectoryAuditItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AuditLogs/DirectoryAudits/Item/DirectoryAuditItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get a specific Azure Active Directory audit log item. This includes an audit log item generated by various services within Azure Active Directory like user, application, device and group management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), self-service group management, and so on. + /// Get a specific Azure Active Directory audit log item. This includes an audit log item generated by various services within Azure Active Directory like user, application, device and group management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), self-service group management, and so on. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a specific Azure Active Directory audit log item. This includes an audit log item generated by various services within Azure Active Directory like user, application, device and group management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), self-service group management, and so on. + /// Get a specific Azure Active Directory audit log item. This includes an audit log item generated by various services within Azure Active Directory like user, application, device and group management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), self-service group management, and so on. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public DirectoryAuditItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a specific Azure Active Directory audit log item. This includes an audit log item generated by various services within Azure Active Directory like user, application, device and group management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), self-service group management, and so on. + /// Get a specific Azure Active Directory audit log item. This includes an audit log item generated by various services within Azure Active Directory like user, application, device and group management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), self-service group management, and so on. This API is supported in the following national cloud deployments. /// public class DirectoryAuditItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/AuditLogs/Provisioning/ProvisioningRequestBuilder.cs b/src/Microsoft.Graph/Generated/AuditLogs/Provisioning/ProvisioningRequestBuilder.cs index 78f889759da..303681666a6 100644 --- a/src/Microsoft.Graph/Generated/AuditLogs/Provisioning/ProvisioningRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AuditLogs/Provisioning/ProvisioningRequestBuilder.cs @@ -42,7 +42,7 @@ public ProvisioningRequestBuilder(Dictionary pathParameters, IRe public ProvisioningRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/auditLogs/provisioning{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get all provisioning events that occurred in your tenant, such as the deletion of a group in a target application or the creation of a user when provisioning user accounts from your HR system. + /// Get all provisioning events that occurred in your tenant, such as the deletion of a group in a target application or the creation of a user when provisioning user accounts from your HR system. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ProvisioningObjectSummary return await RequestAdapter.SendAsync(requestInfo, ProvisioningObjectSummary.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get all provisioning events that occurred in your tenant, such as the deletion of a group in a target application or the creation of a user when provisioning user accounts from your HR system. + /// Get all provisioning events that occurred in your tenant, such as the deletion of a group in a target application or the creation of a user when provisioning user accounts from your HR system. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public ProvisioningRequestBuilder WithUrl(string rawUrl) { return new ProvisioningRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get all provisioning events that occurred in your tenant, such as the deletion of a group in a target application or the creation of a user when provisioning user accounts from your HR system. + /// Get all provisioning events that occurred in your tenant, such as the deletion of a group in a target application or the creation of a user when provisioning user accounts from your HR system. This API is supported in the following national cloud deployments. /// public class ProvisioningRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/AuditLogs/SignIns/Item/SignInItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/AuditLogs/SignIns/Item/SignInItemRequestBuilder.cs index 7f0ec8b0340..c40b56d84ec 100644 --- a/src/Microsoft.Graph/Generated/AuditLogs/SignIns/Item/SignInItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AuditLogs/SignIns/Item/SignInItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve a specific Azure AD user sign-in event for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. + /// Retrieve a specific Azure AD user sign-in event for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a specific Azure AD user sign-in event for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. + /// Retrieve a specific Azure AD user sign-in event for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public SignInItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a specific Azure AD user sign-in event for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. + /// Retrieve a specific Azure AD user sign-in event for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. This API is supported in the following national cloud deployments. /// public class SignInItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/AuditLogs/SignIns/SignInsRequestBuilder.cs b/src/Microsoft.Graph/Generated/AuditLogs/SignIns/SignInsRequestBuilder.cs index 0cc6073f3bf..866cc718ddb 100644 --- a/src/Microsoft.Graph/Generated/AuditLogs/SignIns/SignInsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AuditLogs/SignIns/SignInsRequestBuilder.cs @@ -42,7 +42,7 @@ public SignInsRequestBuilder(Dictionary pathParameters, IRequest public SignInsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/auditLogs/signIns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the Azure AD user sign-ins for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. The maximum and default page size is 1,000 objects and by default, the most recent sign-ins are returned first. Only sign-in events that occurred within the Azure Active Directory (Azure AD) default retention period are available. + /// Retrieve the Azure AD user sign-ins for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. The maximum and default page size is 1,000 objects and by default, the most recent sign-ins are returned first. Only sign-in events that occurred within the Azure Active Directory (Azure AD) default retention period are available. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(SignIn body, Action(requestInfo, SignIn.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the Azure AD user sign-ins for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. The maximum and default page size is 1,000 objects and by default, the most recent sign-ins are returned first. Only sign-in events that occurred within the Azure Active Directory (Azure AD) default retention period are available. + /// Retrieve the Azure AD user sign-ins for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. The maximum and default page size is 1,000 objects and by default, the most recent sign-ins are returned first. Only sign-in events that occurred within the Azure Active Directory (Azure AD) default retention period are available. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SignInsRequestBuilder WithUrl(string rawUrl) { return new SignInsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the Azure AD user sign-ins for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. The maximum and default page size is 1,000 objects and by default, the most recent sign-ins are returned first. Only sign-in events that occurred within the Azure Active Directory (Azure AD) default retention period are available. + /// Retrieve the Azure AD user sign-ins for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. The maximum and default page size is 1,000 objects and by default, the most recent sign-ins are returned first. Only sign-in events that occurred within the Azure Active Directory (Azure AD) default retention period are available. This API is supported in the following national cloud deployments. /// public class SignInsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Chats/ChatsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/ChatsRequestBuilder.cs index 9c8eac40c6c..51b85881372 100644 --- a/src/Microsoft.Graph/Generated/Chats/ChatsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/ChatsRequestBuilder.cs @@ -47,7 +47,7 @@ public ChatsRequestBuilder(Dictionary pathParameters, IRequestAd public ChatsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of chats that the user is part of. This method supports federation. When a user ID is provided, the calling application must belong to the same tenant that the user belongs to. + /// Retrieve the list of chats that the user is part of. This method supports federation. When a user ID is provided, the calling application must belong to the same tenant that the user belongs to. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ChatCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new chat object. + /// Create a new chat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Chat.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of chats that the user is part of. This method supports federation. When a user ID is provided, the calling application must belong to the same tenant that the user belongs to. + /// Retrieve the list of chats that the user is part of. This method supports federation. When a user ID is provided, the calling application must belong to the same tenant that the user belongs to. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new chat object. + /// Create a new chat object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public ChatsRequestBuilder WithUrl(string rawUrl) { return new ChatsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of chats that the user is part of. This method supports federation. When a user ID is provided, the calling application must belong to the same tenant that the user belongs to. + /// Retrieve the list of chats that the user is part of. This method supports federation. When a user ID is provided, the calling application must belong to the same tenant that the user belongs to. This API is supported in the following national cloud deployments. /// public class ChatsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Chats/GetAllMessages/GetAllMessagesGetResponse.cs b/src/Microsoft.Graph/Generated/Chats/GetAllMessages/GetAllMessagesGetResponse.cs new file mode 100644 index 00000000000..6814085fb5d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Chats/GetAllMessages/GetAllMessagesGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Chats.GetAllMessages { + public class GetAllMessagesGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAllMessagesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAllMessagesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Chats/GetAllMessages/GetAllMessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/GetAllMessages/GetAllMessagesRequestBuilder.cs index 2338a1fcd6c..b4cb66f2174 100644 --- a/src/Microsoft.Graph/Generated/Chats/GetAllMessages/GetAllMessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/GetAllMessages/GetAllMessagesRequestBuilder.cs @@ -33,6 +33,26 @@ public GetAllMessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetAllMessagesGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetAllMessagesGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAllMessagesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getAllMessages + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetAllMessagesGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Chats/GetAllMessages/GetAllMessagesResponse.cs b/src/Microsoft.Graph/Generated/Chats/GetAllMessages/GetAllMessagesResponse.cs index f83c05c070d..b61ad478979 100644 --- a/src/Microsoft.Graph/Generated/Chats/GetAllMessages/GetAllMessagesResponse.cs +++ b/src/Microsoft.Graph/Generated/Chats/GetAllMessages/GetAllMessagesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Chats.GetAllMessages { - public class GetAllMessagesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAllMessagesGetResponse instead.")] + public class GetAllMessagesResponse : GetAllMessagesGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAllMessagesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Chats/Item/ChatItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/ChatItemRequestBuilder.cs index 971c7c24be3..836d386d2c1 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/ChatItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/ChatItemRequestBuilder.cs @@ -108,7 +108,7 @@ public async Task DeleteAsync(Action - /// Retrieve a single chat (without its messages). This method supports federation. To access a chat, at least one chat member must belong to the tenant the request initiated from. + /// Retrieve a single chat (without its messages). This method supports federation. To access a chat, at least one chat member must belong to the tenant the request initiated from. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -128,7 +128,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Chat.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a chat object. + /// Update the properties of a chat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -174,7 +174,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a single chat (without its messages). This method supports federation. To access a chat, at least one chat member must belong to the tenant the request initiated from. + /// Retrieve a single chat (without its messages). This method supports federation. To access a chat, at least one chat member must belong to the tenant the request initiated from. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -200,7 +200,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a chat object. + /// Update the properties of a chat object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -251,7 +251,7 @@ public ChatItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a single chat (without its messages). This method supports federation. To access a chat, at least one chat member must belong to the tenant the request initiated from. + /// Retrieve a single chat (without its messages). This method supports federation. To access a chat, at least one chat member must belong to the tenant the request initiated from. This API is supported in the following national cloud deployments. /// public class ChatItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Chats/Item/HideForUser/HideForUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/HideForUser/HideForUserRequestBuilder.cs index 7a4ca589b60..2105d77df91 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/HideForUser/HideForUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/HideForUser/HideForUserRequestBuilder.cs @@ -28,7 +28,7 @@ public HideForUserRequestBuilder(Dictionary pathParameters, IReq public HideForUserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/hideForUser", rawUrl) { } /// - /// Hide a chat for a user. + /// Hide a chat for a user. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(HideForUserPostRequestBody body, Action - /// Hide a chat for a user. + /// Hide a chat for a user. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.cs index 83848da1fb5..c7e79eff2c4 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.cs @@ -42,7 +42,7 @@ public InstalledAppsRequestBuilder(Dictionary pathParameters, IR public InstalledAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/installedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all app installations within a chat. + /// List all app installations within a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TeamsAppInstallationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Install a teamsApp to the specified chat. + /// Install a teamsApp to the specified chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TeamsAppInstallation body, Act return await RequestAdapter.SendAsync(requestInfo, TeamsAppInstallation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all app installations within a chat. + /// List all app installations within a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Install a teamsApp to the specified chat. + /// Install a teamsApp to the specified chat. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public InstalledAppsRequestBuilder WithUrl(string rawUrl) { return new InstalledAppsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all app installations within a chat. + /// List all app installations within a chat. This API is supported in the following national cloud deployments. /// public class InstalledAppsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs index 3c97581ee7a..cfec3ccc0da 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs @@ -44,7 +44,7 @@ public TeamsAppInstallationItemRequestBuilder(Dictionary pathPar public TeamsAppInstallationItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/installedApps/{teamsAppInstallation%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Uninstall an app installed within a chat. + /// Uninstall an app installed within a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -64,7 +64,7 @@ public async Task DeleteAsync(Action - /// Get an app installed in a chat. + /// Get an app installed in a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -105,7 +105,7 @@ public async Task PatchAsync(TeamsAppInstallation body, Ac return await RequestAdapter.SendAsync(requestInfo, TeamsAppInstallation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Uninstall an app installed within a chat. + /// Uninstall an app installed within a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,7 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an app installed in a chat. + /// Get an app installed in a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -206,7 +206,7 @@ public TeamsAppInstallationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an app installed in a chat. + /// Get an app installed in a chat. This API is supported in the following national cloud deployments. /// public class TeamsAppInstallationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs index 27d6850a551..d6e237612db 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs @@ -28,7 +28,7 @@ public UpgradeRequestBuilder(Dictionary pathParameters, IRequest public UpgradeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/installedApps/{teamsAppInstallation%2Did}/upgrade", rawUrl) { } /// - /// Upgrade an app installation within a chat. + /// Upgrade an app installation within a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(UpgradePostRequestBody body, Action - /// Upgrade an app installation within a chat. + /// Upgrade an app installation within a chat. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.cs index f2aa438c5cb..c5d5d541981 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.cs @@ -28,7 +28,7 @@ public MarkChatReadForUserRequestBuilder(Dictionary pathParamete public MarkChatReadForUserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/markChatReadForUser", rawUrl) { } /// - /// Mark a chat as read for a user. + /// Mark a chat as read for a user. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(MarkChatReadForUserPostRequestBody body, Action - /// Mark a chat as read for a user. + /// Mark a chat as read for a user. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.cs index cdfe210bfbf..34f58553ab4 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.cs @@ -28,7 +28,7 @@ public MarkChatUnreadForUserRequestBuilder(Dictionary pathParame public MarkChatUnreadForUserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/markChatUnreadForUser", rawUrl) { } /// - /// Mark a chat as unread for a user. + /// Mark a chat as unread for a user. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(MarkChatUnreadForUserPostRequestBody body, Action - /// Mark a chat as unread for a user. + /// Mark a chat as unread for a user. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Members/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Chats/Item/Members/Add/AddPostResponse.cs new file mode 100644 index 00000000000..543066d2225 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Chats/Item/Members/Add/AddPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Chats.Item.Members.Add { + public class AddPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AddPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AddPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Members/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Members/Add/AddRequestBuilder.cs index eb78398f70a..70f72e025aa 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Members/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Members/Add/AddRequestBuilder.cs @@ -28,13 +28,36 @@ public AddRequestBuilder(Dictionary pathParameters, IRequestAdap public AddRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/members/add", rawUrl) { } /// - /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AddPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsAddPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(AddPostRequestBody body, Action(requestInfo, AddResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Members/Add/AddResponse.cs b/src/Microsoft.Graph/Generated/Chats/Item/Members/Add/AddResponse.cs index dd8317bb188..c68ea1ff054 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Members/Add/AddResponse.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Members/Add/AddResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Chats.Item.Members.Add { - public class AddResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use addPostResponse instead.")] + public class AddResponse : AddPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index 5c04fba4ac5..20874737947 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -29,7 +29,7 @@ public ConversationMemberItemRequestBuilder(Dictionary pathParam public ConversationMemberItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/members/{conversationMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Remove a conversationMember from a chat. + /// Remove a conversationMember from a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve a conversationMember from a chat or channel. + /// Retrieve a conversationMember from a chat or channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(ConversationMember body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Remove a conversationMember from a chat. + /// Remove a conversationMember from a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a conversationMember from a chat or channel. + /// Retrieve a conversationMember from a chat or channel. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public ConversationMemberItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a conversationMember from a chat or channel. + /// Retrieve a conversationMember from a chat or channel. This API is supported in the following national cloud deployments. /// public class ConversationMemberItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Members/MembersRequestBuilder.cs index 01431f6c342..a9c894638bd 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Members/MembersRequestBuilder.cs @@ -47,7 +47,7 @@ public MembersRequestBuilder(Dictionary pathParameters, IRequest public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/members{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all conversation members in a chat or channel. + /// List all conversation members in a chat or channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a conversationMember to a chat. + /// Add a conversationMember to a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(ConversationMember body, Action< return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all conversation members in a chat or channel. + /// List all conversation members in a chat or channel. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a conversationMember to a chat. + /// Add a conversationMember to a chat. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public MembersRequestBuilder WithUrl(string rawUrl) { return new MembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all conversation members in a chat or channel. + /// List all conversation members in a chat or channel. This API is supported in the following national cloud deployments. /// public class MembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..3a917f01665 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Chats.Item.Messages.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Delta/DeltaRequestBuilder.cs index d8d9fe911c9..8b33bd81447 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Delta/DeltaResponse.cs index 347faec98da..5c99d270510 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Chats.Item.Messages.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.cs index 5af247fda69..6305b85f6a1 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.cs @@ -78,7 +78,7 @@ public async Task DeleteAsync(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -143,7 +143,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -220,7 +220,7 @@ public ChatMessageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// public class ChatMessageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs index 46d1a8ccf0e..c509f1ee0ae 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -42,7 +42,7 @@ public HostedContentsRequestBuilder(Dictionary pathParameters, I public HostedContentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/hostedContents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ChatMessageHostedContent b return await RequestAdapter.SendAsync(requestInfo, ChatMessageHostedContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public HostedContentsRequestBuilder WithUrl(string rawUrl) { return new HostedContentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// public class HostedContentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 038448268ad..5de78083179 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public ChatMessageHostedContentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..8dfd4137b40 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Chats.Item.Messages.Item.Replies.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs index 4eb26be282c..1a4cfca59a3 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Delta/DeltaResponse.cs index 892358ae8c5..08079d90eba 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Chats.Item.Messages.Item.Replies.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs index bc9562f5e79..da1eb4ab488 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs @@ -73,7 +73,7 @@ public async Task DeleteAsync(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -138,7 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -215,7 +215,7 @@ public ChatMessageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// public class ChatMessageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs index 84ada2df5ca..fe76149daaa 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -42,7 +42,7 @@ public HostedContentsRequestBuilder(Dictionary pathParameters, I public HostedContentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ChatMessageHostedContent b return await RequestAdapter.SendAsync(requestInfo, ChatMessageHostedContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public HostedContentsRequestBuilder WithUrl(string rawUrl) { return new HostedContentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// public class HostedContentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 371bd99eb51..a0a2ab181f6 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public ChatMessageHostedContentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs index 8dd308b69a3..d0729e7f7fe 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public SoftDeleteRequestBuilder(Dictionary pathParameters, IRequ public SoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/softDelete", rawUrl) { } /// - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index 3b732195438..195160082c7 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public UndoSoftDeleteRequestBuilder(Dictionary pathParameters, I public UndoSoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/undoSoftDelete", rawUrl) { } /// - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs index 1b197b91745..64f252e23f8 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -47,7 +47,7 @@ public RepliesRequestBuilder(Dictionary pathParameters, IRequest public RepliesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public RepliesRequestBuilder WithUrl(string rawUrl) { return new RepliesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// public class RepliesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs index 1060f44b44f..1a326626c21 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public SoftDeleteRequestBuilder(Dictionary pathParameters, IRequ public SoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/softDelete", rawUrl) { } /// - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index b696c09085f..4983494b99b 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public UndoSoftDeleteRequestBuilder(Dictionary pathParameters, I public UndoSoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/undoSoftDelete", rawUrl) { } /// - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs index fe3d85fade4..27087625e82 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs @@ -47,7 +47,7 @@ public MessagesRequestBuilder(Dictionary pathParameters, IReques public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/messages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of messages in a chat. This method supports federation. To list chat messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages in a chat. This method supports federation. To list chat messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified channel or a chat. - /// Find more info here + /// Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of messages in a chat. This method supports federation. To list chat messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages in a chat. This method supports federation. To list chat messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel or a chat. + /// Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public MessagesRequestBuilder WithUrl(string rawUrl) { return new MessagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of messages in a chat. This method supports federation. To list chat messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages in a chat. This method supports federation. To list chat messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// public class MessagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Delta/DeltaGetResponse.cs similarity index 88% rename from src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsResponse.cs rename to src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Delta/DeltaGetResponse.cs index 5bdd81e59e6..687dc0d3b52 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Delta/DeltaGetResponse.cs @@ -5,8 +5,8 @@ using System.IO; using System.Linq; using System; -namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.GetByIds { - public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { +namespace Microsoft.Graph.Chats.Item.PermissionGrants.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -25,9 +25,9 @@ public List Value { /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static new GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetByIdsResponse(); + return new DeltaGetResponse(); } /// /// The deserialization information for the current model diff --git a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Delta/DeltaRequestBuilder.cs index 33380deb04c..5e94f5b1cfe 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Delta/DeltaResponse.cs index 6a778026ac7..8a4d1e92784 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Chats.Item.PermissionGrants.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs new file mode 100644 index 00000000000..9b9dc87a92b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Chats.Item.PermissionGrants.GetAvailableExtensionProperties { + public class GetAvailableExtensionPropertiesPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAvailableExtensionPropertiesPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index 284a6943aab..058a4c6484c 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -28,13 +28,36 @@ public GetAvailableExtensionPropertiesRequestBuilder(Dictionary public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/permissionGrants/getAvailableExtensionProperties", rawUrl) { } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetAvailableExtensionPropertiesPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetAvailabl return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index 129ba8a9b3f..4bbf1d0de21 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Chats.Item.PermissionGrants.GetAvailableExtensionProperties { - public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAvailableExtensionPropertiesPostResponse instead.")] + public class GetAvailableExtensionPropertiesResponse : GetAvailableExtensionPropertiesPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/GetByIds/GetByIdsPostResponse.cs new file mode 100644 index 00000000000..47fc03a501b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/GetByIds/GetByIdsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Chats.Item.PermissionGrants.GetByIds { + public class GetByIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetByIdsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs index eea86762f84..cdbcb5fc834 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetByIdsRequestBuilder(Dictionary pathParameters, IReques public GetByIdsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/permissionGrants/getByIds", rawUrl) { } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetByIdsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetByIdsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetByIdsPostRequestBody body, Acti return await RequestAdapter.SendAsync(requestInfo, GetByIdsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/GetByIds/GetByIdsResponse.cs index 6cad91b4dac..24e0ff38631 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/GetByIds/GetByIdsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Chats.Item.PermissionGrants.GetByIds { - public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getByIdsPostResponse instead.")] + public class GetByIdsResponse : GetByIdsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..6a465a4ddba --- /dev/null +++ b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Chats.Item.PermissionGrants.Item.CheckMemberGroups { + public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index 2669cff2290..88a6d20e953 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index 2ac57b5b5a1..0992fde0bb5 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Chats.Item.PermissionGrants.Item.CheckMemberGroups { - public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberGroupsPostResponse instead.")] + public class CheckMemberGroupsResponse : CheckMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..095f71d61a1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Chats.Item.PermissionGrants.Item.CheckMemberObjects { + public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index c1ea0468c2f..f438e01ef38 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -34,6 +34,28 @@ public CheckMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAd /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action checkMemberObjects + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index 8cf82ff3565..fc662ebacfe 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Chats.Item.PermissionGrants.Item.CheckMemberObjects { - public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberObjectsPostResponse instead.")] + public class CheckMemberObjectsResponse : CheckMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..33f40355d32 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Chats.Item.PermissionGrants.Item.GetMemberGroups { + public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index e240522090f..dd2f5fe5847 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberGroupsRequestBuilder(Dictionary pathParameters, public GetMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/getMemberGroups", rawUrl) { } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberGroupsPostRequestB return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs index 56a4d137e9d..0721d654208 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Chats.Item.PermissionGrants.Item.GetMemberGroups { - public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberGroupsPostResponse instead.")] + public class GetMemberGroupsResponse : GetMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..190ff149cdd --- /dev/null +++ b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Chats.Item.PermissionGrants.Item.GetMemberObjects { + public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index c6371177199..6a1573ae753 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberObjectsRequestBuilder(Dictionary pathParameters, public GetMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/getMemberObjects", rawUrl) { } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberObjectsPostReques return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs index edaa8683ca6..fa8aa9d04ef 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Chats.Item.PermissionGrants.Item.GetMemberObjects { - public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberObjectsPostResponse instead.")] + public class GetMemberObjectsResponse : GetMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs index 2a8deef96be..fd780060c78 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs @@ -29,7 +29,7 @@ public RestoreRequestBuilder(Dictionary pathParameters, IRequest public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs index 32a1c86e1d4..667b3b12b1a 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs @@ -62,7 +62,7 @@ public PermissionGrantsRequestBuilder(Dictionary pathParameters, public PermissionGrantsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/permissionGrants{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all resource-specific permission grants on the chat. This list specifies the Azure AD apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. + /// List all resource-specific permission grants on the chat. This list specifies the Azure AD apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -103,7 +103,7 @@ public async Task PostAsync(ResourceSpecificPer return await RequestAdapter.SendAsync(requestInfo, ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all resource-specific permission grants on the chat. This list specifies the Azure AD apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. + /// List all resource-specific permission grants on the chat. This list specifies the Azure AD apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,7 +164,7 @@ public PermissionGrantsRequestBuilder WithUrl(string rawUrl) { return new PermissionGrantsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all resource-specific permission grants on the chat. This list specifies the Azure AD apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. + /// List all resource-specific permission grants on the chat. This list specifies the Azure AD apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is supported in the following national cloud deployments. /// public class PermissionGrantsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs index 236bd922bce..ba1465dc659 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -28,7 +28,7 @@ public ValidatePropertiesRequestBuilder(Dictionary pathParameter public ValidatePropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/permissionGrants/validateProperties", rawUrl) { } /// - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ValidatePropertiesPostRequestBody body, Action - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.cs index 92082e5889d..5d7a652876f 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.cs @@ -34,7 +34,7 @@ public PinnedChatMessageInfoItemRequestBuilder(Dictionary pathPa public PinnedChatMessageInfoItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/pinnedMessages/{pinnedChatMessageInfo%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Unpin a message from a chat. + /// Unpin a message from a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -94,7 +94,7 @@ public async Task PatchAsync(PinnedChatMessageInfo body, return await RequestAdapter.SendAsync(requestInfo, PinnedChatMessageInfo.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Unpin a message from a chat. + /// Unpin a message from a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.cs index 4bf6f65baf9..10b8fa730a2 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.cs @@ -42,7 +42,7 @@ public PinnedMessagesRequestBuilder(Dictionary pathParameters, I public PinnedMessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/pinnedMessages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of pinnedChatMessages in a chat. + /// Get a list of pinnedChatMessages in a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, PinnedChatMessageInfoCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Pin a chat message in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can pin a chat message. + /// Pin a chat message in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can pin a chat message. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(PinnedChatMessageInfo body, A return await RequestAdapter.SendAsync(requestInfo, PinnedChatMessageInfo.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of pinnedChatMessages in a chat. + /// Get a list of pinnedChatMessages in a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Pin a chat message in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can pin a chat message. + /// Pin a chat message in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can pin a chat message. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PinnedMessagesRequestBuilder WithUrl(string rawUrl) { return new PinnedMessagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of pinnedChatMessages in a chat. + /// Get a list of pinnedChatMessages in a chat. This API is supported in the following national cloud deployments. /// public class PinnedMessagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs index 90c2302b0be..f99a310f15a 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs @@ -28,7 +28,7 @@ public SendActivityNotificationRequestBuilder(Dictionary pathPar public SendActivityNotificationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/sendActivityNotification", rawUrl) { } /// - /// Send an activity feed notification in scope of a chat. For more details about sending notifications and the requirements for doing so, see sending Teams activity notifications. + /// Send an activity feed notification in scope of a chat. For more details about sending notifications and the requirements for doing so, see sending Teams activity notifications. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SendActivityNotificationPostRequestBody body, Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send an activity feed notification in scope of a chat. For more details about sending notifications and the requirements for doing so, see sending Teams activity notifications. + /// Send an activity feed notification in scope of a chat. For more details about sending notifications and the requirements for doing so, see sending Teams activity notifications. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs index 20cb852687a..3075845a2a5 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs @@ -29,7 +29,7 @@ public TeamsAppRequestBuilder(Dictionary pathParameters, IReques public TeamsAppRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/tabs/{teamsTab%2Did}/teamsApp{?%24select,%24expand}", rawUrl) { } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -48,7 +48,7 @@ public TeamsAppRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.TeamsApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +81,7 @@ public TeamsAppRequestBuilder WithUrl(string rawUrl) { return new TeamsAppRequestBuilder(rawUrl, RequestAdapter); } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// public class TeamsAppRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs index 9d8df34c91a..0a0895c6069 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs @@ -34,7 +34,7 @@ public TeamsTabItemRequestBuilder(Dictionary pathParameters, IRe public TeamsTabItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/tabs/{teamsTab%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Remove (unpin) a tab from the specified chat. + /// Remove (unpin) a tab from the specified chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of the specified tab in a chat. + /// Retrieve the properties and relationships of the specified tab in a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of the specified tab in a chat. This can be used to configure the content of the tab. + /// Update the properties of the specified tab in a chat. This can be used to configure the content of the tab. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(TeamsTab body, Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Remove (unpin) a tab from the specified chat. + /// Remove (unpin) a tab from the specified chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of the specified tab in a chat. + /// Retrieve the properties and relationships of the specified tab in a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of the specified tab in a chat. This can be used to configure the content of the tab. + /// Update the properties of the specified tab in a chat. This can be used to configure the content of the tab. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public TeamsTabItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of the specified tab in a chat. + /// Retrieve the properties and relationships of the specified tab in a chat. This API is supported in the following national cloud deployments. /// public class TeamsTabItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Tabs/TabsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Tabs/TabsRequestBuilder.cs index 7e477dcf8ea..7cfadad2059 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Tabs/TabsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Tabs/TabsRequestBuilder.cs @@ -42,7 +42,7 @@ public TabsRequestBuilder(Dictionary pathParameters, IRequestAda public TabsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/tabs{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of tabs in the specified chat. + /// Retrieve the list of tabs in the specified chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TeamsTabCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add (pin) a tab to the specified chat. The corresponding app must already be installed in the chat. + /// Add (pin) a tab to the specified chat. The corresponding app must already be installed in the chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TeamsTab body, Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of tabs in the specified chat. + /// Retrieve the list of tabs in the specified chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add (pin) a tab to the specified chat. The corresponding app must already be installed in the chat. + /// Add (pin) a tab to the specified chat. The corresponding app must already be installed in the chat. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public TabsRequestBuilder WithUrl(string rawUrl) { return new TabsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of tabs in the specified chat. + /// Retrieve the list of tabs in the specified chat. This API is supported in the following national cloud deployments. /// public class TabsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.cs index 66391b7f34c..7853217755b 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.cs @@ -28,7 +28,7 @@ public UnhideForUserRequestBuilder(Dictionary pathParameters, IR public UnhideForUserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/unhideForUser", rawUrl) { } /// - /// Unhide a chat for a user. + /// Unhide a chat for a user. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(UnhideForUserPostRequestBody body, Action - /// Unhide a chat for a user. + /// Unhide a chat for a user. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Communications/CallRecords/CallRecordsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/CallRecords/CallRecordsRequestBuilder.cs index f329d2f44d6..aa693864927 100644 --- a/src/Microsoft.Graph/Generated/Communications/CallRecords/CallRecordsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/CallRecords/CallRecordsRequestBuilder.cs @@ -44,7 +44,7 @@ public CallRecordsRequestBuilder(Dictionary pathParameters, IReq public CallRecordsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/callRecords{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. + /// Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -104,7 +104,7 @@ public async Task PostAsync(CallRecord body, Action(requestInfo, CallRecord.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. + /// Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -165,7 +165,7 @@ public CallRecordsRequestBuilder WithUrl(string rawUrl) { return new CallRecordsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. + /// Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. This API is supported in the following national cloud deployments. /// public class CallRecordsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/CallRecordItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/CallRecordItemRequestBuilder.cs index 25897e7411b..0a06c6bdc58 100644 --- a/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/CallRecordItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/CallRecordItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. + /// Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. + /// Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public CallRecordItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. + /// Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. This API is supported in the following national cloud deployments. /// public class CallRecordItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/Sessions/SessionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/Sessions/SessionsRequestBuilder.cs index b4098d5f9a1..1a8732e5e56 100644 --- a/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/Sessions/SessionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/Sessions/SessionsRequestBuilder.cs @@ -42,7 +42,7 @@ public SessionsRequestBuilder(Dictionary pathParameters, IReques public SessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/callRecords/{callRecord%2Did}/sessions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of sessions associated with a callRecord object. If the sessions list is truncated, a sessions@odata.nextLink value will be provided to retrieve the next page of sessions. The maximum page size for sessions is 60 entries. + /// Retrieve the list of sessions associated with a callRecord object. If the sessions list is truncated, a sessions@odata.nextLink value will be provided to retrieve the next page of sessions. The maximum page size for sessions is 60 entries. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(Session body, Action(requestInfo, Session.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of sessions associated with a callRecord object. If the sessions list is truncated, a sessions@odata.nextLink value will be provided to retrieve the next page of sessions. The maximum page size for sessions is 60 entries. + /// Retrieve the list of sessions associated with a callRecord object. If the sessions list is truncated, a sessions@odata.nextLink value will be provided to retrieve the next page of sessions. The maximum page size for sessions is 60 entries. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SessionsRequestBuilder WithUrl(string rawUrl) { return new SessionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of sessions associated with a callRecord object. If the sessions list is truncated, a sessions@odata.nextLink value will be provided to retrieve the next page of sessions. The maximum page size for sessions is 60 entries. + /// Retrieve the list of sessions associated with a callRecord object. If the sessions list is truncated, a sessions@odata.nextLink value will be provided to retrieve the next page of sessions. The maximum page size for sessions is 60 entries. This API is supported in the following national cloud deployments. /// public class SessionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse.cs b/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse.cs new file mode 100644 index 00000000000..e354a400bc7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse.cs @@ -0,0 +1,51 @@ +// +using Microsoft.Graph.Models.CallRecords; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Communications.CallRecords.MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime { + public class GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectRoutingLogRow.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/GetDirectRoutingCallsWithFromDateTimeWithToDateTimeResponse.cs b/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/GetDirectRoutingCallsWithFromDateTimeWithToDateTimeResponse.cs index a40bfbf00e8..80ae37baf44 100644 --- a/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/GetDirectRoutingCallsWithFromDateTimeWithToDateTimeResponse.cs +++ b/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/GetDirectRoutingCallsWithFromDateTimeWithToDateTimeResponse.cs @@ -1,27 +1,12 @@ // -using Microsoft.Graph.Models.CallRecords; -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Communications.CallRecords.MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime { - public class GetDirectRoutingCallsWithFromDateTimeWithToDateTimeResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse instead.")] + public class GetDirectRoutingCallsWithFromDateTimeWithToDateTimeResponse : GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -30,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetDirectRoutingCallsWithFromDateTimeWithToDateTimeResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectRoutingLogRow.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder.cs index c7045fa1d09..69ce144b8cc 100644 --- a/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder.cs @@ -37,6 +37,26 @@ public MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateT /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getDirectRoutingCalls + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse.cs b/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse.cs new file mode 100644 index 00000000000..f8d554d37a1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse.cs @@ -0,0 +1,51 @@ +// +using Microsoft.Graph.Models.CallRecords; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Communications.CallRecords.MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime { + public class GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(PstnCallLogRow.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/GetPstnCallsWithFromDateTimeWithToDateTimeResponse.cs b/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/GetPstnCallsWithFromDateTimeWithToDateTimeResponse.cs index 040a250a931..deff85985b2 100644 --- a/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/GetPstnCallsWithFromDateTimeWithToDateTimeResponse.cs +++ b/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/GetPstnCallsWithFromDateTimeWithToDateTimeResponse.cs @@ -1,27 +1,12 @@ // -using Microsoft.Graph.Models.CallRecords; -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Communications.CallRecords.MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime { - public class GetPstnCallsWithFromDateTimeWithToDateTimeResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getPstnCallsWithFromDateTimeWithToDateTimeGetResponse instead.")] + public class GetPstnCallsWithFromDateTimeWithToDateTimeResponse : GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -30,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetPstnCallsWithFromDateTimeWithToDateTimeResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(PstnCallLogRow.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder.cs index 4133d5a2f39..ce9c05484d3 100644 --- a/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder.cs @@ -37,6 +37,26 @@ public MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeReques /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetPstnCallsWithFromDateTimeWithToDateTimeGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetPstnCallsWithFromDateTimeWithToDateTimeGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getPstnCalls + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetPstnCallsWithFromDateTimeWithToDateTimeGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/CallsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/CallsRequestBuilder.cs index cc3efdd1633..59bb9f1c147 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/CallsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/CallsRequestBuilder.cs @@ -47,7 +47,7 @@ public CallsRequestBuilder(Dictionary pathParameters, IRequestAd public CallsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the properties and relationships of a call object. + /// Retrieve the properties and relationships of a call object. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -66,7 +66,7 @@ public async Task GetAsync(Action(requestInfo, CallCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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. + /// 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 is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -88,7 +88,7 @@ public async Task PostAsync(Call body, Action(requestInfo, Call.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the properties and relationships of a call object. + /// Retrieve the properties and relationships of a call object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,7 +114,7 @@ public RequestInformation ToGetRequestInformation(Action - /// 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. + /// 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 is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -149,7 +149,7 @@ public CallsRequestBuilder WithUrl(string rawUrl) { return new CallsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the properties and relationships of a call object. + /// Retrieve the properties and relationships of a call object. This API is supported in the following national cloud deployments. /// public class CallsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/AddLargeGalleryView/AddLargeGalleryViewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/AddLargeGalleryView/AddLargeGalleryViewRequestBuilder.cs index 546266a4970..53df85338a1 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/AddLargeGalleryView/AddLargeGalleryViewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/AddLargeGalleryView/AddLargeGalleryViewRequestBuilder.cs @@ -29,7 +29,7 @@ public AddLargeGalleryViewRequestBuilder(Dictionary pathParamete public AddLargeGalleryViewRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/addLargeGalleryView", rawUrl) { } /// - /// Add the large gallery view to a call. For details about how to identify a large gallery view participant in a roster so that you can retrieve the relevant data to subscribe to the video feed, see Identify large gallery view participants in a roster. + /// Add the large gallery view to a call. For details about how to identify a large gallery view participant in a roster so that you can retrieve the relevant data to subscribe to the video feed, see Identify large gallery view participants in a roster. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(AddLargeGalleryViewPos return await RequestAdapter.SendAsync(requestInfo, AddLargeGalleryViewOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add the large gallery view to a call. For details about how to identify a large gallery view participant in a roster so that you can retrieve the relevant data to subscribe to the video feed, see Identify large gallery view participants in a roster. + /// Add the large gallery view to a call. For details about how to identify a large gallery view participant in a roster so that you can retrieve the relevant data to subscribe to the video feed, see Identify large gallery view participants in a roster. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Answer/AnswerPostRequestBody.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Answer/AnswerPostRequestBody.cs index 5d6b7062c56..53c10183508 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Answer/AnswerPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Answer/AnswerPostRequestBody.cs @@ -97,8 +97,8 @@ public static AnswerPostRequestBody CreateFromDiscriminatorValue(IParseNode pars public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"acceptedModalities", n => { AcceptedModalities = n.GetCollectionOfEnumValues()?.ToList(); } }, - {"callbackUri", n => { CallbackUri = n.GetStringValue(); } }, {"callOptions", n => { CallOptions = n.GetObjectValue(IncomingCallOptions.CreateFromDiscriminatorValue); } }, + {"callbackUri", n => { CallbackUri = n.GetStringValue(); } }, {"mediaConfig", n => { MediaConfig = n.GetObjectValue(Microsoft.Graph.Models.MediaConfig.CreateFromDiscriminatorValue); } }, {"participantCapacity", n => { ParticipantCapacity = n.GetIntValue(); } }, }; diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Answer/AnswerRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Answer/AnswerRequestBuilder.cs index 6ab94055ea1..a4b867c72df 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Answer/AnswerRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Answer/AnswerRequestBuilder.cs @@ -28,7 +28,7 @@ public AnswerRequestBuilder(Dictionary pathParameters, IRequestA public AnswerRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/answer", rawUrl) { } /// - /// Enable a bot to answer an incoming call. The incoming call request can be an invite from a participant in a group call or a peer-to-peer call. If an invite 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. + /// Enable a bot to answer an incoming call. The incoming call request can be an invite from a participant in a group call or a peer-to-peer call. If an invite 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 is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AnswerPostRequestBody body, Action - /// Enable a bot to answer an incoming call. The incoming call request can be an invite from a participant in a group call or a peer-to-peer call. If an invite 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. + /// Enable a bot to answer an incoming call. The incoming call request can be an invite from a participant in a group call or a peer-to-peer call. If an invite 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 is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/AudioRoutingGroups/AudioRoutingGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/AudioRoutingGroups/AudioRoutingGroupsRequestBuilder.cs index efd75acd46b..9f4a00acf2f 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/AudioRoutingGroups/AudioRoutingGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/AudioRoutingGroups/AudioRoutingGroupsRequestBuilder.cs @@ -42,7 +42,7 @@ public AudioRoutingGroupsRequestBuilder(Dictionary pathParameter public AudioRoutingGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/audioRoutingGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of audioRoutingGroup objects. + /// Retrieve a list of audioRoutingGroup objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, AudioRoutingGroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new audioRoutingGroup. + /// Create a new audioRoutingGroup. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(AudioRoutingGroup body, Action(requestInfo, AudioRoutingGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of audioRoutingGroup objects. + /// Retrieve a list of audioRoutingGroup objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new audioRoutingGroup. + /// Create a new audioRoutingGroup. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public AudioRoutingGroupsRequestBuilder WithUrl(string rawUrl) { return new AudioRoutingGroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of audioRoutingGroup objects. + /// Retrieve a list of audioRoutingGroup objects. This API is supported in the following national cloud deployments. /// public class AudioRoutingGroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/AudioRoutingGroups/Item/AudioRoutingGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/AudioRoutingGroups/Item/AudioRoutingGroupItemRequestBuilder.cs index 9ab3a013130..935896a5999 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/AudioRoutingGroups/Item/AudioRoutingGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/AudioRoutingGroups/Item/AudioRoutingGroupItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AudioRoutingGroupItemRequestBuilder(Dictionary pathParame public AudioRoutingGroupItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/audioRoutingGroups/{audioRoutingGroup%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete the specified audioRoutingGroup. + /// Delete the specified audioRoutingGroup. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of an audioRoutingGroup object. + /// Retrieve the properties and relationships of an audioRoutingGroup object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, AudioRoutingGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Modify sources and receivers of an audioRoutingGroup. + /// Modify sources and receivers of an audioRoutingGroup. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(AudioRoutingGroup body, Action(requestInfo, AudioRoutingGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete the specified audioRoutingGroup. + /// Delete the specified audioRoutingGroup. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of an audioRoutingGroup object. + /// Retrieve the properties and relationships of an audioRoutingGroup object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Modify sources and receivers of an audioRoutingGroup. + /// Modify sources and receivers of an audioRoutingGroup. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public AudioRoutingGroupItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of an audioRoutingGroup object. + /// Retrieve the properties and relationships of an audioRoutingGroup object. This API is supported in the following national cloud deployments. /// public class AudioRoutingGroupItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/CallItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/CallItemRequestBuilder.cs index 912ed409788..286623b6778 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/CallItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/CallItemRequestBuilder.cs @@ -119,7 +119,7 @@ public CallItemRequestBuilder(Dictionary pathParameters, IReques public CallItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete or hang up an active call. For group calls, this will only delete your call leg and the underlying group call will still continue. + /// Delete or hang up an active call. For group calls, this will only delete your call leg and the underlying group call will still continue. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -139,7 +139,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a call object. + /// Retrieve the properties and relationships of a call object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -180,7 +180,7 @@ public async Task PatchAsync(Call body, Action(requestInfo, Call.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete or hang up an active call. For group calls, this will only delete your call leg and the underlying group call will still continue. + /// Delete or hang up an active call. For group calls, this will only delete your call leg and the underlying group call will still continue. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -204,7 +204,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a call object. + /// Retrieve the properties and relationships of a call object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -281,7 +281,7 @@ public CallItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a call object. + /// Retrieve the properties and relationships of a call object. This API is supported in the following national cloud deployments. /// public class CallItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/CancelMediaProcessing/CancelMediaProcessingRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/CancelMediaProcessing/CancelMediaProcessingRequestBuilder.cs index 68d3946d7a1..1ba13986e1a 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/CancelMediaProcessing/CancelMediaProcessingRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/CancelMediaProcessing/CancelMediaProcessingRequestBuilder.cs @@ -29,7 +29,7 @@ public CancelMediaProcessingRequestBuilder(Dictionary pathParame public CancelMediaProcessingRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/cancelMediaProcessing", rawUrl) { } /// - /// Cancels processing for any in-progress media operations. Media operations refer to the IVR operations playPrompt and recordResponse, which are by default queued to process in order. The cancelMediaProcessing method cancels any operation that is in-process as well as operations that are queued. For example, this method can be used to clean up the IVR operation queue for a new media operation. However, it will not cancel a subscribeToTone operation because it operates independent of any operation queue. + /// Cancels processing for any in-progress media operations. Media operations refer to the IVR operations playPrompt and recordResponse, which are by default queued to process in order. The cancelMediaProcessing method cancels any operation that is in-process as well as operations that are queued. For example, this method can be used to clean up the IVR operation queue for a new media operation. However, it will not cancel a subscribeToTone operation because it operates independent of any operation queue. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CancelMediaProcessin return await RequestAdapter.SendAsync(requestInfo, CancelMediaProcessingOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Cancels processing for any in-progress media operations. Media operations refer to the IVR operations playPrompt and recordResponse, which are by default queued to process in order. The cancelMediaProcessing method cancels any operation that is in-process as well as operations that are queued. For example, this method can be used to clean up the IVR operation queue for a new media operation. However, it will not cancel a subscribeToTone operation because it operates independent of any operation queue. + /// Cancels processing for any in-progress media operations. Media operations refer to the IVR operations playPrompt and recordResponse, which are by default queued to process in order. The cancelMediaProcessing method cancels any operation that is in-process as well as operations that are queued. For example, this method can be used to clean up the IVR operation queue for a new media operation. However, it will not cancel a subscribeToTone operation because it operates independent of any operation queue. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/ChangeScreenSharingRole/ChangeScreenSharingRoleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/ChangeScreenSharingRole/ChangeScreenSharingRoleRequestBuilder.cs index f70052908e8..b62d956b789 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/ChangeScreenSharingRole/ChangeScreenSharingRoleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/ChangeScreenSharingRole/ChangeScreenSharingRoleRequestBuilder.cs @@ -28,7 +28,7 @@ public ChangeScreenSharingRoleRequestBuilder(Dictionary pathPara public ChangeScreenSharingRoleRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/changeScreenSharingRole", rawUrl) { } /// - /// Allow applications to share screen content with the participants of a group call. + /// Allow applications to share screen content with the participants of a group call. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ChangeScreenSharingRolePostRequestBody body, Action< await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Allow applications to share screen content with the participants of a group call. + /// Allow applications to share screen content with the participants of a group call. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/ContentSharingSessions/ContentSharingSessionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/ContentSharingSessions/ContentSharingSessionsRequestBuilder.cs index 4d20ca263e3..142b1d65360 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/ContentSharingSessions/ContentSharingSessionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/ContentSharingSessions/ContentSharingSessionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ContentSharingSessionsRequestBuilder(Dictionary pathParam public ContentSharingSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/contentSharingSessions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of contentSharingSession objects in a call. + /// Retrieve a list of contentSharingSession objects in a call. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ContentSharingSession body, A return await RequestAdapter.SendAsync(requestInfo, ContentSharingSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of contentSharingSession objects in a call. + /// Retrieve a list of contentSharingSession objects in a call. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public ContentSharingSessionsRequestBuilder WithUrl(string rawUrl) { return new ContentSharingSessionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of contentSharingSession objects in a call. + /// Retrieve a list of contentSharingSession objects in a call. This API is supported in the following national cloud deployments. /// public class ContentSharingSessionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/ContentSharingSessions/Item/ContentSharingSessionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/ContentSharingSessions/Item/ContentSharingSessionItemRequestBuilder.cs index 39c19692d47..4a28ee4d37f 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/ContentSharingSessions/Item/ContentSharingSessionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/ContentSharingSessions/Item/ContentSharingSessionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties of a contentSharingSession object in a call. + /// Retrieve the properties of a contentSharingSession object in a call. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties of a contentSharingSession object in a call. + /// Retrieve the properties of a contentSharingSession object in a call. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ContentSharingSessionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties of a contentSharingSession object in a call. + /// Retrieve the properties of a contentSharingSession object in a call. This API is supported in the following national cloud deployments. /// public class ContentSharingSessionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/KeepAlive/KeepAliveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/KeepAlive/KeepAliveRequestBuilder.cs index 941015669ec..b1cdde276a3 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/KeepAlive/KeepAliveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/KeepAlive/KeepAliveRequestBuilder.cs @@ -28,7 +28,7 @@ public KeepAliveRequestBuilder(Dictionary pathParameters, IReque public KeepAliveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/keepAlive", rawUrl) { } /// - /// Make a request to this API every 15 to 45 minutes to ensure that an ongoing call remains active. A call that does not receive this request within 45 minutes is considered inactive and will subsequently end. At least one successful request must be made within 45 minutes of the previous request, or the start of the call. We recommend that you send a request in shorter time intervals (every 15 minutes). Make sure that these requests are successful to prevent the call from timing out and ending. Attempting to send a request to a call that has already ended will result in a 404 Not-Found error. The resources related to the call should be cleaned up on the application side. + /// Make a request to this API every 15 to 45 minutes to ensure that an ongoing call remains active. A call that does not receive this request within 45 minutes is considered inactive and will subsequently end. At least one successful request must be made within 45 minutes of the previous request, or the start of the call. We recommend that you send a request in shorter time intervals (every 15 minutes). Make sure that these requests are successful to prevent the call from timing out and ending. Attempting to send a request to a call that has already ended will result in a 404 Not-Found error. The resources related to the call should be cleaned up on the application side. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Make a request to this API every 15 to 45 minutes to ensure that an ongoing call remains active. A call that does not receive this request within 45 minutes is considered inactive and will subsequently end. At least one successful request must be made within 45 minutes of the previous request, or the start of the call. We recommend that you send a request in shorter time intervals (every 15 minutes). Make sure that these requests are successful to prevent the call from timing out and ending. Attempting to send a request to a call that has already ended will result in a 404 Not-Found error. The resources related to the call should be cleaned up on the application side. + /// Make a request to this API every 15 to 45 minutes to ensure that an ongoing call remains active. A call that does not receive this request within 45 minutes is considered inactive and will subsequently end. At least one successful request must be made within 45 minutes of the previous request, or the start of the call. We recommend that you send a request in shorter time intervals (every 15 minutes). Make sure that these requests are successful to prevent the call from timing out and ending. Attempting to send a request to a call that has already ended will result in a 404 Not-Found error. The resources related to the call should be cleaned up on the application side. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Mute/MuteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Mute/MuteRequestBuilder.cs index 2a61e26b0e9..1caf6214ea1 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Mute/MuteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Mute/MuteRequestBuilder.cs @@ -29,7 +29,7 @@ public MuteRequestBuilder(Dictionary pathParameters, IRequestAda public MuteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/mute", rawUrl) { } /// - /// Allows the application to mute itself. This is a server mute, meaning that the server will drop all audio packets for this participant, even if the participant continues to stream audio. For more details about how to handle mute operations, see muteParticipantOperation + /// Allows the application to mute itself. This is a server mute, meaning that the server will drop all audio packets for this participant, even if the participant continues to stream audio. For more details about how to handle mute operations, see muteParticipantOperation This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(MutePostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, MuteParticipantOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Allows the application to mute itself. This is a server mute, meaning that the server will drop all audio packets for this participant, even if the participant continues to stream audio. For more details about how to handle mute operations, see muteParticipantOperation + /// Allows the application to mute itself. This is a server mute, meaning that the server will drop all audio packets for this participant, even if the participant continues to stream audio. For more details about how to handle mute operations, see muteParticipantOperation This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Operations/Item/CommsOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Operations/Item/CommsOperationItemRequestBuilder.cs index 74379cd75bc..0ffd02064a7 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Operations/Item/CommsOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Operations/Item/CommsOperationItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get the status of an operation that adds the large gallery view to a call. + /// Get the status of an operation that adds the large gallery view to a call. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the status of an operation that adds the large gallery view to a call. + /// Get the status of an operation that adds the large gallery view to a call. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public CommsOperationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the status of an operation that adds the large gallery view to a call. + /// Get the status of an operation that adds the large gallery view to a call. This API is supported in the following national cloud deployments. /// public class CommsOperationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Operations/OperationsRequestBuilder.cs index 2aacbd83f38..3a3097d9723 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Operations/OperationsRequestBuilder.cs @@ -42,7 +42,7 @@ public OperationsRequestBuilder(Dictionary pathParameters, IRequ public OperationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/operations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the status of an operation that adds the large gallery view to a call. + /// Get the status of an operation that adds the large gallery view to a call. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(CommsOperation body, Action(requestInfo, CommsOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the status of an operation that adds the large gallery view to a call. + /// Get the status of an operation that adds the large gallery view to a call. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public OperationsRequestBuilder WithUrl(string rawUrl) { return new OperationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the status of an operation that adds the large gallery view to a call. + /// Get the status of an operation that adds the large gallery view to a call. This API is supported in the following national cloud deployments. /// public class OperationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs index fedbf5ea909..b33b637b5a0 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs @@ -29,7 +29,7 @@ public InviteRequestBuilder(Dictionary pathParameters, IRequestA public InviteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/participants/invite", rawUrl) { } /// - /// Invite participants to the active call. For more information about how to handle operations, see commsOperation. + /// Invite participants to the active call. For more information about how to handle operations, see commsOperation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(InvitePostRequestBody b return await RequestAdapter.SendAsync(requestInfo, InviteParticipantsOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Invite participants to the active call. For more information about how to handle operations, see commsOperation. + /// Invite participants to the active call. For more information about how to handle operations, see commsOperation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/Mute/MuteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/Mute/MuteRequestBuilder.cs index 27918885de2..be1a94dd9df 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/Mute/MuteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/Mute/MuteRequestBuilder.cs @@ -29,7 +29,7 @@ public MuteRequestBuilder(Dictionary pathParameters, IRequestAda public MuteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/participants/{participant%2Did}/mute", rawUrl) { } /// - /// Mute a specific participant in the call. This is a server mute, meaning that the server will drop all audio packets for this participant, even if the participant continues to stream audio. For more information about how to handle mute operations, see muteParticipantOperation. + /// Mute a specific participant in the call. This is a server mute, meaning that the server will drop all audio packets for this participant, even if the participant continues to stream audio. For more information about how to handle mute operations, see muteParticipantOperation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(MutePostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, MuteParticipantOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Mute a specific participant in the call. This is a server mute, meaning that the server will drop all audio packets for this participant, even if the participant continues to stream audio. For more information about how to handle mute operations, see muteParticipantOperation. + /// Mute a specific participant in the call. This is a server mute, meaning that the server will drop all audio packets for this participant, even if the participant continues to stream audio. For more information about how to handle mute operations, see muteParticipantOperation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/ParticipantItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/ParticipantItemRequestBuilder.cs index 20439816001..acb9be05219 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/ParticipantItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/ParticipantItemRequestBuilder.cs @@ -44,7 +44,7 @@ public ParticipantItemRequestBuilder(Dictionary pathParameters, public ParticipantItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/participants/{participant%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// 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. + /// 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. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -64,7 +64,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a participant object. + /// Retrieve the properties and relationships of a participant object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -105,7 +105,7 @@ public async Task PatchAsync(Participant body, Action(requestInfo, Participant.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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. + /// 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. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,7 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a participant object. + /// Retrieve the properties and relationships of a participant object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -206,7 +206,7 @@ public ParticipantItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a participant object. + /// Retrieve the properties and relationships of a participant object. This API is supported in the following national cloud deployments. /// public class ParticipantItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/StartHoldMusic/StartHoldMusicRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/StartHoldMusic/StartHoldMusicRequestBuilder.cs index cd9f22de4a8..4f35f59e43c 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/StartHoldMusic/StartHoldMusicRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/StartHoldMusic/StartHoldMusicRequestBuilder.cs @@ -29,7 +29,7 @@ public StartHoldMusicRequestBuilder(Dictionary pathParameters, I public StartHoldMusicRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/participants/{participant%2Did}/startHoldMusic", rawUrl) { } /// - /// Put a participant on hold and play music in the background. + /// Put a participant on hold and play music in the background. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(StartHoldMusicPostRequestBo return await RequestAdapter.SendAsync(requestInfo, StartHoldMusicOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Put a participant on hold and play music in the background. + /// Put a participant on hold and play music in the background. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/StopHoldMusic/StopHoldMusicRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/StopHoldMusic/StopHoldMusicRequestBuilder.cs index 578113a7217..62ea67e2aa1 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/StopHoldMusic/StopHoldMusicRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/StopHoldMusic/StopHoldMusicRequestBuilder.cs @@ -29,7 +29,7 @@ public StopHoldMusicRequestBuilder(Dictionary pathParameters, IR public StopHoldMusicRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/participants/{participant%2Did}/stopHoldMusic", rawUrl) { } /// - /// Reincorporate a participant previously put on hold to the call. + /// Reincorporate a participant previously put on hold to the call. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(StopHoldMusicPostRequestBody return await RequestAdapter.SendAsync(requestInfo, StopHoldMusicOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Reincorporate a participant previously put on hold to the call. + /// Reincorporate a participant previously put on hold to the call. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/ParticipantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/ParticipantsRequestBuilder.cs index a7c86ea4773..4dca954fe6a 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/ParticipantsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/ParticipantsRequestBuilder.cs @@ -47,7 +47,7 @@ public ParticipantsRequestBuilder(Dictionary pathParameters, IRe public ParticipantsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/participants{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of participant objects in the call. + /// Retrieve a list of participant objects in the call. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -88,7 +88,7 @@ public async Task PostAsync(Participant body, Action(requestInfo, Participant.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of participant objects in the call. + /// Retrieve a list of participant objects in the call. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -149,7 +149,7 @@ public ParticipantsRequestBuilder WithUrl(string rawUrl) { return new ParticipantsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of participant objects in the call. + /// Retrieve a list of participant objects in the call. This API is supported in the following national cloud deployments. /// public class ParticipantsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/PlayPrompt/PlayPromptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/PlayPrompt/PlayPromptRequestBuilder.cs index 7f8f3945e25..4edba1e9d15 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/PlayPrompt/PlayPromptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/PlayPrompt/PlayPromptRequestBuilder.cs @@ -29,7 +29,7 @@ public PlayPromptRequestBuilder(Dictionary pathParameters, IRequ public PlayPromptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/playPrompt", rawUrl) { } /// - /// Play a prompt in the call. For more information about how to handle operations, see commsOperation + /// Play a prompt in the call. For more information about how to handle operations, see commsOperation This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(PlayPromptPostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, PlayPromptOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Play a prompt in the call. For more information about how to handle operations, see commsOperation + /// Play a prompt in the call. For more information about how to handle operations, see commsOperation This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/RecordResponse/RecordResponseRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/RecordResponse/RecordResponseRequestBuilder.cs index 9ebae9c0457..b521d86aa75 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/RecordResponse/RecordResponseRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/RecordResponse/RecordResponseRequestBuilder.cs @@ -29,7 +29,7 @@ public RecordResponseRequestBuilder(Dictionary pathParameters, I public RecordResponseRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/recordResponse", rawUrl) { } /// - /// Records a short audio response from the caller.A bot can utilize this to capture a voice response from a caller after they are prompted for a response. For further information on how to handle operations, please review commsOperation This action is not intended to record the entire call. The maximum length of recording is 2 minutes. The recording is not saved permanently by the Cloud Communications Platform and is discarded shortly after the call ends. The bot must download the recording promptly after the recording operation finishes by using the recordingLocation value that's given in the completed notification. + /// Records a short audio response from the caller.A bot can utilize this to capture a voice response from a caller after they are prompted for a response. For further information on how to handle operations, please review commsOperation This action is not intended to record the entire call. The maximum length of recording is 2 minutes. The recording is not saved permanently by the Cloud Communications Platform and is discarded shortly after the call ends. The bot must download the recording promptly after the recording operation finishes by using the recordingLocation value that's given in the completed notification. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(RecordResponsePostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, RecordOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Records a short audio response from the caller.A bot can utilize this to capture a voice response from a caller after they are prompted for a response. For further information on how to handle operations, please review commsOperation This action is not intended to record the entire call. The maximum length of recording is 2 minutes. The recording is not saved permanently by the Cloud Communications Platform and is discarded shortly after the call ends. The bot must download the recording promptly after the recording operation finishes by using the recordingLocation value that's given in the completed notification. + /// Records a short audio response from the caller.A bot can utilize this to capture a voice response from a caller after they are prompted for a response. For further information on how to handle operations, please review commsOperation This action is not intended to record the entire call. The maximum length of recording is 2 minutes. The recording is not saved permanently by the Cloud Communications Platform and is discarded shortly after the call ends. The bot must download the recording promptly after the recording operation finishes by using the recordingLocation value that's given in the completed notification. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Redirect/RedirectRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Redirect/RedirectRequestBuilder.cs index d0ee7b19066..3c4b844a056 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Redirect/RedirectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Redirect/RedirectRequestBuilder.cs @@ -28,7 +28,7 @@ public RedirectRequestBuilder(Dictionary pathParameters, IReques public RedirectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/redirect", rawUrl) { } /// - /// Redirect an incoming call that hasn't been answered or rejected yet. The terms 'redirecting' and 'forwarding' a call are used interchangeably. The bot is expected to redirect the call before the call times out. The current timeout value is 15 seconds. + /// Redirect an incoming call that hasn't been answered or rejected yet. The terms 'redirecting' and 'forwarding' a call are used interchangeably. The bot is expected to redirect the call before the call times out. The current timeout value is 15 seconds. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(RedirectPostRequestBody body, Action - /// Redirect an incoming call that hasn't been answered or rejected yet. The terms 'redirecting' and 'forwarding' a call are used interchangeably. The bot is expected to redirect the call before the call times out. The current timeout value is 15 seconds. + /// Redirect an incoming call that hasn't been answered or rejected yet. The terms 'redirecting' and 'forwarding' a call are used interchangeably. The bot is expected to redirect the call before the call times out. The current timeout value is 15 seconds. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Reject/RejectRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Reject/RejectRequestBuilder.cs index 85ab526e7d0..2d6c9533b43 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Reject/RejectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Reject/RejectRequestBuilder.cs @@ -28,7 +28,7 @@ public RejectRequestBuilder(Dictionary pathParameters, IRequestA public RejectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/reject", rawUrl) { } /// - /// Enable a bot to reject an incoming call. The incoming call request can be an invite from a participant in a group call or a peer-to-peer call. If an invite to a group call is received, the notification will contain the chatInfo and meetingInfo parameters. The bot is expected to answer or reject the call before the call times out. The current timeout value is 15 seconds. This API does not end existing calls that have already been answered. Use delete call to end a call. + /// Enable a bot to reject an incoming call. The incoming call request can be an invite from a participant in a group call or a peer-to-peer call. If an invite to a group call is received, the notification will contain the chatInfo and meetingInfo parameters. The bot is expected to answer or reject the call before the call times out. The current timeout value is 15 seconds. This API does not end existing calls that have already been answered. Use delete call to end a call. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(RejectPostRequestBody body, Action - /// Enable a bot to reject an incoming call. The incoming call request can be an invite from a participant in a group call or a peer-to-peer call. If an invite to a group call is received, the notification will contain the chatInfo and meetingInfo parameters. The bot is expected to answer or reject the call before the call times out. The current timeout value is 15 seconds. This API does not end existing calls that have already been answered. Use delete call to end a call. + /// Enable a bot to reject an incoming call. The incoming call request can be an invite from a participant in a group call or a peer-to-peer call. If an invite to a group call is received, the notification will contain the chatInfo and meetingInfo parameters. The bot is expected to answer or reject the call before the call times out. The current timeout value is 15 seconds. This API does not end existing calls that have already been answered. Use delete call to end a call. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/SubscribeToTone/SubscribeToToneRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/SubscribeToTone/SubscribeToToneRequestBuilder.cs index b6c7158ff9c..7323a637cea 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/SubscribeToTone/SubscribeToToneRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/SubscribeToTone/SubscribeToToneRequestBuilder.cs @@ -29,7 +29,7 @@ public SubscribeToToneRequestBuilder(Dictionary pathParameters, public SubscribeToToneRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/subscribeToTone", rawUrl) { } /// - /// Subscribe to DTMF (dual-tone multi-frequency signaling). This allows you to be notified when the user presses keys on a 'dialpad'. + /// Subscribe to DTMF (dual-tone multi-frequency signaling). This allows you to be notified when the user presses keys on a 'dialpad'. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(SubscribeToTonePostRequest return await RequestAdapter.SendAsync(requestInfo, SubscribeToToneOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Subscribe to DTMF (dual-tone multi-frequency signaling). This allows you to be notified when the user presses keys on a 'dialpad'. + /// Subscribe to DTMF (dual-tone multi-frequency signaling). This allows you to be notified when the user presses keys on a 'dialpad'. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Transfer/TransferPostRequestBody.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Transfer/TransferPostRequestBody.cs index c853210da7e..645b45fd24b 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Transfer/TransferPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Transfer/TransferPostRequestBody.cs @@ -63,8 +63,8 @@ public static TransferPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"transferee", n => { Transferee = n.GetObjectValue(ParticipantInfo.CreateFromDiscriminatorValue); } }, {"transferTarget", n => { TransferTarget = n.GetObjectValue(InvitationParticipantInfo.CreateFromDiscriminatorValue); } }, + {"transferee", n => { Transferee = n.GetObjectValue(ParticipantInfo.CreateFromDiscriminatorValue); } }, }; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Transfer/TransferRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Transfer/TransferRequestBuilder.cs index 54c92ba487e..5bf03f3b03d 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Transfer/TransferRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Transfer/TransferRequestBuilder.cs @@ -28,7 +28,7 @@ public TransferRequestBuilder(Dictionary pathParameters, IReques public TransferRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/transfer", rawUrl) { } /// - /// Transfer an active peer-to-peer call or group call. A consultative transfer means that the transferor can inform the person they want to transfer the call to (the transferee), before the transfer is made. This is opposed to transfering the call directly. + /// Transfer an active peer-to-peer call or group call. A consultative transfer means that the transferor can inform the person they want to transfer the call to (the transferee), before the transfer is made. This is opposed to transfering the call directly. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TransferPostRequestBody body, Action - /// Transfer an active peer-to-peer call or group call. A consultative transfer means that the transferor can inform the person they want to transfer the call to (the transferee), before the transfer is made. This is opposed to transfering the call directly. + /// Transfer an active peer-to-peer call or group call. A consultative transfer means that the transferor can inform the person they want to transfer the call to (the transferee), before the transfer is made. This is opposed to transfering the call directly. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Unmute/UnmuteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Unmute/UnmuteRequestBuilder.cs index 9a5d086888d..98bdd6d1f80 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Unmute/UnmuteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Unmute/UnmuteRequestBuilder.cs @@ -29,7 +29,7 @@ public UnmuteRequestBuilder(Dictionary pathParameters, IRequestA public UnmuteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/unmute", rawUrl) { } /// - /// Allow the application to unmute itself. This is a server unmute, meaning that the server will start sending audio packets for this participant to other participants again. For more information about how to handle unmute operations, see unmuteParticipantOperation. + /// Allow the application to unmute itself. This is a server unmute, meaning that the server will start sending audio packets for this participant to other participants again. For more information about how to handle unmute operations, see unmuteParticipantOperation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(UnmutePostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UnmuteParticipantOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Allow the application to unmute itself. This is a server unmute, meaning that the server will start sending audio packets for this participant to other participants again. For more information about how to handle unmute operations, see unmuteParticipantOperation. + /// Allow the application to unmute itself. This is a server unmute, meaning that the server will start sending audio packets for this participant to other participants again. For more information about how to handle unmute operations, see unmuteParticipantOperation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/UpdateRecordingStatus/UpdateRecordingStatusRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/UpdateRecordingStatus/UpdateRecordingStatusRequestBuilder.cs index 9de4d23bda8..5be3cf78b35 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/UpdateRecordingStatus/UpdateRecordingStatusRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/UpdateRecordingStatus/UpdateRecordingStatusRequestBuilder.cs @@ -29,7 +29,7 @@ public UpdateRecordingStatusRequestBuilder(Dictionary pathParame public UpdateRecordingStatusRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/updateRecordingStatus", rawUrl) { } /// - /// Update the application's recording status associated with a call. This requires the use of the Teams policy-based recording solution. + /// Update the application's recording status associated with a call. This requires the use of the Teams policy-based recording solution. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(UpdateRecordingStatu return await RequestAdapter.SendAsync(requestInfo, UpdateRecordingStatusOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the application's recording status associated with a call. This requires the use of the Teams policy-based recording solution. + /// Update the application's recording status associated with a call. This requires the use of the Teams policy-based recording solution. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/LogTeleconferenceDeviceQuality/LogTeleconferenceDeviceQualityRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/LogTeleconferenceDeviceQuality/LogTeleconferenceDeviceQualityRequestBuilder.cs index 9d1894cb7ef..5acb8e0ba62 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/LogTeleconferenceDeviceQuality/LogTeleconferenceDeviceQualityRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/LogTeleconferenceDeviceQuality/LogTeleconferenceDeviceQualityRequestBuilder.cs @@ -28,7 +28,7 @@ public LogTeleconferenceDeviceQualityRequestBuilder(Dictionary p public LogTeleconferenceDeviceQualityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/logTeleconferenceDeviceQuality", rawUrl) { } /// - /// Log video teleconferencing device quality data. The Cloud Video Interop (CVI) bot represents video teleconferencing (VTC) devices and acts as a back-to-back agent for a VTC device in a conference call. Because a CVI bot is in the middle of the VTC and Microsoft Teams infrastructure as a VTC proxy, it has two media legs. One media leg is between the CVI bot and Teams infrastructure, such as Teams conference server or a Teams client. The other media leg is between the CVI bot and the VTC device. The third-party partners own the VTC media leg and the Teams infrastructure cannot access the quality data of the third-party call leg. This method is only for the CVI partners to provide their media quality data. + /// Log video teleconferencing device quality data. The Cloud Video Interop (CVI) bot represents video teleconferencing (VTC) devices and acts as a back-to-back agent for a VTC device in a conference call. Because a CVI bot is in the middle of the VTC and Microsoft Teams infrastructure as a VTC proxy, it has two media legs. One media leg is between the CVI bot and Teams infrastructure, such as Teams conference server or a Teams client. The other media leg is between the CVI bot and the VTC device. The third-party partners own the VTC media leg and the Teams infrastructure cannot access the quality data of the third-party call leg. This method is only for the CVI partners to provide their media quality data. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(LogTeleconferenceDeviceQualityPostRequestBody body, await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Log video teleconferencing device quality data. The Cloud Video Interop (CVI) bot represents video teleconferencing (VTC) devices and acts as a back-to-back agent for a VTC device in a conference call. Because a CVI bot is in the middle of the VTC and Microsoft Teams infrastructure as a VTC proxy, it has two media legs. One media leg is between the CVI bot and Teams infrastructure, such as Teams conference server or a Teams client. The other media leg is between the CVI bot and the VTC device. The third-party partners own the VTC media leg and the Teams infrastructure cannot access the quality data of the third-party call leg. This method is only for the CVI partners to provide their media quality data. + /// Log video teleconferencing device quality data. The Cloud Video Interop (CVI) bot represents video teleconferencing (VTC) devices and acts as a back-to-back agent for a VTC device in a conference call. Because a CVI bot is in the middle of the VTC and Microsoft Teams infrastructure as a VTC proxy, it has two media legs. One media leg is between the CVI bot and Teams infrastructure, such as Teams conference server or a Teams client. The other media leg is between the CVI bot and the VTC device. The third-party partners own the VTC media leg and the Teams infrastructure cannot access the quality data of the third-party call leg. This method is only for the CVI partners to provide their media quality data. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdPostResponse.cs b/src/Microsoft.Graph/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdPostResponse.cs new file mode 100644 index 00000000000..d76981e8716 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Communications.GetPresencesByUserId { + public class GetPresencesByUserIdPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetPresencesByUserIdPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetPresencesByUserIdPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Presence.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdRequestBuilder.cs index 05cfc29febd..f51dcb87362 100644 --- a/src/Microsoft.Graph/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdRequestBuilder.cs @@ -28,13 +28,36 @@ public GetPresencesByUserIdRequestBuilder(Dictionary pathParamet public GetPresencesByUserIdRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/getPresencesByUserId", rawUrl) { } /// - /// Get the presence information for multiple users. + /// Get the presence information for multiple users. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetPresencesByUserIdPostResponseAsync(GetPresencesByUserIdPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetPresencesByUserIdPostResponseAsync(GetPresencesByUserIdPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetPresencesByUserIdPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the presence information for multiple users. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetPresencesByUserIdPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetPresencesByUserIdPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetPresencesByUserIdPo return await RequestAdapter.SendAsync(requestInfo, GetPresencesByUserIdResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the presence information for multiple users. + /// Get the presence information for multiple users. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdResponse.cs b/src/Microsoft.Graph/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdResponse.cs index 1721307f117..0d5c984da61 100644 --- a/src/Microsoft.Graph/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdResponse.cs +++ b/src/Microsoft.Graph/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Communications.GetPresencesByUserId { - public class GetPresencesByUserIdResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getPresencesByUserIdPostResponse instead.")] + public class GetPresencesByUserIdResponse : GetPresencesByUserIdPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetPresencesByUserIdResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Presence.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.cs index b005625815b..0a6223d4270 100644 --- a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateOrGetRequestBuilder(Dictionary pathParameters, IReq public CreateOrGetRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/onlineMeetings/createOrGet", rawUrl) { } /// - /// Create an onlineMeeting object with a custom specified external ID. If the external ID already exists, this API will return the onlineMeeting object with that external ID. + /// Create an onlineMeeting object with a custom specified external ID. If the external ID already exists, this API will return the onlineMeeting object with that external ID. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateOrGetPostRequestBody body, Acti return await RequestAdapter.SendAsync(requestInfo, OnlineMeeting.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an onlineMeeting object with a custom specified external ID. If the external ID already exists, this API will return the onlineMeeting object with that external ID. + /// Create an onlineMeeting object with a custom specified external ID. If the external ID already exists, this API will return the onlineMeeting object with that external ID. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.cs index d8c047eaba9..90fcb81dcd8 100644 --- a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.cs @@ -42,7 +42,7 @@ public AttendanceReportsRequestBuilder(Dictionary pathParameters public AttendanceReportsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/attendanceReports{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of meetingAttendanceReport objects for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. + /// Get a list of meetingAttendanceReport objects for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(MeetingAttendanceReport bod return await RequestAdapter.SendAsync(requestInfo, MeetingAttendanceReport.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of meetingAttendanceReport objects for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. + /// Get a list of meetingAttendanceReport objects for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public AttendanceReportsRequestBuilder WithUrl(string rawUrl) { return new AttendanceReportsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of meetingAttendanceReport objects for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. + /// Get a list of meetingAttendanceReport objects for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. This API is supported in the following national cloud deployments. /// public class AttendanceReportsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.cs index 1ebccd6a6f3..5e8bd18b5b2 100644 --- a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.cs @@ -42,7 +42,7 @@ public AttendanceRecordsRequestBuilder(Dictionary pathParameters public AttendanceRecordsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/attendanceReports/{meetingAttendanceReport%2Did}/attendanceRecords{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of attendanceRecord objects and their properties. + /// Get a list of attendanceRecord objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(AttendanceRecord body, Action(requestInfo, AttendanceRecord.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of attendanceRecord objects and their properties. + /// Get a list of attendanceRecord objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public AttendanceRecordsRequestBuilder WithUrl(string rawUrl) { return new AttendanceRecordsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of attendanceRecord objects and their properties. + /// Get a list of attendanceRecord objects and their properties. This API is supported in the following national cloud deployments. /// public class AttendanceRecordsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.cs index 63e1439e601..17fe8fc831c 100644 --- a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report will be generated for that session. + /// Get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report will be generated for that session. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report will be generated for that session. + /// Get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report will be generated for that session. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public MeetingAttendanceReportItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report will be generated for that session. + /// Get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report will be generated for that session. This API is supported in the following national cloud deployments. /// public class MeetingAttendanceReportItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlGetResponse.cs similarity index 66% rename from src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs rename to src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlGetResponse.cs index 1bc87f75b65..baaecd6fb57 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlGetResponse.cs @@ -5,8 +5,8 @@ using System.IO; using System.Linq; using System; -namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.CheckMemberObjects { - public class CheckMemberObjectsPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable { +namespace Microsoft.Graph.Communications.OnlineMeetings.Item.GetVirtualAppointmentJoinWebUrl { + public class GetVirtualAppointmentJoinWebUrlGetResponse : IAdditionalDataHolder, IBackedModel, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get { return BackingStore?.Get>("additionalData"); } @@ -14,24 +14,24 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The ids property + /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Ids { - get { return BackingStore?.Get?>("ids"); } - set { BackingStore?.Set("ids", value); } + public string? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } } #nullable restore #else - public List Ids { - get { return BackingStore?.Get>("ids"); } - set { BackingStore?.Set("ids", value); } + public string Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } } #endif /// - /// Instantiates a new checkMemberObjectsPostRequestBody and sets the default values. + /// Instantiates a new getVirtualAppointmentJoinWebUrlGetResponse and sets the default values. /// - public CheckMemberObjectsPostRequestBody() { + public GetVirtualAppointmentJoinWebUrlGetResponse() { BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); AdditionalData = new Dictionary(); } @@ -39,16 +39,16 @@ public CheckMemberObjectsPostRequestBody() { /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + public static GetVirtualAppointmentJoinWebUrlGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberObjectsPostRequestBody(); + return new GetVirtualAppointmentJoinWebUrlGetResponse(); } /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + {"value", n => { Value = n.GetStringValue(); } }, }; } /// @@ -57,7 +57,7 @@ public IDictionary> GetFieldDeserializers() { /// Serialization writer to use to serialize this model public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("ids", Ids); + writer.WriteStringValue("value", Value); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.cs index 045604fed9c..ac82508e2fc 100644 --- a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.cs @@ -33,6 +33,26 @@ public GetVirtualAppointmentJoinWebUrlRequestBuilder(string rawUrl, IRequestAdap /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetVirtualAppointmentJoinWebUrlGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetVirtualAppointmentJoinWebUrlGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetVirtualAppointmentJoinWebUrlGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getVirtualAppointmentJoinWebUrl + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetVirtualAppointmentJoinWebUrlGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlResponse.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlResponse.cs index cf2a73f846d..fc1a7390775 100644 --- a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlResponse.cs +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlResponse.cs @@ -1,64 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Communications.OnlineMeetings.Item.GetVirtualAppointmentJoinWebUrl { - public class GetVirtualAppointmentJoinWebUrlResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public string Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } -#endif - /// - /// Instantiates a new getVirtualAppointmentJoinWebUrlResponse and sets the default values. - /// - public GetVirtualAppointmentJoinWebUrlResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use getVirtualAppointmentJoinWebUrlGetResponse instead.")] + public class GetVirtualAppointmentJoinWebUrlResponse : GetVirtualAppointmentJoinWebUrlGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static GetVirtualAppointmentJoinWebUrlResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetVirtualAppointmentJoinWebUrlResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetVirtualAppointmentJoinWebUrlResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.cs index 4f56d172d23..b8ed3375d44 100644 --- a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.cs @@ -2,6 +2,7 @@ using Microsoft.Graph.Communications.OnlineMeetings.Item.AttendanceReports; using Microsoft.Graph.Communications.OnlineMeetings.Item.AttendeeReport; using Microsoft.Graph.Communications.OnlineMeetings.Item.GetVirtualAppointmentJoinWebUrl; +using Microsoft.Graph.Communications.OnlineMeetings.Item.Transcripts; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -29,6 +30,10 @@ public class OnlineMeetingItemRequestBuilder : BaseRequestBuilder { public GetVirtualAppointmentJoinWebUrlRequestBuilder GetVirtualAppointmentJoinWebUrl { get => new GetVirtualAppointmentJoinWebUrlRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the transcripts property of the microsoft.graph.onlineMeeting entity. + public TranscriptsRequestBuilder Transcripts { get => + new TranscriptsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new OnlineMeetingItemRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..0c4b9931c75 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Communications.OnlineMeetings.Item.Transcripts.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/transcripts/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/transcripts/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.cs new file mode 100644 index 00000000000..13b24994125 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.cs @@ -0,0 +1,261 @@ +// +using Microsoft.Graph.Communications.OnlineMeetings.Item.Transcripts.Item.Content; +using Microsoft.Graph.Communications.OnlineMeetings.Item.Transcripts.Item.MetadataContent; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Communications.OnlineMeetings.Item.Transcripts.Item { + /// + /// Provides operations to manage the transcripts property of the microsoft.graph.onlineMeeting entity. + /// + public class CallTranscriptItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the media for the cloudCommunications entity. + public ContentRequestBuilder Content { get => + new ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the media for the cloudCommunications entity. + public MetadataContentRequestBuilder MetadataContent { get => + new MetadataContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new CallTranscriptItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CallTranscriptItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/transcripts/{callTranscript%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new CallTranscriptItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CallTranscriptItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/transcripts/{callTranscript%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property transcripts for communications + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get transcripts from communications + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CallTranscript.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property transcripts in communications + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(CallTranscript body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(CallTranscript body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CallTranscript.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property transcripts for communications + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new CallTranscriptItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get transcripts from communications + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new CallTranscriptItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property transcripts in communications + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(CallTranscript body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(CallTranscript body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new CallTranscriptItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CallTranscriptItemRequestBuilder WithUrl(string rawUrl) { + return new CallTranscriptItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CallTranscriptItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new CallTranscriptItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public CallTranscriptItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get transcripts from communications + /// + public class CallTranscriptItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CallTranscriptItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CallTranscriptItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CallTranscriptItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CallTranscriptItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CallTranscriptItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CallTranscriptItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new CallTranscriptItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public CallTranscriptItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.cs new file mode 100644 index 00000000000..cb323ad1879 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.cs @@ -0,0 +1,163 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Communications.OnlineMeetings.Item.Transcripts.Item.Content { + /// + /// Provides operations to manage the media for the cloudCommunications entity. + /// + public class ContentRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new ContentRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/transcripts/{callTranscript%2Did}/content", pathParameters) { + } + /// + /// Instantiates a new ContentRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/transcripts/{callTranscript%2Did}/content", rawUrl) { + } + /// + /// Get content for the navigation property transcripts from communications + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update content for the navigation property transcripts in communications + /// + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PutAsync(Stream body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CallTranscript.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get content for the navigation property transcripts from communications + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new ContentRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update content for the navigation property transcripts in communications + /// + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PUT, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetStreamContent(body); + if (requestConfiguration != null) { + var requestConfig = new ContentRequestBuilderPutRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ContentRequestBuilder WithUrl(string rawUrl) { + return new ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContentRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new contentRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ContentRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContentRequestBuilderPutRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new contentRequestBuilderPutRequestConfiguration and sets the default values. + /// + public ContentRequestBuilderPutRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilder.cs new file mode 100644 index 00000000000..90949c5ca5d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilder.cs @@ -0,0 +1,161 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Communications.OnlineMeetings.Item.Transcripts.Item.MetadataContent { + /// + /// Provides operations to manage the media for the cloudCommunications entity. + /// + public class MetadataContentRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MetadataContentRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MetadataContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/transcripts/{callTranscript%2Did}/metadataContent", pathParameters) { + } + /// + /// Instantiates a new MetadataContentRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MetadataContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/transcripts/{callTranscript%2Did}/metadataContent", rawUrl) { + } + /// + /// Get metadataContent for the navigation property transcripts from communications + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update metadataContent for the navigation property transcripts in communications + /// + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PutAsync(Stream body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get metadataContent for the navigation property transcripts from communications + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MetadataContentRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update metadataContent for the navigation property transcripts in communications + /// + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PUT, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.SetStreamContent(body); + if (requestConfiguration != null) { + var requestConfig = new MetadataContentRequestBuilderPutRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MetadataContentRequestBuilder WithUrl(string rawUrl) { + return new MetadataContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MetadataContentRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new metadataContentRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MetadataContentRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MetadataContentRequestBuilderPutRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new metadataContentRequestBuilderPutRequestConfiguration and sets the default values. + /// + public MetadataContentRequestBuilderPutRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilder.cs new file mode 100644 index 00000000000..38e72ecd5f3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.Communications.OnlineMeetings.Item.Transcripts.Count; +using Microsoft.Graph.Communications.OnlineMeetings.Item.Transcripts.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Communications.OnlineMeetings.Item.Transcripts { + /// + /// Provides operations to manage the transcripts property of the microsoft.graph.onlineMeeting entity. + /// + public class TranscriptsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the transcripts property of the microsoft.graph.onlineMeeting entity. + /// The unique identifier of callTranscript + public CallTranscriptItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("callTranscript%2Did", position); + return new CallTranscriptItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new TranscriptsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public TranscriptsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/transcripts{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new TranscriptsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public TranscriptsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/transcripts{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get transcripts from communications + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CallTranscriptCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to transcripts for communications + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(CallTranscript body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(CallTranscript body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CallTranscript.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get transcripts from communications + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new TranscriptsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to transcripts for communications + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(CallTranscript body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(CallTranscript body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new TranscriptsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public TranscriptsRequestBuilder WithUrl(string rawUrl) { + return new TranscriptsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get transcripts from communications + /// + public class TranscriptsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class TranscriptsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public TranscriptsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new TranscriptsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new transcriptsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public TranscriptsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class TranscriptsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new transcriptsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public TranscriptsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/OnlineMeetingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/OnlineMeetingsRequestBuilder.cs index 08c8c0630a8..44fe7d4a74b 100644 --- a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/OnlineMeetingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/OnlineMeetingsRequestBuilder.cs @@ -47,7 +47,7 @@ public OnlineMeetingsRequestBuilder(Dictionary pathParameters, I public OnlineMeetingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/onlineMeetings{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. + /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -88,7 +88,7 @@ public async Task PostAsync(OnlineMeeting body, Action(requestInfo, OnlineMeeting.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. + /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -149,7 +149,7 @@ public OnlineMeetingsRequestBuilder WithUrl(string rawUrl) { return new OnlineMeetingsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. + /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. This API is supported in the following national cloud deployments. /// public class OnlineMeetingsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Communications/Presences/Item/ClearPresence/ClearPresenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Presences/Item/ClearPresence/ClearPresenceRequestBuilder.cs index b1e066fa95a..166621d91a0 100644 --- a/src/Microsoft.Graph/Generated/Communications/Presences/Item/ClearPresence/ClearPresenceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Presences/Item/ClearPresence/ClearPresenceRequestBuilder.cs @@ -28,7 +28,7 @@ public ClearPresenceRequestBuilder(Dictionary pathParameters, IR public ClearPresenceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/presences/{presence%2Did}/clearPresence", rawUrl) { } /// - /// Clear the application's presence session for a user. If it is the user's only presence session, the user's presence will change to Offline/Offline. For details about presences sessions, see presence: setPresence. + /// Clear the application's presence session for a user. If it is the user's only presence session, the user's presence will change to Offline/Offline. For details about presences sessions, see presence: setPresence. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ClearPresencePostRequestBody body, Action - /// Clear the application's presence session for a user. If it is the user's only presence session, the user's presence will change to Offline/Offline. For details about presences sessions, see presence: setPresence. + /// Clear the application's presence session for a user. If it is the user's only presence session, the user's presence will change to Offline/Offline. For details about presences sessions, see presence: setPresence. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Communications/Presences/Item/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Presences/Item/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.cs index 9621a862f59..f8905cbfa39 100644 --- a/src/Microsoft.Graph/Generated/Communications/Presences/Item/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Presences/Item/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.cs @@ -28,7 +28,7 @@ public ClearUserPreferredPresenceRequestBuilder(Dictionary pathP public ClearUserPreferredPresenceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/presences/{presence%2Did}/clearUserPreferredPresence", rawUrl) { } /// - /// Clear the preferred availability and activity status for a user. + /// Clear the preferred availability and activity status for a user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Clear the preferred availability and activity status for a user. + /// Clear the preferred availability and activity status for a user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Communications/Presences/Item/PresenceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Presences/Item/PresenceItemRequestBuilder.cs index 786c662c4d5..9128dc3c7ea 100644 --- a/src/Microsoft.Graph/Generated/Communications/Presences/Item/PresenceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Presences/Item/PresenceItemRequestBuilder.cs @@ -73,7 +73,7 @@ public async Task DeleteAsync(Action - /// Get a user's presence information. + /// Get a user's presence information. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -138,7 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a user's presence information. + /// Get a user's presence information. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -215,7 +215,7 @@ public PresenceItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a user's presence information. + /// Get a user's presence information. This API is supported in the following national cloud deployments. /// public class PresenceItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetPresence/SetPresenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetPresence/SetPresenceRequestBuilder.cs index 63244cd50c4..df582cd1b12 100644 --- a/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetPresence/SetPresenceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetPresence/SetPresenceRequestBuilder.cs @@ -28,7 +28,7 @@ public SetPresenceRequestBuilder(Dictionary pathParameters, IReq public SetPresenceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/presences/{presence%2Did}/setPresence", rawUrl) { } /// - /// Set the state of a user's presence session as an application. + /// Set the state of a user's presence session as an application. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SetPresencePostRequestBody body, Action - /// Set the state of a user's presence session as an application. + /// Set the state of a user's presence session as an application. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetStatusMessage/SetStatusMessageRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetStatusMessage/SetStatusMessageRequestBuilder.cs index 634aabd9d45..e95791eef6e 100644 --- a/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetStatusMessage/SetStatusMessageRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetStatusMessage/SetStatusMessageRequestBuilder.cs @@ -28,7 +28,8 @@ public SetStatusMessageRequestBuilder(Dictionary pathParameters, public SetStatusMessageRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/presences/{presence%2Did}/setStatusMessage", rawUrl) { } /// - /// Invoke action setStatusMessage + /// Set a presence status message for a user. An optional expiration date and time can be supplied. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -49,7 +50,7 @@ public async Task PostAsync(SetStatusMessagePostRequestBody body, Action - /// Invoke action setStatusMessage + /// Set a presence status message for a user. An optional expiration date and time can be supplied. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.cs index f0aa850842b..c453af94c6c 100644 --- a/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.cs @@ -28,7 +28,7 @@ public SetUserPreferredPresenceRequestBuilder(Dictionary pathPar public SetUserPreferredPresenceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/presences/{presence%2Did}/setUserPreferredPresence", rawUrl) { } /// - /// Set the preferred availability and activity status for a user. If the preferred presence of a user is set, the user's presence shows as the preferred status. Preferred presence takes effect only when at least one presence session exists for the user. Otherwise, the user's presence shows as Offline. A presence session is created as a result of a successful setPresence operation, or if the user is signed in on a Microsoft Teams client. For more details, see presence sessions and time-out and expiration. + /// Set the preferred availability and activity status for a user. If the preferred presence of a user is set, the user's presence shows as the preferred status. Preferred presence takes effect only when at least one presence session exists for the user. Otherwise, the user's presence shows as Offline. A presence session is created as a result of a successful setPresence operation, or if the user is signed in on a Microsoft Teams client. For more details, see presence sessions and time-out and expiration. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SetUserPreferredPresencePostRequestBody body, Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Set the preferred availability and activity status for a user. If the preferred presence of a user is set, the user's presence shows as the preferred status. Preferred presence takes effect only when at least one presence session exists for the user. Otherwise, the user's presence shows as Offline. A presence session is created as a result of a successful setPresence operation, or if the user is signed in on a Microsoft Teams client. For more details, see presence sessions and time-out and expiration. + /// Set the preferred availability and activity status for a user. If the preferred presence of a user is set, the user's presence shows as the preferred status. Preferred presence takes effect only when at least one presence session exists for the user. Otherwise, the user's presence shows as Offline. A presence session is created as a result of a successful setPresence operation, or if the user is signed in on a Microsoft Teams client. For more details, see presence sessions and time-out and expiration. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Communications/Presences/PresencesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Presences/PresencesRequestBuilder.cs index b8c850e368a..f4e1af2a080 100644 --- a/src/Microsoft.Graph/Generated/Communications/Presences/PresencesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Presences/PresencesRequestBuilder.cs @@ -42,7 +42,7 @@ public PresencesRequestBuilder(Dictionary pathParameters, IReque public PresencesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/presences{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a user's presence information. + /// Get a user's presence information. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Presence.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a user's presence information. + /// Get a user's presence information. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public PresencesRequestBuilder WithUrl(string rawUrl) { return new PresencesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a user's presence information. + /// Get a user's presence information. This API is supported in the following national cloud deployments. /// public class PresencesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Connections/Item/Groups/GroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Connections/Item/Groups/GroupsRequestBuilder.cs index c22324f2e60..8ea72e5c44c 100644 --- a/src/Microsoft.Graph/Generated/Connections/Item/Groups/GroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Connections/Item/Groups/GroupsRequestBuilder.cs @@ -42,7 +42,7 @@ public GroupsRequestBuilder(Dictionary pathParameters, IRequestA public GroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/connections/{externalConnection%2Did}/groups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an externalGroup object. + /// Get an externalGroup object. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExternalGroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new externalGroup object. + /// Create a new externalGroup object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(ExternalGroup body, Action(requestInfo, ExternalGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an externalGroup object. + /// Get an externalGroup object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new externalGroup object. + /// Create a new externalGroup object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public GroupsRequestBuilder WithUrl(string rawUrl) { return new GroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an externalGroup object. + /// Get an externalGroup object. This API is supported in the following national cloud deployments. /// public class GroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.cs index 451d01ca8a9..77c59396f1c 100644 --- a/src/Microsoft.Graph/Generated/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.cs @@ -34,7 +34,7 @@ public ExternalGroupItemRequestBuilder(Dictionary pathParameters public ExternalGroupItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an externalGroup object. + /// Delete an externalGroup object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Get an externalGroup object. + /// Get an externalGroup object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, ExternalGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an externalGroup object. + /// Update the properties of an externalGroup object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(ExternalGroup body, Action(requestInfo, ExternalGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an externalGroup object. + /// Delete an externalGroup object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an externalGroup object. + /// Get an externalGroup object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an externalGroup object. + /// Update the properties of an externalGroup object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public ExternalGroupItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an externalGroup object. + /// Get an externalGroup object. This API is supported in the following national cloud deployments. /// public class ExternalGroupItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilder.cs index 227a3252af6..68d1991acf0 100644 --- a/src/Microsoft.Graph/Generated/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilder.cs @@ -29,7 +29,7 @@ public IdentityItemRequestBuilder(Dictionary pathParameters, IRe public IdentityItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}/members/{identity%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an identity resource to remove the corresponding member from an externalGroup. + /// Delete an identity resource to remove the corresponding member from an externalGroup. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.ExternalConnectors.Identity.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an identity resource to remove the corresponding member from an externalGroup. + /// Delete an identity resource to remove the corresponding member from an externalGroup. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Connections/Item/Groups/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Connections/Item/Groups/Item/Members/MembersRequestBuilder.cs index 30d0f80b77d..49c656b309a 100644 --- a/src/Microsoft.Graph/Generated/Connections/Item/Groups/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Connections/Item/Groups/Item/Members/MembersRequestBuilder.cs @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, IdentityCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an identity resource for a new member in an externalGroup. + /// Create an identity resource for a new member in an externalGroup. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an identity resource for a new member in an externalGroup. + /// Create an identity resource for a new member in an externalGroup. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.cs index 4035e01ef6e..34a380ffbcf 100644 --- a/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.cs @@ -39,7 +39,7 @@ public ExternalItemItemRequestBuilder(Dictionary pathParameters, public ExternalItemItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/connections/{externalConnection%2Did}/items/{externalItem%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an externalItem object. + /// Delete an externalItem object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -59,7 +59,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an externalItem object. + /// Read the properties and relationships of an externalItem object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -100,7 +100,7 @@ public async Task PutAsync(ExternalItem body, Action(requestInfo, ExternalItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an externalItem object. + /// Delete an externalItem object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -124,7 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an externalItem object. + /// Read the properties and relationships of an externalItem object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -201,7 +201,7 @@ public ExternalItemItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of an externalItem object. + /// Read the properties and relationships of an externalItem object. This API is supported in the following national cloud deployments. /// public class ExternalItemItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostResponse.cs b/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostResponse.cs new file mode 100644 index 00000000000..656b44944f6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostResponse.cs @@ -0,0 +1,51 @@ +// +using Microsoft.Graph.Models.ExternalConnectors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Connections.Item.Items.Item.MicrosoftGraphExternalConnectorsAddActivities { + public class AddActivitiesPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AddActivitiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AddActivitiesPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ExternalActivityResult.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesResponse.cs b/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesResponse.cs index 8dfac614579..fc80c6115a9 100644 --- a/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesResponse.cs +++ b/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesResponse.cs @@ -1,27 +1,12 @@ // -using Microsoft.Graph.Models.ExternalConnectors; -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Connections.Item.Items.Item.MicrosoftGraphExternalConnectorsAddActivities { - public class AddActivitiesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use addActivitiesPostResponse instead.")] + public class AddActivitiesResponse : AddActivitiesPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -30,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddActivitiesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ExternalActivityResult.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.cs index 853580a05ae..d7464444342 100644 --- a/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.cs @@ -34,6 +34,28 @@ public MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder(string rawUrl /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsAddActivitiesPostResponseAsync(AddActivitiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsAddActivitiesPostResponseAsync(AddActivitiesPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AddActivitiesPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action addActivities + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsAddActivitiesPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(AddActivitiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Connections/Item/Items/ItemsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Connections/Item/Items/ItemsRequestBuilder.cs index 4f3cd287b0a..bddb403542d 100644 --- a/src/Microsoft.Graph/Generated/Connections/Item/Items/ItemsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Connections/Item/Items/ItemsRequestBuilder.cs @@ -42,7 +42,7 @@ public ItemsRequestBuilder(Dictionary pathParameters, IRequestAd public ItemsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/connections/{externalConnection%2Did}/items{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of an externalItem object. + /// Read the properties and relationships of an externalItem object. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(ExternalItem body, Action(requestInfo, ExternalItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of an externalItem object. + /// Read the properties and relationships of an externalItem object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public ItemsRequestBuilder WithUrl(string rawUrl) { return new ItemsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of an externalItem object. + /// Read the properties and relationships of an externalItem object. This API is supported in the following national cloud deployments. /// public class ItemsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.cs index 5373c349d0f..c0e5e95aaa7 100644 --- a/src/Microsoft.Graph/Generated/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a connectionOperation object. + /// Read the properties and relationships of a connectionOperation object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a connectionOperation object. + /// Read the properties and relationships of a connectionOperation object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ConnectionOperationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a connectionOperation object. + /// Read the properties and relationships of a connectionOperation object. This API is supported in the following national cloud deployments. /// public class ConnectionOperationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Connections/Item/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Connections/Item/Operations/OperationsRequestBuilder.cs index 4edff9940d9..3e1df6d6f76 100644 --- a/src/Microsoft.Graph/Generated/Connections/Item/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Connections/Item/Operations/OperationsRequestBuilder.cs @@ -42,7 +42,7 @@ public OperationsRequestBuilder(Dictionary pathParameters, IRequ public OperationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/connections/{externalConnection%2Did}/operations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of a connectionOperation object. + /// Read the properties and relationships of a connectionOperation object. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(ConnectionOperation body, Actio return await RequestAdapter.SendAsync(requestInfo, ConnectionOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of a connectionOperation object. + /// Read the properties and relationships of a connectionOperation object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public OperationsRequestBuilder WithUrl(string rawUrl) { return new OperationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of a connectionOperation object. + /// Read the properties and relationships of a connectionOperation object. This API is supported in the following national cloud deployments. /// public class OperationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Connections/Item/Schema/SchemaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Connections/Item/Schema/SchemaRequestBuilder.cs index 9fd78866f02..4af8829414c 100644 --- a/src/Microsoft.Graph/Generated/Connections/Item/Schema/SchemaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Connections/Item/Schema/SchemaRequestBuilder.cs @@ -29,26 +29,7 @@ public SchemaRequestBuilder(Dictionary pathParameters, IRequestA public SchemaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/connections/{externalConnection%2Did}/schema{?%24select,%24expand}", rawUrl) { } /// - /// Delete navigation property schema for connections - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Read the properties and relationships of a schema object. + /// Read the properties and relationships of a schema object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -89,31 +70,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.ExternalConnectors.Schema.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete navigation property schema for connections - /// - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation { - HttpMethod = Method.DELETE, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - if (requestConfiguration != null) { - var requestConfig = new SchemaRequestBuilderDeleteRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// - /// Read the properties and relationships of a schema object. + /// Read the properties and relationships of a schema object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -174,23 +131,7 @@ public SchemaRequestBuilder WithUrl(string rawUrl) { return new SchemaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class SchemaRequestBuilderDeleteRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new schemaRequestBuilderDeleteRequestConfiguration and sets the default values. - /// - public SchemaRequestBuilderDeleteRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } - /// - /// Read the properties and relationships of a schema object. + /// Read the properties and relationships of a schema object. This API is supported in the following national cloud deployments. /// public class SchemaRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Contacts/ContactsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/ContactsRequestBuilder.cs index 1f52eae1f88..3eb93113ba8 100644 --- a/src/Microsoft.Graph/Generated/Contacts/ContactsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/ContactsRequestBuilder.cs @@ -62,7 +62,7 @@ public ContactsRequestBuilder(Dictionary pathParameters, IReques public ContactsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/contacts{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of organizational contacts for this organization. + /// Get the list of organizational contacts for this organization. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -103,7 +103,7 @@ public async Task PostAsync(OrgContact body, Action(requestInfo, OrgContact.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of organizational contacts for this organization. + /// Get the list of organizational contacts for this organization. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,7 +164,7 @@ public ContactsRequestBuilder WithUrl(string rawUrl) { return new ContactsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of organizational contacts for this organization. + /// Get the list of organizational contacts for this organization. This API is supported in the following national cloud deployments. /// public class ContactsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Contacts/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Contacts/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..e306bef6281 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Contacts/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Contacts.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(OrgContact.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Contacts/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Delta/DeltaRequestBuilder.cs index c2a85e9af43..5841b30e5b7 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Contacts/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Contacts/Delta/DeltaResponse.cs index 97e8e88024f..e56874d0d89 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Contacts.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(OrgContact.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs new file mode 100644 index 00000000000..c6f93f970b4 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Contacts.GetAvailableExtensionProperties { + public class GetAvailableExtensionPropertiesPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAvailableExtensionPropertiesPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index 4a9cdd15bd1..f73739df87d 100644 --- a/src/Microsoft.Graph/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -28,13 +28,36 @@ public GetAvailableExtensionPropertiesRequestBuilder(Dictionary public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/contacts/getAvailableExtensionProperties", rawUrl) { } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetAvailableExtensionPropertiesPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetAvailabl return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index 07da59976d7..cff6218591a 100644 --- a/src/Microsoft.Graph/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Contacts.GetAvailableExtensionProperties { - public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAvailableExtensionPropertiesPostResponse instead.")] + public class GetAvailableExtensionPropertiesResponse : GetAvailableExtensionPropertiesPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Contacts/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/Contacts/GetByIds/GetByIdsPostResponse.cs new file mode 100644 index 00000000000..32e952dd7be --- /dev/null +++ b/src/Microsoft.Graph/Generated/Contacts/GetByIds/GetByIdsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Contacts.GetByIds { + public class GetByIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetByIdsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Contacts/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/GetByIds/GetByIdsRequestBuilder.cs index ba9caf928cb..a46422bf00a 100644 --- a/src/Microsoft.Graph/Generated/Contacts/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/GetByIds/GetByIdsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetByIdsRequestBuilder(Dictionary pathParameters, IReques public GetByIdsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/contacts/getByIds", rawUrl) { } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetByIdsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetByIdsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetByIdsPostRequestBody body, Acti return await RequestAdapter.SendAsync(requestInfo, GetByIdsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Contacts/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/Contacts/GetByIds/GetByIdsResponse.cs index 3bc21d3ae9e..922c0852e1c 100644 --- a/src/Microsoft.Graph/Generated/Contacts/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/Contacts/GetByIds/GetByIdsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Contacts.GetByIds { - public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getByIdsPostResponse instead.")] + public class GetByIdsResponse : GetByIdsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..23379903913 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Contacts.Item.CheckMemberGroups { + public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index 393be2e4354..b83a92b99d9 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/contacts/{orgContact%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index db6b389f914..253447eba54 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Contacts.Item.CheckMemberGroups { - public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberGroupsPostResponse instead.")] + public class CheckMemberGroupsResponse : CheckMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..4e2afb0d12e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Contacts.Item.CheckMemberObjects { + public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index 6370c9a13ab..71ba8f09a8f 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -34,6 +34,28 @@ public CheckMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAd /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action checkMemberObjects + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index e59297216e4..57e63d60888 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Contacts.Item.CheckMemberObjects { - public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberObjectsPostResponse instead.")] + public class CheckMemberObjectsResponse : CheckMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..44c0d7d41da --- /dev/null +++ b/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Contacts.Item.GetMemberGroups { + public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index 0eed5be55f8..e1cd1689d2f 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberGroupsRequestBuilder(Dictionary pathParameters, public GetMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/contacts/{orgContact%2Did}/getMemberGroups", rawUrl) { } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberGroupsPostRequestB return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsResponse.cs index 7433e4a54c2..6b278ab04ca 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Contacts.Item.GetMemberGroups { - public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberGroupsPostResponse instead.")] + public class GetMemberGroupsResponse : GetMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..1dad4b24afa --- /dev/null +++ b/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Contacts.Item.GetMemberObjects { + public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index 667a184bf47..54bb5cf4ff6 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberObjectsRequestBuilder(Dictionary pathParameters, public GetMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/contacts/{orgContact%2Did}/getMemberObjects", rawUrl) { } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberObjectsPostReques return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsResponse.cs index 11d750eca01..fe33bdcc3fa 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Contacts.Item.GetMemberObjects { - public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberObjectsPostResponse instead.")] + public class GetMemberObjectsResponse : GetMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/Manager/ManagerRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/Manager/ManagerRequestBuilder.cs index 45df6f8033e..b7ebde3bc3c 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/Manager/ManagerRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/Manager/ManagerRequestBuilder.cs @@ -29,7 +29,7 @@ public ManagerRequestBuilder(Dictionary pathParameters, IRequest public ManagerRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/contacts/{orgContact%2Did}/manager{?%24select,%24expand}", rawUrl) { } /// - /// Get this organizational contact's manager. + /// Get this organizational contact's manager. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get this organizational contact's manager. + /// Get this organizational contact's manager. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -82,7 +82,7 @@ public ManagerRequestBuilder WithUrl(string rawUrl) { return new ManagerRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get this organizational contact's manager. + /// Get this organizational contact's manager. This API is supported in the following national cloud deployments. /// public class ManagerRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/OrgContactItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/OrgContactItemRequestBuilder.cs index be5b23bf84e..d97d7b5f462 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/OrgContactItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/OrgContactItemRequestBuilder.cs @@ -8,6 +8,7 @@ using Microsoft.Graph.Contacts.Item.MemberOf; using Microsoft.Graph.Contacts.Item.Restore; using Microsoft.Graph.Contacts.Item.RetryServiceProvisioning; +using Microsoft.Graph.Contacts.Item.ServiceProvisioningErrors; using Microsoft.Graph.Contacts.Item.TransitiveMemberOf; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; @@ -60,6 +61,10 @@ public class OrgContactItemRequestBuilder : BaseRequestBuilder { public RetryServiceProvisioningRequestBuilder RetryServiceProvisioning { get => new RetryServiceProvisioningRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to manage the transitiveMemberOf property of the microsoft.graph.orgContact entity. public TransitiveMemberOfRequestBuilder TransitiveMemberOf { get => new TransitiveMemberOfRequestBuilder(PathParameters, RequestAdapter); @@ -98,7 +103,7 @@ public async Task DeleteAsync(Action - /// Get the properties and relationships of an organizational contact. + /// Get the properties and relationships of an organizational contact. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -163,7 +168,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties and relationships of an organizational contact. + /// Get the properties and relationships of an organizational contact. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -240,7 +245,7 @@ public OrgContactItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the properties and relationships of an organizational contact. + /// Get the properties and relationships of an organizational contact. This API is supported in the following national cloud deployments. /// public class OrgContactItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/Restore/RestoreRequestBuilder.cs index 0f901954689..8fba261542b 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/Restore/RestoreRequestBuilder.cs @@ -29,7 +29,7 @@ public RestoreRequestBuilder(Dictionary pathParameters, IRequest public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/contacts/{orgContact%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..5f084e0c213 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Contacts/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Contacts.Item.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/contacts/{orgContact%2Did}/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/contacts/{orgContact%2Did}/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..6e06305e0b7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Contacts/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Contacts.Item.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Contacts.Item.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \contacts\{orgContact-id}\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/contacts/{orgContact%2Did}/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/contacts/{orgContact%2Did}/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Contacts/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/ValidateProperties/ValidatePropertiesRequestBuilder.cs index 1ae4f5c3454..ecae179fb88 100644 --- a/src/Microsoft.Graph/Generated/Contacts/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -28,7 +28,7 @@ public ValidatePropertiesRequestBuilder(Dictionary pathParameter public ValidatePropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/contacts/validateProperties", rawUrl) { } /// - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ValidatePropertiesPostRequestBody body, Action - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Contracts/ContractsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contracts/ContractsRequestBuilder.cs index e7005fda1bf..e2b27ca5dc0 100644 --- a/src/Microsoft.Graph/Generated/Contracts/ContractsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contracts/ContractsRequestBuilder.cs @@ -62,7 +62,7 @@ public ContractsRequestBuilder(Dictionary pathParameters, IReque public ContractsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/contracts{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of contract objects associated to a partner tenant. + /// Retrieve a list of contract objects associated to a partner tenant. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -103,7 +103,7 @@ public async Task PostAsync(Contract body, Action(requestInfo, Contract.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of contract objects associated to a partner tenant. + /// Retrieve a list of contract objects associated to a partner tenant. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,7 +164,7 @@ public ContractsRequestBuilder WithUrl(string rawUrl) { return new ContractsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of contract objects associated to a partner tenant. + /// Retrieve a list of contract objects associated to a partner tenant. This API is supported in the following national cloud deployments. /// public class ContractsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Contracts/Delta/DeltaGetResponse.cs similarity index 88% rename from src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Delta/DeltaResponse.cs rename to src/Microsoft.Graph/Generated/Contracts/Delta/DeltaGetResponse.cs index ceaf6e56c27..7755f75e20f 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Contracts/Delta/DeltaGetResponse.cs @@ -5,8 +5,8 @@ using System.IO; using System.Linq; using System; -namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { +namespace Microsoft.Graph.Contracts.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -25,9 +25,9 @@ public List Value { /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaResponse(); + return new DeltaGetResponse(); } /// /// The deserialization information for the current model diff --git a/src/Microsoft.Graph/Generated/Contracts/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contracts/Delta/DeltaRequestBuilder.cs index decd3c759f4..a4b5b8f82bc 100644 --- a/src/Microsoft.Graph/Generated/Contracts/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contracts/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Contracts/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Contracts/Delta/DeltaResponse.cs index 96285f6ed5b..20e69ff5b9a 100644 --- a/src/Microsoft.Graph/Generated/Contracts/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Contracts/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Contracts.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs new file mode 100644 index 00000000000..d63f1c77d6c --- /dev/null +++ b/src/Microsoft.Graph/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Contracts.GetAvailableExtensionProperties { + public class GetAvailableExtensionPropertiesPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAvailableExtensionPropertiesPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index c9d54f2aa41..983fa9a62fc 100644 --- a/src/Microsoft.Graph/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -28,13 +28,36 @@ public GetAvailableExtensionPropertiesRequestBuilder(Dictionary public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/contracts/getAvailableExtensionProperties", rawUrl) { } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetAvailableExtensionPropertiesPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetAvailabl return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index e8da0d5fe27..86c9da3b47f 100644 --- a/src/Microsoft.Graph/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Contracts.GetAvailableExtensionProperties { - public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAvailableExtensionPropertiesPostResponse instead.")] + public class GetAvailableExtensionPropertiesResponse : GetAvailableExtensionPropertiesPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Contracts/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/Contracts/GetByIds/GetByIdsPostResponse.cs new file mode 100644 index 00000000000..e92a693ebba --- /dev/null +++ b/src/Microsoft.Graph/Generated/Contracts/GetByIds/GetByIdsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Contracts.GetByIds { + public class GetByIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetByIdsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Contracts/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contracts/GetByIds/GetByIdsRequestBuilder.cs index 372b8331b30..0ea62c53616 100644 --- a/src/Microsoft.Graph/Generated/Contracts/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contracts/GetByIds/GetByIdsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetByIdsRequestBuilder(Dictionary pathParameters, IReques public GetByIdsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/contracts/getByIds", rawUrl) { } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetByIdsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetByIdsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetByIdsPostRequestBody body, Acti return await RequestAdapter.SendAsync(requestInfo, GetByIdsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Contracts/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/Contracts/GetByIds/GetByIdsResponse.cs index 18e6fdf7650..15fbf169e40 100644 --- a/src/Microsoft.Graph/Generated/Contracts/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/Contracts/GetByIds/GetByIdsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Contracts.GetByIds { - public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getByIdsPostResponse instead.")] + public class GetByIdsResponse : GetByIdsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..c8013ac9d7b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Contracts.Item.CheckMemberGroups { + public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index 3097c530699..69f2cf9f26a 100644 --- a/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/contracts/{contract%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index c27b5209678..954c2e27dc2 100644 --- a/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Contracts.Item.CheckMemberGroups { - public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberGroupsPostResponse instead.")] + public class CheckMemberGroupsResponse : CheckMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..04e3839372d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Contracts.Item.CheckMemberObjects { + public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index cd61e726d58..9ace79118ac 100644 --- a/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -34,6 +34,28 @@ public CheckMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAd /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action checkMemberObjects + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index 048518d05e7..ac45436b645 100644 --- a/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Contracts.Item.CheckMemberObjects { - public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberObjectsPostResponse instead.")] + public class CheckMemberObjectsResponse : CheckMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Contracts/Item/ContractItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contracts/Item/ContractItemRequestBuilder.cs index 39dfdfdcfc8..555569dbae6 100644 --- a/src/Microsoft.Graph/Generated/Contracts/Item/ContractItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contracts/Item/ContractItemRequestBuilder.cs @@ -73,7 +73,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of contract object. + /// Retrieve the properties and relationships of contract object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -138,7 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of contract object. + /// Retrieve the properties and relationships of contract object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -215,7 +215,7 @@ public ContractItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of contract object. + /// Retrieve the properties and relationships of contract object. This API is supported in the following national cloud deployments. /// public class ContractItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..4ca11c406d1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Contracts.Item.GetMemberGroups { + public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index 485e642a574..63b957f192b 100644 --- a/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberGroupsRequestBuilder(Dictionary pathParameters, public GetMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/contracts/{contract%2Did}/getMemberGroups", rawUrl) { } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberGroupsPostRequestB return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsResponse.cs index e3cd49243b2..dda076aad0f 100644 --- a/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Contracts.Item.GetMemberGroups { - public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberGroupsPostResponse instead.")] + public class GetMemberGroupsResponse : GetMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..b019e2aae8b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Contracts.Item.GetMemberObjects { + public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index 800097e5065..87222b3e32a 100644 --- a/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberObjectsRequestBuilder(Dictionary pathParameters, public GetMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/contracts/{contract%2Did}/getMemberObjects", rawUrl) { } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberObjectsPostReques return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsResponse.cs index 76a05027dcc..6071389a1a3 100644 --- a/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Contracts.Item.GetMemberObjects { - public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberObjectsPostResponse instead.")] + public class GetMemberObjectsResponse : GetMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Contracts/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contracts/Item/Restore/RestoreRequestBuilder.cs index db16454f67a..f213ad37169 100644 --- a/src/Microsoft.Graph/Generated/Contracts/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contracts/Item/Restore/RestoreRequestBuilder.cs @@ -29,7 +29,7 @@ public RestoreRequestBuilder(Dictionary pathParameters, IRequest public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/contracts/{contract%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Contracts/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contracts/ValidateProperties/ValidatePropertiesRequestBuilder.cs index ecf4f478260..2b7f42f4e72 100644 --- a/src/Microsoft.Graph/Generated/Contracts/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contracts/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -28,7 +28,7 @@ public ValidatePropertiesRequestBuilder(Dictionary pathParameter public ValidatePropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/contracts/validateProperties", rawUrl) { } /// - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ValidatePropertiesPostRequestBody body, Action - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/DataPolicyOperations/DataPolicyOperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DataPolicyOperations/DataPolicyOperationsRequestBuilder.cs index c80c17066d2..220b8348c59 100644 --- a/src/Microsoft.Graph/Generated/DataPolicyOperations/DataPolicyOperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DataPolicyOperations/DataPolicyOperationsRequestBuilder.cs @@ -42,7 +42,7 @@ public DataPolicyOperationsRequestBuilder(Dictionary pathParamet public DataPolicyOperationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/dataPolicyOperations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the properties of a dataPolicyOperation object. + /// Retrieve the properties of a dataPolicyOperation object. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(DataPolicyOperation body, Actio return await RequestAdapter.SendAsync(requestInfo, DataPolicyOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the properties of a dataPolicyOperation object. + /// Retrieve the properties of a dataPolicyOperation object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public DataPolicyOperationsRequestBuilder WithUrl(string rawUrl) { return new DataPolicyOperationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the properties of a dataPolicyOperation object. + /// Retrieve the properties of a dataPolicyOperation object. This API is supported in the following national cloud deployments. /// public class DataPolicyOperationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DataPolicyOperations/Item/DataPolicyOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DataPolicyOperations/Item/DataPolicyOperationItemRequestBuilder.cs index 76e39ef55f3..f58bb48c8ff 100644 --- a/src/Microsoft.Graph/Generated/DataPolicyOperations/Item/DataPolicyOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DataPolicyOperations/Item/DataPolicyOperationItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties of a dataPolicyOperation object. + /// Retrieve the properties of a dataPolicyOperation object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties of a dataPolicyOperation object. + /// Retrieve the properties of a dataPolicyOperation object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public DataPolicyOperationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties of a dataPolicyOperation object. + /// Retrieve the properties of a dataPolicyOperation object. This API is supported in the following national cloud deployments. /// public class DataPolicyOperationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs index 78c7958c0be..c147795d468 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs @@ -105,7 +105,7 @@ public DeviceAppManagementRequestBuilder(string rawUrl, IRequestAdapter requestA } /// /// Read properties and relationships of the deviceAppManagement object. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -125,7 +125,7 @@ public DeviceAppManagementRequestBuilder(string rawUrl, IRequestAdapter requestA } /// /// Update the properties of a deviceAppManagement object. - /// Find more info here + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs index 5f7f0ea0c56..5ca97ba7721 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs @@ -53,8 +53,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the targetedManagedAppProtection object. - /// Find more info here + /// Read properties and relationships of the managedAppConfiguration object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the targetedManagedAppProtection object. + /// Read properties and relationships of the managedAppConfiguration object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public ManagedAppPolicyItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read properties and relationships of the targetedManagedAppProtection object. + /// Read properties and relationships of the managedAppConfiguration object. /// public class ManagedAppPolicyItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.cs index bf436291872..685cea5ce0a 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.cs @@ -42,8 +42,8 @@ public ManagedAppPoliciesRequestBuilder(Dictionary pathParameter public ManagedAppPoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/managedAppPolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the managedAppPolicy objects. - /// Find more info here + /// List properties and relationships of the windowsInformationProtection objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -83,7 +83,7 @@ public async Task PostAsync(ManagedAppPolicy body, Action(requestInfo, ManagedAppPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the managedAppPolicy objects. + /// List properties and relationships of the windowsInformationProtection objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public ManagedAppPoliciesRequestBuilder WithUrl(string rawUrl) { return new ManagedAppPoliciesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the managedAppPolicy objects. + /// List properties and relationships of the windowsInformationProtection objects. /// public class ManagedAppPoliciesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationGetResponse.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationGetResponse.cs new file mode 100644 index 00000000000..728352ed2d4 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DeviceAppManagement.ManagedAppRegistrations.GetUserIdsWithFlaggedAppRegistration { + public class GetUserIdsWithFlaggedAppRegistrationGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetUserIdsWithFlaggedAppRegistrationGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetUserIdsWithFlaggedAppRegistrationGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationRequestBuilder.cs index a1829127fb4..a4db0509dc7 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationRequestBuilder.cs @@ -33,6 +33,26 @@ public GetUserIdsWithFlaggedAppRegistrationRequestBuilder(string rawUrl, IReques /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetUserIdsWithFlaggedAppRegistrationGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetUserIdsWithFlaggedAppRegistrationGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetUserIdsWithFlaggedAppRegistrationGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getUserIdsWithFlaggedAppRegistration + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetUserIdsWithFlaggedAppRegistrationGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationResponse.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationResponse.cs index 3103f18cc6a..4bcacf01983 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationResponse.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.DeviceAppManagement.ManagedAppRegistrations.GetUserIdsWithFlaggedAppRegistration { - public class GetUserIdsWithFlaggedAppRegistrationResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getUserIdsWithFlaggedAppRegistrationGetResponse instead.")] + public class GetUserIdsWithFlaggedAppRegistrationResponse : GetUserIdsWithFlaggedAppRegistrationGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetUserIdsWithFlaggedAppRegistrationResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.cs index 9008aa9c5d3..bd7ee61f31f 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.cs @@ -63,8 +63,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the managedAppRegistration object. - /// Find more info here + /// Read properties and relationships of the iosManagedAppRegistration object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -128,7 +128,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the managedAppRegistration object. + /// Read properties and relationships of the iosManagedAppRegistration object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -205,7 +205,7 @@ public ManagedAppRegistrationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read properties and relationships of the managedAppRegistration object. + /// Read properties and relationships of the iosManagedAppRegistration object. /// public class ManagedAppRegistrationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.cs index d24fa21f218..0ab3da89337 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.cs @@ -42,8 +42,8 @@ public AssignmentsRequestBuilder(Dictionary pathParameters, IReq public AssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the iosVppEBookAssignment objects. - /// Find more info here + /// List properties and relationships of the managedEBookAssignment objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -62,8 +62,8 @@ public async Task GetAsync(Action(requestInfo, ManagedEBookAssignmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new managedEBookAssignment object. - /// Find more info here + /// Create a new iosVppEBookAssignment object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task PostAsync(ManagedEBookAssignment body, return await RequestAdapter.SendAsync(requestInfo, ManagedEBookAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the iosVppEBookAssignment objects. + /// List properties and relationships of the managedEBookAssignment objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new managedEBookAssignment object. + /// Create a new iosVppEBookAssignment object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public AssignmentsRequestBuilder WithUrl(string rawUrl) { return new AssignmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the iosVppEBookAssignment objects. + /// List properties and relationships of the managedEBookAssignment objects. /// public class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.cs index d7217c0c342..6e57b66aebc 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, ManagedEBookAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a iosVppEBookAssignment object. - /// Find more info here + /// Update the properties of a managedEBookAssignment object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a iosVppEBookAssignment object. + /// Update the properties of a managedEBookAssignment object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilder.cs index dac146eee7a..10d319c3eba 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilder.cs @@ -74,8 +74,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the iosVppEBook object. - /// Find more info here + /// Read properties and relationships of the managedEBook object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -140,7 +140,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the iosVppEBook object. + /// Read properties and relationships of the managedEBook object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -217,7 +217,7 @@ public ManagedEBookItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read properties and relationships of the iosVppEBook object. + /// Read properties and relationships of the managedEBook object. /// public class ManagedEBookItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.cs index 76a180c9022..42ce06ec968 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.cs @@ -79,8 +79,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the iosMobileAppConfiguration object. - /// Find more info here + /// Read properties and relationships of the managedDeviceMobileAppConfiguration object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the iosMobileAppConfiguration object. + /// Read properties and relationships of the managedDeviceMobileAppConfiguration object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -222,7 +222,7 @@ public ManagedDeviceMobileAppConfigurationItemRequestBuilderDeleteRequestConfigu } } /// - /// Read properties and relationships of the iosMobileAppConfiguration object. + /// Read properties and relationships of the managedDeviceMobileAppConfiguration object. /// public class ManagedDeviceMobileAppConfigurationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/AssignmentsRequestBuilder.cs new file mode 100644 index 00000000000..15f6a91bb34 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/AssignmentsRequestBuilder.cs @@ -0,0 +1,246 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.Assignments.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.Assignments.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.Assignments { + /// + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// + public class AssignmentsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// The unique identifier of mobileAppAssignment + public MobileAppAssignmentItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppAssignment%2Did", position); + return new MobileAppAssignmentItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new AssignmentsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AssignmentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new AssignmentsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create a new mobileAppAssignment object. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppAssignment body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppAssignment body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new AssignmentsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create a new mobileAppAssignment object. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public AssignmentsRequestBuilder WithUrl(string rawUrl) { + return new AssignmentsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// + public class AssignmentsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public AssignmentsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AssignmentsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new assignmentsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public AssignmentsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new assignmentsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public AssignmentsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..12fe7c515d2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.Assignments.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/assignments/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/assignments/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs new file mode 100644 index 00000000000..cf5681964a8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs @@ -0,0 +1,254 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.Assignments.Item { + /// + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// + public class MobileAppAssignmentItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppAssignmentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppAssignmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Deletes a mobileAppAssignment. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the properties of a mobileAppAssignment object. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppAssignment body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppAssignment body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Deletes a mobileAppAssignment. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the properties of a mobileAppAssignment object. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppAssignmentItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppAssignmentItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// + public class MobileAppAssignmentItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppAssignmentItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppAssignmentItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/CategoriesRequestBuilder.cs new file mode 100644 index 00000000000..668798300b2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/CategoriesRequestBuilder.cs @@ -0,0 +1,179 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.Categories.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.Categories.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.Categories { + /// + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// + public class CategoriesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// The unique identifier of mobileAppCategory + public MobileAppCategoryItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppCategory%2Did", position); + return new MobileAppCategoryItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new CategoriesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CategoriesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new CategoriesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CategoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of categories for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppCategoryCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of categories for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new CategoriesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CategoriesRequestBuilder WithUrl(string rawUrl) { + return new CategoriesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of categories for this app. + /// + public class CategoriesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CategoriesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CategoriesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CategoriesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new categoriesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CategoriesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..c4e06ec8c12 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.Categories.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/categories/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/categories/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs new file mode 100644 index 00000000000..8950a140559 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.Categories.Item { + /// + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// + public class MobileAppCategoryItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppCategoryItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppCategoryItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// The list of categories for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of categories for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppCategoryItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppCategoryItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppCategoryItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of categories for this app. + /// + public class MobileAppCategoryItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppCategoryItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppCategoryItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppCategoryItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppCategoryItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.cs new file mode 100644 index 00000000000..04e2ba20db3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions { + /// + /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + /// + public class ContentVersionsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + /// The unique identifier of mobileAppContent + public MobileAppContentItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppContent%2Did", position); + return new MobileAppContentItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new ContentVersionsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentVersionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ContentVersionsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentVersionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of content versions for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to contentVersions for deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppContent body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppContent body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of content versions for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ContentVersionsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to contentVersions for deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppContent body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppContent body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new ContentVersionsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ContentVersionsRequestBuilder WithUrl(string rawUrl) { + return new ContentVersionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of content versions for this app. + /// + public class ContentVersionsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContentVersionsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ContentVersionsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ContentVersionsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new contentVersionsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ContentVersionsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContentVersionsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new contentVersionsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public ContentVersionsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..027aef5562c --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs new file mode 100644 index 00000000000..c4db8d574f1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.ContainedApps.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.ContainedApps.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.ContainedApps { + /// + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + /// + public class ContainedAppsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + /// The unique identifier of mobileContainedApp + public MobileContainedAppItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileContainedApp%2Did", position); + return new MobileContainedAppItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new ContainedAppsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContainedAppsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ContainedAppsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContainedAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedAppCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to containedApps for deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileContainedApp body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileContainedApp body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ContainedAppsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to containedApps for deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new ContainedAppsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ContainedAppsRequestBuilder WithUrl(string rawUrl) { + return new ContainedAppsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + public class ContainedAppsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContainedAppsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ContainedAppsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ContainedAppsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new containedAppsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ContainedAppsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContainedAppsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new containedAppsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public ContainedAppsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..5691af4a389 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.ContainedApps.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs new file mode 100644 index 00000000000..f0798959a32 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs @@ -0,0 +1,251 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.ContainedApps.Item { + /// + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + /// + public class MobileContainedAppItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileContainedAppItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileContainedAppItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property containedApps for deviceAppManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property containedApps in deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileContainedApp body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileContainedApp body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property containedApps for deviceAppManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property containedApps in deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileContainedAppItemRequestBuilder WithUrl(string rawUrl) { + return new MobileContainedAppItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + public class MobileContainedAppItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileContainedAppItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileContainedAppItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..6fc57132a0b --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.Files.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..e988aef7d32 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.Files.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.Files.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.Files { + /// + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + /// + public class FilesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + /// The unique identifier of mobileAppContentFile + public MobileAppContentFileItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppContentFile%2Did", position); + return new MobileAppContentFileItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new FilesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/files{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new FilesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/files{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of files for this app content version. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to files for deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppContentFile body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppContentFile body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of files for this app content version. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new FilesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to files for deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new FilesRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public FilesRequestBuilder WithUrl(string rawUrl) { + return new FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of files for this app content version. + /// + public class FilesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FilesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public FilesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new FilesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new filesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public FilesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FilesRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new filesRequestBuilderPostRequestConfiguration and sets the default values. + /// + public FilesRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs new file mode 100644 index 00000000000..a5e07d556b5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs @@ -0,0 +1,65 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.Files.Item.Commit { + public class CommitPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The fileEncryptionInfo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.FileEncryptionInfo? FileEncryptionInfo { + get { return BackingStore?.Get("fileEncryptionInfo"); } + set { BackingStore?.Set("fileEncryptionInfo", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.FileEncryptionInfo FileEncryptionInfo { + get { return BackingStore?.Get("fileEncryptionInfo"); } + set { BackingStore?.Set("fileEncryptionInfo", value); } + } +#endif + /// + /// Instantiates a new commitPostRequestBody and sets the default values. + /// + public CommitPostRequestBody() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CommitPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(Microsoft.Graph.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs similarity index 57% rename from src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs rename to src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs index faaa215856f..0f832280252 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs @@ -8,37 +8,37 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.CheckMemberObjects { +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.Files.Item.Commit { /// - /// Provides operations to call the checkMemberObjects method. + /// Provides operations to call the commit method. /// - public class CheckMemberObjectsRequestBuilder : BaseRequestBuilder { + public class CommitRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new CheckMemberObjectsRequestBuilder and sets the default values. + /// Instantiates a new CommitRequestBuilder and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CheckMemberObjectsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/checkMemberObjects", pathParameters) { + public CommitRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", pathParameters) { } /// - /// Instantiates a new CheckMemberObjectsRequestBuilder and sets the default values. + /// Instantiates a new CommitRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public CheckMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/checkMemberObjects", rawUrl) { + public CommitRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", rawUrl) { } /// - /// Invoke action checkMemberObjects + /// Commits a file of a given app. /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(CommitPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(CheckMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(CommitPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -46,19 +46,19 @@ public async Task PostAsync(CheckMemberObjectsPostRe {"4XX", ODataError.CreateFromDiscriminatorValue}, {"5XX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, CheckMemberObjectsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Invoke action checkMemberObjects + /// Commits a file of a given app. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, Action? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequestBody body, Action requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, Action requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation { @@ -66,10 +66,9 @@ public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { - var requestConfig = new CheckMemberObjectsRequestBuilderPostRequestConfiguration(); + var requestConfig = new CommitRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); @@ -80,21 +79,21 @@ public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequest /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// /// The raw URL to use for the request builder. - public CheckMemberObjectsRequestBuilder WithUrl(string rawUrl) { - return new CheckMemberObjectsRequestBuilder(rawUrl, RequestAdapter); + public CommitRequestBuilder WithUrl(string rawUrl) { + return new CommitRequestBuilder(rawUrl, RequestAdapter); } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// - public class CheckMemberObjectsRequestBuilderPostRequestConfiguration { + public class CommitRequestBuilderPostRequestConfiguration { /// Request headers public RequestHeaders Headers { get; set; } /// Request options public IList Options { get; set; } /// - /// Instantiates a new checkMemberObjectsRequestBuilderPostRequestConfiguration and sets the default values. + /// Instantiates a new commitRequestBuilderPostRequestConfiguration and sets the default values. /// - public CheckMemberObjectsRequestBuilderPostRequestConfiguration() { + public CommitRequestBuilderPostRequestConfiguration() { Options = new List(); Headers = new RequestHeaders(); } diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs new file mode 100644 index 00000000000..276fdae8930 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs @@ -0,0 +1,261 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.Files.Item.Commit; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.Files.Item.RenewUpload; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.Files.Item { + /// + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + /// + public class MobileAppContentFileItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to call the commit method. + public CommitRequestBuilder Commit { get => + new CommitRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to call the renewUpload method. + public RenewUploadRequestBuilder RenewUpload { get => + new RenewUploadRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppContentFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppContentFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property files for deviceAppManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of files for this app content version. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property files in deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppContentFile body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppContentFile body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property files for deviceAppManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The list of files for this app content version. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentFileItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property files in deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentFileItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppContentFileItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppContentFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// The list of files for this app content version. + /// + public class MobileAppContentFileItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentFileItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppContentFileItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppContentFileItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppContentFileItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentFileItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppContentFileItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs new file mode 100644 index 00000000000..25d6384c59f --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs @@ -0,0 +1,97 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.Files.Item.RenewUpload { + /// + /// Provides operations to call the renewUpload method. + /// + public class RenewUploadRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new RenewUploadRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RenewUploadRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", pathParameters) { + } + /// + /// Instantiates a new RenewUploadRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RenewUploadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", rawUrl) { + } + /// + /// Renews the SAS URI for an application file upload. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Renews the SAS URI for an application file upload. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new RenewUploadRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public RenewUploadRequestBuilder WithUrl(string rawUrl) { + return new RenewUploadRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class RenewUploadRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new renewUploadRequestBuilderPostRequestConfiguration and sets the default values. + /// + public RenewUploadRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs new file mode 100644 index 00000000000..c68e8276c93 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs @@ -0,0 +1,261 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.ContainedApps; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.Files; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item { + /// + /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + /// + public class MobileAppContentItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + public ContainedAppsRequestBuilder ContainedApps { get => + new ContainedAppsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + public FilesRequestBuilder Files { get => + new FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new MobileAppContentItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppContentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppContentItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppContentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property contentVersions for deviceAppManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of content versions for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property contentVersions in deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppContent body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppContent body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property contentVersions for deviceAppManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The list of content versions for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property contentVersions in deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppContent body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppContent body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppContentItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppContentItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppContentItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// The list of content versions for this app. + /// + public class MobileAppContentItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppContentItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppContentItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppContentItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppContentItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppContentItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.cs index a68bed64b26..315128c8192 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.cs @@ -1,4 +1,7 @@ // +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.Assignments; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.Categories; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -14,6 +17,18 @@ namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp /// Casts the previous resource to androidLobApp. /// public class GraphAndroidLobAppRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + public AssignmentsRequestBuilder Assignments { get => + new AssignmentsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + public CategoriesRequestBuilder Categories { get => + new CategoriesRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + public ContentVersionsRequestBuilder ContentVersions { get => + new ContentVersionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new GraphAndroidLobAppRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/AssignmentsRequestBuilder.cs new file mode 100644 index 00000000000..c77bab8d5f4 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/AssignmentsRequestBuilder.cs @@ -0,0 +1,246 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidStoreApp.Assignments.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidStoreApp.Assignments.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidStoreApp.Assignments { + /// + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// + public class AssignmentsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// The unique identifier of mobileAppAssignment + public MobileAppAssignmentItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppAssignment%2Did", position); + return new MobileAppAssignmentItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new AssignmentsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AssignmentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new AssignmentsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create a new mobileAppAssignment object. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppAssignment body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppAssignment body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new AssignmentsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create a new mobileAppAssignment object. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public AssignmentsRequestBuilder WithUrl(string rawUrl) { + return new AssignmentsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// + public class AssignmentsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public AssignmentsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AssignmentsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new assignmentsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public AssignmentsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new assignmentsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public AssignmentsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..cd0fa9d5b11 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidStoreApp.Assignments.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/assignments/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/assignments/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs new file mode 100644 index 00000000000..fd1b49eb507 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs @@ -0,0 +1,254 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidStoreApp.Assignments.Item { + /// + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// + public class MobileAppAssignmentItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppAssignmentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppAssignmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Deletes a mobileAppAssignment. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the properties of a mobileAppAssignment object. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppAssignment body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppAssignment body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Deletes a mobileAppAssignment. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the properties of a mobileAppAssignment object. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppAssignmentItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppAssignmentItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// + public class MobileAppAssignmentItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppAssignmentItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppAssignmentItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/CategoriesRequestBuilder.cs new file mode 100644 index 00000000000..9835e8f37a9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/CategoriesRequestBuilder.cs @@ -0,0 +1,179 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidStoreApp.Categories.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidStoreApp.Categories.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidStoreApp.Categories { + /// + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// + public class CategoriesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// The unique identifier of mobileAppCategory + public MobileAppCategoryItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppCategory%2Did", position); + return new MobileAppCategoryItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new CategoriesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CategoriesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new CategoriesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CategoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of categories for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppCategoryCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of categories for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new CategoriesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CategoriesRequestBuilder WithUrl(string rawUrl) { + return new CategoriesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of categories for this app. + /// + public class CategoriesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CategoriesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CategoriesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CategoriesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new categoriesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CategoriesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..25edbbd2f7e --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidStoreApp.Categories.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/categories/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/categories/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs new file mode 100644 index 00000000000..6cdb2eb7db0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidStoreApp.Categories.Item { + /// + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// + public class MobileAppCategoryItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppCategoryItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppCategoryItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// The list of categories for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of categories for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppCategoryItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppCategoryItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppCategoryItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of categories for this app. + /// + public class MobileAppCategoryItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppCategoryItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppCategoryItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppCategoryItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppCategoryItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.cs index a3a82643a69..f02d43d87e1 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.cs @@ -1,4 +1,6 @@ // +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidStoreApp.Assignments; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidStoreApp.Categories; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -14,6 +16,14 @@ namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphAndroidStoreA /// Casts the previous resource to androidStoreApp. /// public class GraphAndroidStoreAppRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + public AssignmentsRequestBuilder Assignments { get => + new AssignmentsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + public CategoriesRequestBuilder Categories { get => + new CategoriesRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new GraphAndroidStoreAppRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/AssignmentsRequestBuilder.cs new file mode 100644 index 00000000000..3bd1d8fbe57 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/AssignmentsRequestBuilder.cs @@ -0,0 +1,246 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.Assignments.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.Assignments.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.Assignments { + /// + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// + public class AssignmentsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// The unique identifier of mobileAppAssignment + public MobileAppAssignmentItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppAssignment%2Did", position); + return new MobileAppAssignmentItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new AssignmentsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AssignmentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new AssignmentsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create a new mobileAppAssignment object. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppAssignment body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppAssignment body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new AssignmentsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create a new mobileAppAssignment object. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public AssignmentsRequestBuilder WithUrl(string rawUrl) { + return new AssignmentsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// + public class AssignmentsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public AssignmentsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AssignmentsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new assignmentsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public AssignmentsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new assignmentsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public AssignmentsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..eab48c58f1b --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.Assignments.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/assignments/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/assignments/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs new file mode 100644 index 00000000000..41088652d5e --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs @@ -0,0 +1,254 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.Assignments.Item { + /// + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// + public class MobileAppAssignmentItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppAssignmentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppAssignmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Deletes a mobileAppAssignment. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the properties of a mobileAppAssignment object. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppAssignment body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppAssignment body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Deletes a mobileAppAssignment. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the properties of a mobileAppAssignment object. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppAssignmentItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppAssignmentItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// + public class MobileAppAssignmentItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppAssignmentItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppAssignmentItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/CategoriesRequestBuilder.cs new file mode 100644 index 00000000000..0b49f7dfbac --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/CategoriesRequestBuilder.cs @@ -0,0 +1,179 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.Categories.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.Categories.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.Categories { + /// + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// + public class CategoriesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// The unique identifier of mobileAppCategory + public MobileAppCategoryItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppCategory%2Did", position); + return new MobileAppCategoryItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new CategoriesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CategoriesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new CategoriesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CategoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of categories for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppCategoryCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of categories for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new CategoriesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CategoriesRequestBuilder WithUrl(string rawUrl) { + return new CategoriesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of categories for this app. + /// + public class CategoriesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CategoriesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CategoriesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CategoriesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new categoriesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CategoriesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..2607f64ae9a --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.Categories.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/categories/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/categories/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs new file mode 100644 index 00000000000..164a1b12557 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.Categories.Item { + /// + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// + public class MobileAppCategoryItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppCategoryItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppCategoryItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// The list of categories for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of categories for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppCategoryItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppCategoryItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppCategoryItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of categories for this app. + /// + public class MobileAppCategoryItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppCategoryItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppCategoryItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppCategoryItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppCategoryItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/ContentVersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/ContentVersionsRequestBuilder.cs new file mode 100644 index 00000000000..c683224b198 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/ContentVersionsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions { + /// + /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + /// + public class ContentVersionsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + /// The unique identifier of mobileAppContent + public MobileAppContentItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppContent%2Did", position); + return new MobileAppContentItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new ContentVersionsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentVersionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ContentVersionsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentVersionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of content versions for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to contentVersions for deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppContent body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppContent body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of content versions for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ContentVersionsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to contentVersions for deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppContent body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppContent body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new ContentVersionsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ContentVersionsRequestBuilder WithUrl(string rawUrl) { + return new ContentVersionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of content versions for this app. + /// + public class ContentVersionsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContentVersionsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ContentVersionsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ContentVersionsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new contentVersionsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ContentVersionsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContentVersionsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new contentVersionsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public ContentVersionsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..13750206feb --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs new file mode 100644 index 00000000000..efeb0a65865 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.ContainedApps.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.ContainedApps.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.ContainedApps { + /// + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + /// + public class ContainedAppsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + /// The unique identifier of mobileContainedApp + public MobileContainedAppItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileContainedApp%2Did", position); + return new MobileContainedAppItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new ContainedAppsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContainedAppsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ContainedAppsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContainedAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedAppCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to containedApps for deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileContainedApp body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileContainedApp body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ContainedAppsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to containedApps for deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new ContainedAppsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ContainedAppsRequestBuilder WithUrl(string rawUrl) { + return new ContainedAppsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + public class ContainedAppsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContainedAppsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ContainedAppsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ContainedAppsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new containedAppsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ContainedAppsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContainedAppsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new containedAppsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public ContainedAppsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..47bb7dee97c --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.ContainedApps.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs new file mode 100644 index 00000000000..1c456cae259 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs @@ -0,0 +1,251 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.ContainedApps.Item { + /// + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + /// + public class MobileContainedAppItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileContainedAppItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileContainedAppItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property containedApps for deviceAppManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property containedApps in deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileContainedApp body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileContainedApp body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property containedApps for deviceAppManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property containedApps in deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileContainedAppItemRequestBuilder WithUrl(string rawUrl) { + return new MobileContainedAppItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + public class MobileContainedAppItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileContainedAppItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileContainedAppItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..daf825158b3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.Files.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..cdbd691be2d --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.Files.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.Files.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.Files { + /// + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + /// + public class FilesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + /// The unique identifier of mobileAppContentFile + public MobileAppContentFileItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppContentFile%2Did", position); + return new MobileAppContentFileItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new FilesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/files{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new FilesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/files{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of files for this app content version. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to files for deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppContentFile body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppContentFile body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of files for this app content version. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new FilesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to files for deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new FilesRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public FilesRequestBuilder WithUrl(string rawUrl) { + return new FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of files for this app content version. + /// + public class FilesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FilesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public FilesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new FilesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new filesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public FilesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FilesRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new filesRequestBuilderPostRequestConfiguration and sets the default values. + /// + public FilesRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs new file mode 100644 index 00000000000..3f7ef2711c6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs @@ -0,0 +1,65 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.Files.Item.Commit { + public class CommitPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The fileEncryptionInfo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.FileEncryptionInfo? FileEncryptionInfo { + get { return BackingStore?.Get("fileEncryptionInfo"); } + set { BackingStore?.Set("fileEncryptionInfo", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.FileEncryptionInfo FileEncryptionInfo { + get { return BackingStore?.Get("fileEncryptionInfo"); } + set { BackingStore?.Set("fileEncryptionInfo", value); } + } +#endif + /// + /// Instantiates a new commitPostRequestBody and sets the default values. + /// + public CommitPostRequestBody() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CommitPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(Microsoft.Graph.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs similarity index 56% rename from src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsRequestBuilder.cs rename to src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs index a96528fd3f7..b5977949498 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs @@ -8,38 +8,37 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.GetByIds { +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.Files.Item.Commit { /// - /// Provides operations to call the getByIds method. + /// Provides operations to call the commit method. /// - public class GetByIdsRequestBuilder : BaseRequestBuilder { + public class CommitRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new GetByIdsRequestBuilder and sets the default values. + /// Instantiates a new CommitRequestBuilder and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public GetByIdsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/getByIds", pathParameters) { + public CommitRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", pathParameters) { } /// - /// Instantiates a new GetByIdsRequestBuilder and sets the default values. + /// Instantiates a new CommitRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public GetByIdsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/getByIds", rawUrl) { + public CommitRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", rawUrl) { } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: - /// Find more info here + /// Commits a file of a given app. /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(CommitPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(GetByIdsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(CommitPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -47,19 +46,19 @@ public async Task PostAsync(GetByIdsPostRequestBody body, Acti {"4XX", ODataError.CreateFromDiscriminatorValue}, {"5XX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, GetByIdsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Commits a file of a given app. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, Action? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, Action? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, Action requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, Action requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation { @@ -67,10 +66,9 @@ public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { - var requestConfig = new GetByIdsRequestBuilderPostRequestConfiguration(); + var requestConfig = new CommitRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); @@ -81,21 +79,21 @@ public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// /// The raw URL to use for the request builder. - public GetByIdsRequestBuilder WithUrl(string rawUrl) { - return new GetByIdsRequestBuilder(rawUrl, RequestAdapter); + public CommitRequestBuilder WithUrl(string rawUrl) { + return new CommitRequestBuilder(rawUrl, RequestAdapter); } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// - public class GetByIdsRequestBuilderPostRequestConfiguration { + public class CommitRequestBuilderPostRequestConfiguration { /// Request headers public RequestHeaders Headers { get; set; } /// Request options public IList Options { get; set; } /// - /// Instantiates a new getByIdsRequestBuilderPostRequestConfiguration and sets the default values. + /// Instantiates a new commitRequestBuilderPostRequestConfiguration and sets the default values. /// - public GetByIdsRequestBuilderPostRequestConfiguration() { + public CommitRequestBuilderPostRequestConfiguration() { Options = new List(); Headers = new RequestHeaders(); } diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs new file mode 100644 index 00000000000..bbb97884635 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs @@ -0,0 +1,261 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.Files.Item.Commit; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.Files.Item.RenewUpload; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.Files.Item { + /// + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + /// + public class MobileAppContentFileItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to call the commit method. + public CommitRequestBuilder Commit { get => + new CommitRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to call the renewUpload method. + public RenewUploadRequestBuilder RenewUpload { get => + new RenewUploadRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppContentFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppContentFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property files for deviceAppManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of files for this app content version. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property files in deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppContentFile body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppContentFile body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property files for deviceAppManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The list of files for this app content version. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentFileItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property files in deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentFileItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppContentFileItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppContentFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// The list of files for this app content version. + /// + public class MobileAppContentFileItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentFileItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppContentFileItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppContentFileItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppContentFileItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentFileItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppContentFileItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs new file mode 100644 index 00000000000..33315d44f16 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs @@ -0,0 +1,97 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.Files.Item.RenewUpload { + /// + /// Provides operations to call the renewUpload method. + /// + public class RenewUploadRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new RenewUploadRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RenewUploadRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", pathParameters) { + } + /// + /// Instantiates a new RenewUploadRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RenewUploadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", rawUrl) { + } + /// + /// Renews the SAS URI for an application file upload. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Renews the SAS URI for an application file upload. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new RenewUploadRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public RenewUploadRequestBuilder WithUrl(string rawUrl) { + return new RenewUploadRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class RenewUploadRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new renewUploadRequestBuilderPostRequestConfiguration and sets the default values. + /// + public RenewUploadRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs new file mode 100644 index 00000000000..c4e2354f5ee --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs @@ -0,0 +1,261 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.ContainedApps; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.Files; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item { + /// + /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + /// + public class MobileAppContentItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + public ContainedAppsRequestBuilder ContainedApps { get => + new ContainedAppsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + public FilesRequestBuilder Files { get => + new FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new MobileAppContentItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppContentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppContentItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppContentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property contentVersions for deviceAppManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of content versions for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property contentVersions in deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppContent body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppContent body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property contentVersions for deviceAppManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The list of content versions for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property contentVersions in deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppContent body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppContent body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppContentItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppContentItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppContentItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// The list of content versions for this app. + /// + public class MobileAppContentItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppContentItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppContentItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppContentItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppContentItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppContentItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/GraphIosLobAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/GraphIosLobAppRequestBuilder.cs index 5240ce95c82..9f4e2884944 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/GraphIosLobAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/GraphIosLobAppRequestBuilder.cs @@ -1,4 +1,7 @@ // +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.Assignments; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.Categories; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -14,6 +17,18 @@ namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosLobApp { /// Casts the previous resource to iosLobApp. /// public class GraphIosLobAppRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + public AssignmentsRequestBuilder Assignments { get => + new AssignmentsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + public CategoriesRequestBuilder Categories { get => + new CategoriesRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + public ContentVersionsRequestBuilder ContentVersions { get => + new ContentVersionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new GraphIosLobAppRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/AssignmentsRequestBuilder.cs new file mode 100644 index 00000000000..64593539119 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/AssignmentsRequestBuilder.cs @@ -0,0 +1,246 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosStoreApp.Assignments.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosStoreApp.Assignments.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosStoreApp.Assignments { + /// + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// + public class AssignmentsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// The unique identifier of mobileAppAssignment + public MobileAppAssignmentItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppAssignment%2Did", position); + return new MobileAppAssignmentItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new AssignmentsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AssignmentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new AssignmentsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create a new mobileAppAssignment object. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppAssignment body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppAssignment body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new AssignmentsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create a new mobileAppAssignment object. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public AssignmentsRequestBuilder WithUrl(string rawUrl) { + return new AssignmentsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// + public class AssignmentsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public AssignmentsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AssignmentsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new assignmentsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public AssignmentsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new assignmentsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public AssignmentsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..3a429431af8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosStoreApp.Assignments.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/assignments/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/assignments/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs new file mode 100644 index 00000000000..e9c97f8f974 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs @@ -0,0 +1,254 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosStoreApp.Assignments.Item { + /// + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// + public class MobileAppAssignmentItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppAssignmentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppAssignmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Deletes a mobileAppAssignment. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the properties of a mobileAppAssignment object. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppAssignment body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppAssignment body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Deletes a mobileAppAssignment. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the properties of a mobileAppAssignment object. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppAssignmentItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppAssignmentItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// + public class MobileAppAssignmentItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppAssignmentItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppAssignmentItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/CategoriesRequestBuilder.cs new file mode 100644 index 00000000000..cf8a6e2a31c --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/CategoriesRequestBuilder.cs @@ -0,0 +1,179 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosStoreApp.Categories.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosStoreApp.Categories.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosStoreApp.Categories { + /// + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// + public class CategoriesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// The unique identifier of mobileAppCategory + public MobileAppCategoryItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppCategory%2Did", position); + return new MobileAppCategoryItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new CategoriesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CategoriesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new CategoriesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CategoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of categories for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppCategoryCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of categories for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new CategoriesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CategoriesRequestBuilder WithUrl(string rawUrl) { + return new CategoriesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of categories for this app. + /// + public class CategoriesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CategoriesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CategoriesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CategoriesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new categoriesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CategoriesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..3660c806cc1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosStoreApp.Categories.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/categories/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/categories/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs new file mode 100644 index 00000000000..49f742d0c23 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosStoreApp.Categories.Item { + /// + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// + public class MobileAppCategoryItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppCategoryItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppCategoryItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// The list of categories for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of categories for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppCategoryItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppCategoryItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppCategoryItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of categories for this app. + /// + public class MobileAppCategoryItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppCategoryItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppCategoryItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppCategoryItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppCategoryItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.cs index f0daf00e37d..8987f9eeb68 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.cs @@ -1,4 +1,6 @@ // +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosStoreApp.Assignments; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosStoreApp.Categories; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -14,6 +16,14 @@ namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosStoreApp { /// Casts the previous resource to iosStoreApp. /// public class GraphIosStoreAppRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + public AssignmentsRequestBuilder Assignments { get => + new AssignmentsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + public CategoriesRequestBuilder Categories { get => + new CategoriesRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new GraphIosStoreAppRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/AssignmentsRequestBuilder.cs new file mode 100644 index 00000000000..17883b07651 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/AssignmentsRequestBuilder.cs @@ -0,0 +1,246 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosVppApp.Assignments.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosVppApp.Assignments.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosVppApp.Assignments { + /// + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// + public class AssignmentsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// The unique identifier of mobileAppAssignment + public MobileAppAssignmentItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppAssignment%2Did", position); + return new MobileAppAssignmentItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new AssignmentsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AssignmentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new AssignmentsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create a new mobileAppAssignment object. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppAssignment body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppAssignment body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new AssignmentsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create a new mobileAppAssignment object. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public AssignmentsRequestBuilder WithUrl(string rawUrl) { + return new AssignmentsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// + public class AssignmentsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public AssignmentsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AssignmentsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new assignmentsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public AssignmentsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new assignmentsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public AssignmentsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..438bc8bd5b9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosVppApp.Assignments.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/assignments/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/assignments/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs new file mode 100644 index 00000000000..af9fc4d3e20 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs @@ -0,0 +1,254 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosVppApp.Assignments.Item { + /// + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// + public class MobileAppAssignmentItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppAssignmentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppAssignmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Deletes a mobileAppAssignment. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the properties of a mobileAppAssignment object. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppAssignment body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppAssignment body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Deletes a mobileAppAssignment. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the properties of a mobileAppAssignment object. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppAssignmentItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppAssignmentItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// + public class MobileAppAssignmentItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppAssignmentItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppAssignmentItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/CategoriesRequestBuilder.cs new file mode 100644 index 00000000000..d4fb643df53 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/CategoriesRequestBuilder.cs @@ -0,0 +1,179 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosVppApp.Categories.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosVppApp.Categories.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosVppApp.Categories { + /// + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// + public class CategoriesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// The unique identifier of mobileAppCategory + public MobileAppCategoryItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppCategory%2Did", position); + return new MobileAppCategoryItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new CategoriesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CategoriesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new CategoriesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CategoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of categories for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppCategoryCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of categories for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new CategoriesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CategoriesRequestBuilder WithUrl(string rawUrl) { + return new CategoriesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of categories for this app. + /// + public class CategoriesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CategoriesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CategoriesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CategoriesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new categoriesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CategoriesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..8f6abd8bf58 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosVppApp.Categories.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/categories/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/categories/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs new file mode 100644 index 00000000000..971edb2ac4f --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosVppApp.Categories.Item { + /// + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// + public class MobileAppCategoryItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppCategoryItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppCategoryItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// The list of categories for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of categories for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppCategoryItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppCategoryItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppCategoryItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of categories for this app. + /// + public class MobileAppCategoryItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppCategoryItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppCategoryItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppCategoryItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppCategoryItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/GraphIosVppAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/GraphIosVppAppRequestBuilder.cs index 2133aded66e..994535fcd7d 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/GraphIosVppAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/GraphIosVppAppRequestBuilder.cs @@ -1,4 +1,6 @@ // +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosVppApp.Assignments; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosVppApp.Categories; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -14,6 +16,14 @@ namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphIosVppApp { /// Casts the previous resource to iosVppApp. /// public class GraphIosVppAppRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + public AssignmentsRequestBuilder Assignments { get => + new AssignmentsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + public CategoriesRequestBuilder Categories { get => + new CategoriesRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new GraphIosVppAppRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/AssignmentsRequestBuilder.cs new file mode 100644 index 00000000000..eda8b27bd1d --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/AssignmentsRequestBuilder.cs @@ -0,0 +1,246 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.Assignments.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.Assignments.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.Assignments { + /// + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// + public class AssignmentsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// The unique identifier of mobileAppAssignment + public MobileAppAssignmentItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppAssignment%2Did", position); + return new MobileAppAssignmentItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new AssignmentsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AssignmentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new AssignmentsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create a new mobileAppAssignment object. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppAssignment body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppAssignment body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new AssignmentsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create a new mobileAppAssignment object. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public AssignmentsRequestBuilder WithUrl(string rawUrl) { + return new AssignmentsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// + public class AssignmentsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public AssignmentsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AssignmentsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new assignmentsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public AssignmentsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new assignmentsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public AssignmentsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..26d964d706d --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.Assignments.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/assignments/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/assignments/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs new file mode 100644 index 00000000000..ea36fc324cd --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs @@ -0,0 +1,254 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.Assignments.Item { + /// + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// + public class MobileAppAssignmentItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppAssignmentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppAssignmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Deletes a mobileAppAssignment. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the properties of a mobileAppAssignment object. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppAssignment body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppAssignment body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Deletes a mobileAppAssignment. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the properties of a mobileAppAssignment object. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppAssignmentItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppAssignmentItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// + public class MobileAppAssignmentItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppAssignmentItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppAssignmentItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/CategoriesRequestBuilder.cs new file mode 100644 index 00000000000..f41ff195b1f --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/CategoriesRequestBuilder.cs @@ -0,0 +1,179 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.Categories.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.Categories.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.Categories { + /// + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// + public class CategoriesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// The unique identifier of mobileAppCategory + public MobileAppCategoryItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppCategory%2Did", position); + return new MobileAppCategoryItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new CategoriesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CategoriesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new CategoriesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CategoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of categories for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppCategoryCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of categories for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new CategoriesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CategoriesRequestBuilder WithUrl(string rawUrl) { + return new CategoriesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of categories for this app. + /// + public class CategoriesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CategoriesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CategoriesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CategoriesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new categoriesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CategoriesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..ee4d83a25c0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.Categories.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/categories/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/categories/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs new file mode 100644 index 00000000000..0b0fe603c95 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.Categories.Item { + /// + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// + public class MobileAppCategoryItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppCategoryItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppCategoryItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// The list of categories for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of categories for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppCategoryItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppCategoryItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppCategoryItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of categories for this app. + /// + public class MobileAppCategoryItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppCategoryItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppCategoryItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppCategoryItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppCategoryItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/ContentVersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/ContentVersionsRequestBuilder.cs new file mode 100644 index 00000000000..66eaeb8f319 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/ContentVersionsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions { + /// + /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + /// + public class ContentVersionsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + /// The unique identifier of mobileAppContent + public MobileAppContentItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppContent%2Did", position); + return new MobileAppContentItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new ContentVersionsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentVersionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ContentVersionsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentVersionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of content versions for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to contentVersions for deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppContent body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppContent body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of content versions for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ContentVersionsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to contentVersions for deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppContent body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppContent body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new ContentVersionsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ContentVersionsRequestBuilder WithUrl(string rawUrl) { + return new ContentVersionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of content versions for this app. + /// + public class ContentVersionsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContentVersionsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ContentVersionsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ContentVersionsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new contentVersionsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ContentVersionsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContentVersionsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new contentVersionsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public ContentVersionsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..eced2f4522c --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs new file mode 100644 index 00000000000..f089ec45d9c --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.ContainedApps.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.ContainedApps.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.ContainedApps { + /// + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + /// + public class ContainedAppsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + /// The unique identifier of mobileContainedApp + public MobileContainedAppItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileContainedApp%2Did", position); + return new MobileContainedAppItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new ContainedAppsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContainedAppsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ContainedAppsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContainedAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedAppCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to containedApps for deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileContainedApp body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileContainedApp body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ContainedAppsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to containedApps for deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new ContainedAppsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ContainedAppsRequestBuilder WithUrl(string rawUrl) { + return new ContainedAppsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + public class ContainedAppsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContainedAppsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ContainedAppsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ContainedAppsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new containedAppsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ContainedAppsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContainedAppsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new containedAppsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public ContainedAppsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..dced252a345 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.ContainedApps.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs new file mode 100644 index 00000000000..68285a5f21e --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs @@ -0,0 +1,251 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.ContainedApps.Item { + /// + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + /// + public class MobileContainedAppItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileContainedAppItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileContainedAppItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property containedApps for deviceAppManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property containedApps in deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileContainedApp body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileContainedApp body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property containedApps for deviceAppManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property containedApps in deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileContainedAppItemRequestBuilder WithUrl(string rawUrl) { + return new MobileContainedAppItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + public class MobileContainedAppItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileContainedAppItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileContainedAppItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..a08bf8eea8a --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.Files.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/FilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..a63a4a38c16 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.Files.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.Files.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.Files { + /// + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + /// + public class FilesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + /// The unique identifier of mobileAppContentFile + public MobileAppContentFileItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppContentFile%2Did", position); + return new MobileAppContentFileItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new FilesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/files{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new FilesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/files{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of files for this app content version. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to files for deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppContentFile body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppContentFile body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of files for this app content version. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new FilesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to files for deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new FilesRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public FilesRequestBuilder WithUrl(string rawUrl) { + return new FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of files for this app content version. + /// + public class FilesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FilesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public FilesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new FilesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new filesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public FilesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FilesRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new filesRequestBuilderPostRequestConfiguration and sets the default values. + /// + public FilesRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs new file mode 100644 index 00000000000..1e99d076f7f --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs @@ -0,0 +1,65 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.Files.Item.Commit { + public class CommitPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The fileEncryptionInfo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.FileEncryptionInfo? FileEncryptionInfo { + get { return BackingStore?.Get("fileEncryptionInfo"); } + set { BackingStore?.Set("fileEncryptionInfo", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.FileEncryptionInfo FileEncryptionInfo { + get { return BackingStore?.Get("fileEncryptionInfo"); } + set { BackingStore?.Set("fileEncryptionInfo", value); } + } +#endif + /// + /// Instantiates a new commitPostRequestBody and sets the default values. + /// + public CommitPostRequestBody() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CommitPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(Microsoft.Graph.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs new file mode 100644 index 00000000000..9f69854fab4 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs @@ -0,0 +1,102 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.Files.Item.Commit { + /// + /// Provides operations to call the commit method. + /// + public class CommitRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CommitRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CommitRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", pathParameters) { + } + /// + /// Instantiates a new CommitRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CommitRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", rawUrl) { + } + /// + /// Commits a file of a given app. + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(CommitPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(CommitPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Commits a file of a given app. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new CommitRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CommitRequestBuilder WithUrl(string rawUrl) { + return new CommitRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CommitRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new commitRequestBuilderPostRequestConfiguration and sets the default values. + /// + public CommitRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs new file mode 100644 index 00000000000..fbbf407be30 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs @@ -0,0 +1,261 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.Files.Item.Commit; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.Files.Item.RenewUpload; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.Files.Item { + /// + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + /// + public class MobileAppContentFileItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to call the commit method. + public CommitRequestBuilder Commit { get => + new CommitRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to call the renewUpload method. + public RenewUploadRequestBuilder RenewUpload { get => + new RenewUploadRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppContentFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppContentFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property files for deviceAppManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of files for this app content version. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property files in deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppContentFile body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppContentFile body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property files for deviceAppManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The list of files for this app content version. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentFileItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property files in deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentFileItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppContentFileItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppContentFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// The list of files for this app content version. + /// + public class MobileAppContentFileItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentFileItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppContentFileItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppContentFileItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppContentFileItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentFileItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppContentFileItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs new file mode 100644 index 00000000000..581222fa842 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs @@ -0,0 +1,97 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.Files.Item.RenewUpload { + /// + /// Provides operations to call the renewUpload method. + /// + public class RenewUploadRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new RenewUploadRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RenewUploadRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", pathParameters) { + } + /// + /// Instantiates a new RenewUploadRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RenewUploadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", rawUrl) { + } + /// + /// Renews the SAS URI for an application file upload. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Renews the SAS URI for an application file upload. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new RenewUploadRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public RenewUploadRequestBuilder WithUrl(string rawUrl) { + return new RenewUploadRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class RenewUploadRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new renewUploadRequestBuilderPostRequestConfiguration and sets the default values. + /// + public RenewUploadRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs new file mode 100644 index 00000000000..c240f02e6f9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs @@ -0,0 +1,261 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.ContainedApps; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.Files; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item { + /// + /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + /// + public class MobileAppContentItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + public ContainedAppsRequestBuilder ContainedApps { get => + new ContainedAppsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + public FilesRequestBuilder Files { get => + new FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new MobileAppContentItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppContentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppContentItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppContentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property contentVersions for deviceAppManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of content versions for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property contentVersions in deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppContent body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppContent body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property contentVersions for deviceAppManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The list of content versions for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property contentVersions in deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppContent body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppContent body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppContentItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppContentItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppContentItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// The list of content versions for this app. + /// + public class MobileAppContentItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppContentItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppContentItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppContentItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppContentItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppContentItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.cs index 7edd3314c07..f6bceec0959 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.cs @@ -1,4 +1,7 @@ // +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.Assignments; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.Categories; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -14,6 +17,18 @@ namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp { /// Casts the previous resource to macOSDmgApp. /// public class GraphMacOSDmgAppRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + public AssignmentsRequestBuilder Assignments { get => + new AssignmentsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + public CategoriesRequestBuilder Categories { get => + new CategoriesRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + public ContentVersionsRequestBuilder ContentVersions { get => + new ContentVersionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new GraphMacOSDmgAppRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/AssignmentsRequestBuilder.cs new file mode 100644 index 00000000000..1f0066f20d0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/AssignmentsRequestBuilder.cs @@ -0,0 +1,246 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.Assignments.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.Assignments.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.Assignments { + /// + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// + public class AssignmentsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// The unique identifier of mobileAppAssignment + public MobileAppAssignmentItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppAssignment%2Did", position); + return new MobileAppAssignmentItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new AssignmentsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AssignmentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new AssignmentsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create a new mobileAppAssignment object. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppAssignment body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppAssignment body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new AssignmentsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create a new mobileAppAssignment object. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public AssignmentsRequestBuilder WithUrl(string rawUrl) { + return new AssignmentsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// + public class AssignmentsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public AssignmentsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AssignmentsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new assignmentsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public AssignmentsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new assignmentsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public AssignmentsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..66643fc2b13 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.Assignments.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/assignments/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/assignments/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs new file mode 100644 index 00000000000..22b2aaa488d --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs @@ -0,0 +1,254 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.Assignments.Item { + /// + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// + public class MobileAppAssignmentItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppAssignmentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppAssignmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Deletes a mobileAppAssignment. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the properties of a mobileAppAssignment object. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppAssignment body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppAssignment body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Deletes a mobileAppAssignment. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the properties of a mobileAppAssignment object. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppAssignmentItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppAssignmentItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// + public class MobileAppAssignmentItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppAssignmentItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppAssignmentItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/CategoriesRequestBuilder.cs new file mode 100644 index 00000000000..0d6f397eb1b --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/CategoriesRequestBuilder.cs @@ -0,0 +1,179 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.Categories.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.Categories.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.Categories { + /// + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// + public class CategoriesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// The unique identifier of mobileAppCategory + public MobileAppCategoryItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppCategory%2Did", position); + return new MobileAppCategoryItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new CategoriesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CategoriesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new CategoriesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CategoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of categories for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppCategoryCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of categories for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new CategoriesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CategoriesRequestBuilder WithUrl(string rawUrl) { + return new CategoriesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of categories for this app. + /// + public class CategoriesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CategoriesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CategoriesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CategoriesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new categoriesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CategoriesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..b2684119c93 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.Categories.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/categories/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/categories/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs new file mode 100644 index 00000000000..a5091249e14 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.Categories.Item { + /// + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// + public class MobileAppCategoryItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppCategoryItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppCategoryItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// The list of categories for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of categories for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppCategoryItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppCategoryItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppCategoryItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of categories for this app. + /// + public class MobileAppCategoryItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppCategoryItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppCategoryItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppCategoryItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppCategoryItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/ContentVersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/ContentVersionsRequestBuilder.cs new file mode 100644 index 00000000000..fa435936e92 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/ContentVersionsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions { + /// + /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + /// + public class ContentVersionsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + /// The unique identifier of mobileAppContent + public MobileAppContentItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppContent%2Did", position); + return new MobileAppContentItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new ContentVersionsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentVersionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ContentVersionsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentVersionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of content versions for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to contentVersions for deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppContent body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppContent body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of content versions for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ContentVersionsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to contentVersions for deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppContent body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppContent body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new ContentVersionsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ContentVersionsRequestBuilder WithUrl(string rawUrl) { + return new ContentVersionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of content versions for this app. + /// + public class ContentVersionsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContentVersionsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ContentVersionsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ContentVersionsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new contentVersionsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ContentVersionsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContentVersionsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new contentVersionsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public ContentVersionsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..e708d3c7c52 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs new file mode 100644 index 00000000000..617f1fe54b0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.ContainedApps.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.ContainedApps.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.ContainedApps { + /// + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + /// + public class ContainedAppsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + /// The unique identifier of mobileContainedApp + public MobileContainedAppItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileContainedApp%2Did", position); + return new MobileContainedAppItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new ContainedAppsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContainedAppsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ContainedAppsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContainedAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedAppCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to containedApps for deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileContainedApp body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileContainedApp body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ContainedAppsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to containedApps for deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new ContainedAppsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ContainedAppsRequestBuilder WithUrl(string rawUrl) { + return new ContainedAppsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + public class ContainedAppsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContainedAppsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ContainedAppsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ContainedAppsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new containedAppsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ContainedAppsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContainedAppsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new containedAppsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public ContainedAppsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..80ad43c5204 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.ContainedApps.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs new file mode 100644 index 00000000000..c3fc52c5eeb --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs @@ -0,0 +1,251 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.ContainedApps.Item { + /// + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + /// + public class MobileContainedAppItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileContainedAppItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileContainedAppItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property containedApps for deviceAppManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property containedApps in deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileContainedApp body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileContainedApp body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property containedApps for deviceAppManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property containedApps in deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileContainedAppItemRequestBuilder WithUrl(string rawUrl) { + return new MobileContainedAppItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + public class MobileContainedAppItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileContainedAppItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileContainedAppItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..48613a04cbf --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.Files.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..f3aa13289d6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.Files.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.Files.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.Files { + /// + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + /// + public class FilesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + /// The unique identifier of mobileAppContentFile + public MobileAppContentFileItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppContentFile%2Did", position); + return new MobileAppContentFileItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new FilesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/files{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new FilesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/files{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of files for this app content version. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to files for deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppContentFile body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppContentFile body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of files for this app content version. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new FilesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to files for deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new FilesRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public FilesRequestBuilder WithUrl(string rawUrl) { + return new FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of files for this app content version. + /// + public class FilesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FilesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public FilesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new FilesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new filesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public FilesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FilesRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new filesRequestBuilderPostRequestConfiguration and sets the default values. + /// + public FilesRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs new file mode 100644 index 00000000000..330534a6d81 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs @@ -0,0 +1,65 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.Files.Item.Commit { + public class CommitPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The fileEncryptionInfo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.FileEncryptionInfo? FileEncryptionInfo { + get { return BackingStore?.Get("fileEncryptionInfo"); } + set { BackingStore?.Set("fileEncryptionInfo", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.FileEncryptionInfo FileEncryptionInfo { + get { return BackingStore?.Get("fileEncryptionInfo"); } + set { BackingStore?.Set("fileEncryptionInfo", value); } + } +#endif + /// + /// Instantiates a new commitPostRequestBody and sets the default values. + /// + public CommitPostRequestBody() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CommitPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(Microsoft.Graph.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs new file mode 100644 index 00000000000..0e5cc48586f --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs @@ -0,0 +1,102 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.Files.Item.Commit { + /// + /// Provides operations to call the commit method. + /// + public class CommitRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CommitRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CommitRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", pathParameters) { + } + /// + /// Instantiates a new CommitRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CommitRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", rawUrl) { + } + /// + /// Commits a file of a given app. + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(CommitPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(CommitPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Commits a file of a given app. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new CommitRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CommitRequestBuilder WithUrl(string rawUrl) { + return new CommitRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CommitRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new commitRequestBuilderPostRequestConfiguration and sets the default values. + /// + public CommitRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs new file mode 100644 index 00000000000..6e2269c6480 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs @@ -0,0 +1,261 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.Files.Item.Commit; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.Files.Item.RenewUpload; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.Files.Item { + /// + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + /// + public class MobileAppContentFileItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to call the commit method. + public CommitRequestBuilder Commit { get => + new CommitRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to call the renewUpload method. + public RenewUploadRequestBuilder RenewUpload { get => + new RenewUploadRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppContentFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppContentFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property files for deviceAppManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of files for this app content version. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property files in deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppContentFile body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppContentFile body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property files for deviceAppManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The list of files for this app content version. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentFileItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property files in deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentFileItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppContentFileItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppContentFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// The list of files for this app content version. + /// + public class MobileAppContentFileItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentFileItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppContentFileItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppContentFileItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppContentFileItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentFileItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppContentFileItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs new file mode 100644 index 00000000000..b62a3caf782 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs @@ -0,0 +1,97 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.Files.Item.RenewUpload { + /// + /// Provides operations to call the renewUpload method. + /// + public class RenewUploadRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new RenewUploadRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RenewUploadRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", pathParameters) { + } + /// + /// Instantiates a new RenewUploadRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RenewUploadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", rawUrl) { + } + /// + /// Renews the SAS URI for an application file upload. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Renews the SAS URI for an application file upload. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new RenewUploadRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public RenewUploadRequestBuilder WithUrl(string rawUrl) { + return new RenewUploadRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class RenewUploadRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new renewUploadRequestBuilderPostRequestConfiguration and sets the default values. + /// + public RenewUploadRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs new file mode 100644 index 00000000000..ec57c61ded1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs @@ -0,0 +1,261 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.ContainedApps; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.Files; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item { + /// + /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + /// + public class MobileAppContentItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + public ContainedAppsRequestBuilder ContainedApps { get => + new ContainedAppsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + public FilesRequestBuilder Files { get => + new FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new MobileAppContentItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppContentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppContentItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppContentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property contentVersions for deviceAppManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of content versions for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property contentVersions in deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppContent body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppContent body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property contentVersions for deviceAppManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The list of content versions for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property contentVersions in deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppContent body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppContent body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppContentItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppContentItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppContentItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// The list of content versions for this app. + /// + public class MobileAppContentItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppContentItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppContentItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppContentItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppContentItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppContentItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.cs index 53eefc94221..329955165be 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.cs @@ -1,4 +1,7 @@ // +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.Assignments; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.Categories; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -14,6 +17,18 @@ namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp { /// Casts the previous resource to macOSLobApp. /// public class GraphMacOSLobAppRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + public AssignmentsRequestBuilder Assignments { get => + new AssignmentsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + public CategoriesRequestBuilder Categories { get => + new CategoriesRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + public ContentVersionsRequestBuilder ContentVersions { get => + new ContentVersionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new GraphMacOSLobAppRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/AssignmentsRequestBuilder.cs new file mode 100644 index 00000000000..bd994c8d523 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/AssignmentsRequestBuilder.cs @@ -0,0 +1,246 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.Assignments.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.Assignments.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.Assignments { + /// + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// + public class AssignmentsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// The unique identifier of mobileAppAssignment + public MobileAppAssignmentItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppAssignment%2Did", position); + return new MobileAppAssignmentItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new AssignmentsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AssignmentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new AssignmentsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create a new mobileAppAssignment object. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppAssignment body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppAssignment body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new AssignmentsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create a new mobileAppAssignment object. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public AssignmentsRequestBuilder WithUrl(string rawUrl) { + return new AssignmentsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// + public class AssignmentsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public AssignmentsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AssignmentsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new assignmentsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public AssignmentsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new assignmentsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public AssignmentsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..8063fb1b0db --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.Assignments.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/assignments/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/assignments/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs new file mode 100644 index 00000000000..1b707305cdf --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs @@ -0,0 +1,254 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.Assignments.Item { + /// + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// + public class MobileAppAssignmentItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppAssignmentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppAssignmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Deletes a mobileAppAssignment. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the properties of a mobileAppAssignment object. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppAssignment body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppAssignment body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Deletes a mobileAppAssignment. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the properties of a mobileAppAssignment object. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppAssignmentItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppAssignmentItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// + public class MobileAppAssignmentItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppAssignmentItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppAssignmentItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/CategoriesRequestBuilder.cs new file mode 100644 index 00000000000..d6266738d17 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/CategoriesRequestBuilder.cs @@ -0,0 +1,179 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.Categories.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.Categories.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.Categories { + /// + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// + public class CategoriesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// The unique identifier of mobileAppCategory + public MobileAppCategoryItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppCategory%2Did", position); + return new MobileAppCategoryItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new CategoriesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CategoriesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new CategoriesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CategoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of categories for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppCategoryCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of categories for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new CategoriesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CategoriesRequestBuilder WithUrl(string rawUrl) { + return new CategoriesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of categories for this app. + /// + public class CategoriesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CategoriesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CategoriesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CategoriesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new categoriesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CategoriesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..6ea0904716f --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.Categories.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/categories/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/categories/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs new file mode 100644 index 00000000000..a002fd66c20 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.Categories.Item { + /// + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// + public class MobileAppCategoryItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppCategoryItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppCategoryItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// The list of categories for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of categories for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppCategoryItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppCategoryItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppCategoryItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of categories for this app. + /// + public class MobileAppCategoryItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppCategoryItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppCategoryItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppCategoryItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppCategoryItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.cs new file mode 100644 index 00000000000..d64e851a50e --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions { + /// + /// Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. + /// + public class ContentVersionsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. + /// The unique identifier of mobileAppContent + public MobileAppContentItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppContent%2Did", position); + return new MobileAppContentItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new ContentVersionsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentVersionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ContentVersionsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentVersionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of content versions for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to contentVersions for deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppContent body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppContent body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of content versions for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ContentVersionsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to contentVersions for deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppContent body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppContent body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new ContentVersionsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ContentVersionsRequestBuilder WithUrl(string rawUrl) { + return new ContentVersionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of content versions for this app. + /// + public class ContentVersionsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContentVersionsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ContentVersionsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ContentVersionsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new contentVersionsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ContentVersionsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContentVersionsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new contentVersionsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public ContentVersionsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..184638ef90a --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs new file mode 100644 index 00000000000..c53ec8e80c0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.ContainedApps.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.ContainedApps.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.ContainedApps { + /// + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + /// + public class ContainedAppsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + /// The unique identifier of mobileContainedApp + public MobileContainedAppItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileContainedApp%2Did", position); + return new MobileContainedAppItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new ContainedAppsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContainedAppsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ContainedAppsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContainedAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedAppCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to containedApps for deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileContainedApp body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileContainedApp body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ContainedAppsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to containedApps for deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new ContainedAppsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ContainedAppsRequestBuilder WithUrl(string rawUrl) { + return new ContainedAppsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + public class ContainedAppsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContainedAppsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ContainedAppsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ContainedAppsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new containedAppsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ContainedAppsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContainedAppsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new containedAppsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public ContainedAppsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..c7e7f5a3495 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.ContainedApps.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs new file mode 100644 index 00000000000..25ca89fabd8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs @@ -0,0 +1,251 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.ContainedApps.Item { + /// + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + /// + public class MobileContainedAppItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileContainedAppItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileContainedAppItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property containedApps for deviceAppManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property containedApps in deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileContainedApp body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileContainedApp body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property containedApps for deviceAppManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property containedApps in deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileContainedAppItemRequestBuilder WithUrl(string rawUrl) { + return new MobileContainedAppItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + public class MobileContainedAppItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileContainedAppItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileContainedAppItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..b04f307f6fd --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.Files.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..95b4bea5f0d --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.Files.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.Files.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.Files { + /// + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + /// + public class FilesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + /// The unique identifier of mobileAppContentFile + public MobileAppContentFileItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppContentFile%2Did", position); + return new MobileAppContentFileItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new FilesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/files{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new FilesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/files{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of files for this app content version. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to files for deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppContentFile body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppContentFile body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of files for this app content version. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new FilesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to files for deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new FilesRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public FilesRequestBuilder WithUrl(string rawUrl) { + return new FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of files for this app content version. + /// + public class FilesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FilesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public FilesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new FilesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new filesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public FilesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FilesRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new filesRequestBuilderPostRequestConfiguration and sets the default values. + /// + public FilesRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs new file mode 100644 index 00000000000..132c31f3aa0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs @@ -0,0 +1,65 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.Files.Item.Commit { + public class CommitPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The fileEncryptionInfo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.FileEncryptionInfo? FileEncryptionInfo { + get { return BackingStore?.Get("fileEncryptionInfo"); } + set { BackingStore?.Set("fileEncryptionInfo", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.FileEncryptionInfo FileEncryptionInfo { + get { return BackingStore?.Get("fileEncryptionInfo"); } + set { BackingStore?.Set("fileEncryptionInfo", value); } + } +#endif + /// + /// Instantiates a new commitPostRequestBody and sets the default values. + /// + public CommitPostRequestBody() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CommitPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(Microsoft.Graph.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs similarity index 51% rename from src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs rename to src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs index 601f79e5971..f624177730b 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs @@ -8,38 +8,37 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.GetMemberObjects { +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.Files.Item.Commit { /// - /// Provides operations to call the getMemberObjects method. + /// Provides operations to call the commit method. /// - public class GetMemberObjectsRequestBuilder : BaseRequestBuilder { + public class CommitRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new GetMemberObjectsRequestBuilder and sets the default values. + /// Instantiates a new CommitRequestBuilder and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public GetMemberObjectsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/getMemberObjects", pathParameters) { + public CommitRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", pathParameters) { } /// - /// Instantiates a new GetMemberObjectsRequestBuilder and sets the default values. + /// Instantiates a new CommitRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public GetMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/getMemberObjects", rawUrl) { + public CommitRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", rawUrl) { } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. - /// Find more info here + /// Commits a file of a given app. /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(CommitPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(GetMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(CommitPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -47,19 +46,19 @@ public async Task PostAsync(GetMemberObjectsPostReques {"4XX", ODataError.CreateFromDiscriminatorValue}, {"5XX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Commits a file of a given app. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, Action? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBody body, Action requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, Action requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation { @@ -67,10 +66,9 @@ public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { - var requestConfig = new GetMemberObjectsRequestBuilderPostRequestConfiguration(); + var requestConfig = new CommitRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); @@ -81,21 +79,21 @@ public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBo /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// /// The raw URL to use for the request builder. - public GetMemberObjectsRequestBuilder WithUrl(string rawUrl) { - return new GetMemberObjectsRequestBuilder(rawUrl, RequestAdapter); + public CommitRequestBuilder WithUrl(string rawUrl) { + return new CommitRequestBuilder(rawUrl, RequestAdapter); } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// - public class GetMemberObjectsRequestBuilderPostRequestConfiguration { + public class CommitRequestBuilderPostRequestConfiguration { /// Request headers public RequestHeaders Headers { get; set; } /// Request options public IList Options { get; set; } /// - /// Instantiates a new getMemberObjectsRequestBuilderPostRequestConfiguration and sets the default values. + /// Instantiates a new commitRequestBuilderPostRequestConfiguration and sets the default values. /// - public GetMemberObjectsRequestBuilderPostRequestConfiguration() { + public CommitRequestBuilderPostRequestConfiguration() { Options = new List(); Headers = new RequestHeaders(); } diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs new file mode 100644 index 00000000000..e302f14e654 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs @@ -0,0 +1,261 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.Files.Item.Commit; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.Files.Item.RenewUpload; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.Files.Item { + /// + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + /// + public class MobileAppContentFileItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to call the commit method. + public CommitRequestBuilder Commit { get => + new CommitRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to call the renewUpload method. + public RenewUploadRequestBuilder RenewUpload { get => + new RenewUploadRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppContentFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppContentFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property files for deviceAppManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of files for this app content version. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property files in deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppContentFile body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppContentFile body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property files for deviceAppManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The list of files for this app content version. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentFileItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property files in deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentFileItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppContentFileItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppContentFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// The list of files for this app content version. + /// + public class MobileAppContentFileItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentFileItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppContentFileItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppContentFileItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppContentFileItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentFileItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppContentFileItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs new file mode 100644 index 00000000000..8409d018815 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs @@ -0,0 +1,97 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.Files.Item.RenewUpload { + /// + /// Provides operations to call the renewUpload method. + /// + public class RenewUploadRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new RenewUploadRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RenewUploadRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", pathParameters) { + } + /// + /// Instantiates a new RenewUploadRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RenewUploadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", rawUrl) { + } + /// + /// Renews the SAS URI for an application file upload. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Renews the SAS URI for an application file upload. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new RenewUploadRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public RenewUploadRequestBuilder WithUrl(string rawUrl) { + return new RenewUploadRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class RenewUploadRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new renewUploadRequestBuilderPostRequestConfiguration and sets the default values. + /// + public RenewUploadRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs new file mode 100644 index 00000000000..5590a97a233 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs @@ -0,0 +1,261 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.ContainedApps; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.Files; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item { + /// + /// Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. + /// + public class MobileAppContentItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + public ContainedAppsRequestBuilder ContainedApps { get => + new ContainedAppsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + public FilesRequestBuilder Files { get => + new FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new MobileAppContentItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppContentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppContentItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppContentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property contentVersions for deviceAppManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of content versions for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property contentVersions in deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppContent body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppContent body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property contentVersions for deviceAppManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The list of content versions for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property contentVersions in deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppContent body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppContent body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppContentItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppContentItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppContentItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// The list of content versions for this app. + /// + public class MobileAppContentItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppContentItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppContentItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppContentItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppContentItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppContentItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.cs index d21ec46640d..d8cd9d5bffc 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.cs @@ -1,4 +1,7 @@ // +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.Assignments; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.Categories; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -14,6 +17,18 @@ namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedAndroi /// Casts the previous resource to managedAndroidLobApp. /// public class GraphManagedAndroidLobAppRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + public AssignmentsRequestBuilder Assignments { get => + new AssignmentsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + public CategoriesRequestBuilder Categories { get => + new CategoriesRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. + public ContentVersionsRequestBuilder ContentVersions { get => + new ContentVersionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new GraphManagedAndroidLobAppRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/AssignmentsRequestBuilder.cs new file mode 100644 index 00000000000..61d17e1c456 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/AssignmentsRequestBuilder.cs @@ -0,0 +1,246 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Assignments.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Assignments.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Assignments { + /// + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// + public class AssignmentsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// The unique identifier of mobileAppAssignment + public MobileAppAssignmentItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppAssignment%2Did", position); + return new MobileAppAssignmentItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new AssignmentsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AssignmentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new AssignmentsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create a new mobileAppAssignment object. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppAssignment body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppAssignment body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new AssignmentsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create a new mobileAppAssignment object. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public AssignmentsRequestBuilder WithUrl(string rawUrl) { + return new AssignmentsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// + public class AssignmentsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public AssignmentsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AssignmentsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new assignmentsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public AssignmentsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new assignmentsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public AssignmentsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..46acbdb7b46 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Assignments.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/assignments/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/assignments/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs new file mode 100644 index 00000000000..54d9345dc2f --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs @@ -0,0 +1,254 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Assignments.Item { + /// + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// + public class MobileAppAssignmentItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppAssignmentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppAssignmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Deletes a mobileAppAssignment. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the properties of a mobileAppAssignment object. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppAssignment body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppAssignment body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Deletes a mobileAppAssignment. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the properties of a mobileAppAssignment object. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppAssignmentItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppAssignmentItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// + public class MobileAppAssignmentItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppAssignmentItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppAssignmentItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/CategoriesRequestBuilder.cs new file mode 100644 index 00000000000..9ae0f2b0213 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/CategoriesRequestBuilder.cs @@ -0,0 +1,179 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Categories.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Categories.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Categories { + /// + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// + public class CategoriesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// The unique identifier of mobileAppCategory + public MobileAppCategoryItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppCategory%2Did", position); + return new MobileAppCategoryItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new CategoriesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CategoriesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new CategoriesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CategoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of categories for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppCategoryCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of categories for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new CategoriesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CategoriesRequestBuilder WithUrl(string rawUrl) { + return new CategoriesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of categories for this app. + /// + public class CategoriesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CategoriesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CategoriesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CategoriesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new categoriesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CategoriesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..563cd59c369 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Categories.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/categories/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/categories/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs new file mode 100644 index 00000000000..bde52117e9b --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Categories.Item { + /// + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// + public class MobileAppCategoryItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppCategoryItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppCategoryItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// The list of categories for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of categories for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppCategoryItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppCategoryItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppCategoryItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of categories for this app. + /// + public class MobileAppCategoryItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppCategoryItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppCategoryItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppCategoryItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppCategoryItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/ContentVersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/ContentVersionsRequestBuilder.cs new file mode 100644 index 00000000000..1c99eb272d9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/ContentVersionsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions { + /// + /// Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. + /// + public class ContentVersionsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. + /// The unique identifier of mobileAppContent + public MobileAppContentItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppContent%2Did", position); + return new MobileAppContentItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new ContentVersionsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentVersionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ContentVersionsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentVersionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of content versions for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to contentVersions for deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppContent body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppContent body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of content versions for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ContentVersionsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to contentVersions for deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppContent body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppContent body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new ContentVersionsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ContentVersionsRequestBuilder WithUrl(string rawUrl) { + return new ContentVersionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of content versions for this app. + /// + public class ContentVersionsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContentVersionsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ContentVersionsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ContentVersionsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new contentVersionsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ContentVersionsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContentVersionsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new contentVersionsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public ContentVersionsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..2da8cb7ae75 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs new file mode 100644 index 00000000000..4176a1c2069 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.ContainedApps.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.ContainedApps.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.ContainedApps { + /// + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + /// + public class ContainedAppsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + /// The unique identifier of mobileContainedApp + public MobileContainedAppItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileContainedApp%2Did", position); + return new MobileContainedAppItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new ContainedAppsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContainedAppsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ContainedAppsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContainedAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedAppCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to containedApps for deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileContainedApp body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileContainedApp body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ContainedAppsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to containedApps for deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new ContainedAppsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ContainedAppsRequestBuilder WithUrl(string rawUrl) { + return new ContainedAppsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + public class ContainedAppsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContainedAppsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ContainedAppsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ContainedAppsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new containedAppsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ContainedAppsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContainedAppsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new containedAppsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public ContainedAppsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..1244d40fe03 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.ContainedApps.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs new file mode 100644 index 00000000000..286463f9aad --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs @@ -0,0 +1,251 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.ContainedApps.Item { + /// + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + /// + public class MobileContainedAppItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileContainedAppItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileContainedAppItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property containedApps for deviceAppManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property containedApps in deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileContainedApp body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileContainedApp body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property containedApps for deviceAppManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property containedApps in deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileContainedAppItemRequestBuilder WithUrl(string rawUrl) { + return new MobileContainedAppItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + public class MobileContainedAppItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileContainedAppItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileContainedAppItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..ab07930acc8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.Files.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..39d6d2ad496 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.Files.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.Files.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.Files { + /// + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + /// + public class FilesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + /// The unique identifier of mobileAppContentFile + public MobileAppContentFileItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppContentFile%2Did", position); + return new MobileAppContentFileItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new FilesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/files{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new FilesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/files{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of files for this app content version. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to files for deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppContentFile body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppContentFile body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of files for this app content version. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new FilesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to files for deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new FilesRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public FilesRequestBuilder WithUrl(string rawUrl) { + return new FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of files for this app content version. + /// + public class FilesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FilesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public FilesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new FilesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new filesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public FilesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FilesRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new filesRequestBuilderPostRequestConfiguration and sets the default values. + /// + public FilesRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs new file mode 100644 index 00000000000..a7b1c31edd0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs @@ -0,0 +1,65 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.Files.Item.Commit { + public class CommitPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The fileEncryptionInfo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.FileEncryptionInfo? FileEncryptionInfo { + get { return BackingStore?.Get("fileEncryptionInfo"); } + set { BackingStore?.Set("fileEncryptionInfo", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.FileEncryptionInfo FileEncryptionInfo { + get { return BackingStore?.Get("fileEncryptionInfo"); } + set { BackingStore?.Set("fileEncryptionInfo", value); } + } +#endif + /// + /// Instantiates a new commitPostRequestBody and sets the default values. + /// + public CommitPostRequestBody() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CommitPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(Microsoft.Graph.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs new file mode 100644 index 00000000000..f9217cfbc47 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs @@ -0,0 +1,102 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.Files.Item.Commit { + /// + /// Provides operations to call the commit method. + /// + public class CommitRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CommitRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CommitRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", pathParameters) { + } + /// + /// Instantiates a new CommitRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CommitRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", rawUrl) { + } + /// + /// Commits a file of a given app. + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(CommitPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(CommitPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Commits a file of a given app. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new CommitRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CommitRequestBuilder WithUrl(string rawUrl) { + return new CommitRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CommitRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new commitRequestBuilderPostRequestConfiguration and sets the default values. + /// + public CommitRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs new file mode 100644 index 00000000000..cab89d275a1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs @@ -0,0 +1,261 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.Files.Item.Commit; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.Files.Item.RenewUpload; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.Files.Item { + /// + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + /// + public class MobileAppContentFileItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to call the commit method. + public CommitRequestBuilder Commit { get => + new CommitRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to call the renewUpload method. + public RenewUploadRequestBuilder RenewUpload { get => + new RenewUploadRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppContentFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppContentFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property files for deviceAppManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of files for this app content version. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property files in deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppContentFile body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppContentFile body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property files for deviceAppManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The list of files for this app content version. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentFileItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property files in deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentFileItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppContentFileItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppContentFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// The list of files for this app content version. + /// + public class MobileAppContentFileItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentFileItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppContentFileItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppContentFileItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppContentFileItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentFileItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppContentFileItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs new file mode 100644 index 00000000000..3938af6a205 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs @@ -0,0 +1,97 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.Files.Item.RenewUpload { + /// + /// Provides operations to call the renewUpload method. + /// + public class RenewUploadRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new RenewUploadRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RenewUploadRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", pathParameters) { + } + /// + /// Instantiates a new RenewUploadRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RenewUploadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", rawUrl) { + } + /// + /// Renews the SAS URI for an application file upload. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Renews the SAS URI for an application file upload. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new RenewUploadRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public RenewUploadRequestBuilder WithUrl(string rawUrl) { + return new RenewUploadRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class RenewUploadRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new renewUploadRequestBuilderPostRequestConfiguration and sets the default values. + /// + public RenewUploadRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs new file mode 100644 index 00000000000..ce9501f1536 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs @@ -0,0 +1,261 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.ContainedApps; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.Files; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item { + /// + /// Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. + /// + public class MobileAppContentItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + public ContainedAppsRequestBuilder ContainedApps { get => + new ContainedAppsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + public FilesRequestBuilder Files { get => + new FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new MobileAppContentItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppContentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppContentItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppContentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property contentVersions for deviceAppManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of content versions for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property contentVersions in deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppContent body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppContent body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property contentVersions for deviceAppManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The list of content versions for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property contentVersions in deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppContent body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppContent body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppContentItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppContentItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppContentItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// The list of content versions for this app. + /// + public class MobileAppContentItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppContentItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppContentItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppContentItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppContentItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppContentItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.cs index b5cb00bc78b..444537d3cc4 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.cs @@ -1,4 +1,7 @@ // +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Assignments; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Categories; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -14,6 +17,18 @@ namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLob /// Casts the previous resource to managedIOSLobApp. /// public class GraphManagedIOSLobAppRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + public AssignmentsRequestBuilder Assignments { get => + new AssignmentsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + public CategoriesRequestBuilder Categories { get => + new CategoriesRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. + public ContentVersionsRequestBuilder ContentVersions { get => + new ContentVersionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new GraphManagedIOSLobAppRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/AssignmentsRequestBuilder.cs new file mode 100644 index 00000000000..c0ce412d57c --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/AssignmentsRequestBuilder.cs @@ -0,0 +1,246 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.Assignments.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.Assignments.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.Assignments { + /// + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// + public class AssignmentsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// The unique identifier of mobileAppAssignment + public MobileAppAssignmentItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppAssignment%2Did", position); + return new MobileAppAssignmentItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new AssignmentsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AssignmentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new AssignmentsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create a new mobileAppAssignment object. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppAssignment body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppAssignment body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new AssignmentsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create a new mobileAppAssignment object. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public AssignmentsRequestBuilder WithUrl(string rawUrl) { + return new AssignmentsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// + public class AssignmentsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public AssignmentsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AssignmentsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new assignmentsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public AssignmentsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new assignmentsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public AssignmentsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..27532b7c8d8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.Assignments.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/assignments/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/assignments/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs new file mode 100644 index 00000000000..3976aba2206 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs @@ -0,0 +1,254 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.Assignments.Item { + /// + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// + public class MobileAppAssignmentItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppAssignmentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppAssignmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Deletes a mobileAppAssignment. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the properties of a mobileAppAssignment object. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppAssignment body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppAssignment body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Deletes a mobileAppAssignment. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the properties of a mobileAppAssignment object. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppAssignmentItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppAssignmentItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// + public class MobileAppAssignmentItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppAssignmentItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppAssignmentItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/CategoriesRequestBuilder.cs new file mode 100644 index 00000000000..4aca1063d59 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/CategoriesRequestBuilder.cs @@ -0,0 +1,179 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.Categories.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.Categories.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.Categories { + /// + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// + public class CategoriesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// The unique identifier of mobileAppCategory + public MobileAppCategoryItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppCategory%2Did", position); + return new MobileAppCategoryItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new CategoriesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CategoriesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new CategoriesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CategoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of categories for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppCategoryCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of categories for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new CategoriesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CategoriesRequestBuilder WithUrl(string rawUrl) { + return new CategoriesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of categories for this app. + /// + public class CategoriesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CategoriesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CategoriesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CategoriesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new categoriesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CategoriesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..c5097e30795 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.Categories.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/categories/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/categories/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs new file mode 100644 index 00000000000..e0f44ab32c1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.Categories.Item { + /// + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// + public class MobileAppCategoryItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppCategoryItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppCategoryItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// The list of categories for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of categories for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppCategoryItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppCategoryItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppCategoryItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of categories for this app. + /// + public class MobileAppCategoryItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppCategoryItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppCategoryItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppCategoryItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppCategoryItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/ContentVersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/ContentVersionsRequestBuilder.cs new file mode 100644 index 00000000000..577fd29b182 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/ContentVersionsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions { + /// + /// Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. + /// + public class ContentVersionsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. + /// The unique identifier of mobileAppContent + public MobileAppContentItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppContent%2Did", position); + return new MobileAppContentItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new ContentVersionsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentVersionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ContentVersionsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentVersionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of content versions for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to contentVersions for deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppContent body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppContent body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of content versions for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ContentVersionsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to contentVersions for deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppContent body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppContent body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new ContentVersionsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ContentVersionsRequestBuilder WithUrl(string rawUrl) { + return new ContentVersionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of content versions for this app. + /// + public class ContentVersionsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContentVersionsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ContentVersionsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ContentVersionsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new contentVersionsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ContentVersionsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContentVersionsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new contentVersionsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public ContentVersionsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..cf1c7b3cdd5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs new file mode 100644 index 00000000000..a2349b1831f --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.ContainedApps.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.ContainedApps.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.ContainedApps { + /// + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + /// + public class ContainedAppsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + /// The unique identifier of mobileContainedApp + public MobileContainedAppItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileContainedApp%2Did", position); + return new MobileContainedAppItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new ContainedAppsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContainedAppsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ContainedAppsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContainedAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedAppCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to containedApps for deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileContainedApp body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileContainedApp body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ContainedAppsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to containedApps for deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new ContainedAppsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ContainedAppsRequestBuilder WithUrl(string rawUrl) { + return new ContainedAppsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + public class ContainedAppsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContainedAppsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ContainedAppsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ContainedAppsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new containedAppsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ContainedAppsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContainedAppsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new containedAppsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public ContainedAppsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..19313819695 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.ContainedApps.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs new file mode 100644 index 00000000000..3e9e7a4c0e9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs @@ -0,0 +1,251 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.ContainedApps.Item { + /// + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + /// + public class MobileContainedAppItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileContainedAppItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileContainedAppItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property containedApps for deviceAppManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property containedApps in deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileContainedApp body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileContainedApp body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property containedApps for deviceAppManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property containedApps in deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileContainedAppItemRequestBuilder WithUrl(string rawUrl) { + return new MobileContainedAppItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + public class MobileContainedAppItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileContainedAppItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileContainedAppItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..dad61649273 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.Files.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..040a1ab09dc --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.Files.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.Files.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.Files { + /// + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + /// + public class FilesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + /// The unique identifier of mobileAppContentFile + public MobileAppContentFileItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppContentFile%2Did", position); + return new MobileAppContentFileItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new FilesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/files{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new FilesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/files{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of files for this app content version. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to files for deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppContentFile body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppContentFile body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of files for this app content version. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new FilesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to files for deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new FilesRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public FilesRequestBuilder WithUrl(string rawUrl) { + return new FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of files for this app content version. + /// + public class FilesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FilesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public FilesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new FilesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new filesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public FilesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FilesRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new filesRequestBuilderPostRequestConfiguration and sets the default values. + /// + public FilesRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs new file mode 100644 index 00000000000..031231f9a2d --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs @@ -0,0 +1,65 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.Files.Item.Commit { + public class CommitPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The fileEncryptionInfo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.FileEncryptionInfo? FileEncryptionInfo { + get { return BackingStore?.Get("fileEncryptionInfo"); } + set { BackingStore?.Set("fileEncryptionInfo", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.FileEncryptionInfo FileEncryptionInfo { + get { return BackingStore?.Get("fileEncryptionInfo"); } + set { BackingStore?.Set("fileEncryptionInfo", value); } + } +#endif + /// + /// Instantiates a new commitPostRequestBody and sets the default values. + /// + public CommitPostRequestBody() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CommitPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(Microsoft.Graph.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs similarity index 50% rename from src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs rename to src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs index cf89a602f26..3014f17cb74 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs @@ -8,38 +8,37 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.GetMemberGroups { +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.Files.Item.Commit { /// - /// Provides operations to call the getMemberGroups method. + /// Provides operations to call the commit method. /// - public class GetMemberGroupsRequestBuilder : BaseRequestBuilder { + public class CommitRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new GetMemberGroupsRequestBuilder and sets the default values. + /// Instantiates a new CommitRequestBuilder and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public GetMemberGroupsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/getMemberGroups", pathParameters) { + public CommitRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", pathParameters) { } /// - /// Instantiates a new GetMemberGroupsRequestBuilder and sets the default values. + /// Instantiates a new CommitRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public GetMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/getMemberGroups", rawUrl) { + public CommitRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", rawUrl) { } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. - /// Find more info here + /// Commits a file of a given app. /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(CommitPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(GetMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(CommitPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -47,19 +46,19 @@ public async Task PostAsync(GetMemberGroupsPostRequestB {"4XX", ODataError.CreateFromDiscriminatorValue}, {"5XX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Commits a file of a given app. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, Action? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBody body, Action requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, Action requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation { @@ -67,10 +66,9 @@ public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { - var requestConfig = new GetMemberGroupsRequestBuilderPostRequestConfiguration(); + var requestConfig = new CommitRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); @@ -81,21 +79,21 @@ public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBod /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// /// The raw URL to use for the request builder. - public GetMemberGroupsRequestBuilder WithUrl(string rawUrl) { - return new GetMemberGroupsRequestBuilder(rawUrl, RequestAdapter); + public CommitRequestBuilder WithUrl(string rawUrl) { + return new CommitRequestBuilder(rawUrl, RequestAdapter); } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// - public class GetMemberGroupsRequestBuilderPostRequestConfiguration { + public class CommitRequestBuilderPostRequestConfiguration { /// Request headers public RequestHeaders Headers { get; set; } /// Request options public IList Options { get; set; } /// - /// Instantiates a new getMemberGroupsRequestBuilderPostRequestConfiguration and sets the default values. + /// Instantiates a new commitRequestBuilderPostRequestConfiguration and sets the default values. /// - public GetMemberGroupsRequestBuilderPostRequestConfiguration() { + public CommitRequestBuilderPostRequestConfiguration() { Options = new List(); Headers = new RequestHeaders(); } diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs new file mode 100644 index 00000000000..12325c81082 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs @@ -0,0 +1,261 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.Files.Item.Commit; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.Files.Item.RenewUpload; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.Files.Item { + /// + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + /// + public class MobileAppContentFileItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to call the commit method. + public CommitRequestBuilder Commit { get => + new CommitRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to call the renewUpload method. + public RenewUploadRequestBuilder RenewUpload { get => + new RenewUploadRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppContentFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppContentFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property files for deviceAppManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of files for this app content version. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property files in deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppContentFile body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppContentFile body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property files for deviceAppManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The list of files for this app content version. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentFileItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property files in deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentFileItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppContentFileItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppContentFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// The list of files for this app content version. + /// + public class MobileAppContentFileItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentFileItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppContentFileItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppContentFileItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppContentFileItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentFileItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppContentFileItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs new file mode 100644 index 00000000000..0e4a96900f0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs @@ -0,0 +1,97 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.Files.Item.RenewUpload { + /// + /// Provides operations to call the renewUpload method. + /// + public class RenewUploadRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new RenewUploadRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RenewUploadRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", pathParameters) { + } + /// + /// Instantiates a new RenewUploadRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RenewUploadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", rawUrl) { + } + /// + /// Renews the SAS URI for an application file upload. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Renews the SAS URI for an application file upload. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new RenewUploadRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public RenewUploadRequestBuilder WithUrl(string rawUrl) { + return new RenewUploadRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class RenewUploadRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new renewUploadRequestBuilderPostRequestConfiguration and sets the default values. + /// + public RenewUploadRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs new file mode 100644 index 00000000000..80a65fbd45e --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs @@ -0,0 +1,261 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.ContainedApps; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.Files; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item { + /// + /// Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. + /// + public class MobileAppContentItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + public ContainedAppsRequestBuilder ContainedApps { get => + new ContainedAppsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + public FilesRequestBuilder Files { get => + new FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new MobileAppContentItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppContentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppContentItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppContentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property contentVersions for deviceAppManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of content versions for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property contentVersions in deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppContent body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppContent body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property contentVersions for deviceAppManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The list of content versions for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property contentVersions in deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppContent body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppContent body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppContentItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppContentItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppContentItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// The list of content versions for this app. + /// + public class MobileAppContentItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppContentItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppContentItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppContentItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppContentItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppContentItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/GraphManagedMobileLobAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/GraphManagedMobileLobAppRequestBuilder.cs index 61be2cf1c1e..c54df4ab5b6 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/GraphManagedMobileLobAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/GraphManagedMobileLobAppRequestBuilder.cs @@ -1,4 +1,7 @@ // +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.Assignments; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.Categories; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -14,6 +17,18 @@ namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphManagedMobile /// Casts the previous resource to managedMobileLobApp. /// public class GraphManagedMobileLobAppRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + public AssignmentsRequestBuilder Assignments { get => + new AssignmentsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + public CategoriesRequestBuilder Categories { get => + new CategoriesRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. + public ContentVersionsRequestBuilder ContentVersions { get => + new ContentVersionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new GraphManagedMobileLobAppRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/AssignmentsRequestBuilder.cs new file mode 100644 index 00000000000..8e0c79e9a13 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/AssignmentsRequestBuilder.cs @@ -0,0 +1,246 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMicrosoftStoreForBusinessApp.Assignments.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMicrosoftStoreForBusinessApp.Assignments.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMicrosoftStoreForBusinessApp.Assignments { + /// + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// + public class AssignmentsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// The unique identifier of mobileAppAssignment + public MobileAppAssignmentItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppAssignment%2Did", position); + return new MobileAppAssignmentItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new AssignmentsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AssignmentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new AssignmentsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create a new mobileAppAssignment object. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppAssignment body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppAssignment body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new AssignmentsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create a new mobileAppAssignment object. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public AssignmentsRequestBuilder WithUrl(string rawUrl) { + return new AssignmentsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// + public class AssignmentsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public AssignmentsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AssignmentsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new assignmentsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public AssignmentsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new assignmentsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public AssignmentsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..ee7adadd9da --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMicrosoftStoreForBusinessApp.Assignments.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/assignments/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/assignments/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs new file mode 100644 index 00000000000..059c2bbe5ab --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs @@ -0,0 +1,254 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMicrosoftStoreForBusinessApp.Assignments.Item { + /// + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// + public class MobileAppAssignmentItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppAssignmentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppAssignmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Deletes a mobileAppAssignment. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the properties of a mobileAppAssignment object. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppAssignment body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppAssignment body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Deletes a mobileAppAssignment. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the properties of a mobileAppAssignment object. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppAssignmentItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppAssignmentItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// + public class MobileAppAssignmentItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppAssignmentItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppAssignmentItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/CategoriesRequestBuilder.cs new file mode 100644 index 00000000000..5ed426248aa --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/CategoriesRequestBuilder.cs @@ -0,0 +1,179 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMicrosoftStoreForBusinessApp.Categories.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMicrosoftStoreForBusinessApp.Categories.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMicrosoftStoreForBusinessApp.Categories { + /// + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// + public class CategoriesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// The unique identifier of mobileAppCategory + public MobileAppCategoryItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppCategory%2Did", position); + return new MobileAppCategoryItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new CategoriesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CategoriesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new CategoriesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CategoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of categories for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppCategoryCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of categories for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new CategoriesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CategoriesRequestBuilder WithUrl(string rawUrl) { + return new CategoriesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of categories for this app. + /// + public class CategoriesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CategoriesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CategoriesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CategoriesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new categoriesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CategoriesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..dd72c478773 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMicrosoftStoreForBusinessApp.Categories.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/categories/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/categories/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs new file mode 100644 index 00000000000..59567df74f0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMicrosoftStoreForBusinessApp.Categories.Item { + /// + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// + public class MobileAppCategoryItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppCategoryItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppCategoryItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// The list of categories for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of categories for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppCategoryItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppCategoryItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppCategoryItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of categories for this app. + /// + public class MobileAppCategoryItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppCategoryItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppCategoryItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppCategoryItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppCategoryItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.cs index 88e59a0bb4d..07e4e1cd251 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.cs @@ -1,4 +1,6 @@ // +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMicrosoftStoreForBusinessApp.Assignments; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMicrosoftStoreForBusinessApp.Categories; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -14,6 +16,14 @@ namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphMicrosoftStor /// Casts the previous resource to microsoftStoreForBusinessApp. /// public class GraphMicrosoftStoreForBusinessAppRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + public AssignmentsRequestBuilder Assignments { get => + new AssignmentsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + public CategoriesRequestBuilder Categories { get => + new CategoriesRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new GraphMicrosoftStoreForBusinessAppRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/AssignmentsRequestBuilder.cs new file mode 100644 index 00000000000..dde883e8932 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/AssignmentsRequestBuilder.cs @@ -0,0 +1,246 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.Assignments.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.Assignments.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.Assignments { + /// + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// + public class AssignmentsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// The unique identifier of mobileAppAssignment + public MobileAppAssignmentItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppAssignment%2Did", position); + return new MobileAppAssignmentItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new AssignmentsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AssignmentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new AssignmentsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create a new mobileAppAssignment object. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppAssignment body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppAssignment body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new AssignmentsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create a new mobileAppAssignment object. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public AssignmentsRequestBuilder WithUrl(string rawUrl) { + return new AssignmentsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// + public class AssignmentsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public AssignmentsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AssignmentsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new assignmentsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public AssignmentsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new assignmentsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public AssignmentsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..575111d8647 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.Assignments.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/assignments/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/assignments/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs new file mode 100644 index 00000000000..b1486f731c7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs @@ -0,0 +1,254 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.Assignments.Item { + /// + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// + public class MobileAppAssignmentItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppAssignmentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppAssignmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Deletes a mobileAppAssignment. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the properties of a mobileAppAssignment object. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppAssignment body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppAssignment body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Deletes a mobileAppAssignment. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the properties of a mobileAppAssignment object. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppAssignmentItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppAssignmentItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// + public class MobileAppAssignmentItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppAssignmentItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppAssignmentItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/CategoriesRequestBuilder.cs new file mode 100644 index 00000000000..f329e42666d --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/CategoriesRequestBuilder.cs @@ -0,0 +1,179 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.Categories.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.Categories.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.Categories { + /// + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// + public class CategoriesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// The unique identifier of mobileAppCategory + public MobileAppCategoryItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppCategory%2Did", position); + return new MobileAppCategoryItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new CategoriesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CategoriesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new CategoriesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CategoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of categories for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppCategoryCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of categories for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new CategoriesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CategoriesRequestBuilder WithUrl(string rawUrl) { + return new CategoriesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of categories for this app. + /// + public class CategoriesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CategoriesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CategoriesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CategoriesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new categoriesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CategoriesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..45b884398d8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.Categories.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/categories/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/categories/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs new file mode 100644 index 00000000000..132073d9b6b --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.Categories.Item { + /// + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// + public class MobileAppCategoryItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppCategoryItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppCategoryItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// The list of categories for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of categories for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppCategoryItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppCategoryItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppCategoryItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of categories for this app. + /// + public class MobileAppCategoryItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppCategoryItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppCategoryItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppCategoryItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppCategoryItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/ContentVersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/ContentVersionsRequestBuilder.cs new file mode 100644 index 00000000000..d984da7090f --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/ContentVersionsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions { + /// + /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + /// + public class ContentVersionsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + /// The unique identifier of mobileAppContent + public MobileAppContentItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppContent%2Did", position); + return new MobileAppContentItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new ContentVersionsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentVersionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ContentVersionsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentVersionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of content versions for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to contentVersions for deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppContent body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppContent body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of content versions for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ContentVersionsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to contentVersions for deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppContent body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppContent body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new ContentVersionsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ContentVersionsRequestBuilder WithUrl(string rawUrl) { + return new ContentVersionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of content versions for this app. + /// + public class ContentVersionsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContentVersionsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ContentVersionsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ContentVersionsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new contentVersionsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ContentVersionsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContentVersionsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new contentVersionsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public ContentVersionsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..fd2b5c87f68 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs new file mode 100644 index 00000000000..bed6b2eaa87 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.ContainedApps.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.ContainedApps.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.ContainedApps { + /// + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + /// + public class ContainedAppsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + /// The unique identifier of mobileContainedApp + public MobileContainedAppItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileContainedApp%2Did", position); + return new MobileContainedAppItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new ContainedAppsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContainedAppsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ContainedAppsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContainedAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedAppCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to containedApps for deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileContainedApp body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileContainedApp body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ContainedAppsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to containedApps for deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new ContainedAppsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ContainedAppsRequestBuilder WithUrl(string rawUrl) { + return new ContainedAppsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + public class ContainedAppsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContainedAppsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ContainedAppsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ContainedAppsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new containedAppsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ContainedAppsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContainedAppsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new containedAppsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public ContainedAppsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..1d386d148e8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.ContainedApps.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs new file mode 100644 index 00000000000..6f2be5d964d --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs @@ -0,0 +1,251 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.ContainedApps.Item { + /// + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + /// + public class MobileContainedAppItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileContainedAppItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileContainedAppItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property containedApps for deviceAppManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property containedApps in deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileContainedApp body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileContainedApp body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property containedApps for deviceAppManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property containedApps in deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileContainedAppItemRequestBuilder WithUrl(string rawUrl) { + return new MobileContainedAppItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + public class MobileContainedAppItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileContainedAppItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileContainedAppItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..bb9b33d2fe1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.Files.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..8d6b86b9572 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.Files.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.Files.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.Files { + /// + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + /// + public class FilesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + /// The unique identifier of mobileAppContentFile + public MobileAppContentFileItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppContentFile%2Did", position); + return new MobileAppContentFileItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new FilesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/files{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new FilesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/files{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of files for this app content version. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to files for deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppContentFile body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppContentFile body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of files for this app content version. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new FilesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to files for deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new FilesRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public FilesRequestBuilder WithUrl(string rawUrl) { + return new FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of files for this app content version. + /// + public class FilesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FilesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public FilesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new FilesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new filesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public FilesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FilesRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new filesRequestBuilderPostRequestConfiguration and sets the default values. + /// + public FilesRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs new file mode 100644 index 00000000000..f672824575f --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs @@ -0,0 +1,65 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.Files.Item.Commit { + public class CommitPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The fileEncryptionInfo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.FileEncryptionInfo? FileEncryptionInfo { + get { return BackingStore?.Get("fileEncryptionInfo"); } + set { BackingStore?.Set("fileEncryptionInfo", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.FileEncryptionInfo FileEncryptionInfo { + get { return BackingStore?.Get("fileEncryptionInfo"); } + set { BackingStore?.Set("fileEncryptionInfo", value); } + } +#endif + /// + /// Instantiates a new commitPostRequestBody and sets the default values. + /// + public CommitPostRequestBody() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CommitPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(Microsoft.Graph.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs new file mode 100644 index 00000000000..d34ad35fb4d --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs @@ -0,0 +1,102 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.Files.Item.Commit { + /// + /// Provides operations to call the commit method. + /// + public class CommitRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CommitRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CommitRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", pathParameters) { + } + /// + /// Instantiates a new CommitRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CommitRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", rawUrl) { + } + /// + /// Commits a file of a given app. + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(CommitPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(CommitPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Commits a file of a given app. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new CommitRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CommitRequestBuilder WithUrl(string rawUrl) { + return new CommitRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CommitRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new commitRequestBuilderPostRequestConfiguration and sets the default values. + /// + public CommitRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs new file mode 100644 index 00000000000..b9db8d795ca --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs @@ -0,0 +1,261 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.Files.Item.Commit; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.Files.Item.RenewUpload; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.Files.Item { + /// + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + /// + public class MobileAppContentFileItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to call the commit method. + public CommitRequestBuilder Commit { get => + new CommitRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to call the renewUpload method. + public RenewUploadRequestBuilder RenewUpload { get => + new RenewUploadRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppContentFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppContentFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property files for deviceAppManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of files for this app content version. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property files in deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppContentFile body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppContentFile body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property files for deviceAppManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The list of files for this app content version. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentFileItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property files in deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentFileItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppContentFileItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppContentFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// The list of files for this app content version. + /// + public class MobileAppContentFileItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentFileItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppContentFileItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppContentFileItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppContentFileItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentFileItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppContentFileItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs new file mode 100644 index 00000000000..b1513e51b20 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs @@ -0,0 +1,97 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.Files.Item.RenewUpload { + /// + /// Provides operations to call the renewUpload method. + /// + public class RenewUploadRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new RenewUploadRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RenewUploadRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", pathParameters) { + } + /// + /// Instantiates a new RenewUploadRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RenewUploadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", rawUrl) { + } + /// + /// Renews the SAS URI for an application file upload. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Renews the SAS URI for an application file upload. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new RenewUploadRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public RenewUploadRequestBuilder WithUrl(string rawUrl) { + return new RenewUploadRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class RenewUploadRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new renewUploadRequestBuilderPostRequestConfiguration and sets the default values. + /// + public RenewUploadRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs new file mode 100644 index 00000000000..9dcf239d29f --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs @@ -0,0 +1,261 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.ContainedApps; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.Files; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item { + /// + /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + /// + public class MobileAppContentItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + public ContainedAppsRequestBuilder ContainedApps { get => + new ContainedAppsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + public FilesRequestBuilder Files { get => + new FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new MobileAppContentItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppContentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppContentItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppContentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property contentVersions for deviceAppManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of content versions for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property contentVersions in deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppContent body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppContent body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property contentVersions for deviceAppManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The list of content versions for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property contentVersions in deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppContent body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppContent body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppContentItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppContentItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppContentItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// The list of content versions for this app. + /// + public class MobileAppContentItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppContentItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppContentItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppContentItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppContentItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppContentItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.cs index 7226ffebe02..9fd00be122c 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.cs @@ -1,4 +1,7 @@ // +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.Assignments; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.Categories; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -14,6 +17,18 @@ namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp { /// Casts the previous resource to win32LobApp. /// public class GraphWin32LobAppRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + public AssignmentsRequestBuilder Assignments { get => + new AssignmentsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + public CategoriesRequestBuilder Categories { get => + new CategoriesRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + public ContentVersionsRequestBuilder ContentVersions { get => + new ContentVersionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new GraphWin32LobAppRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/AssignmentsRequestBuilder.cs new file mode 100644 index 00000000000..3959e9496ec --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/AssignmentsRequestBuilder.cs @@ -0,0 +1,246 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.Assignments.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.Assignments.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.Assignments { + /// + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// + public class AssignmentsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// The unique identifier of mobileAppAssignment + public MobileAppAssignmentItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppAssignment%2Did", position); + return new MobileAppAssignmentItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new AssignmentsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AssignmentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new AssignmentsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create a new mobileAppAssignment object. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppAssignment body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppAssignment body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new AssignmentsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create a new mobileAppAssignment object. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public AssignmentsRequestBuilder WithUrl(string rawUrl) { + return new AssignmentsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// + public class AssignmentsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public AssignmentsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AssignmentsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new assignmentsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public AssignmentsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new assignmentsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public AssignmentsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..e8a0e5f16cb --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.Assignments.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/assignments/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/assignments/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs new file mode 100644 index 00000000000..6a331a3b026 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs @@ -0,0 +1,254 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.Assignments.Item { + /// + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// + public class MobileAppAssignmentItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppAssignmentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppAssignmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Deletes a mobileAppAssignment. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the properties of a mobileAppAssignment object. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppAssignment body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppAssignment body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Deletes a mobileAppAssignment. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the properties of a mobileAppAssignment object. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppAssignmentItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppAssignmentItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// + public class MobileAppAssignmentItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppAssignmentItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppAssignmentItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/CategoriesRequestBuilder.cs new file mode 100644 index 00000000000..b210dcde504 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/CategoriesRequestBuilder.cs @@ -0,0 +1,179 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.Categories.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.Categories.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.Categories { + /// + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// + public class CategoriesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// The unique identifier of mobileAppCategory + public MobileAppCategoryItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppCategory%2Did", position); + return new MobileAppCategoryItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new CategoriesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CategoriesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new CategoriesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CategoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of categories for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppCategoryCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of categories for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new CategoriesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CategoriesRequestBuilder WithUrl(string rawUrl) { + return new CategoriesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of categories for this app. + /// + public class CategoriesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CategoriesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CategoriesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CategoriesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new categoriesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CategoriesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..06d8c200dc3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.Categories.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/categories/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/categories/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.cs new file mode 100644 index 00000000000..51b942d8262 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.Categories.Item { + /// + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// + public class MobileAppCategoryItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppCategoryItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/categories/{mobileAppCategory%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppCategoryItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/categories/{mobileAppCategory%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// The list of categories for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of categories for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppCategoryItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppCategoryItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppCategoryItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of categories for this app. + /// + public class MobileAppCategoryItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppCategoryItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppCategoryItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppCategoryItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppCategoryItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/ContentVersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/ContentVersionsRequestBuilder.cs new file mode 100644 index 00000000000..e8c4cfeebd3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/ContentVersionsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions { + /// + /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + /// + public class ContentVersionsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + /// The unique identifier of mobileAppContent + public MobileAppContentItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppContent%2Did", position); + return new MobileAppContentItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new ContentVersionsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentVersionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ContentVersionsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentVersionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of content versions for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to contentVersions for deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppContent body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppContent body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of content versions for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ContentVersionsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to contentVersions for deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppContent body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppContent body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new ContentVersionsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ContentVersionsRequestBuilder WithUrl(string rawUrl) { + return new ContentVersionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of content versions for this app. + /// + public class ContentVersionsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContentVersionsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ContentVersionsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ContentVersionsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new contentVersionsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ContentVersionsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContentVersionsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new contentVersionsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public ContentVersionsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..8dfbd0a70df --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs new file mode 100644 index 00000000000..c9582b33855 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.ContainedApps.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.ContainedApps.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.ContainedApps { + /// + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + /// + public class ContainedAppsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + /// The unique identifier of mobileContainedApp + public MobileContainedAppItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileContainedApp%2Did", position); + return new MobileContainedAppItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new ContainedAppsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContainedAppsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/containedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ContainedAppsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContainedAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/containedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedAppCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to containedApps for deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileContainedApp body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileContainedApp body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ContainedAppsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to containedApps for deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new ContainedAppsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ContainedAppsRequestBuilder WithUrl(string rawUrl) { + return new ContainedAppsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + public class ContainedAppsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContainedAppsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ContainedAppsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ContainedAppsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new containedAppsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ContainedAppsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContainedAppsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new containedAppsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public ContainedAppsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..f04eb8badfc --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.ContainedApps.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs new file mode 100644 index 00000000000..3f3f9347718 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs @@ -0,0 +1,251 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.ContainedApps.Item { + /// + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + /// + public class MobileContainedAppItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileContainedAppItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileContainedAppItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property containedApps for deviceAppManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property containedApps in deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileContainedApp body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileContainedApp body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property containedApps for deviceAppManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property containedApps in deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileContainedAppItemRequestBuilder WithUrl(string rawUrl) { + return new MobileContainedAppItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + public class MobileContainedAppItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileContainedAppItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileContainedAppItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..540a6333c37 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.Files.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/files/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/files/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/FilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..51453e7ccff --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.Files.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.Files.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.Files { + /// + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + /// + public class FilesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + /// The unique identifier of mobileAppContentFile + public MobileAppContentFileItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppContentFile%2Did", position); + return new MobileAppContentFileItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new FilesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/files{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new FilesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/files{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of files for this app content version. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to files for deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppContentFile body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppContentFile body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of files for this app content version. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new FilesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to files for deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new FilesRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public FilesRequestBuilder WithUrl(string rawUrl) { + return new FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of files for this app content version. + /// + public class FilesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FilesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public FilesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new FilesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new filesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public FilesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FilesRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new filesRequestBuilderPostRequestConfiguration and sets the default values. + /// + public FilesRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs new file mode 100644 index 00000000000..7e2a67ac9af --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs @@ -0,0 +1,65 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.Files.Item.Commit { + public class CommitPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The fileEncryptionInfo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.FileEncryptionInfo? FileEncryptionInfo { + get { return BackingStore?.Get("fileEncryptionInfo"); } + set { BackingStore?.Set("fileEncryptionInfo", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.FileEncryptionInfo FileEncryptionInfo { + get { return BackingStore?.Get("fileEncryptionInfo"); } + set { BackingStore?.Set("fileEncryptionInfo", value); } + } +#endif + /// + /// Instantiates a new commitPostRequestBody and sets the default values. + /// + public CommitPostRequestBody() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CommitPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(Microsoft.Graph.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs new file mode 100644 index 00000000000..84ad957daaa --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs @@ -0,0 +1,102 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.Files.Item.Commit { + /// + /// Provides operations to call the commit method. + /// + public class CommitRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CommitRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CommitRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", pathParameters) { + } + /// + /// Instantiates a new CommitRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CommitRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", rawUrl) { + } + /// + /// Commits a file of a given app. + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(CommitPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(CommitPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Commits a file of a given app. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new CommitRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CommitRequestBuilder WithUrl(string rawUrl) { + return new CommitRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CommitRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new commitRequestBuilderPostRequestConfiguration and sets the default values. + /// + public CommitRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs new file mode 100644 index 00000000000..a213e11e67f --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs @@ -0,0 +1,261 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.Files.Item.Commit; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.Files.Item.RenewUpload; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.Files.Item { + /// + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + /// + public class MobileAppContentFileItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to call the commit method. + public CommitRequestBuilder Commit { get => + new CommitRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to call the renewUpload method. + public RenewUploadRequestBuilder RenewUpload { get => + new RenewUploadRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppContentFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppContentFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property files for deviceAppManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of files for this app content version. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property files in deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppContentFile body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppContentFile body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property files for deviceAppManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The list of files for this app content version. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentFileItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property files in deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentFileItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppContentFileItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppContentFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// The list of files for this app content version. + /// + public class MobileAppContentFileItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentFileItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppContentFileItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppContentFileItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppContentFileItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentFileItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppContentFileItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs new file mode 100644 index 00000000000..42a70da86d6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs @@ -0,0 +1,97 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.Files.Item.RenewUpload { + /// + /// Provides operations to call the renewUpload method. + /// + public class RenewUploadRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new RenewUploadRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RenewUploadRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", pathParameters) { + } + /// + /// Instantiates a new RenewUploadRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RenewUploadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", rawUrl) { + } + /// + /// Renews the SAS URI for an application file upload. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Renews the SAS URI for an application file upload. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new RenewUploadRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public RenewUploadRequestBuilder WithUrl(string rawUrl) { + return new RenewUploadRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class RenewUploadRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new renewUploadRequestBuilderPostRequestConfiguration and sets the default values. + /// + public RenewUploadRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs new file mode 100644 index 00000000000..c35b2adb02c --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs @@ -0,0 +1,261 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.ContainedApps; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.Files; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item { + /// + /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + /// + public class MobileAppContentItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + public ContainedAppsRequestBuilder ContainedApps { get => + new ContainedAppsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + public FilesRequestBuilder Files { get => + new FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new MobileAppContentItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppContentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppContentItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppContentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property contentVersions for deviceAppManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of content versions for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property contentVersions in deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppContent body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppContent body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property contentVersions for deviceAppManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The list of content versions for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property contentVersions in deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppContent body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppContent body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppContentItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppContentItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppContentItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// The list of content versions for this app. + /// + public class MobileAppContentItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppContentItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppContentItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppContentItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppContentItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppContentItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.cs index e332cd55df6..22cc940af6e 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.cs @@ -1,4 +1,7 @@ // +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.Assignments; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.Categories; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -14,6 +17,18 @@ namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX { /// Casts the previous resource to windowsAppX. /// public class GraphWindowsAppXRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + public AssignmentsRequestBuilder Assignments { get => + new AssignmentsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + public CategoriesRequestBuilder Categories { get => + new CategoriesRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + public ContentVersionsRequestBuilder ContentVersions { get => + new ContentVersionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new GraphWindowsAppXRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/AssignmentsRequestBuilder.cs new file mode 100644 index 00000000000..a8f0f49b105 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/AssignmentsRequestBuilder.cs @@ -0,0 +1,246 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Assignments.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Assignments.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Assignments { + /// + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// + public class AssignmentsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// The unique identifier of mobileAppAssignment + public MobileAppAssignmentItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppAssignment%2Did", position); + return new MobileAppAssignmentItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new AssignmentsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AssignmentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new AssignmentsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create a new mobileAppAssignment object. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppAssignment body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppAssignment body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new AssignmentsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create a new mobileAppAssignment object. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public AssignmentsRequestBuilder WithUrl(string rawUrl) { + return new AssignmentsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// + public class AssignmentsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public AssignmentsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AssignmentsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new assignmentsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public AssignmentsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new assignmentsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public AssignmentsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..8a937c3a16c --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Assignments.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/assignments/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/assignments/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs new file mode 100644 index 00000000000..c78e10f3767 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs @@ -0,0 +1,254 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Assignments.Item { + /// + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// + public class MobileAppAssignmentItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppAssignmentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppAssignmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Deletes a mobileAppAssignment. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the properties of a mobileAppAssignment object. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppAssignment body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppAssignment body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Deletes a mobileAppAssignment. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the properties of a mobileAppAssignment object. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppAssignmentItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppAssignmentItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// + public class MobileAppAssignmentItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppAssignmentItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppAssignmentItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/CategoriesRequestBuilder.cs new file mode 100644 index 00000000000..cbe725d3d72 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/CategoriesRequestBuilder.cs @@ -0,0 +1,179 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Categories.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Categories.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Categories { + /// + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// + public class CategoriesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// The unique identifier of mobileAppCategory + public MobileAppCategoryItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppCategory%2Did", position); + return new MobileAppCategoryItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new CategoriesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CategoriesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new CategoriesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CategoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of categories for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppCategoryCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of categories for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new CategoriesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CategoriesRequestBuilder WithUrl(string rawUrl) { + return new CategoriesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of categories for this app. + /// + public class CategoriesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CategoriesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CategoriesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CategoriesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new categoriesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CategoriesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..0059082780e --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Categories.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/categories/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/categories/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Item/MobileAppCategoryItemRequestBuilder.cs new file mode 100644 index 00000000000..84200c11c95 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Item/MobileAppCategoryItemRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Categories.Item { + /// + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// + public class MobileAppCategoryItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppCategoryItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/categories/{mobileAppCategory%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppCategoryItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/categories/{mobileAppCategory%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// The list of categories for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of categories for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppCategoryItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppCategoryItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppCategoryItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of categories for this app. + /// + public class MobileAppCategoryItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppCategoryItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppCategoryItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppCategoryItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppCategoryItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/ContentVersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/ContentVersionsRequestBuilder.cs new file mode 100644 index 00000000000..f7737efa8a7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/ContentVersionsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions { + /// + /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + /// + public class ContentVersionsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + /// The unique identifier of mobileAppContent + public MobileAppContentItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppContent%2Did", position); + return new MobileAppContentItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new ContentVersionsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentVersionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ContentVersionsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentVersionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of content versions for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to contentVersions for deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppContent body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppContent body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of content versions for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ContentVersionsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to contentVersions for deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppContent body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppContent body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new ContentVersionsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ContentVersionsRequestBuilder WithUrl(string rawUrl) { + return new ContentVersionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of content versions for this app. + /// + public class ContentVersionsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContentVersionsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ContentVersionsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ContentVersionsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new contentVersionsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ContentVersionsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContentVersionsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new contentVersionsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public ContentVersionsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..1afb6e3892b --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs new file mode 100644 index 00000000000..012b88bce62 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.ContainedApps.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.ContainedApps.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.ContainedApps { + /// + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + /// + public class ContainedAppsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + /// The unique identifier of mobileContainedApp + public MobileContainedAppItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileContainedApp%2Did", position); + return new MobileContainedAppItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new ContainedAppsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContainedAppsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/containedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ContainedAppsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContainedAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/containedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedAppCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to containedApps for deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileContainedApp body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileContainedApp body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ContainedAppsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to containedApps for deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new ContainedAppsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ContainedAppsRequestBuilder WithUrl(string rawUrl) { + return new ContainedAppsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + public class ContainedAppsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContainedAppsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ContainedAppsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ContainedAppsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new containedAppsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ContainedAppsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContainedAppsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new containedAppsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public ContainedAppsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..068e96a328d --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.ContainedApps.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs new file mode 100644 index 00000000000..2547ca1f7c3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs @@ -0,0 +1,251 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.ContainedApps.Item { + /// + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + /// + public class MobileContainedAppItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileContainedAppItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileContainedAppItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property containedApps for deviceAppManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property containedApps in deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileContainedApp body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileContainedApp body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property containedApps for deviceAppManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property containedApps in deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileContainedAppItemRequestBuilder WithUrl(string rawUrl) { + return new MobileContainedAppItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + public class MobileContainedAppItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileContainedAppItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileContainedAppItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..e007f6418b7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.Files.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/files/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/files/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/FilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..3b37435af03 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.Files.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.Files.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.Files { + /// + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + /// + public class FilesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + /// The unique identifier of mobileAppContentFile + public MobileAppContentFileItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppContentFile%2Did", position); + return new MobileAppContentFileItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new FilesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/files{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new FilesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/files{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of files for this app content version. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to files for deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppContentFile body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppContentFile body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of files for this app content version. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new FilesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to files for deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new FilesRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public FilesRequestBuilder WithUrl(string rawUrl) { + return new FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of files for this app content version. + /// + public class FilesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FilesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public FilesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new FilesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new filesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public FilesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FilesRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new filesRequestBuilderPostRequestConfiguration and sets the default values. + /// + public FilesRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs new file mode 100644 index 00000000000..edc87d57071 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs @@ -0,0 +1,65 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.Files.Item.Commit { + public class CommitPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The fileEncryptionInfo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.FileEncryptionInfo? FileEncryptionInfo { + get { return BackingStore?.Get("fileEncryptionInfo"); } + set { BackingStore?.Set("fileEncryptionInfo", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.FileEncryptionInfo FileEncryptionInfo { + get { return BackingStore?.Get("fileEncryptionInfo"); } + set { BackingStore?.Set("fileEncryptionInfo", value); } + } +#endif + /// + /// Instantiates a new commitPostRequestBody and sets the default values. + /// + public CommitPostRequestBody() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CommitPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(Microsoft.Graph.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs new file mode 100644 index 00000000000..1a041526ad5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs @@ -0,0 +1,102 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.Files.Item.Commit { + /// + /// Provides operations to call the commit method. + /// + public class CommitRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CommitRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CommitRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", pathParameters) { + } + /// + /// Instantiates a new CommitRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CommitRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", rawUrl) { + } + /// + /// Commits a file of a given app. + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(CommitPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(CommitPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Commits a file of a given app. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new CommitRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CommitRequestBuilder WithUrl(string rawUrl) { + return new CommitRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CommitRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new commitRequestBuilderPostRequestConfiguration and sets the default values. + /// + public CommitRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs new file mode 100644 index 00000000000..dd770725362 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs @@ -0,0 +1,261 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.Files.Item.Commit; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.Files.Item.RenewUpload; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.Files.Item { + /// + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + /// + public class MobileAppContentFileItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to call the commit method. + public CommitRequestBuilder Commit { get => + new CommitRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to call the renewUpload method. + public RenewUploadRequestBuilder RenewUpload { get => + new RenewUploadRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppContentFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppContentFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property files for deviceAppManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of files for this app content version. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property files in deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppContentFile body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppContentFile body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property files for deviceAppManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The list of files for this app content version. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentFileItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property files in deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentFileItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppContentFileItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppContentFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// The list of files for this app content version. + /// + public class MobileAppContentFileItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentFileItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppContentFileItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppContentFileItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppContentFileItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentFileItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppContentFileItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs new file mode 100644 index 00000000000..623c5db5f8b --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs @@ -0,0 +1,97 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.Files.Item.RenewUpload { + /// + /// Provides operations to call the renewUpload method. + /// + public class RenewUploadRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new RenewUploadRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RenewUploadRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", pathParameters) { + } + /// + /// Instantiates a new RenewUploadRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RenewUploadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", rawUrl) { + } + /// + /// Renews the SAS URI for an application file upload. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Renews the SAS URI for an application file upload. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new RenewUploadRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public RenewUploadRequestBuilder WithUrl(string rawUrl) { + return new RenewUploadRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class RenewUploadRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new renewUploadRequestBuilderPostRequestConfiguration and sets the default values. + /// + public RenewUploadRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs new file mode 100644 index 00000000000..8c553992577 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs @@ -0,0 +1,261 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.ContainedApps; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.Files; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item { + /// + /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + /// + public class MobileAppContentItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + public ContainedAppsRequestBuilder ContainedApps { get => + new ContainedAppsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + public FilesRequestBuilder Files { get => + new FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new MobileAppContentItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppContentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppContentItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppContentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property contentVersions for deviceAppManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of content versions for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property contentVersions in deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppContent body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppContent body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property contentVersions for deviceAppManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The list of content versions for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property contentVersions in deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppContent body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppContent body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppContentItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppContentItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppContentItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// The list of content versions for this app. + /// + public class MobileAppContentItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppContentItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppContentItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppContentItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppContentItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppContentItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.cs index 22fb88342b9..d332faa7795 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.cs @@ -1,4 +1,7 @@ // +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Assignments; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Categories; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -14,6 +17,18 @@ namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsMobile /// Casts the previous resource to windowsMobileMSI. /// public class GraphWindowsMobileMSIRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + public AssignmentsRequestBuilder Assignments { get => + new AssignmentsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + public CategoriesRequestBuilder Categories { get => + new CategoriesRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + public ContentVersionsRequestBuilder ContentVersions { get => + new ContentVersionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new GraphWindowsMobileMSIRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/AssignmentsRequestBuilder.cs new file mode 100644 index 00000000000..b5f9c137802 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/AssignmentsRequestBuilder.cs @@ -0,0 +1,246 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.Assignments.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.Assignments.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.Assignments { + /// + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// + public class AssignmentsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// The unique identifier of mobileAppAssignment + public MobileAppAssignmentItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppAssignment%2Did", position); + return new MobileAppAssignmentItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new AssignmentsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AssignmentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new AssignmentsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create a new mobileAppAssignment object. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppAssignment body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppAssignment body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new AssignmentsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create a new mobileAppAssignment object. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public AssignmentsRequestBuilder WithUrl(string rawUrl) { + return new AssignmentsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// + public class AssignmentsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public AssignmentsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AssignmentsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new assignmentsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public AssignmentsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new assignmentsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public AssignmentsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..a4037a3d87a --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.Assignments.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/assignments/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/assignments/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs new file mode 100644 index 00000000000..c7c2c386ca3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs @@ -0,0 +1,254 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.Assignments.Item { + /// + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// + public class MobileAppAssignmentItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppAssignmentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppAssignmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Deletes a mobileAppAssignment. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the properties of a mobileAppAssignment object. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppAssignment body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppAssignment body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Deletes a mobileAppAssignment. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the properties of a mobileAppAssignment object. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppAssignmentItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppAssignmentItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// + public class MobileAppAssignmentItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppAssignmentItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppAssignmentItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/CategoriesRequestBuilder.cs new file mode 100644 index 00000000000..aebbd41c28f --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/CategoriesRequestBuilder.cs @@ -0,0 +1,179 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.Categories.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.Categories.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.Categories { + /// + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// + public class CategoriesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// The unique identifier of mobileAppCategory + public MobileAppCategoryItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppCategory%2Did", position); + return new MobileAppCategoryItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new CategoriesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CategoriesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new CategoriesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CategoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of categories for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppCategoryCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of categories for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new CategoriesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CategoriesRequestBuilder WithUrl(string rawUrl) { + return new CategoriesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of categories for this app. + /// + public class CategoriesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CategoriesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CategoriesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CategoriesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new categoriesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CategoriesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..71eac3ed5aa --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.Categories.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/categories/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/categories/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.cs new file mode 100644 index 00000000000..bffc11ebdfa --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.Categories.Item { + /// + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// + public class MobileAppCategoryItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppCategoryItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/categories/{mobileAppCategory%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppCategoryItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/categories/{mobileAppCategory%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// The list of categories for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of categories for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppCategoryItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppCategoryItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppCategoryItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of categories for this app. + /// + public class MobileAppCategoryItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppCategoryItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppCategoryItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppCategoryItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppCategoryItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/CommittedContainedAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/CommittedContainedAppsRequestBuilder.cs new file mode 100644 index 00000000000..5cd2e23d168 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/CommittedContainedAppsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.CommittedContainedApps.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.CommittedContainedApps.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.CommittedContainedApps { + /// + /// Provides operations to manage the committedContainedApps property of the microsoft.graph.windowsUniversalAppX entity. + /// + public class CommittedContainedAppsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the committedContainedApps property of the microsoft.graph.windowsUniversalAppX entity. + /// The unique identifier of mobileContainedApp + public MobileContainedAppItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileContainedApp%2Did", position); + return new MobileContainedAppItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new CommittedContainedAppsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CommittedContainedAppsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/committedContainedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new CommittedContainedAppsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CommittedContainedAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/committedContainedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The collection of contained apps in the committed mobileAppContent of a windowsUniversalAppX app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedAppCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to committedContainedApps for deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileContainedApp body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileContainedApp body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of contained apps in the committed mobileAppContent of a windowsUniversalAppX app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new CommittedContainedAppsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to committedContainedApps for deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new CommittedContainedAppsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CommittedContainedAppsRequestBuilder WithUrl(string rawUrl) { + return new CommittedContainedAppsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The collection of contained apps in the committed mobileAppContent of a windowsUniversalAppX app. + /// + public class CommittedContainedAppsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CommittedContainedAppsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CommittedContainedAppsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CommittedContainedAppsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new committedContainedAppsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CommittedContainedAppsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CommittedContainedAppsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new committedContainedAppsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public CommittedContainedAppsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..c70c1f33b57 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.CommittedContainedApps.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/committedContainedApps/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/committedContainedApps/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Item/MobileContainedAppItemRequestBuilder.cs new file mode 100644 index 00000000000..00d4b85e1bd --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Item/MobileContainedAppItemRequestBuilder.cs @@ -0,0 +1,251 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.CommittedContainedApps.Item { + /// + /// Provides operations to manage the committedContainedApps property of the microsoft.graph.windowsUniversalAppX entity. + /// + public class MobileContainedAppItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileContainedAppItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/committedContainedApps/{mobileContainedApp%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileContainedAppItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/committedContainedApps/{mobileContainedApp%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property committedContainedApps for deviceAppManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of contained apps in the committed mobileAppContent of a windowsUniversalAppX app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property committedContainedApps in deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileContainedApp body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileContainedApp body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property committedContainedApps for deviceAppManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The collection of contained apps in the committed mobileAppContent of a windowsUniversalAppX app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property committedContainedApps in deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileContainedAppItemRequestBuilder WithUrl(string rawUrl) { + return new MobileContainedAppItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// The collection of contained apps in the committed mobileAppContent of a windowsUniversalAppX app. + /// + public class MobileContainedAppItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileContainedAppItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileContainedAppItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/ContentVersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/ContentVersionsRequestBuilder.cs new file mode 100644 index 00000000000..4c9b91204cb --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/ContentVersionsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions { + /// + /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + /// + public class ContentVersionsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + /// The unique identifier of mobileAppContent + public MobileAppContentItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppContent%2Did", position); + return new MobileAppContentItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new ContentVersionsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentVersionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ContentVersionsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentVersionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of content versions for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to contentVersions for deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppContent body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppContent body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of content versions for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ContentVersionsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to contentVersions for deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppContent body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppContent body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new ContentVersionsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ContentVersionsRequestBuilder WithUrl(string rawUrl) { + return new ContentVersionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of content versions for this app. + /// + public class ContentVersionsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContentVersionsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ContentVersionsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ContentVersionsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new contentVersionsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ContentVersionsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContentVersionsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new contentVersionsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public ContentVersionsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..87ed671542e --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs new file mode 100644 index 00000000000..092455c46fc --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.ContainedApps.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.ContainedApps.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.ContainedApps { + /// + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + /// + public class ContainedAppsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + /// The unique identifier of mobileContainedApp + public MobileContainedAppItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileContainedApp%2Did", position); + return new MobileContainedAppItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new ContainedAppsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContainedAppsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/containedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ContainedAppsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContainedAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/containedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedAppCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to containedApps for deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileContainedApp body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileContainedApp body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ContainedAppsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to containedApps for deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new ContainedAppsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ContainedAppsRequestBuilder WithUrl(string rawUrl) { + return new ContainedAppsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + public class ContainedAppsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContainedAppsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ContainedAppsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ContainedAppsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new containedAppsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ContainedAppsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContainedAppsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new containedAppsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public ContainedAppsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..9219044f564 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.ContainedApps.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs new file mode 100644 index 00000000000..83dfd577ba2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs @@ -0,0 +1,251 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.ContainedApps.Item { + /// + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + /// + public class MobileContainedAppItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileContainedAppItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileContainedAppItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property containedApps for deviceAppManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property containedApps in deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileContainedApp body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileContainedApp body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileContainedApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property containedApps for deviceAppManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property containedApps in deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileContainedAppItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileContainedAppItemRequestBuilder WithUrl(string rawUrl) { + return new MobileContainedAppItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// The collection of contained apps in a MobileLobApp acting as a package. + /// + public class MobileContainedAppItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileContainedAppItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileContainedAppItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileContainedAppItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileContainedAppItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileContainedAppItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..32b97df0a52 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.Files.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/files/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/files/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/FilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..a299359ea30 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.Files.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.Files.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.Files { + /// + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + /// + public class FilesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + /// The unique identifier of mobileAppContentFile + public MobileAppContentFileItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppContentFile%2Did", position); + return new MobileAppContentFileItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new FilesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/files{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new FilesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/files{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of files for this app content version. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to files for deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppContentFile body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppContentFile body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of files for this app content version. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new FilesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to files for deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new FilesRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public FilesRequestBuilder WithUrl(string rawUrl) { + return new FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of files for this app content version. + /// + public class FilesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FilesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public FilesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new FilesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new filesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public FilesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FilesRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new filesRequestBuilderPostRequestConfiguration and sets the default values. + /// + public FilesRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs new file mode 100644 index 00000000000..e55af18f0f2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs @@ -0,0 +1,65 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.Files.Item.Commit { + public class CommitPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The fileEncryptionInfo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.FileEncryptionInfo? FileEncryptionInfo { + get { return BackingStore?.Get("fileEncryptionInfo"); } + set { BackingStore?.Set("fileEncryptionInfo", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.FileEncryptionInfo FileEncryptionInfo { + get { return BackingStore?.Get("fileEncryptionInfo"); } + set { BackingStore?.Set("fileEncryptionInfo", value); } + } +#endif + /// + /// Instantiates a new commitPostRequestBody and sets the default values. + /// + public CommitPostRequestBody() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CommitPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(Microsoft.Graph.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs new file mode 100644 index 00000000000..66debd147b2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs @@ -0,0 +1,102 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.Files.Item.Commit { + /// + /// Provides operations to call the commit method. + /// + public class CommitRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CommitRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CommitRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", pathParameters) { + } + /// + /// Instantiates a new CommitRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CommitRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", rawUrl) { + } + /// + /// Commits a file of a given app. + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(CommitPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(CommitPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Commits a file of a given app. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new CommitRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CommitRequestBuilder WithUrl(string rawUrl) { + return new CommitRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CommitRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new commitRequestBuilderPostRequestConfiguration and sets the default values. + /// + public CommitRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs new file mode 100644 index 00000000000..a7644213618 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs @@ -0,0 +1,261 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.Files.Item.Commit; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.Files.Item.RenewUpload; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.Files.Item { + /// + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + /// + public class MobileAppContentFileItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to call the commit method. + public CommitRequestBuilder Commit { get => + new CommitRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to call the renewUpload method. + public RenewUploadRequestBuilder RenewUpload { get => + new RenewUploadRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppContentFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppContentFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property files for deviceAppManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of files for this app content version. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property files in deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppContentFile body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppContentFile body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContentFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property files for deviceAppManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The list of files for this app content version. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentFileItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property files in deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentFileItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppContentFileItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppContentFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppContentFileItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// The list of files for this app content version. + /// + public class MobileAppContentFileItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentFileItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppContentFileItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppContentFileItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppContentFileItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentFileItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentFileItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppContentFileItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs new file mode 100644 index 00000000000..e22ae1abed6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs @@ -0,0 +1,97 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.Files.Item.RenewUpload { + /// + /// Provides operations to call the renewUpload method. + /// + public class RenewUploadRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new RenewUploadRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RenewUploadRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", pathParameters) { + } + /// + /// Instantiates a new RenewUploadRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RenewUploadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", rawUrl) { + } + /// + /// Renews the SAS URI for an application file upload. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Renews the SAS URI for an application file upload. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new RenewUploadRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public RenewUploadRequestBuilder WithUrl(string rawUrl) { + return new RenewUploadRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class RenewUploadRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new renewUploadRequestBuilderPostRequestConfiguration and sets the default values. + /// + public RenewUploadRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs new file mode 100644 index 00000000000..0cd796004dd --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs @@ -0,0 +1,261 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.ContainedApps; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.Files; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item { + /// + /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + /// + public class MobileAppContentItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. + public ContainedAppsRequestBuilder ContainedApps { get => + new ContainedAppsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. + public FilesRequestBuilder Files { get => + new FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new MobileAppContentItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppContentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppContentItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppContentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property contentVersions for deviceAppManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of content versions for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property contentVersions in deviceAppManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppContent body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppContent body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property contentVersions for deviceAppManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The list of content versions for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property contentVersions in deviceAppManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppContent body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppContent body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppContentItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppContentItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppContentItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppContentItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// The list of content versions for this app. + /// + public class MobileAppContentItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppContentItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppContentItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppContentItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppContentItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppContentItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppContentItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppContentItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.cs index 174c73c7190..1d246ec66f7 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.cs @@ -1,4 +1,8 @@ // +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.Assignments; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.Categories; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.CommittedContainedApps; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -14,6 +18,22 @@ namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsUniver /// Casts the previous resource to windowsUniversalAppX. /// public class GraphWindowsUniversalAppXRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + public AssignmentsRequestBuilder Assignments { get => + new AssignmentsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + public CategoriesRequestBuilder Categories { get => + new CategoriesRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the committedContainedApps property of the microsoft.graph.windowsUniversalAppX entity. + public CommittedContainedAppsRequestBuilder CommittedContainedApps { get => + new CommittedContainedAppsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. + public ContentVersionsRequestBuilder ContentVersions { get => + new ContentVersionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new GraphWindowsUniversalAppXRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/AssignmentsRequestBuilder.cs new file mode 100644 index 00000000000..3bae831e620 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/AssignmentsRequestBuilder.cs @@ -0,0 +1,246 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp.Assignments.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp.Assignments.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp.Assignments { + /// + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// + public class AssignmentsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// The unique identifier of mobileAppAssignment + public MobileAppAssignmentItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppAssignment%2Did", position); + return new MobileAppAssignmentItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new AssignmentsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AssignmentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new AssignmentsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create a new mobileAppAssignment object. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MobileAppAssignment body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(MobileAppAssignment body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new AssignmentsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create a new mobileAppAssignment object. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public AssignmentsRequestBuilder WithUrl(string rawUrl) { + return new AssignmentsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// List properties and relationships of the mobileAppAssignment objects. + /// + public class AssignmentsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public AssignmentsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AssignmentsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new assignmentsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public AssignmentsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new assignmentsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public AssignmentsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..32bf52c9e40 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp.Assignments.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/assignments/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/assignments/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs new file mode 100644 index 00000000000..52891215acf --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs @@ -0,0 +1,254 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp.Assignments.Item { + /// + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + /// + public class MobileAppAssignmentItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppAssignmentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppAssignmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/assignments/{mobileAppAssignment%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Deletes a mobileAppAssignment. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the properties of a mobileAppAssignment object. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MobileAppAssignment body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(MobileAppAssignment body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Deletes a mobileAppAssignment. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the properties of a mobileAppAssignment object. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppAssignmentItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppAssignmentItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Read properties and relationships of the mobileAppAssignment object. + /// + public class MobileAppAssignmentItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppAssignmentItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppAssignmentItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/CategoriesRequestBuilder.cs new file mode 100644 index 00000000000..73fe2224309 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/CategoriesRequestBuilder.cs @@ -0,0 +1,179 @@ +// +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp.Categories.Count; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp.Categories.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp.Categories { + /// + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// + public class CategoriesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// The unique identifier of mobileAppCategory + public MobileAppCategoryItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("mobileAppCategory%2Did", position); + return new MobileAppCategoryItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new CategoriesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CategoriesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new CategoriesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CategoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The list of categories for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppCategoryCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of categories for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new CategoriesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CategoriesRequestBuilder WithUrl(string rawUrl) { + return new CategoriesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of categories for this app. + /// + public class CategoriesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CategoriesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CategoriesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CategoriesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new categoriesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CategoriesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..0887fb30e64 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp.Categories.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/categories/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/categories/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs new file mode 100644 index 00000000000..1192afcf24d --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp.Categories.Item { + /// + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + /// + public class MobileAppCategoryItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MobileAppCategoryItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MobileAppCategoryItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/categories/{mobileAppCategory%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// The list of categories for this app. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MobileAppCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The list of categories for this app. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MobileAppCategoryItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MobileAppCategoryItemRequestBuilder WithUrl(string rawUrl) { + return new MobileAppCategoryItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The list of categories for this app. + /// + public class MobileAppCategoryItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MobileAppCategoryItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MobileAppCategoryItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MobileAppCategoryItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new MobileAppCategoryItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MobileAppCategoryItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.cs index 20892343429..e5671badd2a 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.cs @@ -1,4 +1,6 @@ // +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp.Assignments; +using Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp.Categories; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -14,6 +16,14 @@ namespace Microsoft.Graph.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp /// Casts the previous resource to windowsWebApp. /// public class GraphWindowsWebAppRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. + public AssignmentsRequestBuilder Assignments { get => + new AssignmentsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. + public CategoriesRequestBuilder Categories { get => + new CategoriesRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new GraphWindowsWebAppRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.cs index e170f0c688b..29576f3ab85 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.cs @@ -124,8 +124,8 @@ public MobileAppItemRequestBuilder(Dictionary pathParameters, IR public MobileAppItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a iosiPadOSWebClip. - /// Find more info here + /// Deletes a windowsUniversalAppX. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,8 +144,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the webApp object. - /// Find more info here + /// Read properties and relationships of the macOSLobApp object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -164,8 +164,8 @@ public async Task GetAsync(Action(requestInfo, MobileApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a windowsMicrosoftEdgeApp object. - /// Find more info here + /// Update the properties of a macOSMicrosoftEdgeApp object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -186,7 +186,7 @@ public async Task PatchAsync(MobileApp body, Action(requestInfo, MobileApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a iosiPadOSWebClip. + /// Deletes a windowsUniversalAppX. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -210,7 +210,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the webApp object. + /// Read properties and relationships of the macOSLobApp object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -236,7 +236,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a windowsMicrosoftEdgeApp object. + /// Update the properties of a macOSMicrosoftEdgeApp object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -287,7 +287,7 @@ public MobileAppItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read properties and relationships of the webApp object. + /// Read properties and relationships of the macOSLobApp object. /// public class MobileAppItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.cs index f6cc8a932d5..f08ff1682ec 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.cs @@ -122,8 +122,8 @@ public MobileAppsRequestBuilder(Dictionary pathParameters, IRequ public MobileAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the win32LobApp objects. - /// Find more info here + /// List properties and relationships of the managedAndroidStoreApp objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -142,8 +142,8 @@ public async Task GetAsync(Action(requestInfo, MobileAppCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new managedIOSStoreApp object. - /// Find more info here + /// Create a new androidStoreApp object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -164,7 +164,7 @@ public async Task PostAsync(MobileApp body, Action(requestInfo, MobileApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the win32LobApp objects. + /// List properties and relationships of the managedAndroidStoreApp objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new managedIOSStoreApp object. + /// Create a new androidStoreApp object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -225,7 +225,7 @@ public MobileAppsRequestBuilder WithUrl(string rawUrl) { return new MobileAppsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the win32LobApp objects. + /// List properties and relationships of the managedAndroidStoreApp objects. /// public class MobileAppsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestGetResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestGetResponse.cs new file mode 100644 index 00000000000..7e6c599216b --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestGetResponse.cs @@ -0,0 +1,64 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DeviceManagement.ApplePushNotificationCertificate.DownloadApplePushNotificationCertificateSigningRequest { + public class DownloadApplePushNotificationCertificateSigningRequestGetResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public string Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Instantiates a new downloadApplePushNotificationCertificateSigningRequestGetResponse and sets the default values. + /// + public DownloadApplePushNotificationCertificateSigningRequestGetResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static DownloadApplePushNotificationCertificateSigningRequestGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DownloadApplePushNotificationCertificateSigningRequestGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestRequestBuilder.cs index 940ee99e5a6..e8e6c7fd85e 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestRequestBuilder.cs @@ -33,6 +33,26 @@ public DownloadApplePushNotificationCertificateSigningRequestRequestBuilder(stri /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDownloadApplePushNotificationCertificateSigningRequestGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDownloadApplePushNotificationCertificateSigningRequestGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DownloadApplePushNotificationCertificateSigningRequestGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Download Apple push notification certificate signing request + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDownloadApplePushNotificationCertificateSigningRequestGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestResponse.cs index af0a79bc696..e94d54b1d70 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestResponse.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestResponse.cs @@ -1,64 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.DeviceManagement.ApplePushNotificationCertificate.DownloadApplePushNotificationCertificateSigningRequest { - public class DownloadApplePushNotificationCertificateSigningRequestResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public string Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } -#endif - /// - /// Instantiates a new downloadApplePushNotificationCertificateSigningRequestResponse and sets the default values. - /// - public DownloadApplePushNotificationCertificateSigningRequestResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use downloadApplePushNotificationCertificateSigningRequestGetResponse instead.")] + public class DownloadApplePushNotificationCertificateSigningRequestResponse : DownloadApplePushNotificationCertificateSigningRequestGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static DownloadApplePushNotificationCertificateSigningRequestResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DownloadApplePushNotificationCertificateSigningRequestResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DownloadApplePushNotificationCertificateSigningRequestResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryGetResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryGetResponse.cs new file mode 100644 index 00000000000..dc4af2f7cb3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DeviceManagement.AuditEvents.GetAuditActivityTypesWithCategory { + public class GetAuditActivityTypesWithCategoryGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAuditActivityTypesWithCategoryGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAuditActivityTypesWithCategoryGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryRequestBuilder.cs index 6c3598e5501..13e5fbf8e99 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryRequestBuilder.cs @@ -35,6 +35,26 @@ public GetAuditActivityTypesWithCategoryRequestBuilder(string rawUrl, IRequestAd /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetAuditActivityTypesWithCategoryGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetAuditActivityTypesWithCategoryGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAuditActivityTypesWithCategoryGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getAuditActivityTypes + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetAuditActivityTypesWithCategoryGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryResponse.cs index 114366f2304..cc31b0555b6 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryResponse.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.DeviceManagement.AuditEvents.GetAuditActivityTypesWithCategory { - public class GetAuditActivityTypesWithCategoryResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAuditActivityTypesWithCategoryGetResponse instead.")] + public class GetAuditActivityTypesWithCategoryResponse : GetAuditActivityTypesWithCategoryGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAuditActivityTypesWithCategoryResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesGetResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesGetResponse.cs new file mode 100644 index 00000000000..ef4423c100b --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DeviceManagement.AuditEvents.GetAuditCategories { + public class GetAuditCategoriesGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAuditCategoriesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAuditCategoriesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesRequestBuilder.cs index 74cf1b676e6..7a643e1b9ed 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesRequestBuilder.cs @@ -33,6 +33,26 @@ public GetAuditCategoriesRequestBuilder(string rawUrl, IRequestAdapter requestAd /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetAuditCategoriesGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetAuditCategoriesGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAuditCategoriesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getAuditCategories + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetAuditCategoriesGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesResponse.cs index 1859ad21a9e..72bf5ee2ec6 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesResponse.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.DeviceManagement.AuditEvents.GetAuditCategories { - public class GetAuditCategoriesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAuditCategoriesGetResponse instead.")] + public class GetAuditCategoriesResponse : GetAuditCategoriesGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAuditCategoriesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.cs index f6ef9863fe3..bc6dbfea8d4 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.cs @@ -42,8 +42,8 @@ public DeviceCompliancePoliciesRequestBuilder(Dictionary pathPar public DeviceCompliancePoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the androidWorkProfileCompliancePolicy objects. - /// Find more info here + /// List properties and relationships of the iosCompliancePolicy objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -62,8 +62,8 @@ public async Task GetAsync(Action(requestInfo, DeviceCompliancePolicyCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new macOSCompliancePolicy object. - /// Find more info here + /// Create a new iosCompliancePolicy object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task PostAsync(DeviceCompliancePolicy body, return await RequestAdapter.SendAsync(requestInfo, DeviceCompliancePolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the androidWorkProfileCompliancePolicy objects. + /// List properties and relationships of the iosCompliancePolicy objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new macOSCompliancePolicy object. + /// Create a new iosCompliancePolicy object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public DeviceCompliancePoliciesRequestBuilder WithUrl(string rawUrl) { return new DeviceCompliancePoliciesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the androidWorkProfileCompliancePolicy objects. + /// List properties and relationships of the iosCompliancePolicy objects. /// public class DeviceCompliancePoliciesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignPostResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignPostResponse.cs new file mode 100644 index 00000000000..d179597a2ef --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DeviceManagement.DeviceCompliancePolicies.Item.Assign { + public class AssignPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AssignPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AssignPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DeviceCompliancePolicyAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignRequestBuilder.cs index 00765956b1a..07634e041b6 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignRequestBuilder.cs @@ -35,6 +35,29 @@ public AssignRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsAssignPostResponseAsync(AssignPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsAssignPostResponseAsync(AssignPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AssignPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Not yet documented + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsAssignPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(AssignPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignResponse.cs index 833f22a0a31..87e1fbbec31 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignResponse.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.DeviceManagement.DeviceCompliancePolicies.Item.Assign { - public class AssignResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use assignPostResponse instead.")] + public class AssignResponse : AssignPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AssignResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DeviceCompliancePolicyAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.cs index 0b9f633514e..af47eae2c32 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.cs @@ -74,8 +74,8 @@ public DeviceCompliancePolicyItemRequestBuilder(Dictionary pathP public DeviceCompliancePolicyItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a androidCompliancePolicy. - /// Find more info here + /// Deletes a macOSCompliancePolicy. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -114,8 +114,8 @@ public async Task GetAsync(Action(requestInfo, DeviceCompliancePolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a windows81CompliancePolicy object. - /// Find more info here + /// Update the properties of a androidWorkProfileCompliancePolicy object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -136,7 +136,7 @@ public async Task PatchAsync(DeviceCompliancePolicy body return await RequestAdapter.SendAsync(requestInfo, DeviceCompliancePolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a androidCompliancePolicy. + /// Deletes a macOSCompliancePolicy. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -186,7 +186,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a windows81CompliancePolicy object. + /// Update the properties of a androidWorkProfileCompliancePolicy object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.cs index f58c025ad00..149ebe4eaf7 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.cs @@ -42,8 +42,8 @@ public DeviceConfigurationsRequestBuilder(Dictionary pathParamet public DeviceConfigurationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceManagement/deviceConfigurations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the windows10EndpointProtectionConfiguration objects. - /// Find more info here + /// List properties and relationships of the iosCertificateProfile objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -84,7 +84,7 @@ public async Task PostAsync(DeviceConfiguration body, Actio return await RequestAdapter.SendAsync(requestInfo, DeviceConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the windows10EndpointProtectionConfiguration objects. + /// List properties and relationships of the iosCertificateProfile objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -145,7 +145,7 @@ public DeviceConfigurationsRequestBuilder WithUrl(string rawUrl) { return new DeviceConfigurationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the windows10EndpointProtectionConfiguration objects. + /// List properties and relationships of the iosCertificateProfile objects. /// public class DeviceConfigurationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignPostResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignPostResponse.cs new file mode 100644 index 00000000000..e9313ce0d10 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DeviceManagement.DeviceConfigurations.Item.Assign { + public class AssignPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AssignPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AssignPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DeviceConfigurationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignRequestBuilder.cs index f0655175c9c..902ca303543 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignRequestBuilder.cs @@ -35,6 +35,29 @@ public AssignRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsAssignPostResponseAsync(AssignPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsAssignPostResponseAsync(AssignPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AssignPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Not yet documented + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsAssignPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(AssignPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignResponse.cs index 2fe62220672..ec8ad2c4b2f 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignResponse.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.DeviceManagement.DeviceConfigurations.Item.Assign { - public class AssignResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use assignPostResponse instead.")] + public class AssignResponse : AssignPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AssignResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DeviceConfigurationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.cs index 36ee03c9377..f382a946979 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.cs @@ -65,8 +65,8 @@ public DeviceConfigurationItemRequestBuilder(Dictionary pathPara public DeviceConfigurationItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a windows10EnterpriseModernAppManagementConfiguration. - /// Find more info here + /// Deletes a windows10EndpointProtectionConfiguration. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -85,8 +85,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the androidWorkProfileCustomConfiguration object. - /// Find more info here + /// Read properties and relationships of the iosGeneralDeviceConfiguration object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,8 +113,8 @@ public GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder GetOm return new GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder(PathParameters, RequestAdapter, secretReferenceValueId); } /// - /// Update the properties of a windows81GeneralConfiguration object. - /// Find more info here + /// Update the properties of a androidCustomConfiguration object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -135,7 +135,7 @@ public async Task PatchAsync(DeviceConfiguration body, Acti return await RequestAdapter.SendAsync(requestInfo, DeviceConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a windows10EnterpriseModernAppManagementConfiguration. + /// Deletes a windows10EndpointProtectionConfiguration. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -159,7 +159,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the androidWorkProfileCustomConfiguration object. + /// Read properties and relationships of the iosGeneralDeviceConfiguration object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -185,7 +185,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a windows81GeneralConfiguration object. + /// Update the properties of a androidCustomConfiguration object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -236,7 +236,7 @@ public DeviceConfigurationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read properties and relationships of the androidWorkProfileCustomConfiguration object. + /// Read properties and relationships of the iosGeneralDeviceConfiguration object. /// public class DeviceConfigurationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse.cs new file mode 100644 index 00000000000..ab91be4a481 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse.cs @@ -0,0 +1,64 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DeviceManagement.DeviceConfigurations.Item.GetOmaSettingPlainTextValueWithSecretReferenceValueId { + public class GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public string Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Instantiates a new getOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse and sets the default values. + /// + public GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder.cs index a83f67fc3e6..e00c43b7c9d 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder.cs @@ -35,6 +35,26 @@ public GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder(strin /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getOmaSettingPlainTextValue + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdResponse.cs index 705caa0a644..f750a858267 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdResponse.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdResponse.cs @@ -1,64 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.DeviceManagement.DeviceConfigurations.Item.GetOmaSettingPlainTextValueWithSecretReferenceValueId { - public class GetOmaSettingPlainTextValueWithSecretReferenceValueIdResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public string Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } -#endif - /// - /// Instantiates a new getOmaSettingPlainTextValueWithSecretReferenceValueIdResponse and sets the default values. - /// - public GetOmaSettingPlainTextValueWithSecretReferenceValueIdResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use getOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse instead.")] + public class GetOmaSettingPlainTextValueWithSecretReferenceValueIdResponse : GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static GetOmaSettingPlainTextValueWithSecretReferenceValueIdResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetOmaSettingPlainTextValueWithSecretReferenceValueIdResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetOmaSettingPlainTextValueWithSecretReferenceValueIdResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.cs index e434e467e54..8d3e3b75659 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.cs @@ -42,8 +42,8 @@ public DeviceEnrollmentConfigurationsRequestBuilder(Dictionary p public DeviceEnrollmentConfigurationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceManagement/deviceEnrollmentConfigurations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. - /// Find more info here + /// List properties and relationships of the deviceEnrollmentLimitConfiguration objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -84,7 +84,7 @@ public async Task PostAsync(DeviceEnrollmentConfi return await RequestAdapter.SendAsync(requestInfo, DeviceEnrollmentConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. + /// List properties and relationships of the deviceEnrollmentLimitConfiguration objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -145,7 +145,7 @@ public DeviceEnrollmentConfigurationsRequestBuilder WithUrl(string rawUrl) { return new DeviceEnrollmentConfigurationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. + /// List properties and relationships of the deviceEnrollmentLimitConfiguration objects. /// public class DeviceEnrollmentConfigurationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.cs index 699c68e36fe..8c7ba8cdef0 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.cs @@ -44,8 +44,8 @@ public DeviceEnrollmentConfigurationItemRequestBuilder(Dictionary - /// Deletes a deviceEnrollmentWindowsHelloForBusinessConfiguration. - /// Find more info here + /// Deletes a deviceEnrollmentPlatformRestrictionsConfiguration. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, DeviceEnrollmentConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a deviceEnrollmentPlatformRestrictionsConfiguration object. - /// Find more info here + /// Update the properties of a deviceEnrollmentLimitConfiguration object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -106,7 +106,7 @@ public async Task PatchAsync(DeviceEnrollmentConf return await RequestAdapter.SendAsync(requestInfo, DeviceEnrollmentConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a deviceEnrollmentWindowsHelloForBusinessConfiguration. + /// Deletes a deviceEnrollmentPlatformRestrictionsConfiguration. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -156,7 +156,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a deviceEnrollmentPlatformRestrictionsConfiguration object. + /// Update the properties of a deviceEnrollmentLimitConfiguration object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementRequestBuilder.cs index 230c9dc9b8b..8abf0f0cd43 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementRequestBuilder.cs @@ -322,7 +322,7 @@ public DeviceManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdap } /// /// Read properties and relationships of the deviceManagement object. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -350,7 +350,7 @@ public GetEffectivePermissionsWithScopeRequestBuilder GetEffectivePermissionsWit } /// /// Update the properties of a deviceManagement object. - /// Find more info here + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeGetResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeGetResponse.cs new file mode 100644 index 00000000000..daf1cb3821b --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DeviceManagement.GetEffectivePermissionsWithScope { + public class GetEffectivePermissionsWithScopeGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetEffectivePermissionsWithScopeGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetEffectivePermissionsWithScopeGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(RolePermission.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeRequestBuilder.cs index 7de241c8ed3..8aa8e7e0508 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeRequestBuilder.cs @@ -35,6 +35,26 @@ public GetEffectivePermissionsWithScopeRequestBuilder(string rawUrl, IRequestAda /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetEffectivePermissionsWithScopeGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetEffectivePermissionsWithScopeGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetEffectivePermissionsWithScopeGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Retrieves the effective permissions of the currently authenticated user + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetEffectivePermissionsWithScopeGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeResponse.cs index 55f83160976..2923c61c30d 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeResponse.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.DeviceManagement.GetEffectivePermissionsWithScope { - public class GetEffectivePermissionsWithScopeResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getEffectivePermissionsWithScopeGetResponse instead.")] + public class GetEffectivePermissionsWithScopeResponse : GetEffectivePermissionsWithScopeGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetEffectivePermissionsWithScopeResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(RolePermission.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportPostResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportPostResponse.cs new file mode 100644 index 00000000000..078dae125d1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DeviceManagement.ImportedWindowsAutopilotDeviceIdentities.Import { + public class ImportPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new ImportPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new ImportPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ImportedWindowsAutopilotDeviceIdentity.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportRequestBuilder.cs index 2567acd4ac6..3d922e27da0 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportRequestBuilder.cs @@ -35,6 +35,29 @@ public ImportRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsImportPostResponseAsync(ImportPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsImportPostResponseAsync(ImportPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ImportPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Not yet documented + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsImportPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(ImportPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportResponse.cs index 49acbecb8e7..3f5821b5e28 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportResponse.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.DeviceManagement.ImportedWindowsAutopilotDeviceIdentities.Import { - public class ImportResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use importPostResponse instead.")] + public class ImportResponse : ImportPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ImportResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ImportedWindowsAutopilotDeviceIdentity.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlPostResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlPostResponse.cs new file mode 100644 index 00000000000..a959dbc9978 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlPostResponse.cs @@ -0,0 +1,64 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DeviceManagement.ManagedDevices.Item.LogCollectionRequests.Item.CreateDownloadUrl { + public class CreateDownloadUrlPostResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public string Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Instantiates a new createDownloadUrlPostResponse and sets the default values. + /// + public CreateDownloadUrlPostResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static CreateDownloadUrlPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CreateDownloadUrlPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.cs index c6562430208..0ef268412e8 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.cs @@ -33,6 +33,26 @@ public CreateDownloadUrlRequestBuilder(string rawUrl, IRequestAdapter requestAda /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCreateDownloadUrlPostResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCreateDownloadUrlPostResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CreateDownloadUrlPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action createDownloadUrl + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCreateDownloadUrlPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlResponse.cs index 7e6b30446f9..713ce272058 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlResponse.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlResponse.cs @@ -1,64 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.DeviceManagement.ManagedDevices.Item.LogCollectionRequests.Item.CreateDownloadUrl { - public class CreateDownloadUrlResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public string Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } -#endif - /// - /// Instantiates a new createDownloadUrlResponse and sets the default values. - /// - public CreateDownloadUrlResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use createDownloadUrlPostResponse instead.")] + public class CreateDownloadUrlResponse : CreateDownloadUrlPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static CreateDownloadUrlResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CreateDownloadUrlResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CreateDownloadUrlResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.cs index fe2e9f90063..1a662ff43e1 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.cs @@ -34,8 +34,8 @@ public RoleDefinitionItemRequestBuilder(Dictionary pathParameter public RoleDefinitionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceManagement/roleDefinitions/{roleDefinition%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a roleDefinition. - /// Find more info here + /// Deletes a deviceAndAppManagementRoleDefinition. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -54,8 +54,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the deviceAndAppManagementRoleDefinition object. - /// Find more info here + /// Read properties and relationships of the roleDefinition object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -74,8 +74,8 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.RoleDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a roleDefinition object. - /// Find more info here + /// Update the properties of a deviceAndAppManagementRoleDefinition object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -96,7 +96,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.RoleDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a roleDefinition. + /// Deletes a deviceAndAppManagementRoleDefinition. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the deviceAndAppManagementRoleDefinition object. + /// Read properties and relationships of the roleDefinition object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a roleDefinition object. + /// Update the properties of a deviceAndAppManagementRoleDefinition object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public RoleDefinitionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read properties and relationships of the deviceAndAppManagementRoleDefinition object. + /// Read properties and relationships of the roleDefinition object. /// public class RoleDefinitionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse.cs new file mode 100644 index 00000000000..34eaa20e860 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DeviceManagement.UserExperienceAnalyticsDevicePerformance.SummarizeDevicePerformanceDevicesWithSummarizeBy { + public class SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.UserExperienceAnalyticsDevicePerformance.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilder.cs index 704a255cae3..27da7ea1c3b 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilder.cs @@ -35,6 +35,26 @@ public SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilder(string raw /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsSummarizeDevicePerformanceDevicesWithSummarizeByGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsSummarizeDevicePerformanceDevicesWithSummarizeByGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function summarizeDevicePerformanceDevices + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsSummarizeDevicePerformanceDevicesWithSummarizeByGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByResponse.cs index 590c2c1701b..7d486b826c9 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByResponse.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.DeviceManagement.UserExperienceAnalyticsDevicePerformance.SummarizeDevicePerformanceDevicesWithSummarizeBy { - public class SummarizeDevicePerformanceDevicesWithSummarizeByResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use summarizeDevicePerformanceDevicesWithSummarizeByGetResponse instead.")] + public class SummarizeDevicePerformanceDevicesWithSummarizeByResponse : SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Val _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SummarizeDevicePerformanceDevicesWithSummarizeByResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.UserExperienceAnalyticsDevicePerformance.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse.cs new file mode 100644 index 00000000000..202d1210072 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DeviceManagement.VerifyWindowsEnrollmentAutoDiscoveryWithDomainName { + public class VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public bool? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new verifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse and sets the default values. + /// + public VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder.cs index d86b6d2167d..15bd2091711 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder.cs @@ -35,6 +35,26 @@ public VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder(string r /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsVerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsVerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function verifyWindowsEnrollmentAutoDiscovery + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsVerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameResponse.cs index 5d97e5819cf..79dc48929e1 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameResponse.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.DeviceManagement.VerifyWindowsEnrollmentAutoDiscoveryWithDomainName { - public class VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public bool? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new verifyWindowsEnrollmentAutoDiscoveryWithDomainNameResponse and sets the default values. - /// - public VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use verifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse instead.")] + public class VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameResponse : VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Devices/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Devices/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..609caf16661 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Devices/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Devices.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Device.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Devices/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Delta/DeltaRequestBuilder.cs index 678d8e5924b..365d5cce0df 100644 --- a/src/Microsoft.Graph/Generated/Devices/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Devices/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Devices/Delta/DeltaResponse.cs index cf5396b8a68..a2aef4ac658 100644 --- a/src/Microsoft.Graph/Generated/Devices/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Devices/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Devices.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Device.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Devices/DevicesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/DevicesRequestBuilder.cs index bbdf09562e5..b761b85c495 100644 --- a/src/Microsoft.Graph/Generated/Devices/DevicesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/DevicesRequestBuilder.cs @@ -62,7 +62,7 @@ public DevicesRequestBuilder(Dictionary pathParameters, IRequest public DevicesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of device objects registered in the organization. + /// Retrieve a list of device objects registered in the organization. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -82,7 +82,7 @@ public async Task GetAsync(Action(requestInfo, DeviceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create and register a new device in the organization. + /// Create and register a new device in the organization. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -104,7 +104,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Device.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of device objects registered in the organization. + /// Retrieve a list of device objects registered in the organization. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -130,7 +130,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create and register a new device in the organization. + /// Create and register a new device in the organization. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -165,7 +165,7 @@ public DevicesRequestBuilder WithUrl(string rawUrl) { return new DevicesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of device objects registered in the organization. + /// Retrieve a list of device objects registered in the organization. This API is supported in the following national cloud deployments. /// public class DevicesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs new file mode 100644 index 00000000000..ca6923690bc --- /dev/null +++ b/src/Microsoft.Graph/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Devices.GetAvailableExtensionProperties { + public class GetAvailableExtensionPropertiesPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAvailableExtensionPropertiesPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index a18f1029ec4..b3fb8b83377 100644 --- a/src/Microsoft.Graph/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -28,13 +28,36 @@ public GetAvailableExtensionPropertiesRequestBuilder(Dictionary public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/getAvailableExtensionProperties", rawUrl) { } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetAvailableExtensionPropertiesPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetAvailabl return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index 9803a20700e..2fe1740875b 100644 --- a/src/Microsoft.Graph/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Devices.GetAvailableExtensionProperties { - public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAvailableExtensionPropertiesPostResponse instead.")] + public class GetAvailableExtensionPropertiesResponse : GetAvailableExtensionPropertiesPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Devices/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/Devices/GetByIds/GetByIdsPostResponse.cs new file mode 100644 index 00000000000..6062272e09d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Devices/GetByIds/GetByIdsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Devices.GetByIds { + public class GetByIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetByIdsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Devices/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/GetByIds/GetByIdsRequestBuilder.cs index bd9d7df0e85..734f966b7da 100644 --- a/src/Microsoft.Graph/Generated/Devices/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/GetByIds/GetByIdsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetByIdsRequestBuilder(Dictionary pathParameters, IReques public GetByIdsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/getByIds", rawUrl) { } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetByIdsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetByIdsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetByIdsPostRequestBody body, Acti return await RequestAdapter.SendAsync(requestInfo, GetByIdsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Devices/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/Devices/GetByIds/GetByIdsResponse.cs index 229bb1e103a..5b1f41dec29 100644 --- a/src/Microsoft.Graph/Generated/Devices/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/Devices/GetByIds/GetByIdsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Devices.GetByIds { - public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getByIdsPostResponse instead.")] + public class GetByIdsResponse : GetByIdsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..78e1b11789f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Devices.Item.CheckMemberGroups { + public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index e7bc0ad845a..0b78a1e4785 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index 068182632b3..62c96c7110c 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Devices.Item.CheckMemberGroups { - public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberGroupsPostResponse instead.")] + public class CheckMemberGroupsResponse : CheckMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..920ec040d6a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Devices.Item.CheckMemberObjects { + public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index 01dc2fa9bb6..97bda4f362c 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -34,6 +34,28 @@ public CheckMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAd /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action checkMemberObjects + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index d65658317d9..e3a5843774c 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Devices.Item.CheckMemberObjects { - public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberObjectsPostResponse instead.")] + public class CheckMemberObjectsResponse : CheckMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Devices/Item/DeviceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/DeviceItemRequestBuilder.cs index 9c36bf906cd..631d6acf7df 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/DeviceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/DeviceItemRequestBuilder.cs @@ -79,7 +79,7 @@ public DeviceItemRequestBuilder(Dictionary pathParameters, IRequ public DeviceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a registered device. + /// Delete a registered device. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -99,7 +99,7 @@ public async Task DeleteAsync(Action - /// Get the properties and relationships of a device object. + /// Get the properties and relationships of a device object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -119,7 +119,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Device.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a registered device. Only certain properties of a device can be updated through approved Mobile Device Managment (MDM) apps. + /// Update the properties of a registered device. Only certain properties of a device can be updated through approved Mobile Device Managment (MDM) apps. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -141,7 +141,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Device.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a registered device. + /// Delete a registered device. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -165,7 +165,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties and relationships of a device object. + /// Get the properties and relationships of a device object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a registered device. Only certain properties of a device can be updated through approved Mobile Device Managment (MDM) apps. + /// Update the properties of a registered device. Only certain properties of a device can be updated through approved Mobile Device Managment (MDM) apps. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -242,7 +242,7 @@ public DeviceItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the properties and relationships of a device object. + /// Get the properties and relationships of a device object. This API is supported in the following national cloud deployments. /// public class DeviceItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..c1cd1d3e26f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Devices.Item.GetMemberGroups { + public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index 7e31b6706a0..506252b8c0c 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberGroupsRequestBuilder(Dictionary pathParameters, public GetMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/getMemberGroups", rawUrl) { } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberGroupsPostRequestB return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsResponse.cs index eb47d8ae149..8317e701368 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Devices.Item.GetMemberGroups { - public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberGroupsPostResponse instead.")] + public class GetMemberGroupsResponse : GetMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..1988d2a478e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Devices.Item.GetMemberObjects { + public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index 48ec5d1dea9..8e5fb7a03b4 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberObjectsRequestBuilder(Dictionary pathParameters, public GetMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/getMemberObjects", rawUrl) { } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberObjectsPostReques return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsResponse.cs index 08dfc6aca54..7c9886ba98b 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Devices.Item.GetMemberObjects { - public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberObjectsPostResponse instead.")] + public class GetMemberObjectsResponse : GetMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.cs index aff5b669a2a..2691d77078c 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.cs @@ -28,7 +28,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { } /// - /// Remove a user as a registered owner of the device. + /// Remove a user as a registered owner of the device. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Remove a user as a registered owner of the device. + /// Remove a user as a registered owner of the device. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -80,7 +80,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a user as a registered owner of the device. + /// Remove a user as a registered owner of the device. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderDeleteQueryParameters { /// Delete Uri diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Ref/RefRequestBuilder.cs index d6ebcf7e828..d31b5c70f58 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Ref/RefRequestBuilder.cs @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, StringCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a user as a registered owner of the device. + /// Add a user as a registered owner of the device. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -97,7 +97,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a user as a registered owner of the device. + /// Add a user as a registered owner of the device. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.cs index b55babef041..b2846d22cd1 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.cs @@ -28,7 +28,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { } /// - /// Remove a user as a registered user of the device. + /// Remove a user as a registered user of the device. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Remove a user as a registered user of the device. + /// Remove a user as a registered user of the device. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -80,7 +80,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a user as a registered user of the device. + /// Remove a user as a registered user of the device. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderDeleteQueryParameters { /// Delete Uri diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Ref/RefRequestBuilder.cs index 7cfa3f9ac7d..d6033f17132 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Ref/RefRequestBuilder.cs @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, StringCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a registered user for the device. + /// Add a registered user for the device. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -97,7 +97,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a registered user for the device. + /// Add a registered user for the device. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Devices/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/Restore/RestoreRequestBuilder.cs index 27ec3f017d3..23db8aed428 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/Restore/RestoreRequestBuilder.cs @@ -29,7 +29,7 @@ public RestoreRequestBuilder(Dictionary pathParameters, IRequest public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Devices/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/ValidateProperties/ValidatePropertiesRequestBuilder.cs index 9a84002338e..642765c4385 100644 --- a/src/Microsoft.Graph/Generated/Devices/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -28,7 +28,7 @@ public ValidatePropertiesRequestBuilder(Dictionary pathParameter public ValidatePropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/validateProperties", rawUrl) { } /// - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ValidatePropertiesPostRequestBody body, Action - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/DevicesWithDeviceId/DevicesWithDeviceIdRequestBuilder.cs b/src/Microsoft.Graph/Generated/DevicesWithDeviceId/DevicesWithDeviceIdRequestBuilder.cs index bb749ad9e66..271673b61a0 100644 --- a/src/Microsoft.Graph/Generated/DevicesWithDeviceId/DevicesWithDeviceIdRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DevicesWithDeviceId/DevicesWithDeviceIdRequestBuilder.cs @@ -31,7 +31,7 @@ public DevicesWithDeviceIdRequestBuilder(Dictionary pathParamete public DevicesWithDeviceIdRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices(deviceId='{deviceId}'){?%24select,%24expand}", rawUrl) { } /// - /// Delete a registered device. + /// Delete a registered device. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -51,7 +51,7 @@ public async Task DeleteAsync(Action - /// Get the properties and relationships of a device object. + /// Get the properties and relationships of a device object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -71,7 +71,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Device.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a registered device. Only certain properties of a device can be updated through approved Mobile Device Managment (MDM) apps. + /// Update the properties of a registered device. Only certain properties of a device can be updated through approved Mobile Device Managment (MDM) apps. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -93,7 +93,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Device.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a registered device. + /// Delete a registered device. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -117,7 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties and relationships of a device object. + /// Get the properties and relationships of a device object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a registered device. Only certain properties of a device can be updated through approved Mobile Device Managment (MDM) apps. + /// Update the properties of a registered device. Only certain properties of a device can be updated through approved Mobile Device Managment (MDM) apps. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -194,7 +194,7 @@ public DevicesWithDeviceIdRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the properties and relationships of a device object. + /// Get the properties and relationships of a device object. This API is supported in the following national cloud deployments. /// public class DevicesWithDeviceIdRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/AdministrativeUnitsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/AdministrativeUnitsRequestBuilder.cs index 5a41f97a9a6..c9c42322a50 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/AdministrativeUnitsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/AdministrativeUnitsRequestBuilder.cs @@ -47,7 +47,7 @@ public AdministrativeUnitsRequestBuilder(Dictionary pathParamete public AdministrativeUnitsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/administrativeUnits{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of administrativeUnit objects. + /// Retrieve a list of administrativeUnit objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AdministrativeUnitCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to create a new administrativeUnit. + /// Use this API to create a new administrativeUnit. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.AdministrativeUnit.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of administrativeUnit objects. + /// Retrieve a list of administrativeUnit objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new administrativeUnit. + /// Use this API to create a new administrativeUnit. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AdministrativeUnitsRequestBuilder WithUrl(string rawUrl) { return new AdministrativeUnitsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of administrativeUnit objects. + /// Retrieve a list of administrativeUnit objects. This API is supported in the following national cloud deployments. /// public class AdministrativeUnitsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..4d51d153e8f --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DirectoryNamespace.AdministrativeUnits.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.AdministrativeUnit.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Delta/DeltaRequestBuilder.cs index be689b602ef..2a1576c3445 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Delta/DeltaResponse.cs index 46e74dc00fa..f54dd8c8310 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.DirectoryNamespace.AdministrativeUnits.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.AdministrativeUnit.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/AdministrativeUnitItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/AdministrativeUnitItemRequestBuilder.cs index c0f0fb44df6..67cd232466e 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/AdministrativeUnitItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/AdministrativeUnitItemRequestBuilder.cs @@ -44,7 +44,7 @@ public AdministrativeUnitItemRequestBuilder(Dictionary pathParam public AdministrativeUnitItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an administrativeUnit. + /// Delete an administrativeUnit. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -64,7 +64,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of an administrativeUnit object. + /// Retrieve the properties and relationships of an administrativeUnit object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.AdministrativeUnit.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an administrativeUnit object. + /// Update the properties of an administrativeUnit object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -106,7 +106,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.AdministrativeUnit.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an administrativeUnit. + /// Delete an administrativeUnit. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of an administrativeUnit object. + /// Retrieve the properties and relationships of an administrativeUnit object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -156,7 +156,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an administrativeUnit object. + /// Update the properties of an administrativeUnit object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -207,7 +207,7 @@ public AdministrativeUnitItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of an administrativeUnit object. + /// Retrieve the properties and relationships of an administrativeUnit object. This API is supported in the following national cloud deployments. /// public class AdministrativeUnitItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/Ref/RefRequestBuilder.cs index 9161197e40f..acc8fcba7c8 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/Ref/RefRequestBuilder.cs @@ -28,7 +28,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { } /// - /// Use this API to remove a member (user, group, or device) from an administrative unit. + /// Use this API to remove a member (user, group, or device) from an administrative unit. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Use this API to remove a member (user, group, or device) from an administrative unit. + /// Use this API to remove a member (user, group, or device) from an administrative unit. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -80,7 +80,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Use this API to remove a member (user, group, or device) from an administrative unit. + /// Use this API to remove a member (user, group, or device) from an administrative unit. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderDeleteQueryParameters { /// Delete Uri diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/ScopedRoleMembers/Item/ScopedRoleMembershipItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/ScopedRoleMembers/Item/ScopedRoleMembershipItemRequestBuilder.cs index 14c42895dba..ab26bf1b49d 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/ScopedRoleMembers/Item/ScopedRoleMembershipItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/ScopedRoleMembers/Item/ScopedRoleMembershipItemRequestBuilder.cs @@ -29,7 +29,7 @@ public ScopedRoleMembershipItemRequestBuilder(Dictionary pathPar public ScopedRoleMembershipItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/scopedRoleMembers/{scopedRoleMembership%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Remove an Azure Active Directory (Azure AD) role assignment with administrative unit scope. + /// Remove an Azure Active Directory (Azure AD) role assignment with administrative unit scope. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get an Azure Active Directory (Azure AD) role assignment with administrative unit scope. + /// Get an Azure Active Directory (Azure AD) role assignment with administrative unit scope. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(ScopedRoleMembership body, Ac return await RequestAdapter.SendAsync(requestInfo, ScopedRoleMembership.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Remove an Azure Active Directory (Azure AD) role assignment with administrative unit scope. + /// Remove an Azure Active Directory (Azure AD) role assignment with administrative unit scope. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an Azure Active Directory (Azure AD) role assignment with administrative unit scope. + /// Get an Azure Active Directory (Azure AD) role assignment with administrative unit scope. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public ScopedRoleMembershipItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an Azure Active Directory (Azure AD) role assignment with administrative unit scope. + /// Get an Azure Active Directory (Azure AD) role assignment with administrative unit scope. This API is supported in the following national cloud deployments. /// public class ScopedRoleMembershipItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/ScopedRoleMembers/ScopedRoleMembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/ScopedRoleMembers/ScopedRoleMembersRequestBuilder.cs index 3bb575350be..4d30995d122 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/ScopedRoleMembers/ScopedRoleMembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/ScopedRoleMembers/ScopedRoleMembersRequestBuilder.cs @@ -42,7 +42,7 @@ public ScopedRoleMembersRequestBuilder(Dictionary pathParameters public ScopedRoleMembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/scopedRoleMembers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List Azure Active Directory (Azure AD) role assignments with administrative unit scope. + /// List Azure Active Directory (Azure AD) role assignments with administrative unit scope. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ScopedRoleMembershipCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Assign an Azure Active Directory (Azure AD) role with administrative unit scope. For a list of roles that can be assigned with administrative unit scope, see Assign Azure AD roles with administrative unit scope. + /// Assign an Azure Active Directory (Azure AD) role with administrative unit scope. For a list of roles that can be assigned with administrative unit scope, see Assign Azure AD roles with administrative unit scope. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(ScopedRoleMembership body, Act return await RequestAdapter.SendAsync(requestInfo, ScopedRoleMembership.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List Azure Active Directory (Azure AD) role assignments with administrative unit scope. + /// List Azure Active Directory (Azure AD) role assignments with administrative unit scope. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Assign an Azure Active Directory (Azure AD) role with administrative unit scope. For a list of roles that can be assigned with administrative unit scope, see Assign Azure AD roles with administrative unit scope. + /// Assign an Azure Active Directory (Azure AD) role with administrative unit scope. For a list of roles that can be assigned with administrative unit scope, see Assign Azure AD roles with administrative unit scope. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ScopedRoleMembersRequestBuilder WithUrl(string rawUrl) { return new ScopedRoleMembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// List Azure Active Directory (Azure AD) role assignments with administrative unit scope. + /// List Azure Active Directory (Azure AD) role assignments with administrative unit scope. This API is supported in the following national cloud deployments. /// public class ScopedRoleMembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AttributeSets/AttributeSetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AttributeSets/AttributeSetsRequestBuilder.cs index a866274f9bc..9b7872d77eb 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AttributeSets/AttributeSetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AttributeSets/AttributeSetsRequestBuilder.cs @@ -42,7 +42,7 @@ public AttributeSetsRequestBuilder(Dictionary pathParameters, IR public AttributeSetsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/attributeSets{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the attributeSet objects and their properties. + /// Get a list of the attributeSet objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, AttributeSetCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new attributeSet object. + /// Create a new attributeSet object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(AttributeSet body, Action(requestInfo, AttributeSet.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the attributeSet objects and their properties. + /// Get a list of the attributeSet objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new attributeSet object. + /// Create a new attributeSet object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public AttributeSetsRequestBuilder WithUrl(string rawUrl) { return new AttributeSetsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the attributeSet objects and their properties. + /// Get a list of the attributeSet objects and their properties. This API is supported in the following national cloud deployments. /// public class AttributeSetsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AttributeSets/Item/AttributeSetItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AttributeSets/Item/AttributeSetItemRequestBuilder.cs index 6d71919c6be..79e69762131 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AttributeSets/Item/AttributeSetItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AttributeSets/Item/AttributeSetItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an attributeSet object. + /// Read the properties and relationships of an attributeSet object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, AttributeSet.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an attributeSet object. + /// Update the properties of an attributeSet object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an attributeSet object. + /// Read the properties and relationships of an attributeSet object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an attributeSet object. + /// Update the properties of an attributeSet object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -191,7 +191,7 @@ public AttributeSetItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of an attributeSet object. + /// Read the properties and relationships of an attributeSet object. This API is supported in the following national cloud deployments. /// public class AttributeSetItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/CustomSecurityAttributeDefinitionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/CustomSecurityAttributeDefinitionsRequestBuilder.cs index 757a6e246c0..b19419a1ff2 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/CustomSecurityAttributeDefinitionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/CustomSecurityAttributeDefinitionsRequestBuilder.cs @@ -42,7 +42,7 @@ public CustomSecurityAttributeDefinitionsRequestBuilder(Dictionary - /// Get a list of the customSecurityAttributeDefinition objects and their properties. + /// Get a list of the customSecurityAttributeDefinition objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync( return await RequestAdapter.SendAsync(requestInfo, CustomSecurityAttributeDefinitionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new customSecurityAttributeDefinition object. + /// Create a new customSecurityAttributeDefinition object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(CustomSecurityAtt return await RequestAdapter.SendAsync(requestInfo, CustomSecurityAttributeDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the customSecurityAttributeDefinition objects and their properties. + /// Get a list of the customSecurityAttributeDefinition objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new customSecurityAttributeDefinition object. + /// Create a new customSecurityAttributeDefinition object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public CustomSecurityAttributeDefinitionsRequestBuilder WithUrl(string rawUrl) { return new CustomSecurityAttributeDefinitionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the customSecurityAttributeDefinition objects and their properties. + /// Get a list of the customSecurityAttributeDefinition objects and their properties. This API is supported in the following national cloud deployments. /// public class CustomSecurityAttributeDefinitionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/AllowedValues/AllowedValuesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/AllowedValues/AllowedValuesRequestBuilder.cs index 436b1a7179b..36d3c22fc77 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/AllowedValues/AllowedValuesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/AllowedValues/AllowedValuesRequestBuilder.cs @@ -42,7 +42,7 @@ public AllowedValuesRequestBuilder(Dictionary pathParameters, IR public AllowedValuesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/customSecurityAttributeDefinitions/{customSecurityAttributeDefinition%2Did}/allowedValues{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the allowedValue objects and their properties. + /// Get a list of the allowedValue objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, AllowedValueCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new allowedValue object. + /// Create a new allowedValue object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(AllowedValue body, Action(requestInfo, AllowedValue.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the allowedValue objects and their properties. + /// Get a list of the allowedValue objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new allowedValue object. + /// Create a new allowedValue object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public AllowedValuesRequestBuilder WithUrl(string rawUrl) { return new AllowedValuesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the allowedValue objects and their properties. + /// Get a list of the allowedValue objects and their properties. This API is supported in the following national cloud deployments. /// public class AllowedValuesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/AllowedValues/Item/AllowedValueItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/AllowedValues/Item/AllowedValueItemRequestBuilder.cs index a1bd1fb1503..8279e516e7b 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/AllowedValues/Item/AllowedValueItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/AllowedValues/Item/AllowedValueItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an allowedValue object. + /// Read the properties and relationships of an allowedValue object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, AllowedValue.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an allowedValue object. + /// Update the properties of an allowedValue object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an allowedValue object. + /// Read the properties and relationships of an allowedValue object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an allowedValue object. + /// Update the properties of an allowedValue object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -191,7 +191,7 @@ public AllowedValueItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of an allowedValue object. + /// Read the properties and relationships of an allowedValue object. This API is supported in the following national cloud deployments. /// public class AllowedValueItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/CustomSecurityAttributeDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/CustomSecurityAttributeDefinitionItemRequestBuilder.cs index d1065ce8cb3..bf0a3b2cda1 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/CustomSecurityAttributeDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/CustomSecurityAttributeDefinitionItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a customSecurityAttributeDefinition object. + /// Read the properties and relationships of a customSecurityAttributeDefinition object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -73,7 +73,7 @@ public async Task GetAsync(Action(requestInfo, CustomSecurityAttributeDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a customSecurityAttributeDefinition object. + /// Update the properties of a customSecurityAttributeDefinition object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -119,7 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a customSecurityAttributeDefinition object. + /// Read the properties and relationships of a customSecurityAttributeDefinition object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -145,7 +145,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a customSecurityAttributeDefinition object. + /// Update the properties of a customSecurityAttributeDefinition object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -196,7 +196,7 @@ public CustomSecurityAttributeDefinitionItemRequestBuilderDeleteRequestConfigura } } /// - /// Read the properties and relationships of a customSecurityAttributeDefinition object. + /// Read the properties and relationships of a customSecurityAttributeDefinition object. This API is supported in the following national cloud deployments. /// public class CustomSecurityAttributeDefinitionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/DeletedItemsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/DeletedItemsRequestBuilder.cs index 598e3976ae2..a39681d6fa4 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/DeletedItemsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/DeletedItemsRequestBuilder.cs @@ -1,8 +1,5 @@ // using Microsoft.Graph.DirectoryNamespace.DeletedItems.Count; -using Microsoft.Graph.DirectoryNamespace.DeletedItems.Delta; -using Microsoft.Graph.DirectoryNamespace.DeletedItems.GetAvailableExtensionProperties; -using Microsoft.Graph.DirectoryNamespace.DeletedItems.GetByIds; using Microsoft.Graph.DirectoryNamespace.DeletedItems.GraphAdministrativeUnit; using Microsoft.Graph.DirectoryNamespace.DeletedItems.GraphApplication; using Microsoft.Graph.DirectoryNamespace.DeletedItems.GraphDevice; @@ -10,7 +7,6 @@ using Microsoft.Graph.DirectoryNamespace.DeletedItems.GraphServicePrincipal; using Microsoft.Graph.DirectoryNamespace.DeletedItems.GraphUser; using Microsoft.Graph.DirectoryNamespace.DeletedItems.Item; -using Microsoft.Graph.DirectoryNamespace.DeletedItems.ValidateProperties; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -30,18 +26,6 @@ public class DeletedItemsRequestBuilder : BaseRequestBuilder { public CountRequestBuilder Count { get => new CountRequestBuilder(PathParameters, RequestAdapter); } - /// Provides operations to call the delta method. - public DeltaRequestBuilder Delta { get => - new DeltaRequestBuilder(PathParameters, RequestAdapter); - } - /// Provides operations to call the getAvailableExtensionProperties method. - public GetAvailableExtensionPropertiesRequestBuilder GetAvailableExtensionProperties { get => - new GetAvailableExtensionPropertiesRequestBuilder(PathParameters, RequestAdapter); - } - /// Provides operations to call the getByIds method. - public GetByIdsRequestBuilder GetByIds { get => - new GetByIdsRequestBuilder(PathParameters, RequestAdapter); - } /// Casts the previous resource to administrativeUnit. public GraphAdministrativeUnitRequestBuilder GraphAdministrativeUnit { get => new GraphAdministrativeUnitRequestBuilder(PathParameters, RequestAdapter); @@ -66,10 +50,6 @@ public class DeletedItemsRequestBuilder : BaseRequestBuilder { public GraphUserRequestBuilder GraphUser { get => new GraphUserRequestBuilder(PathParameters, RequestAdapter); } - /// Provides operations to call the validateProperties method. - public ValidatePropertiesRequestBuilder ValidateProperties { get => - new ValidatePropertiesRequestBuilder(PathParameters, RequestAdapter); - } /// Provides operations to manage the deletedItems property of the microsoft.graph.directory entity. /// The unique identifier of directoryObject public DirectoryObjectItemRequestBuilder this[string position] { get { @@ -92,7 +72,7 @@ public DeletedItemsRequestBuilder(Dictionary pathParameters, IRe public DeletedItemsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. + /// Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -111,28 +91,7 @@ public async Task GetAsync(Action(requestInfo, DirectoryObjectCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create new navigation property to deletedItems for directory - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(DirectoryObject body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PostAsync(DirectoryObject body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. + /// Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,34 +117,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to deletedItems for directory - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(DirectoryObject body, Action? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(DirectoryObject body, Action requestConfiguration = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.POST, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new DeletedItemsRequestBuilderPostRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// /// The raw URL to use for the request builder. @@ -193,7 +124,7 @@ public DeletedItemsRequestBuilder WithUrl(string rawUrl) { return new DeletedItemsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. + /// Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. This API is supported in the following national cloud deployments. /// public class DeletedItemsRequestBuilderGetQueryParameters { /// Include count of items @@ -274,21 +205,5 @@ public DeletedItemsRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class DeletedItemsRequestBuilderPostRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new deletedItemsRequestBuilderPostRequestConfiguration and sets the default values. - /// - public DeletedItemsRequestBuilderPostRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs deleted file mode 100644 index 40af4f1ac16..00000000000 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ /dev/null @@ -1,104 +0,0 @@ -// -using Microsoft.Graph.Models.ODataErrors; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.GetAvailableExtensionProperties { - /// - /// Provides operations to call the getAvailableExtensionProperties method. - /// - public class GetAvailableExtensionPropertiesRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new GetAvailableExtensionPropertiesRequestBuilder and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public GetAvailableExtensionPropertiesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/getAvailableExtensionProperties", pathParameters) { - } - /// - /// Instantiates a new GetAvailableExtensionPropertiesRequestBuilder and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/getAvailableExtensionProperties", rawUrl) { - } - /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization - /// Find more info here - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PostAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(GetAvailableExtensionPropertiesPostRequestBody body, Action requestConfiguration = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.POST, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// The raw URL to use for the request builder. - public GetAvailableExtensionPropertiesRequestBuilder WithUrl(string rawUrl) { - return new GetAvailableExtensionPropertiesRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new getAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration and sets the default values. - /// - public GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } - } -} diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs deleted file mode 100644 index ec82a7ea800..00000000000 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ /dev/null @@ -1,104 +0,0 @@ -// -using Microsoft.Graph.Models.ODataErrors; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.CheckMemberGroups { - /// - /// Provides operations to call the checkMemberGroups method. - /// - public class CheckMemberGroupsRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new CheckMemberGroupsRequestBuilder and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public CheckMemberGroupsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/checkMemberGroups", pathParameters) { - } - /// - /// Instantiates a new CheckMemberGroupsRequestBuilder and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/checkMemberGroups", rawUrl) { - } - /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - /// Find more info here - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PostAsync(CheckMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestBody body, Action requestConfiguration = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.POST, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new CheckMemberGroupsRequestBuilderPostRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// The raw URL to use for the request builder. - public CheckMemberGroupsRequestBuilder WithUrl(string rawUrl) { - return new CheckMemberGroupsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class CheckMemberGroupsRequestBuilderPostRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new checkMemberGroupsRequestBuilderPostRequestConfiguration and sets the default values. - /// - public CheckMemberGroupsRequestBuilderPostRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } - } -} diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/DirectoryObjectItemRequestBuilder.cs index da7d2b99348..0dad32fd46a 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/DirectoryObjectItemRequestBuilder.cs @@ -1,15 +1,10 @@ // -using Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.CheckMemberGroups; -using Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.CheckMemberObjects; -using Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.GetMemberGroups; -using Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.GetMemberObjects; using Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.GraphAdministrativeUnit; using Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.GraphApplication; using Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.GraphDevice; using Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.GraphGroup; using Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.GraphServicePrincipal; using Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.GraphUser; -using Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.Restore; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -25,22 +20,6 @@ namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.Item { /// Provides operations to manage the deletedItems property of the microsoft.graph.directory entity. /// public class DirectoryObjectItemRequestBuilder : BaseRequestBuilder { - /// Provides operations to call the checkMemberGroups method. - public CheckMemberGroupsRequestBuilder CheckMemberGroups { get => - new CheckMemberGroupsRequestBuilder(PathParameters, RequestAdapter); - } - /// Provides operations to call the checkMemberObjects method. - public CheckMemberObjectsRequestBuilder CheckMemberObjects { get => - new CheckMemberObjectsRequestBuilder(PathParameters, RequestAdapter); - } - /// Provides operations to call the getMemberGroups method. - public GetMemberGroupsRequestBuilder GetMemberGroups { get => - new GetMemberGroupsRequestBuilder(PathParameters, RequestAdapter); - } - /// Provides operations to call the getMemberObjects method. - public GetMemberObjectsRequestBuilder GetMemberObjects { get => - new GetMemberObjectsRequestBuilder(PathParameters, RequestAdapter); - } /// Casts the previous resource to administrativeUnit. public GraphAdministrativeUnitRequestBuilder GraphAdministrativeUnit { get => new GraphAdministrativeUnitRequestBuilder(PathParameters, RequestAdapter); @@ -65,10 +44,6 @@ public class DirectoryObjectItemRequestBuilder : BaseRequestBuilder { public GraphUserRequestBuilder GraphUser { get => new GraphUserRequestBuilder(PathParameters, RequestAdapter); } - /// Provides operations to call the restore method. - public RestoreRequestBuilder Restore { get => - new RestoreRequestBuilder(PathParameters, RequestAdapter); - } /// /// Instantiates a new DirectoryObjectItemRequestBuilder and sets the default values. /// @@ -84,7 +59,7 @@ public DirectoryObjectItemRequestBuilder(Dictionary pathParamete public DirectoryObjectItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Permanently delete a recently deleted application, group, servicePrincipal, or user object from deleted items. After an item is permanently deleted, it cannot be restored. Administrative units cannot be permanently deleted by using the deletedItems API. Soft-deleted administrative units will be permanently deleted 30 days after initial deletion unless they are restored. + /// Permanently delete a recently deleted application, group, servicePrincipal, or user object from deleted items. After an item is permanently deleted, it cannot be restored. Administrative units cannot be permanently deleted by using the deletedItems API. Soft-deleted administrative units will be permanently deleted 30 days after initial deletion unless they are restored. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -104,7 +79,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. + /// Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -124,28 +99,7 @@ public async Task GetAsync(Action(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the navigation property deletedItems in directory - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PatchAsync(DirectoryObject body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PatchAsync(DirectoryObject body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Permanently delete a recently deleted application, group, servicePrincipal, or user object from deleted items. After an item is permanently deleted, it cannot be restored. Administrative units cannot be permanently deleted by using the deletedItems API. Soft-deleted administrative units will be permanently deleted 30 days after initial deletion unless they are restored. + /// Permanently delete a recently deleted application, group, servicePrincipal, or user object from deleted items. After an item is permanently deleted, it cannot be restored. Administrative units cannot be permanently deleted by using the deletedItems API. Soft-deleted administrative units will be permanently deleted 30 days after initial deletion unless they are restored. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -169,7 +123,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. + /// Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,34 +149,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property deletedItems in directory - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPatchRequestInformation(DirectoryObject body, Action? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPatchRequestInformation(DirectoryObject body, Action requestConfiguration = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.PATCH, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new DirectoryObjectItemRequestBuilderPatchRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// /// The raw URL to use for the request builder. @@ -246,7 +172,7 @@ public DirectoryObjectItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. + /// Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. This API is supported in the following national cloud deployments. /// public class DirectoryObjectItemRequestBuilderGetQueryParameters { /// Expand related entities @@ -288,21 +214,5 @@ public DirectoryObjectItemRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class DirectoryObjectItemRequestBuilderPatchRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new DirectoryObjectItemRequestBuilderPatchRequestConfiguration and sets the default values. - /// - public DirectoryObjectItemRequestBuilderPatchRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/ValidateProperties/ValidatePropertiesRequestBuilder.cs deleted file mode 100644 index c670cb19833..00000000000 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ /dev/null @@ -1,103 +0,0 @@ -// -using Microsoft.Graph.Models.ODataErrors; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.ValidateProperties { - /// - /// Provides operations to call the validateProperties method. - /// - public class ValidatePropertiesRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new ValidatePropertiesRequestBuilder and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ValidatePropertiesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/validateProperties", pathParameters) { - } - /// - /// Instantiates a new ValidatePropertiesRequestBuilder and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ValidatePropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/validateProperties", rawUrl) { - } - /// - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - /// Find more info here - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(ValidatePropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PostAsync(ValidatePropertiesPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(ValidatePropertiesPostRequestBody body, Action? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(ValidatePropertiesPostRequestBody body, Action requestConfiguration = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.POST, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new ValidatePropertiesRequestBuilderPostRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// The raw URL to use for the request builder. - public ValidatePropertiesRequestBuilder WithUrl(string rawUrl) { - return new ValidatePropertiesRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class ValidatePropertiesRequestBuilderPostRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new validatePropertiesRequestBuilderPostRequestConfiguration and sets the default values. - /// - public ValidatePropertiesRequestBuilderPostRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } - } -} diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesGetResponse.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesGetResponse.cs new file mode 100644 index 00000000000..3c67914e899 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DirectoryNamespace.FederationConfigurations.AvailableProviderTypes { + public class AvailableProviderTypesGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AvailableProviderTypesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AvailableProviderTypesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.cs index 43b8aca001b..699679cb59b 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.cs @@ -33,6 +33,26 @@ public AvailableProviderTypesRequestBuilder(string rawUrl, IRequestAdapter reque /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsAvailableProviderTypesGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsAvailableProviderTypesGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AvailableProviderTypesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function availableProviderTypes + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsAvailableProviderTypesGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesResponse.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesResponse.cs index a002d03ab96..b2f528c4c5d 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.DirectoryNamespace.FederationConfigurations.AvailableProviderTypes { - public class AvailableProviderTypesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use availableProviderTypesGetResponse instead.")] + public class AvailableProviderTypesResponse : AvailableProviderTypesGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AvailableProviderTypesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/Item/IdentityProviderBaseItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/Item/IdentityProviderBaseItemRequestBuilder.cs index 71901c9469a..34699443f7a 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/Item/IdentityProviderBaseItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/Item/IdentityProviderBaseItemRequestBuilder.cs @@ -29,7 +29,7 @@ public IdentityProviderBaseItemRequestBuilder(Dictionary pathPar public IdentityProviderBaseItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/federationConfigurations/{identityProviderBase%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a samlOrWsFedExternalDomainFederation object. + /// Delete a samlOrWsFedExternalDomainFederation object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task PatchAsync(IdentityProviderBase body, Ac return await RequestAdapter.SendAsync(requestInfo, IdentityProviderBase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a samlOrWsFedExternalDomainFederation object. + /// Delete a samlOrWsFedExternalDomainFederation object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/OnPremisesSynchronization/Item/OnPremisesDirectorySynchronizationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/OnPremisesSynchronization/Item/OnPremisesDirectorySynchronizationItemRequestBuilder.cs index 0bd979e9954..291aafe25f2 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/OnPremisesSynchronization/Item/OnPremisesDirectorySynchronizationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/OnPremisesSynchronization/Item/OnPremisesDirectorySynchronizationItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an onPremisesDirectorySynchronization object. + /// Read the properties and relationships of an onPremisesDirectorySynchronization object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, OnPremisesDirectorySynchronization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an onPremisesDirectorySynchronization object. + /// Update the properties of an onPremisesDirectorySynchronization object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an onPremisesDirectorySynchronization object. + /// Read the properties and relationships of an onPremisesDirectorySynchronization object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an onPremisesDirectorySynchronization object. + /// Update the properties of an onPremisesDirectorySynchronization object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -191,7 +191,7 @@ public OnPremisesDirectorySynchronizationItemRequestBuilderDeleteRequestConfigur } } /// - /// Read the properties and relationships of an onPremisesDirectorySynchronization object. + /// Read the properties and relationships of an onPremisesDirectorySynchronization object. This API is supported in the following national cloud deployments. /// public class OnPremisesDirectorySynchronizationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/OnPremisesSynchronization/OnPremisesSynchronizationRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/OnPremisesSynchronization/OnPremisesSynchronizationRequestBuilder.cs index 97bdeab54ce..28d3b4ed03e 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/OnPremisesSynchronization/OnPremisesSynchronizationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/OnPremisesSynchronization/OnPremisesSynchronizationRequestBuilder.cs @@ -42,7 +42,7 @@ public OnPremisesSynchronizationRequestBuilder(Dictionary pathPa public OnPremisesSynchronizationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/onPremisesSynchronization{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of an onPremisesDirectorySynchronization object. + /// Read the properties and relationships of an onPremisesDirectorySynchronization object. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(OnPremisesDirect return await RequestAdapter.SendAsync(requestInfo, OnPremisesDirectorySynchronization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of an onPremisesDirectorySynchronization object. + /// Read the properties and relationships of an onPremisesDirectorySynchronization object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public OnPremisesSynchronizationRequestBuilder WithUrl(string rawUrl) { return new OnPremisesSynchronizationRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of an onPremisesDirectorySynchronization object. + /// Read the properties and relationships of an onPremisesDirectorySynchronization object. This API is supported in the following national cloud deployments. /// public class OnPremisesSynchronizationRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..4e4afd06621 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DirectoryObjects.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Delta/DeltaRequestBuilder.cs index d29d0e48fed..1cf2b2fc5f1 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Delta/DeltaResponse.cs index 15ef0eb5067..40665716b91 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.DirectoryObjects.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs new file mode 100644 index 00000000000..db93dcca898 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DirectoryObjects.GetAvailableExtensionProperties { + public class GetAvailableExtensionPropertiesPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAvailableExtensionPropertiesPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index 609ee86c5a9..96afc4d9fac 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -28,13 +28,36 @@ public GetAvailableExtensionPropertiesRequestBuilder(Dictionary public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryObjects/getAvailableExtensionProperties", rawUrl) { } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetAvailableExtensionPropertiesPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetAvailabl return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index c698fca3d9b..227ea0e7fb6 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.DirectoryObjects.GetAvailableExtensionProperties { - public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAvailableExtensionPropertiesPostResponse instead.")] + public class GetAvailableExtensionPropertiesResponse : GetAvailableExtensionPropertiesPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/GetByIds/GetByIdsPostResponse.cs new file mode 100644 index 00000000000..46d8b9115cf --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/GetByIds/GetByIdsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DirectoryObjects.GetByIds { + public class GetByIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetByIdsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/GetByIds/GetByIdsRequestBuilder.cs index 9e197e692bc..adb810c6db8 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/GetByIds/GetByIdsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetByIdsRequestBuilder(Dictionary pathParameters, IReques public GetByIdsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryObjects/getByIds", rawUrl) { } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetByIdsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetByIdsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetByIdsPostRequestBody body, Acti return await RequestAdapter.SendAsync(requestInfo, GetByIdsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/GetByIds/GetByIdsResponse.cs index 461fbbd9959..db32c6b0f13 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/GetByIds/GetByIdsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.DirectoryObjects.GetByIds { - public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getByIdsPostResponse instead.")] + public class GetByIdsResponse : GetByIdsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..0736f21a6b2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DirectoryObjects.Item.CheckMemberGroups { + public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index 61ddd77979f..84ccffb894b 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryObjects/{directoryObject%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index d05d8ca2526..d50d00c196e 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.DirectoryObjects.Item.CheckMemberGroups { - public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberGroupsPostResponse instead.")] + public class CheckMemberGroupsResponse : CheckMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..1babd52eacf --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DirectoryObjects.Item.CheckMemberObjects { + public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index ac031b4b716..6e9b62533d3 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -34,6 +34,28 @@ public CheckMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAd /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action checkMemberObjects + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index a3811feeab3..ebb95798f25 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.DirectoryObjects.Item.CheckMemberObjects { - public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberObjectsPostResponse instead.")] + public class CheckMemberObjectsResponse : CheckMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/DirectoryObjectItemRequestBuilder.cs index c95c51fa93e..09e51cf3c73 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/DirectoryObjectItemRequestBuilder.cs @@ -54,7 +54,7 @@ public DirectoryObjectItemRequestBuilder(Dictionary pathParamete public DirectoryObjectItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryObjects/{directoryObject%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a directory object, for example, a group, user, application, or service principal. + /// Delete a directory object, for example, a group, user, application, or service principal. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a directoryObject object. + /// Retrieve the properties and relationships of a directoryObject object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -115,7 +115,7 @@ public async Task PatchAsync(DirectoryObject body, Action(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a directory object, for example, a group, user, application, or service principal. + /// Delete a directory object, for example, a group, user, application, or service principal. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -139,7 +139,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a directoryObject object. + /// Retrieve the properties and relationships of a directoryObject object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -216,7 +216,7 @@ public DirectoryObjectItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a directoryObject object. + /// Retrieve the properties and relationships of a directoryObject object. This API is supported in the following national cloud deployments. /// public class DirectoryObjectItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..1cfcb79b2d7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DirectoryObjects.Item.GetMemberGroups { + public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index 91c0cee3b60..a2ec8866133 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberGroupsRequestBuilder(Dictionary pathParameters, public GetMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryObjects/{directoryObject%2Did}/getMemberGroups", rawUrl) { } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberGroupsPostRequestB return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsResponse.cs index 0f895f21873..e34bc49e1b2 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.DirectoryObjects.Item.GetMemberGroups { - public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberGroupsPostResponse instead.")] + public class GetMemberGroupsResponse : GetMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..446d4cf6faf --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DirectoryObjects.Item.GetMemberObjects { + public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index 222a355b721..e18094f4455 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberObjectsRequestBuilder(Dictionary pathParameters, public GetMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryObjects/{directoryObject%2Did}/getMemberObjects", rawUrl) { } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberObjectsPostReques return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsResponse.cs index 892139c9388..c1d8d459a6b 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.DirectoryObjects.Item.GetMemberObjects { - public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberObjectsPostResponse instead.")] + public class GetMemberObjectsResponse : GetMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/Restore/RestoreRequestBuilder.cs index 35fdaf82215..e4e2a185c32 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/Restore/RestoreRequestBuilder.cs @@ -29,7 +29,7 @@ public RestoreRequestBuilder(Dictionary pathParameters, IRequest public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryObjects/{directoryObject%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/ValidateProperties/ValidatePropertiesRequestBuilder.cs index 123722aaa64..16d47e74ed8 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -28,7 +28,7 @@ public ValidatePropertiesRequestBuilder(Dictionary pathParameter public ValidatePropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryObjects/validateProperties", rawUrl) { } /// - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ValidatePropertiesPostRequestBody body, Action - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..cbd250655a1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DirectoryRoleTemplates.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Delta/DeltaRequestBuilder.cs index d5f09f5b629..a4e33c7d58f 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Delta/DeltaResponse.cs index 3368592272d..442e36a8e68 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.DirectoryRoleTemplates.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/DirectoryRoleTemplatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/DirectoryRoleTemplatesRequestBuilder.cs index 2d49a888ecc..e856332627d 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/DirectoryRoleTemplatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/DirectoryRoleTemplatesRequestBuilder.cs @@ -62,7 +62,7 @@ public DirectoryRoleTemplatesRequestBuilder(Dictionary pathParam public DirectoryRoleTemplatesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoleTemplates{?%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of directoryRoleTemplate objects. + /// Retrieve a list of directoryRoleTemplate objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -103,7 +103,7 @@ public async Task PostAsync(DirectoryRoleTemplate body, A return await RequestAdapter.SendAsync(requestInfo, DirectoryRoleTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of directoryRoleTemplate objects. + /// Retrieve a list of directoryRoleTemplate objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,7 +164,7 @@ public DirectoryRoleTemplatesRequestBuilder WithUrl(string rawUrl) { return new DirectoryRoleTemplatesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of directoryRoleTemplate objects. + /// Retrieve a list of directoryRoleTemplate objects. This API is supported in the following national cloud deployments. /// public class DirectoryRoleTemplatesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs new file mode 100644 index 00000000000..e902eb8ef7d --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DirectoryRoleTemplates.GetAvailableExtensionProperties { + public class GetAvailableExtensionPropertiesPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAvailableExtensionPropertiesPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index 9674ee61eb4..fa18acc9e1d 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -28,13 +28,36 @@ public GetAvailableExtensionPropertiesRequestBuilder(Dictionary public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoleTemplates/getAvailableExtensionProperties", rawUrl) { } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetAvailableExtensionPropertiesPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetAvailabl return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index 24b85777da9..b0998532722 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.DirectoryRoleTemplates.GetAvailableExtensionProperties { - public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAvailableExtensionPropertiesPostResponse instead.")] + public class GetAvailableExtensionPropertiesResponse : GetAvailableExtensionPropertiesPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsPostResponse.cs new file mode 100644 index 00000000000..4f3c2707518 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DirectoryRoleTemplates.GetByIds { + public class GetByIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetByIdsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsRequestBuilder.cs index bfec715a425..7b1c216742a 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetByIdsRequestBuilder(Dictionary pathParameters, IReques public GetByIdsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoleTemplates/getByIds", rawUrl) { } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetByIdsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetByIdsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetByIdsPostRequestBody body, Acti return await RequestAdapter.SendAsync(requestInfo, GetByIdsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsResponse.cs index 7ece23f3e2f..c950eec30f0 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.DirectoryRoleTemplates.GetByIds { - public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getByIdsPostResponse instead.")] + public class GetByIdsResponse : GetByIdsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..a8f9274e02a --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DirectoryRoleTemplates.Item.CheckMemberGroups { + public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index 6f3866cebfd..5f78c314b73 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoleTemplates/{directoryRoleTemplate%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index 9e56d304ba3..aac8b2a0229 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.DirectoryRoleTemplates.Item.CheckMemberGroups { - public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberGroupsPostResponse instead.")] + public class CheckMemberGroupsResponse : CheckMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..0b55655992d --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DirectoryRoleTemplates.Item.CheckMemberObjects { + public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index 622f317bf6f..1e8a7c4f06e 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -34,6 +34,28 @@ public CheckMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAd /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action checkMemberObjects + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index 54d6b377214..4ec3714cf39 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.DirectoryRoleTemplates.Item.CheckMemberObjects { - public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberObjectsPostResponse instead.")] + public class CheckMemberObjectsResponse : CheckMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/DirectoryRoleTemplateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/DirectoryRoleTemplateItemRequestBuilder.cs index fe95dead4a0..746ba870ec9 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/DirectoryRoleTemplateItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/DirectoryRoleTemplateItemRequestBuilder.cs @@ -73,7 +73,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a directoryroletemplate object. + /// Retrieve the properties and relationships of a directoryroletemplate object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -138,7 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a directoryroletemplate object. + /// Retrieve the properties and relationships of a directoryroletemplate object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -215,7 +215,7 @@ public DirectoryRoleTemplateItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a directoryroletemplate object. + /// Retrieve the properties and relationships of a directoryroletemplate object. This API is supported in the following national cloud deployments. /// public class DirectoryRoleTemplateItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..cdf1a944541 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DirectoryRoleTemplates.Item.GetMemberGroups { + public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index de2936dcd69..d7e0968ceeb 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberGroupsRequestBuilder(Dictionary pathParameters, public GetMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoleTemplates/{directoryRoleTemplate%2Did}/getMemberGroups", rawUrl) { } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberGroupsPostRequestB return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsResponse.cs index c20fc1c53e3..4fa4f5775d4 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.DirectoryRoleTemplates.Item.GetMemberGroups { - public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberGroupsPostResponse instead.")] + public class GetMemberGroupsResponse : GetMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..653339a47a7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DirectoryRoleTemplates.Item.GetMemberObjects { + public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index 028e963d217..bb152de4ad9 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberObjectsRequestBuilder(Dictionary pathParameters, public GetMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoleTemplates/{directoryRoleTemplate%2Did}/getMemberObjects", rawUrl) { } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberObjectsPostReques return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsResponse.cs index 43572c58385..04263273fc4 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.DirectoryRoleTemplates.Item.GetMemberObjects { - public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberObjectsPostResponse instead.")] + public class GetMemberObjectsResponse : GetMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/Restore/RestoreRequestBuilder.cs index 1da8baadd48..12deeafc520 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/Restore/RestoreRequestBuilder.cs @@ -29,7 +29,7 @@ public RestoreRequestBuilder(Dictionary pathParameters, IRequest public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoleTemplates/{directoryRoleTemplate%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.cs index 6e20f337ebe..7a11d321180 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -28,7 +28,7 @@ public ValidatePropertiesRequestBuilder(Dictionary pathParameter public ValidatePropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoleTemplates/validateProperties", rawUrl) { } /// - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ValidatePropertiesPostRequestBody body, Action - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..0599439efe3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DirectoryRoles.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryRole.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Delta/DeltaRequestBuilder.cs index 87ba3e9b1b6..50c5082fbf0 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Delta/DeltaResponse.cs index fa598ecab38..28cc146b7a7 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.DirectoryRoles.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryRole.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/DirectoryRolesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/DirectoryRolesRequestBuilder.cs index e834d3b6699..944ad546ca2 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/DirectoryRolesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/DirectoryRolesRequestBuilder.cs @@ -62,7 +62,7 @@ public DirectoryRolesRequestBuilder(Dictionary pathParameters, I public DirectoryRolesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoles{?%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List the directory roles that are activated in the tenant. This operation only returns roles that have been activated. A role becomes activated when an admin activates the role using the Activate directoryRole API. Not all built-in roles are initially activated. When assigning a role using the Azure portal, the role activation step is implicitly done on the admin's behalf. To get the full list of roles that are available in Azure AD, use List directoryRoleTemplates. + /// List the directory roles that are activated in the tenant. This operation only returns roles that have been activated. A role becomes activated when an admin activates the role using the Activate directoryRole API. Not all built-in roles are initially activated. When assigning a role using the Microsoft Entra admin center, the role activation step is implicitly done on the admin's behalf. To get the full list of roles that are available in Azure AD, use List directoryRoleTemplates. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -82,7 +82,7 @@ public async Task GetAsync(Action(requestInfo, DirectoryRoleCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Activate a directory role. To read a directory role or update its members, it must first be activated in the tenant. The Company Administrators and the implicit user directory roles (User, Guest User, and Restricted Guest User roles) are activated by default. To access and assign members to other directory roles, you must first activate it with its corresponding directory role template ID. + /// Activate a directory role. To read a directory role or update its members, it must first be activated in the tenant. The Company Administrators and the implicit user directory roles (User, Guest User, and Restricted Guest User roles) are activated by default. To access and assign members to other directory roles, you must first activate it with its corresponding directory role template ID. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -104,7 +104,7 @@ public async Task PostAsync(DirectoryRole body, Action(requestInfo, DirectoryRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List the directory roles that are activated in the tenant. This operation only returns roles that have been activated. A role becomes activated when an admin activates the role using the Activate directoryRole API. Not all built-in roles are initially activated. When assigning a role using the Azure portal, the role activation step is implicitly done on the admin's behalf. To get the full list of roles that are available in Azure AD, use List directoryRoleTemplates. + /// List the directory roles that are activated in the tenant. This operation only returns roles that have been activated. A role becomes activated when an admin activates the role using the Activate directoryRole API. Not all built-in roles are initially activated. When assigning a role using the Microsoft Entra admin center, the role activation step is implicitly done on the admin's behalf. To get the full list of roles that are available in Azure AD, use List directoryRoleTemplates. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -130,7 +130,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Activate a directory role. To read a directory role or update its members, it must first be activated in the tenant. The Company Administrators and the implicit user directory roles (User, Guest User, and Restricted Guest User roles) are activated by default. To access and assign members to other directory roles, you must first activate it with its corresponding directory role template ID. + /// Activate a directory role. To read a directory role or update its members, it must first be activated in the tenant. The Company Administrators and the implicit user directory roles (User, Guest User, and Restricted Guest User roles) are activated by default. To access and assign members to other directory roles, you must first activate it with its corresponding directory role template ID. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -165,7 +165,7 @@ public DirectoryRolesRequestBuilder WithUrl(string rawUrl) { return new DirectoryRolesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List the directory roles that are activated in the tenant. This operation only returns roles that have been activated. A role becomes activated when an admin activates the role using the Activate directoryRole API. Not all built-in roles are initially activated. When assigning a role using the Azure portal, the role activation step is implicitly done on the admin's behalf. To get the full list of roles that are available in Azure AD, use List directoryRoleTemplates. + /// List the directory roles that are activated in the tenant. This operation only returns roles that have been activated. A role becomes activated when an admin activates the role using the Activate directoryRole API. Not all built-in roles are initially activated. When assigning a role using the Microsoft Entra admin center, the role activation step is implicitly done on the admin's behalf. To get the full list of roles that are available in Azure AD, use List directoryRoleTemplates. This API is supported in the following national cloud deployments. /// public class DirectoryRolesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs new file mode 100644 index 00000000000..8efb7bd9635 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DirectoryRoles.GetAvailableExtensionProperties { + public class GetAvailableExtensionPropertiesPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAvailableExtensionPropertiesPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index 3e0f213cca8..eb8fe78e659 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -28,13 +28,36 @@ public GetAvailableExtensionPropertiesRequestBuilder(Dictionary public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoles/getAvailableExtensionProperties", rawUrl) { } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetAvailableExtensionPropertiesPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetAvailabl return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index 65971265b50..3bd7d40ee34 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.DirectoryRoles.GetAvailableExtensionProperties { - public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAvailableExtensionPropertiesPostResponse instead.")] + public class GetAvailableExtensionPropertiesResponse : GetAvailableExtensionPropertiesPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/GetByIds/GetByIdsPostResponse.cs new file mode 100644 index 00000000000..60f91f9d9e0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/GetByIds/GetByIdsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DirectoryRoles.GetByIds { + public class GetByIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetByIdsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/GetByIds/GetByIdsRequestBuilder.cs index 940146baaa8..7419f2e276f 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/GetByIds/GetByIdsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetByIdsRequestBuilder(Dictionary pathParameters, IReques public GetByIdsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoles/getByIds", rawUrl) { } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetByIdsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetByIdsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetByIdsPostRequestBody body, Acti return await RequestAdapter.SendAsync(requestInfo, GetByIdsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/GetByIds/GetByIdsResponse.cs index 96c89276592..6ba1cd275e1 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/GetByIds/GetByIdsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.DirectoryRoles.GetByIds { - public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getByIdsPostResponse instead.")] + public class GetByIdsResponse : GetByIdsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..1d42309bf42 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DirectoryRoles.Item.CheckMemberGroups { + public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index 2348223f284..a70521c6812 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index 10fcbc6f460..6dd27db25ba 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.DirectoryRoles.Item.CheckMemberGroups { - public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberGroupsPostResponse instead.")] + public class CheckMemberGroupsResponse : CheckMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..1c2c88352c9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DirectoryRoles.Item.CheckMemberObjects { + public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index f854b8c3b66..ac9b82357c8 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -34,6 +34,28 @@ public CheckMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAd /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action checkMemberObjects + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index 37b3fcb8566..d08f43c5716 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.DirectoryRoles.Item.CheckMemberObjects { - public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberObjectsPostResponse instead.")] + public class CheckMemberObjectsResponse : CheckMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/DirectoryRoleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/DirectoryRoleItemRequestBuilder.cs index 5f09bf7a21f..cf16b0531a4 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/DirectoryRoleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/DirectoryRoleItemRequestBuilder.cs @@ -83,7 +83,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. + /// Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -148,7 +148,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. + /// Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -225,7 +225,7 @@ public DirectoryRoleItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. + /// Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. This API is supported in the following national cloud deployments. /// public class DirectoryRoleItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..10d7c4b9388 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DirectoryRoles.Item.GetMemberGroups { + public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index 78b4d8b48d3..7b36da23313 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberGroupsRequestBuilder(Dictionary pathParameters, public GetMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/getMemberGroups", rawUrl) { } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberGroupsPostRequestB return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsResponse.cs index 18ae9ffbf26..f76294563f8 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.DirectoryRoles.Item.GetMemberGroups { - public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberGroupsPostResponse instead.")] + public class GetMemberGroupsResponse : GetMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..4316f4bd0b2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.DirectoryRoles.Item.GetMemberObjects { + public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index bc009f2ed40..30d1e905254 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberObjectsRequestBuilder(Dictionary pathParameters, public GetMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/getMemberObjects", rawUrl) { } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberObjectsPostReques return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsResponse.cs index 07325fbe1d9..9470595364b 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.DirectoryRoles.Item.GetMemberObjects { - public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberObjectsPostResponse instead.")] + public class GetMemberObjectsResponse : GetMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/Ref/RefRequestBuilder.cs index e750d546e0a..cf7374de67f 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/Ref/RefRequestBuilder.cs @@ -28,7 +28,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { } /// - /// Remove a member from a directoryRole. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. + /// Remove a member from a directoryRole. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Remove a member from a directoryRole. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. + /// Remove a member from a directoryRole. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -80,7 +80,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a member from a directoryRole. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. + /// Remove a member from a directoryRole. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderDeleteQueryParameters { /// Delete Uri diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Ref/RefRequestBuilder.cs index 72fcf6bc70f..162d0e1770b 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Ref/RefRequestBuilder.cs @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, StringCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new directory role member. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. + /// Create a new directory role member. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -97,7 +97,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new directory role member. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. + /// Create a new directory role member. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Restore/RestoreRequestBuilder.cs index 67785f8235e..a39c414ec4d 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Restore/RestoreRequestBuilder.cs @@ -29,7 +29,7 @@ public RestoreRequestBuilder(Dictionary pathParameters, IRequest public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/ScopedMembers/ScopedMembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/ScopedMembers/ScopedMembersRequestBuilder.cs index 97cfcdfba0f..8fbd3c0de64 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/ScopedMembers/ScopedMembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/ScopedMembers/ScopedMembersRequestBuilder.cs @@ -42,7 +42,7 @@ public ScopedMembersRequestBuilder(Dictionary pathParameters, IR public ScopedMembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/scopedMembers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of scopedRoleMembership objects for a directory role. + /// Retrieve a list of scopedRoleMembership objects for a directory role. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ScopedRoleMembership body, Act return await RequestAdapter.SendAsync(requestInfo, ScopedRoleMembership.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of scopedRoleMembership objects for a directory role. + /// Retrieve a list of scopedRoleMembership objects for a directory role. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public ScopedMembersRequestBuilder WithUrl(string rawUrl) { return new ScopedMembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of scopedRoleMembership objects for a directory role. + /// Retrieve a list of scopedRoleMembership objects for a directory role. This API is supported in the following national cloud deployments. /// public class ScopedMembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/ValidateProperties/ValidatePropertiesRequestBuilder.cs index 7a1e1c2a4b1..d30141209fe 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -28,7 +28,7 @@ public ValidatePropertiesRequestBuilder(Dictionary pathParameter public ValidatePropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoles/validateProperties", rawUrl) { } /// - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ValidatePropertiesPostRequestBody body, Action - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/DirectoryRolesWithRoleTemplateId/DirectoryRolesWithRoleTemplateIdRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRolesWithRoleTemplateId/DirectoryRolesWithRoleTemplateIdRequestBuilder.cs index ae75f6f4a21..0f4b836bbe9 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRolesWithRoleTemplateId/DirectoryRolesWithRoleTemplateIdRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRolesWithRoleTemplateId/DirectoryRolesWithRoleTemplateIdRequestBuilder.cs @@ -50,7 +50,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. + /// Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. + /// Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -192,7 +192,7 @@ public DirectoryRolesWithRoleTemplateIdRequestBuilderDeleteRequestConfiguration( } } /// - /// Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. + /// Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. This API is supported in the following national cloud deployments. /// public class DirectoryRolesWithRoleTemplateIdRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Domains/DomainsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Domains/DomainsRequestBuilder.cs index 2d63193e616..f5365e86409 100644 --- a/src/Microsoft.Graph/Generated/Domains/DomainsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Domains/DomainsRequestBuilder.cs @@ -42,7 +42,7 @@ public DomainsRequestBuilder(Dictionary pathParameters, IRequest public DomainsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/domains{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of domain objects. + /// Retrieve a list of domain objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, DomainCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Adds a domain to the tenant. Important: You cannot use an associated domain with your Azure AD tenant until ownership is verified. See List verificationDnsRecords for details. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. + /// Adds a domain to the tenant. Important: You cannot use an associated domain with your Azure AD tenant until ownership is verified. See List verificationDnsRecords for details. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(Domain body, Action(requestInfo, Domain.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of domain objects. + /// Retrieve a list of domain objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Adds a domain to the tenant. Important: You cannot use an associated domain with your Azure AD tenant until ownership is verified. See List verificationDnsRecords for details. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. + /// Adds a domain to the tenant. Important: You cannot use an associated domain with your Azure AD tenant until ownership is verified. See List verificationDnsRecords for details. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public DomainsRequestBuilder WithUrl(string rawUrl) { return new DomainsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of domain objects. + /// Retrieve a list of domain objects. This API is supported in the following national cloud deployments. /// public class DomainsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Domains/Item/DomainItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Domains/Item/DomainItemRequestBuilder.cs index 2c9c53a2b19..da52643547c 100644 --- a/src/Microsoft.Graph/Generated/Domains/Item/DomainItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Domains/Item/DomainItemRequestBuilder.cs @@ -64,7 +64,7 @@ public DomainItemRequestBuilder(Dictionary pathParameters, IRequ public DomainItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/domains/{domain%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a domain from a tenant. + /// Deletes a domain from a tenant. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of domain object. + /// Retrieve the properties and relationships of domain object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -104,7 +104,7 @@ public async Task GetAsync(Action(requestInfo, Domain.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of domain object. + /// Update the properties of domain object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -126,7 +126,7 @@ public async Task PatchAsync(Domain body, Action(requestInfo, Domain.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a domain from a tenant. + /// Deletes a domain from a tenant. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -150,7 +150,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of domain object. + /// Retrieve the properties and relationships of domain object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -176,7 +176,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of domain object. + /// Update the properties of domain object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -227,7 +227,7 @@ public DomainItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of domain object. + /// Retrieve the properties and relationships of domain object. This API is supported in the following national cloud deployments. /// public class DomainItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilder.cs index d6cd89b1187..b7d3e8d2cb1 100644 --- a/src/Microsoft.Graph/Generated/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilder.cs @@ -42,7 +42,7 @@ public DomainNameReferencesRequestBuilder(Dictionary pathParamet public DomainNameReferencesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/domains/{domain%2Did}/domainNameReferences{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of directoryObject with a reference to the domain. The returned list will contain all directory objects that have a dependency on the domain. + /// Retrieve a list of directoryObject with a reference to the domain. The returned list will contain all directory objects that have a dependency on the domain. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, DirectoryObjectCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of directoryObject with a reference to the domain. The returned list will contain all directory objects that have a dependency on the domain. + /// Retrieve a list of directoryObject with a reference to the domain. The returned list will contain all directory objects that have a dependency on the domain. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public DomainNameReferencesRequestBuilder WithUrl(string rawUrl) { return new DomainNameReferencesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of directoryObject with a reference to the domain. The returned list will contain all directory objects that have a dependency on the domain. + /// Retrieve a list of directoryObject with a reference to the domain. The returned list will contain all directory objects that have a dependency on the domain. This API is supported in the following national cloud deployments. /// public class DomainNameReferencesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Domains/Item/FederationConfiguration/FederationConfigurationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Domains/Item/FederationConfiguration/FederationConfigurationRequestBuilder.cs index 3493bc30a51..e2ca0835aea 100644 --- a/src/Microsoft.Graph/Generated/Domains/Item/FederationConfiguration/FederationConfigurationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Domains/Item/FederationConfiguration/FederationConfigurationRequestBuilder.cs @@ -42,7 +42,7 @@ public FederationConfigurationRequestBuilder(Dictionary pathPara public FederationConfigurationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/domains/{domain%2Did}/federationConfiguration{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of an internalDomainFederation object. + /// Read the properties and relationships of an internalDomainFederation object. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, InternalDomainFederationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new internalDomainFederation object. + /// Create a new internalDomainFederation object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(InternalDomainFederation b return await RequestAdapter.SendAsync(requestInfo, InternalDomainFederation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of an internalDomainFederation object. + /// Read the properties and relationships of an internalDomainFederation object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new internalDomainFederation object. + /// Create a new internalDomainFederation object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public FederationConfigurationRequestBuilder WithUrl(string rawUrl) { return new FederationConfigurationRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of an internalDomainFederation object. + /// Read the properties and relationships of an internalDomainFederation object. This API is supported in the following national cloud deployments. /// public class FederationConfigurationRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Domains/Item/FederationConfiguration/Item/InternalDomainFederationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Domains/Item/FederationConfiguration/Item/InternalDomainFederationItemRequestBuilder.cs index 37362812a51..7b3fcee7b7f 100644 --- a/src/Microsoft.Graph/Generated/Domains/Item/FederationConfiguration/Item/InternalDomainFederationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Domains/Item/FederationConfiguration/Item/InternalDomainFederationItemRequestBuilder.cs @@ -29,7 +29,7 @@ public InternalDomainFederationItemRequestBuilder(Dictionary pat public InternalDomainFederationItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/domains/{domain%2Did}/federationConfiguration/{internalDomainFederation%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an internalDomainFederation object. + /// Delete an internalDomainFederation object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an internalDomainFederation object. + /// Read the properties and relationships of an internalDomainFederation object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, InternalDomainFederation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an internalDomainFederation object. + /// Update the properties of an internalDomainFederation object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(InternalDomainFederation return await RequestAdapter.SendAsync(requestInfo, InternalDomainFederation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an internalDomainFederation object. + /// Delete an internalDomainFederation object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an internalDomainFederation object. + /// Read the properties and relationships of an internalDomainFederation object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an internalDomainFederation object. + /// Update the properties of an internalDomainFederation object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public InternalDomainFederationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of an internalDomainFederation object. + /// Read the properties and relationships of an internalDomainFederation object. This API is supported in the following national cloud deployments. /// public class InternalDomainFederationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Domains/Item/ForceDelete/ForceDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Domains/Item/ForceDelete/ForceDeleteRequestBuilder.cs index 01b1f7a7d12..b80002f5068 100644 --- a/src/Microsoft.Graph/Generated/Domains/Item/ForceDelete/ForceDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Domains/Item/ForceDelete/ForceDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public ForceDeleteRequestBuilder(Dictionary pathParameters, IReq public ForceDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/domains/{domain%2Did}/forceDelete", rawUrl) { } /// - /// Deletes a domain using an asynchronous long-running operation. Prior to calling forceDelete, you must update or remove any references to Exchange as the provisioning service. The following actions are performed as part of this operation: After the domain deletion completes, API operations for the deleted domain will return a HTTP 404 status code. To verify deletion of a domain, you can perform a get domain operation. + /// Deletes a domain using an asynchronous long-running operation. Prior to calling forceDelete, you must update or remove any references to Exchange as the provisioning service. The following actions are performed as part of this operation: After the domain deletion completes, API operations for the deleted domain will return a HTTP 404 status code. To verify deletion of a domain, you can perform a get domain operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForceDeletePostRequestBody body, Action - /// Deletes a domain using an asynchronous long-running operation. Prior to calling forceDelete, you must update or remove any references to Exchange as the provisioning service. The following actions are performed as part of this operation: After the domain deletion completes, API operations for the deleted domain will return a HTTP 404 status code. To verify deletion of a domain, you can perform a get domain operation. + /// Deletes a domain using an asynchronous long-running operation. Prior to calling forceDelete, you must update or remove any references to Exchange as the provisioning service. The following actions are performed as part of this operation: After the domain deletion completes, API operations for the deleted domain will return a HTTP 404 status code. To verify deletion of a domain, you can perform a get domain operation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Domains/Item/Promote/PromotePostResponse.cs b/src/Microsoft.Graph/Generated/Domains/Item/Promote/PromotePostResponse.cs new file mode 100644 index 00000000000..a76595e1529 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Domains/Item/Promote/PromotePostResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Domains.Item.Promote { + public class PromotePostResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public bool? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new promotePostResponse and sets the default values. + /// + public PromotePostResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static PromotePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PromotePostResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Domains/Item/Promote/PromoteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Domains/Item/Promote/PromoteRequestBuilder.cs index 7b04292f3af..c8a75c63996 100644 --- a/src/Microsoft.Graph/Generated/Domains/Item/Promote/PromoteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Domains/Item/Promote/PromoteRequestBuilder.cs @@ -28,12 +28,33 @@ public PromoteRequestBuilder(Dictionary pathParameters, IRequest public PromoteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/domains/{domain%2Did}/promote", rawUrl) { } /// - /// Promote a verified subdomain to the root domain. A verified domain has its isVerified property set to true. + /// Promote a verified subdomain to the root domain. A verified domain has its isVerified property set to true. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsPromotePostResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsPromotePostResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PromotePostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Promote a verified subdomain to the root domain. A verified domain has its isVerified property set to true. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsPromotePostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task PostAsync(Action(requestInfo, PromoteResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Promote a verified subdomain to the root domain. A verified domain has its isVerified property set to true. + /// Promote a verified subdomain to the root domain. A verified domain has its isVerified property set to true. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Domains/Item/Promote/PromoteResponse.cs b/src/Microsoft.Graph/Generated/Domains/Item/Promote/PromoteResponse.cs index 55a5a9b0b2c..a3336229c15 100644 --- a/src/Microsoft.Graph/Generated/Domains/Item/Promote/PromoteResponse.cs +++ b/src/Microsoft.Graph/Generated/Domains/Item/Promote/PromoteResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Domains.Item.Promote { - public class PromoteResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public bool? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new promoteResponse and sets the default values. - /// - public PromoteResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use promotePostResponse instead.")] + public class PromoteResponse : PromotePostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static PromoteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new PromoteResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new PromoteResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Domains/Item/ServiceConfigurationRecords/ServiceConfigurationRecordsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Domains/Item/ServiceConfigurationRecords/ServiceConfigurationRecordsRequestBuilder.cs index f323c127d3b..31f5fa64369 100644 --- a/src/Microsoft.Graph/Generated/Domains/Item/ServiceConfigurationRecords/ServiceConfigurationRecordsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Domains/Item/ServiceConfigurationRecords/ServiceConfigurationRecordsRequestBuilder.cs @@ -42,7 +42,7 @@ public ServiceConfigurationRecordsRequestBuilder(Dictionary path public ServiceConfigurationRecordsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/domains/{domain%2Did}/serviceConfigurationRecords{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieves a list of domainDnsRecord objects needed to enable services for the domain. Use the returned list to add records to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. + /// Retrieves a list of domainDnsRecord objects needed to enable services for the domain. Use the returned list to add records to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(DomainDnsRecord body, Action(requestInfo, DomainDnsRecord.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieves a list of domainDnsRecord objects needed to enable services for the domain. Use the returned list to add records to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. + /// Retrieves a list of domainDnsRecord objects needed to enable services for the domain. Use the returned list to add records to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public ServiceConfigurationRecordsRequestBuilder WithUrl(string rawUrl) { return new ServiceConfigurationRecordsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieves a list of domainDnsRecord objects needed to enable services for the domain. Use the returned list to add records to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. + /// Retrieves a list of domainDnsRecord objects needed to enable services for the domain. Use the returned list to add records to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. This API is supported in the following national cloud deployments. /// public class ServiceConfigurationRecordsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Domains/Item/VerificationDnsRecords/VerificationDnsRecordsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Domains/Item/VerificationDnsRecords/VerificationDnsRecordsRequestBuilder.cs index 58e2838b543..bed774cdf34 100644 --- a/src/Microsoft.Graph/Generated/Domains/Item/VerificationDnsRecords/VerificationDnsRecordsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Domains/Item/VerificationDnsRecords/VerificationDnsRecordsRequestBuilder.cs @@ -42,7 +42,7 @@ public VerificationDnsRecordsRequestBuilder(Dictionary pathParam public VerificationDnsRecordsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/domains/{domain%2Did}/verificationDnsRecords{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of domainDnsRecord objects. You cannot use an associated domain with your Azure AD tenant until ownership is verified. To verify the ownership of the domain, retrieve the domain verification records and add the details to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. + /// Retrieve a list of domainDnsRecord objects. You cannot use an associated domain with your Azure AD tenant until ownership is verified. To verify the ownership of the domain, retrieve the domain verification records and add the details to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(DomainDnsRecord body, Action(requestInfo, DomainDnsRecord.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of domainDnsRecord objects. You cannot use an associated domain with your Azure AD tenant until ownership is verified. To verify the ownership of the domain, retrieve the domain verification records and add the details to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. + /// Retrieve a list of domainDnsRecord objects. You cannot use an associated domain with your Azure AD tenant until ownership is verified. To verify the ownership of the domain, retrieve the domain verification records and add the details to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public VerificationDnsRecordsRequestBuilder WithUrl(string rawUrl) { return new VerificationDnsRecordsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of domainDnsRecord objects. You cannot use an associated domain with your Azure AD tenant until ownership is verified. To verify the ownership of the domain, retrieve the domain verification records and add the details to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. + /// Retrieve a list of domainDnsRecord objects. You cannot use an associated domain with your Azure AD tenant until ownership is verified. To verify the ownership of the domain, retrieve the domain verification records and add the details to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. This API is supported in the following national cloud deployments. /// public class VerificationDnsRecordsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Domains/Item/Verify/VerifyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Domains/Item/Verify/VerifyRequestBuilder.cs index 23a09baa83f..319464cd76e 100644 --- a/src/Microsoft.Graph/Generated/Domains/Item/Verify/VerifyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Domains/Item/Verify/VerifyRequestBuilder.cs @@ -29,7 +29,7 @@ public VerifyRequestBuilder(Dictionary pathParameters, IRequestA public VerifyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/domains/{domain%2Did}/verify", rawUrl) { } /// - /// Validates the ownership of the domain. + /// Validates the ownership of the domain. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, Domain.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Validates the ownership of the domain. + /// Validates the ownership of the domain. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/CreatedByUser/CreatedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/CreatedByUser/CreatedByUserRequestBuilder.cs index 604f490cab9..54e9088d353 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/CreatedByUser/CreatedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/CreatedByUser/CreatedByUserRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.Drives.Item.CreatedByUser.MailboxSettings; +using Microsoft.Graph.Drives.Item.CreatedByUser.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class CreatedByUserRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new CreatedByUserRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..809c525e7ce --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Drives.Item.CreatedByUser.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..7f8c8683af2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Drives.Item.CreatedByUser.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Drives.Item.CreatedByUser.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \drives\{drive-id}\createdByUser\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/createdByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/createdByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Following/FollowingRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Following/FollowingRequestBuilder.cs index 7cc3f4d0287..2d046bb2fd8 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Following/FollowingRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Following/FollowingRequestBuilder.cs @@ -42,7 +42,7 @@ public FollowingRequestBuilder(Dictionary pathParameters, IReque public FollowingRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/following{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List the items that have been followed by the signed in user.This collection includes items that are in the user's drive as well as items they have access to from other drives. + /// List the items that have been followed by the signed in user.This collection includes items that are in the user's drive as well as items they have access to from other drives. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, DriveItemCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List the items that have been followed by the signed in user.This collection includes items that are in the user's drive as well as items they have access to from other drives. + /// List the items that have been followed by the signed in user.This collection includes items that are in the user's drive as well as items they have access to from other drives. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public FollowingRequestBuilder WithUrl(string rawUrl) { return new FollowingRequestBuilder(rawUrl, RequestAdapter); } /// - /// List the items that have been followed by the signed in user.This collection includes items that are in the user's drive as well as items they have access to from other drives. + /// List the items that have been followed by the signed in user.This collection includes items that are in the user's drive as well as items they have access to from other drives. This API is supported in the following national cloud deployments. /// public class FollowingRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/AllTime/AllTimeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/AllTime/AllTimeRequestBuilder.cs index eb70c07e285..105dcaf665f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/AllTime/AllTimeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/AllTime/AllTimeRequestBuilder.cs @@ -29,7 +29,7 @@ public AllTimeRequestBuilder(Dictionary pathParameters, IRequest public AllTimeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/allTime{?%24select,%24expand}", rawUrl) { } /// - /// Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the [getActivitiesByInterval][] API. + /// Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the getActivitiesByInterval][] API. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, ItemActivityStat.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the [getActivitiesByInterval][] API. + /// Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the getActivitiesByInterval][] API. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -82,7 +82,7 @@ public AllTimeRequestBuilder WithUrl(string rawUrl) { return new AllTimeRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the [getActivitiesByInterval][] API. + /// Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the getActivitiesByInterval][] API. This API is supported in the following [national cloud deployments. /// public class AllTimeRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Checkin/CheckinRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Checkin/CheckinRequestBuilder.cs index d28a8e0459c..8c487f8b105 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Checkin/CheckinRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Checkin/CheckinRequestBuilder.cs @@ -28,7 +28,7 @@ public CheckinRequestBuilder(Dictionary pathParameters, IRequest public CheckinRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/checkin", rawUrl) { } /// - /// Check in a checked out driveItem resource, which makes the version of the document available to others. + /// Check in a checked out driveItem resource, which makes the version of the document available to others. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CheckinPostRequestBody body, Action - /// Check in a checked out driveItem resource, which makes the version of the document available to others. + /// Check in a checked out driveItem resource, which makes the version of the document available to others. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Checkout/CheckoutRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Checkout/CheckoutRequestBuilder.cs index d57d250f16f..76f06f43436 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Checkout/CheckoutRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Checkout/CheckoutRequestBuilder.cs @@ -28,7 +28,7 @@ public CheckoutRequestBuilder(Dictionary pathParameters, IReques public CheckoutRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/checkout", rawUrl) { } /// - /// Check out a driveItem resource to prevent others from editing the document, and prevent your changes from being visible until the documented is checked in. + /// Check out a driveItem resource to prevent others from editing the document, and prevent your changes from being visible until the documented is checked in. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Check out a driveItem resource to prevent others from editing the document, and prevent your changes from being visible until the documented is checked in. + /// Check out a driveItem resource to prevent others from editing the document, and prevent your changes from being visible until the documented is checked in. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Children/ChildrenRequestBuilder.cs index c1cb930d567..d703d89964a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Children/ChildrenRequestBuilder.cs @@ -42,7 +42,7 @@ public ChildrenRequestBuilder(Dictionary pathParameters, IReques public ChildrenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/children{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Return a collection of DriveItems in the children relationship of a DriveItem. DriveItems with a non-null folder or package facet can have one or more child DriveItems. + /// Return a collection of DriveItems in the children relationship of a DriveItem. DriveItems with a non-null folder or package facet can have one or more child DriveItems. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return a collection of DriveItems in the children relationship of a DriveItem. DriveItems with a non-null folder or package facet can have one or more child DriveItems. + /// Return a collection of DriveItems in the children relationship of a DriveItem. DriveItems with a non-null folder or package facet can have one or more child DriveItems. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -145,7 +145,7 @@ public ChildrenRequestBuilder WithUrl(string rawUrl) { return new ChildrenRequestBuilder(rawUrl, RequestAdapter); } /// - /// Return a collection of DriveItems in the children relationship of a DriveItem. DriveItems with a non-null folder or package facet can have one or more child DriveItems. + /// Return a collection of DriveItems in the children relationship of a DriveItem. DriveItems with a non-null folder or package facet can have one or more child DriveItems. This API is supported in the following national cloud deployments. /// public class ChildrenRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Copy/CopyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Copy/CopyRequestBuilder.cs index c45c41d4f06..2f7050a7436 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Copy/CopyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Copy/CopyRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyRequestBuilder(Dictionary pathParameters, IRequestAda public CopyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/copy", rawUrl) { } /// - /// Asynchronously creates a copy of an [driveItem][item-resource] (including any children), under a new parent item or with a new name. + /// Asynchronously creates a copy of an driveItem][item-resource] (including any children), under a new parent item or with a new name. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public CopyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Asynchronously creates a copy of an [driveItem][item-resource] (including any children), under a new parent item or with a new name. + /// Asynchronously creates a copy of an driveItem][item-resource] (including any children), under a new parent item or with a new name. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreateLink/CreateLinkRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreateLink/CreateLinkRequestBuilder.cs index 51782a9057a..8430d3bb7d4 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreateLink/CreateLinkRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreateLink/CreateLinkRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateLinkRequestBuilder(Dictionary pathParameters, IRequ public CreateLinkRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/createLink", rawUrl) { } /// - /// You can use createLink action to share a DriveItem via a sharing link. The createLink action will create a new sharing link if the specified link type doesn't already exist for the calling application.If a sharing link of the specified type already exists for the app, the existing sharing link will be returned. DriveItem resources inherit sharing permissions from their ancestors. + /// You can use createLink action to share a DriveItem via a sharing link. The createLink action will create a new sharing link if the specified link type doesn't already exist for the calling application.If a sharing link of the specified type already exists for the app, the existing sharing link will be returned. DriveItem resources inherit sharing permissions from their ancestors. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public CreateLinkRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// You can use createLink action to share a DriveItem via a sharing link. The createLink action will create a new sharing link if the specified link type doesn't already exist for the calling application.If a sharing link of the specified type already exists for the app, the existing sharing link will be returned. DriveItem resources inherit sharing permissions from their ancestors. + /// You can use createLink action to share a DriveItem via a sharing link. The createLink action will create a new sharing link if the specified link type doesn't already exist for the calling application.If a sharing link of the specified type already exists for the app, the existing sharing link will be returned. DriveItem resources inherit sharing permissions from their ancestors. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs index 2aa8df1ee01..5cc8e004a2d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.Drives.Item.Items.Item.CreatedByUser.MailboxSettings; +using Microsoft.Graph.Drives.Item.Items.Item.CreatedByUser.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class CreatedByUserRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new CreatedByUserRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..30be3f6d237 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Drives.Item.Items.Item.CreatedByUser.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..c75d3f43ab8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Drives.Item.Items.Item.CreatedByUser.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Drives.Item.Items.Item.CreatedByUser.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \drives\{drive-id}\items\{driveItem-id}\createdByUser\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/createdByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/createdByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..4e6454ade33 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Drives.Item.Items.Item.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Delta/DeltaRequestBuilder.cs index 67934114ebb..4bac3c5a736 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Delta/DeltaResponse.cs index ea175275f87..71a4f845b02 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Drives.Item.Items.Item.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenGetResponse.cs new file mode 100644 index 00000000000..b1c61709c30 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Drives.Item.Items.Item.DeltaWithToken { + public class DeltaWithTokenGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaWithTokenGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaWithTokenGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenRequestBuilder.cs index 28609503404..241353b87ba 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenRequestBuilder.cs @@ -35,6 +35,26 @@ public DeltaWithTokenRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaWithTokenGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaWithTokenGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaWithTokenGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaWithTokenGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenResponse.cs index f99d5b4522e..e86bb8470b9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Drives.Item.Items.Item.DeltaWithToken { - public class DeltaWithTokenResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaWithTokenGetResponse instead.")] + public class DeltaWithTokenResponse : DeltaWithTokenGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaWithTokenResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.cs index 7db1aecf432..763427820a3 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.cs @@ -167,7 +167,7 @@ public DriveItemItemRequestBuilder(Dictionary pathParameters, IR public DriveItemItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a DriveItem by using its ID or path.Note that deleting items using this method will move the items to the recycle bin instead of permanently deleting the item. + /// Delete a DriveItem by using its ID or path.Deleting items using this method moves the items to the recycle bin instead of permanently deleting the item. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -226,8 +226,8 @@ public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalReques return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the metadata for a driveItem by ID or path. You can also use update to move an item to another parent by updating the item's parentReference property. - /// Find more info here + /// To move a DriveItem to a new parent item, your app requests to update the parentReference of the DriveItem to move. This is a special case of the Update method.Your app can combine moving an item to a new container and updating other properties of the item into a single request. Items cannot be moved between Drives using this request. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -256,7 +256,7 @@ public SearchWithQRequestBuilder SearchWithQ(string q) { return new SearchWithQRequestBuilder(PathParameters, RequestAdapter, q); } /// - /// Delete a DriveItem by using its ID or path.Note that deleting items using this method will move the items to the recycle bin instead of permanently deleting the item. + /// Delete a DriveItem by using its ID or path.Deleting items using this method moves the items to the recycle bin instead of permanently deleting the item. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -306,7 +306,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the metadata for a driveItem by ID or path. You can also use update to move an item to another parent by updating the item's parentReference property. + /// To move a DriveItem to a new parent item, your app requests to update the parentReference of the DriveItem to move. This is a special case of the Update method.Your app can combine moving an item to a new container and updating other properties of the item into a single request. Items cannot be moved between Drives using this request. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Follow/FollowRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Follow/FollowRequestBuilder.cs index 6348ae11ac9..95ab02249f2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Follow/FollowRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Follow/FollowRequestBuilder.cs @@ -29,7 +29,7 @@ public FollowRequestBuilder(Dictionary pathParameters, IRequestA public FollowRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/follow", rawUrl) { } /// - /// Follow a driveItem. + /// Follow a driveItem. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public FollowRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Follow a driveItem. + /// Follow a driveItem. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs new file mode 100644 index 00000000000..7af02bfd4c6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Drives.Item.Items.Item.GetActivitiesByInterval { + public class GetActivitiesByIntervalGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetActivitiesByIntervalGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetActivitiesByIntervalGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs index ba5766bbbe2..76896b1a7b1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs @@ -33,6 +33,26 @@ public GetActivitiesByIntervalRequestBuilder(string rawUrl, IRequestAdapter requ /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetActivitiesByIntervalGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetActivitiesByIntervalGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetActivitiesByIntervalGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getActivitiesByInterval + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetActivitiesByIntervalGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index 6bf36b32f4e..72f4535fd2c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Drives.Item.Items.Item.GetActivitiesByInterval { - public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getActivitiesByIntervalGetResponse instead.")] + public class GetActivitiesByIntervalResponse : GetActivitiesByIntervalGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs new file mode 100644 index 00000000000..c1e9621a9ee --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Drives.Item.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs index 61c78a8770e..e739de7fe6f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs @@ -39,6 +39,26 @@ public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalReques /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getActivitiesByInterval + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index 2f4934d7c51..94000e17856 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Drives.Item.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse instead.")] + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Invite/InvitePostResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Invite/InvitePostResponse.cs new file mode 100644 index 00000000000..3c66b29c108 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Invite/InvitePostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Drives.Item.Items.Item.Invite { + public class InvitePostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new InvitePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new InvitePostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Invite/InviteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Invite/InviteRequestBuilder.cs index cec481f3d35..a150d6f2fab 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Invite/InviteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Invite/InviteRequestBuilder.cs @@ -28,13 +28,36 @@ public InviteRequestBuilder(Dictionary pathParameters, IRequestA public InviteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/invite", rawUrl) { } /// - /// Sends a sharing invitation for a driveItem.A sharing invitation provides permissions to the recipients and optionally sends them an email with a [sharing link][]. + /// Sends a sharing invitation for a driveItem.A sharing invitation provides permissions to the recipients and optionally sends them an email with a sharing link][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsInvitePostResponseAsync(InvitePostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsInvitePostResponseAsync(InvitePostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, InvitePostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Sends a sharing invitation for a driveItem.A sharing invitation provides permissions to the recipients and optionally sends them an email with a sharing link][]. This API is supported in the following [national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsInvitePostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(InvitePostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(InvitePostRequestBody body, Action(requestInfo, InviteResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Sends a sharing invitation for a driveItem.A sharing invitation provides permissions to the recipients and optionally sends them an email with a [sharing link][]. + /// Sends a sharing invitation for a driveItem.A sharing invitation provides permissions to the recipients and optionally sends them an email with a sharing link][]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Invite/InviteResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Invite/InviteResponse.cs index 93748ff10c6..c6a03faba06 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Invite/InviteResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Invite/InviteResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Drives.Item.Items.Item.Invite { - public class InviteResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use invitePostResponse instead.")] + public class InviteResponse : InvitePostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new InviteResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index 3b5b69d13d1..e2314745138 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.Drives.Item.Items.Item.LastModifiedByUser.MailboxSettings; +using Microsoft.Graph.Drives.Item.Items.Item.LastModifiedByUser.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class LastModifiedByUserRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new LastModifiedByUserRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..8e9b2ccc15e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Drives.Item.Items.Item.LastModifiedByUser.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..65a409c9b46 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Drives.Item.Items.Item.LastModifiedByUser.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Drives.Item.Items.Item.LastModifiedByUser.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \drives\{drive-id}\items\{driveItem-id}\lastModifiedByUser\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantPostResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantPostResponse.cs new file mode 100644 index 00000000000..7d5b58d0c86 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Drives.Item.Items.Item.Permissions.Item.Grant { + public class GrantPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GrantPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GrantPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantRequestBuilder.cs index 7743fd08f4e..7f8e509c337 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantRequestBuilder.cs @@ -28,13 +28,36 @@ public GrantRequestBuilder(Dictionary pathParameters, IRequestAd public GrantRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/permissions/{permission%2Did}/grant", rawUrl) { } /// - /// Grant users access to a link represented by a [permission][]. + /// Grant users access to a link represented by a permission][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGrantPostResponseAsync(GrantPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGrantPostResponseAsync(GrantPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GrantPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Grant users access to a link represented by a permission][]. This API is supported in the following [national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGrantPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GrantPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GrantPostRequestBody body, Action(requestInfo, GrantResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Grant users access to a link represented by a [permission][]. + /// Grant users access to a link represented by a permission][]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantResponse.cs index 322f6fa57ec..bfaece7e562 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Drives.Item.Items.Item.Permissions.Item.Grant { - public class GrantResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use grantPostResponse instead.")] + public class GrantResponse : GrantPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GrantResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs index ab747c76928..16f9df630a8 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs @@ -34,7 +34,7 @@ public PermissionItemRequestBuilder(Dictionary pathParameters, I public PermissionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/permissions/{permission%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Remove access to a DriveItem. Only sharing permissions that are not inherited can be deleted.The inheritedFrom property must be null. + /// Remove access to a DriveItem. Only sharing permissions that are not inherited can be deleted.The inheritedFrom property must be null. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Return the effective sharing permission for a particular permission resource. Effective permissions of an item can come from two sources: permissions set directly on the item itself or permissions that are inherited from the item's ancestors. Callers can differentiate if the permission is inherited or not by checking the inheritedFrom property.This property is an ItemReference resource referencing the ancestor that the permission is inherited from. + /// Return the effective sharing permission for a particular permission resource. Effective permissions of an item can come from two sources: permissions set directly on the item itself or permissions that are inherited from the item's ancestors. Callers can differentiate if the permission is inherited or not by checking the inheritedFrom property.This property is an ItemReference resource referencing the ancestor that the permission is inherited from. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a sharing permission by patching the permission resource. Only the roles property can be modified this way. + /// Update the properties of a sharing permission by patching the permission resource. Only the roles property can be modified this way. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Remove access to a DriveItem. Only sharing permissions that are not inherited can be deleted.The inheritedFrom property must be null. + /// Remove access to a DriveItem. Only sharing permissions that are not inherited can be deleted.The inheritedFrom property must be null. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Return the effective sharing permission for a particular permission resource. Effective permissions of an item can come from two sources: permissions set directly on the item itself or permissions that are inherited from the item's ancestors. Callers can differentiate if the permission is inherited or not by checking the inheritedFrom property.This property is an ItemReference resource referencing the ancestor that the permission is inherited from. + /// Return the effective sharing permission for a particular permission resource. Effective permissions of an item can come from two sources: permissions set directly on the item itself or permissions that are inherited from the item's ancestors. Callers can differentiate if the permission is inherited or not by checking the inheritedFrom property.This property is an ItemReference resource referencing the ancestor that the permission is inherited from. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a sharing permission by patching the permission resource. Only the roles property can be modified this way. + /// Update the properties of a sharing permission by patching the permission resource. Only the roles property can be modified this way. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public PermissionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Return the effective sharing permission for a particular permission resource. Effective permissions of an item can come from two sources: permissions set directly on the item itself or permissions that are inherited from the item's ancestors. Callers can differentiate if the permission is inherited or not by checking the inheritedFrom property.This property is an ItemReference resource referencing the ancestor that the permission is inherited from. + /// Return the effective sharing permission for a particular permission resource. Effective permissions of an item can come from two sources: permissions set directly on the item itself or permissions that are inherited from the item's ancestors. Callers can differentiate if the permission is inherited or not by checking the inheritedFrom property.This property is an ItemReference resource referencing the ancestor that the permission is inherited from. This API is supported in the following national cloud deployments. /// public class PermissionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/PermissionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/PermissionsRequestBuilder.cs index 0cbc7607a2a..bb217be5863 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/PermissionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/PermissionsRequestBuilder.cs @@ -42,7 +42,7 @@ public PermissionsRequestBuilder(Dictionary pathParameters, IReq public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/permissions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List the effective sharing permissions on a driveItem. + /// List the effective sharing permissions on a driveItem. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List the effective sharing permissions on a driveItem. + /// List the effective sharing permissions on a driveItem. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public PermissionsRequestBuilder WithUrl(string rawUrl) { return new PermissionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List the effective sharing permissions on a driveItem. + /// List the effective sharing permissions on a driveItem. This API is supported in the following national cloud deployments. /// public class PermissionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Restore/RestoreRequestBuilder.cs index c246acd9f60..80f0dc8a162 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Restore/RestoreRequestBuilder.cs @@ -29,7 +29,7 @@ public RestoreRequestBuilder(Dictionary pathParameters, IRequest public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/restore", rawUrl) { } /// - /// Restore a driveItem that has been deleted and is currently in the recycle bin. NOTE: This functionality is currently only available for OneDrive Personal. + /// Restore a driveItem that has been deleted and is currently in the recycle bin. NOTE: This functionality is currently only available for OneDrive Personal. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Restore a driveItem that has been deleted and is currently in the recycle bin. NOTE: This functionality is currently only available for OneDrive Personal. + /// Restore a driveItem that has been deleted and is currently in the recycle bin. NOTE: This functionality is currently only available for OneDrive Personal. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQGetResponse.cs new file mode 100644 index 00000000000..39cfa324ab5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Drives.Item.Items.Item.SearchWithQ { + public class SearchWithQGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new SearchWithQGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new SearchWithQGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQRequestBuilder.cs index 6f3174a1113..50aacdaa6c4 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQRequestBuilder.cs @@ -35,6 +35,26 @@ public SearchWithQRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsSearchWithQGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsSearchWithQGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, SearchWithQGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function search + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsSearchWithQGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQResponse.cs index 65f35da5590..612c8a80b56 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Drives.Item.Items.Item.SearchWithQ { - public class SearchWithQResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use searchWithQGetResponse instead.")] + public class SearchWithQResponse : SearchWithQGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SearchWithQResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs index a4e6c726610..0323339ab94 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs @@ -28,7 +28,7 @@ public ReauthorizeRequestBuilder(Dictionary pathParameters, IReq public ReauthorizeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/subscriptions/{subscription%2Did}/reauthorize", rawUrl) { } /// - /// Reauthorize a subscription when you receive a reauthorizationRequired challenge. + /// Reauthorize a subscription when you receive a reauthorizationRequired challenge. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Reauthorize a subscription when you receive a reauthorizationRequired challenge. + /// Reauthorize a subscription when you receive a reauthorizationRequired challenge. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Thumbnails/ThumbnailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Thumbnails/ThumbnailsRequestBuilder.cs index c93135e2a4e..a00d5f4c662 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Thumbnails/ThumbnailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Thumbnails/ThumbnailsRequestBuilder.cs @@ -42,7 +42,7 @@ public ThumbnailsRequestBuilder(Dictionary pathParameters, IRequ public ThumbnailsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/thumbnails{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a collection of ThumbnailSet resources for a DriveItem resource. A DriveItem can be represented by zero or more ThumbnailSet resources.Each thumbnailSet can have one or more thumbnail objects, which are images that represent the item.For example, a thumbnailSet may include thumbnail objects, such as common ones including small, medium, or large. There are many ways to work with thumbnails on OneDrive.Here are the most common ones: + /// Retrieve a collection of ThumbnailSet resources for a DriveItem resource. A DriveItem can be represented by zero or more ThumbnailSet resources.Each thumbnailSet can have one or more thumbnail objects, which are images that represent the item.For example, a thumbnailSet may include thumbnail objects, such as common ones including small, medium, or large. There are many ways to work with thumbnails on OneDrive.Here are the most common ones: This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ThumbnailSet body, Action(requestInfo, ThumbnailSet.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a collection of ThumbnailSet resources for a DriveItem resource. A DriveItem can be represented by zero or more ThumbnailSet resources.Each thumbnailSet can have one or more thumbnail objects, which are images that represent the item.For example, a thumbnailSet may include thumbnail objects, such as common ones including small, medium, or large. There are many ways to work with thumbnails on OneDrive.Here are the most common ones: + /// Retrieve a collection of ThumbnailSet resources for a DriveItem resource. A DriveItem can be represented by zero or more ThumbnailSet resources.Each thumbnailSet can have one or more thumbnail objects, which are images that represent the item.For example, a thumbnailSet may include thumbnail objects, such as common ones including small, medium, or large. There are many ways to work with thumbnails on OneDrive.Here are the most common ones: This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public ThumbnailsRequestBuilder WithUrl(string rawUrl) { return new ThumbnailsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a collection of ThumbnailSet resources for a DriveItem resource. A DriveItem can be represented by zero or more ThumbnailSet resources.Each thumbnailSet can have one or more thumbnail objects, which are images that represent the item.For example, a thumbnailSet may include thumbnail objects, such as common ones including small, medium, or large. There are many ways to work with thumbnails on OneDrive.Here are the most common ones: + /// Retrieve a collection of ThumbnailSet resources for a DriveItem resource. A DriveItem can be represented by zero or more ThumbnailSet resources.Each thumbnailSet can have one or more thumbnail objects, which are images that represent the item.For example, a thumbnailSet may include thumbnail objects, such as common ones including small, medium, or large. There are many ways to work with thumbnails on OneDrive.Here are the most common ones: This API is supported in the following national cloud deployments. /// public class ThumbnailsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Unfollow/UnfollowRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Unfollow/UnfollowRequestBuilder.cs index 3236d27e661..914ddbf484d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Unfollow/UnfollowRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Unfollow/UnfollowRequestBuilder.cs @@ -28,7 +28,7 @@ public UnfollowRequestBuilder(Dictionary pathParameters, IReques public UnfollowRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/unfollow", rawUrl) { } /// - /// Unfollow a driveItem. + /// Unfollow a driveItem. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Unfollow a driveItem. + /// Unfollow a driveItem. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Versions/Item/DriveItemVersionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Versions/Item/DriveItemVersionItemRequestBuilder.cs index 3e6b4ab2880..5a9f24e232e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Versions/Item/DriveItemVersionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Versions/Item/DriveItemVersionItemRequestBuilder.cs @@ -58,7 +58,7 @@ public async Task DeleteAsync(Action - /// Retrieve the metadata for a specific version of a DriveItem. + /// Retrieve the metadata for a specific version of a DriveItem. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -123,7 +123,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the metadata for a specific version of a DriveItem. + /// Retrieve the metadata for a specific version of a DriveItem. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -200,7 +200,7 @@ public DriveItemVersionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the metadata for a specific version of a DriveItem. + /// Retrieve the metadata for a specific version of a DriveItem. This API is supported in the following national cloud deployments. /// public class DriveItemVersionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs index 59a001cfe5d..fd51e5783a4 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs @@ -28,7 +28,7 @@ public RestoreVersionRequestBuilder(Dictionary pathParameters, I public RestoreVersionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/versions/{driveItemVersion%2Did}/restoreVersion", rawUrl) { } /// - /// Restore a previous version of a DriveItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the file. + /// Restore a previous version of a DriveItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the file. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Restore a previous version of a DriveItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the file. + /// Restore a previous version of a DriveItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the file. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Versions/VersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Versions/VersionsRequestBuilder.cs index 92b47a6b56d..4e6c6156503 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Versions/VersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Versions/VersionsRequestBuilder.cs @@ -42,7 +42,7 @@ public VersionsRequestBuilder(Dictionary pathParameters, IReques public VersionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/versions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// OneDrive and SharePoint can be configured to retain the history for files.Depending on the service and configuration, a new version can be created for each edit, each time the file is saved, manually, or never. Previous versions of a document may be retained for a finite period of time depending on admin settings which may be unique per user or location. + /// OneDrive and SharePoint can be configured to retain the history for files.Depending on the service and configuration, a new version can be created for each edit, each time the file is saved, manually, or never. Previous versions of a document may be retained for a finite period of time depending on admin settings that may be unique per user or location. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(DriveItemVersion body, Action(requestInfo, DriveItemVersion.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// OneDrive and SharePoint can be configured to retain the history for files.Depending on the service and configuration, a new version can be created for each edit, each time the file is saved, manually, or never. Previous versions of a document may be retained for a finite period of time depending on admin settings which may be unique per user or location. + /// OneDrive and SharePoint can be configured to retain the history for files.Depending on the service and configuration, a new version can be created for each edit, each time the file is saved, manually, or never. Previous versions of a document may be retained for a finite period of time depending on admin settings that may be unique per user or location. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public VersionsRequestBuilder WithUrl(string rawUrl) { return new VersionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// OneDrive and SharePoint can be configured to retain the history for files.Depending on the service and configuration, a new version can be created for each edit, each time the file is saved, manually, or never. Previous versions of a document may be retained for a finite period of time depending on admin settings which may be unique per user or location. + /// OneDrive and SharePoint can be configured to retain the history for files.Depending on the service and configuration, a new version can be created for each edit, each time the file is saved, manually, or never. Previous versions of a document may be retained for a finite period of time depending on admin settings that may be unique per user or location. This API is supported in the following national cloud deployments. /// public class VersionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Application/ApplicationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Application/ApplicationRequestBuilder.cs index 23d1af8082c..5d72c5e4b6e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Application/ApplicationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Application/ApplicationRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a workbookApplication object. + /// Retrieve the properties and relationships of a workbookApplication object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a workbookApplication object. + /// Retrieve the properties and relationships of a workbookApplication object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public ApplicationRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a workbookApplication object. + /// Retrieve the properties and relationships of a workbookApplication object. This API is supported in the following national cloud deployments. /// public class ApplicationRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Application/Calculate/CalculateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Application/Calculate/CalculateRequestBuilder.cs index 80990a08a4e..1a1e36dc35b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Application/Calculate/CalculateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Application/Calculate/CalculateRequestBuilder.cs @@ -28,7 +28,7 @@ public CalculateRequestBuilder(Dictionary pathParameters, IReque public CalculateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/application/calculate", rawUrl) { } /// - /// Recalculate all currently opened workbooks in Excel. + /// Recalculate all currently opened workbooks in Excel. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CalculatePostRequestBody body, Action - /// Recalculate all currently opened workbooks in Excel. + /// Recalculate all currently opened workbooks in Excel. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/CloseSession/CloseSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/CloseSession/CloseSessionRequestBuilder.cs index 0bae44066a6..5d9aef25b64 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/CloseSession/CloseSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/CloseSession/CloseSessionRequestBuilder.cs @@ -28,7 +28,7 @@ public CloseSessionRequestBuilder(Dictionary pathParameters, IRe public CloseSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/closeSession", rawUrl) { } /// - /// Use this API to close an existing workbook session. + /// Use this API to close an existing workbook session. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Use this API to close an existing workbook session. + /// Use this API to close an existing workbook session. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/Item/WorkbookCommentReplyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/Item/WorkbookCommentReplyItemRequestBuilder.cs index 7487b3dd7a6..f2f1dda541b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/Item/WorkbookCommentReplyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/Item/WorkbookCommentReplyItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of workbookCommentReply object. + /// Retrieve the properties and relationships of workbookCommentReply object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of workbookCommentReply object. + /// Retrieve the properties and relationships of workbookCommentReply object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public WorkbookCommentReplyItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of workbookCommentReply object. + /// Retrieve the properties and relationships of workbookCommentReply object. This API is supported in the following national cloud deployments. /// public class WorkbookCommentReplyItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/RepliesRequestBuilder.cs index 63faf99dbe2..742be3d0704 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/RepliesRequestBuilder.cs @@ -42,7 +42,7 @@ public RepliesRequestBuilder(Dictionary pathParameters, IRequest public RepliesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the properties and relationships of workbookCommentReply object. + /// Retrieve the properties and relationships of workbookCommentReply object. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(WorkbookCommentReply body, Act return await RequestAdapter.SendAsync(requestInfo, WorkbookCommentReply.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the properties and relationships of workbookCommentReply object. + /// Retrieve the properties and relationships of workbookCommentReply object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public RepliesRequestBuilder WithUrl(string rawUrl) { return new RepliesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the properties and relationships of workbookCommentReply object. + /// Retrieve the properties and relationships of workbookCommentReply object. This API is supported in the following national cloud deployments. /// public class RepliesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/CreateSession/CreateSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/CreateSession/CreateSessionRequestBuilder.cs index 37b1335c59a..73bd1162f67 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/CreateSession/CreateSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/CreateSession/CreateSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateSessionRequestBuilder(Dictionary pathParameters, IR public CreateSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/createSession", rawUrl) { } /// - /// Create a new workbook session. Excel APIs can be called in one of two modes: To represent the session in the API, use the workbook-session-id: {session-id} header. In some cases, creating a new session requires an indeterminate time to complete. Microsoft Graph also provides a long running operations pattern. This pattern provides a way to poll for creation status updates, without waiting for the creation to complete. The following are the steps: + /// Create a new workbook session. Excel APIs can be called in one of two modes: To represent the session in the API, use the workbook-session-id: {session-id} header. In some cases, creating a new session requires an indeterminate time to complete. Microsoft Graph also provides a long running operations pattern. This pattern provides a way to poll for creation status updates, without waiting for the creation to complete. The following are the steps: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, WorkbookSessionInfo.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new workbook session. Excel APIs can be called in one of two modes: To represent the session in the API, use the workbook-session-id: {session-id} header. In some cases, creating a new session requires an indeterminate time to complete. Microsoft Graph also provides a long running operations pattern. This pattern provides a way to poll for creation status updates, without waiting for the creation to complete. The following are the steps: + /// Create a new workbook session. Excel APIs can be called in one of two modes: To represent the session in the API, use the workbook-session-id: {session-id} header. In some cases, creating a new session requires an indeterminate time to complete. Microsoft Graph also provides a long running operations pattern. This pattern provides a way to poll for creation status updates, without waiting for the creation to complete. The following are the steps: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Round/RoundPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Round/RoundPostRequestBody.cs index 4c707b0ecc2..5d83489bdd3 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Round/RoundPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Round/RoundPostRequestBody.cs @@ -63,8 +63,8 @@ public static RoundPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"numDigits", n => { NumDigits = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/RoundDown/RoundDownPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/RoundDown/RoundDownPostRequestBody.cs index c1eed304eed..63c4d8af7f9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/RoundDown/RoundDownPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/RoundDown/RoundDownPostRequestBody.cs @@ -63,8 +63,8 @@ public static RoundDownPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"numDigits", n => { NumDigits = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/RoundUp/RoundUpPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/RoundUp/RoundUpPostRequestBody.cs index 71d9c7afca0..7b3a35119b0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/RoundUp/RoundUpPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/RoundUp/RoundUpPostRequestBody.cs @@ -63,8 +63,8 @@ public static RoundUpPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"numDigits", n => { NumDigits = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Trunc/TruncPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Trunc/TruncPostRequestBody.cs index d063f063bc0..9b00a8fbb80 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Trunc/TruncPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Trunc/TruncPostRequestBody.cs @@ -63,8 +63,8 @@ public static TruncPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"numDigits", n => { NumDigits = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; } /// /// Cancellation token to use when cancelling requests @@ -78,7 +78,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookNamedItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of nameditem object. + /// Update the properties of nameditem object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -124,7 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of nameditem object. + /// Retrieve the properties and relationships of nameditem object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -150,7 +150,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of nameditem object. + /// Update the properties of nameditem object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -201,7 +201,7 @@ public WorkbookNamedItemItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of nameditem object. + /// Retrieve the properties and relationships of nameditem object. This API is supported in the following national cloud deployments. /// public class WorkbookNamedItemItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.cs index 4882b3a67a5..431690fca64 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.cs @@ -52,8 +52,8 @@ public NamesRequestBuilder(Dictionary pathParameters, IRequestAd public NamesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of nameditem objects. - /// Find more info here + /// Retrieve a list of nameditem objects. This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -93,7 +93,7 @@ public async Task PostAsync(WorkbookNamedItem body, Action(requestInfo, WorkbookNamedItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of nameditem objects. + /// Retrieve a list of nameditem objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -154,7 +154,7 @@ public NamesRequestBuilder WithUrl(string rawUrl) { return new NamesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of nameditem objects. + /// Retrieve a list of nameditem objects. This API is supported in the following national cloud deployments. /// public class NamesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Operations/Item/WorkbookOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Operations/Item/WorkbookOperationItemRequestBuilder.cs index ff1ee288f37..bb0dadf3e6b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Operations/Item/WorkbookOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Operations/Item/WorkbookOperationItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Meaningless if this url is called independently. This request is part of all async requests for excel. This is used to retrieve the status of a workbookOperation object. Currently not all requests support async. Take Create session request as an example. Issue an async Create session request, follow the documentation and you may get status code 202 Accepted, async operation starts from here and you can find the url this document required from the response header, from the location part. + /// Meaningless if this url is called independently. This request is part of all async requests for excel. This is used to retrieve the status of a workbookOperation object. Currently not all requests support async. Take Create session request as an example. Issue an async Create session request, follow the documentation and you may get status code 202 Accepted, async operation starts from here and you can find the url this document required from the response header, from the location part. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Meaningless if this url is called independently. This request is part of all async requests for excel. This is used to retrieve the status of a workbookOperation object. Currently not all requests support async. Take Create session request as an example. Issue an async Create session request, follow the documentation and you may get status code 202 Accepted, async operation starts from here and you can find the url this document required from the response header, from the location part. + /// Meaningless if this url is called independently. This request is part of all async requests for excel. This is used to retrieve the status of a workbookOperation object. Currently not all requests support async. Take Create session request as an example. Issue an async Create session request, follow the documentation and you may get status code 202 Accepted, async operation starts from here and you can find the url this document required from the response header, from the location part. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public WorkbookOperationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Meaningless if this url is called independently. This request is part of all async requests for excel. This is used to retrieve the status of a workbookOperation object. Currently not all requests support async. Take Create session request as an example. Issue an async Create session request, follow the documentation and you may get status code 202 Accepted, async operation starts from here and you can find the url this document required from the response header, from the location part. + /// Meaningless if this url is called independently. This request is part of all async requests for excel. This is used to retrieve the status of a workbookOperation object. Currently not all requests support async. Take Create session request as an example. Issue an async Create session request, follow the documentation and you may get status code 202 Accepted, async operation starts from here and you can find the url this document required from the response header, from the location part. This API is supported in the following national cloud deployments. /// public class WorkbookOperationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Operations/OperationsRequestBuilder.cs index f6ed5d737c6..54dea97f173 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Operations/OperationsRequestBuilder.cs @@ -42,7 +42,7 @@ public OperationsRequestBuilder(Dictionary pathParameters, IRequ public OperationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/operations{?%24search,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Meaningless if this url is called independently. This request is part of all async requests for excel. This is used to retrieve the status of a workbookOperation object. Currently not all requests support async. Take Create session request as an example. Issue an async Create session request, follow the documentation and you may get status code 202 Accepted, async operation starts from here and you can find the url this document required from the response header, from the location part. + /// Meaningless if this url is called independently. This request is part of all async requests for excel. This is used to retrieve the status of a workbookOperation object. Currently not all requests support async. Take Create session request as an example. Issue an async Create session request, follow the documentation and you may get status code 202 Accepted, async operation starts from here and you can find the url this document required from the response header, from the location part. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(WorkbookOperation body, Action(requestInfo, WorkbookOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Meaningless if this url is called independently. This request is part of all async requests for excel. This is used to retrieve the status of a workbookOperation object. Currently not all requests support async. Take Create session request as an example. Issue an async Create session request, follow the documentation and you may get status code 202 Accepted, async operation starts from here and you can find the url this document required from the response header, from the location part. + /// Meaningless if this url is called independently. This request is part of all async requests for excel. This is used to retrieve the status of a workbookOperation object. Currently not all requests support async. Take Create session request as an example. Issue an async Create session request, follow the documentation and you may get status code 202 Accepted, async operation starts from here and you can find the url this document required from the response header, from the location part. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public OperationsRequestBuilder WithUrl(string rawUrl) { return new OperationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Meaningless if this url is called independently. This request is part of all async requests for excel. This is used to retrieve the status of a workbookOperation object. Currently not all requests support async. Take Create session request as an example. Issue an async Create session request, follow the documentation and you may get status code 202 Accepted, async operation starts from here and you can find the url this document required from the response header, from the location part. + /// Meaningless if this url is called independently. This request is part of all async requests for excel. This is used to retrieve the status of a workbookOperation object. Currently not all requests support async. Take Create session request as an example. Issue an async Create session request, follow the documentation and you may get status code 202 Accepted, async operation starts from here and you can find the url this document required from the response header, from the location part. This API is supported in the following national cloud deployments. /// public class OperationsRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/RefreshSession/RefreshSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/RefreshSession/RefreshSessionRequestBuilder.cs index d31f12f50bb..7abe6c15d19 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/RefreshSession/RefreshSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/RefreshSession/RefreshSessionRequestBuilder.cs @@ -28,7 +28,7 @@ public RefreshSessionRequestBuilder(Dictionary pathParameters, I public RefreshSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/refreshSession", rawUrl) { } /// - /// Use this API to refresh an existing workbook session. + /// Use this API to refresh an existing workbook session. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Use this API to refresh an existing workbook session. + /// Use this API to refresh an existing workbook session. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Add/AddRequestBuilder.cs index f51c13da4a2..ea26e15e413 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Add/AddRequestBuilder.cs @@ -29,7 +29,8 @@ public AddRequestBuilder(Dictionary pathParameters, IRequestAdap public AddRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/add", rawUrl) { } /// - /// Invoke action add + /// Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -50,7 +51,7 @@ public async Task PostAsync(AddPostRequestBody body, Action(requestInfo, WorkbookTable.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Invoke action add + /// Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountGetResponse.cs new file mode 100644 index 00000000000..9d252e1be74 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountGetResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Drives.Item.Items.Item.Workbook.Tables.Count { + public class CountGetResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public int? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new countGetResponse and sets the default values. + /// + public CountGetResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CountGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteIntValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountRequestBuilder.cs index 2fce9083076..279f7691fa9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountRequestBuilder.cs @@ -33,6 +33,26 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsCountGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsCountGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CountGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function count + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsCountGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountResponse.cs index 4b5aeb73630..b3763c01216 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Drives.Item.Items.Item.Workbook.Tables.Count { - public class CountResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public int? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new countResponse and sets the default values. - /// - public CountResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use countGetResponse instead.")] + public class CountResponse : CountGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static CountResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CountResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CountResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ClearFilters/ClearFiltersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ClearFilters/ClearFiltersRequestBuilder.cs index a36f580deaa..5604257cc04 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ClearFilters/ClearFiltersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ClearFilters/ClearFiltersRequestBuilder.cs @@ -28,7 +28,7 @@ public ClearFiltersRequestBuilder(Dictionary pathParameters, IRe public ClearFiltersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/clearFilters", rawUrl) { } /// - /// Clears all the filters currently applied on the table. + /// Clears all the filters currently applied on the table. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Clears all the filters currently applied on the table. + /// Clears all the filters currently applied on the table. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Add/AddRequestBuilder.cs index 1dcfd9f1858..578643139ee 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Add/AddRequestBuilder.cs @@ -29,7 +29,7 @@ public AddRequestBuilder(Dictionary pathParameters, IRequestAdap public AddRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/add", rawUrl) { } /// - /// Adds a new column to the table. + /// Adds a new column to the table. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(AddPostRequestBody body, Action return await RequestAdapter.SendAsync(requestInfo, WorkbookTableColumn.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Adds a new column to the table. + /// Adds a new column to the table. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.cs index a08bc4669cf..41cfcfb3079 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.cs @@ -48,8 +48,8 @@ public ColumnsRequestBuilder(Dictionary pathParameters, IRequest public ColumnsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of tablecolumn objects. - /// Find more info here + /// Retrieve a list of tablecolumn objects. This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -76,7 +76,7 @@ public ItemAtWithIndexRequestBuilder ItemAtWithIndex(int? index) { return new ItemAtWithIndexRequestBuilder(PathParameters, RequestAdapter, index); } /// - /// Use this API to create a new TableColumn. + /// Use this API to create a new TableColumn. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -98,7 +98,7 @@ public async Task PostAsync(WorkbookTableColumn body, Actio return await RequestAdapter.SendAsync(requestInfo, WorkbookTableColumn.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of tablecolumn objects. + /// Retrieve a list of tablecolumn objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -124,7 +124,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new TableColumn. + /// Use this API to create a new TableColumn. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -159,7 +159,7 @@ public ColumnsRequestBuilder WithUrl(string rawUrl) { return new ColumnsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of tablecolumn objects. + /// Retrieve a list of tablecolumn objects. This API is supported in the following national cloud deployments. /// public class ColumnsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountGetResponse.cs new file mode 100644 index 00000000000..3092632c070 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountGetResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Count { + public class CountGetResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public int? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new countGetResponse and sets the default values. + /// + public CountGetResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CountGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteIntValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountRequestBuilder.cs index 3ea4069e0a0..320c4ebec26 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountRequestBuilder.cs @@ -33,6 +33,26 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsCountGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsCountGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CountGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function count + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsCountGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountResponse.cs index d794306946f..55b97f0e398 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Count { - public class CountResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public int? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new countResponse and sets the default values. - /// - public CountResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use countGetResponse instead.")] + public class CountResponse : CountGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static CountResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CountResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CountResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs index b86e6571606..7097be21bc2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs @@ -29,7 +29,7 @@ public DataBodyRangeRequestBuilder(Dictionary pathParameters, IR public DataBodyRangeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()", rawUrl) { } /// - /// Gets the range object associated with the data body of the column. + /// Gets the range object associated with the data body of the column. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookRange.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Gets the range object associated with the data body of the column. + /// Gets the range object associated with the data body of the column. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Apply/ApplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Apply/ApplyRequestBuilder.cs index 95795d784de..f3999e8cadd 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Apply/ApplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Apply/ApplyRequestBuilder.cs @@ -28,7 +28,7 @@ public ApplyRequestBuilder(Dictionary pathParameters, IRequestAd public ApplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/apply", rawUrl) { } /// - /// Apply the given filter criteria on the given column. + /// Apply the given filter criteria on the given column. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ApplyPostRequestBody body, Action - /// Apply the given filter criteria on the given column. + /// Apply the given filter criteria on the given column. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Clear/ClearRequestBuilder.cs index a33241e0ed3..1c072359a5f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Clear/ClearRequestBuilder.cs @@ -28,7 +28,7 @@ public ClearRequestBuilder(Dictionary pathParameters, IRequestAd public ClearRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/clear", rawUrl) { } /// - /// Clear the filter on the given column. + /// Clear the filter on the given column. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Clear the filter on the given column. + /// Clear the filter on the given column. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs index b513a812fc4..dca93fff923 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs @@ -29,7 +29,7 @@ public HeaderRowRangeRequestBuilder(Dictionary pathParameters, I public HeaderRowRangeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()", rawUrl) { } /// - /// Gets the range object associated with the header row of the column. + /// Gets the range object associated with the header row of the column. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookRange.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Gets the range object associated with the header row of the column. + /// Gets the range object associated with the header row of the column. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/RangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/RangeRequestBuilder.cs index 5529225ed97..c18bb20bc65 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/RangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/RangeRequestBuilder.cs @@ -29,7 +29,7 @@ public RangeRequestBuilder(Dictionary pathParameters, IRequestAd public RangeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()", rawUrl) { } /// - /// Gets the range object associated with the entire column. + /// Gets the range object associated with the entire column. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookRange.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Gets the range object associated with the entire column. + /// Gets the range object associated with the entire column. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs index a402dd08af9..f0305a64fd9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs @@ -29,7 +29,7 @@ public TotalRowRangeRequestBuilder(Dictionary pathParameters, IR public TotalRowRangeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()", rawUrl) { } /// - /// Gets the range object associated with the totals row of the column. + /// Gets the range object associated with the totals row of the column. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookRange.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Gets the range object associated with the totals row of the column. + /// Gets the range object associated with the totals row of the column. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilder.cs index 684a7de732c..0214eb26934 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilder.cs @@ -54,7 +54,7 @@ public WorkbookTableColumnItemRequestBuilder(Dictionary pathPara public WorkbookTableColumnItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes the column from the table. + /// Deletes the column from the table. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of tablecolumn object. + /// Retrieve the properties and relationships of tablecolumn object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -94,7 +94,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookTableColumn.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of tablecolumn object. + /// Update the properties of tablecolumn object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -116,7 +116,7 @@ public async Task PatchAsync(WorkbookTableColumn body, Acti return await RequestAdapter.SendAsync(requestInfo, WorkbookTableColumn.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes the column from the table. + /// Deletes the column from the table. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of tablecolumn object. + /// Retrieve the properties and relationships of tablecolumn object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -166,7 +166,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of tablecolumn object. + /// Update the properties of tablecolumn object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -217,7 +217,7 @@ public WorkbookTableColumnItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of tablecolumn object. + /// Retrieve the properties and relationships of tablecolumn object. This API is supported in the following national cloud deployments. /// public class WorkbookTableColumnItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs index d9b515e9ef5..d138e94442d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs @@ -32,7 +32,6 @@ public ItemAtWithIndexRequestBuilder(string rawUrl, IRequestAdapter requestAdapt } /// /// Invoke function itemAt - /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ConvertToRange/ConvertToRangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ConvertToRange/ConvertToRangeRequestBuilder.cs index 47e56eb1833..4eeab9d1c09 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ConvertToRange/ConvertToRangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ConvertToRange/ConvertToRangeRequestBuilder.cs @@ -29,7 +29,7 @@ public ConvertToRangeRequestBuilder(Dictionary pathParameters, I public ConvertToRangeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/convertToRange", rawUrl) { } /// - /// Converts the table into a normal range of cells. All data is preserved. + /// Converts the table into a normal range of cells. All data is preserved. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, WorkbookRange.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Converts the table into a normal range of cells. All data is preserved. + /// Converts the table into a normal range of cells. All data is preserved. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs index 520260fc4bd..720ed560d8b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs @@ -29,7 +29,7 @@ public DataBodyRangeRequestBuilder(Dictionary pathParameters, IR public DataBodyRangeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()", rawUrl) { } /// - /// Gets the range object associated with the data body of the table. + /// Gets the range object associated with the data body of the table. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookRange.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Gets the range object associated with the data body of the table. + /// Gets the range object associated with the data body of the table. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs index cf798bf3dfb..aadf83b794f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs @@ -29,7 +29,7 @@ public HeaderRowRangeRequestBuilder(Dictionary pathParameters, I public HeaderRowRangeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()", rawUrl) { } /// - /// Gets the range object associated with header row of the table. + /// Gets the range object associated with header row of the table. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookRange.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Gets the range object associated with header row of the table. + /// Gets the range object associated with header row of the table. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/RangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/RangeRequestBuilder.cs index d9bb98ffa30..4a127d360d7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/RangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/RangeRequestBuilder.cs @@ -29,7 +29,7 @@ public RangeRequestBuilder(Dictionary pathParameters, IRequestAd public RangeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()", rawUrl) { } /// - /// Get the range object associated with the entire table. + /// Get the range object associated with the entire table. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookRange.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the range object associated with the entire table. + /// Get the range object associated with the entire table. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ReapplyFilters/ReapplyFiltersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ReapplyFilters/ReapplyFiltersRequestBuilder.cs index c357bb5aaf6..c54f46d9b94 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ReapplyFilters/ReapplyFiltersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ReapplyFilters/ReapplyFiltersRequestBuilder.cs @@ -28,7 +28,7 @@ public ReapplyFiltersRequestBuilder(Dictionary pathParameters, I public ReapplyFiltersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/reapplyFilters", rawUrl) { } /// - /// Reapplies all the filters currently on the table. + /// Reapplies all the filters currently on the table. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Reapplies all the filters currently on the table. + /// Reapplies all the filters currently on the table. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Add/AddRequestBuilder.cs index 12546839bf0..f4a0f442188 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Add/AddRequestBuilder.cs @@ -29,7 +29,7 @@ public AddRequestBuilder(Dictionary pathParameters, IRequestAdap public AddRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/add", rawUrl) { } /// - /// Adds rows to the end of the table. Note that the API can accept multiple rows data using this API. Adding one row at a time could lead to performance degradation. The recommended approach would be to batch the rows together in a single call rather than doing single row insertion. For best results, collect the rows to be inserted on the application side and perform single rows add operation. Experiment with the number of rows to determine the ideal number of rows to use in single API call. + /// Adds rows to the end of the table. Note that the API can accept multiple rows data using this API. Adding one row at a time could lead to performance degradation. The recommended approach would be to batch the rows together in a single call rather than doing single row insertion. For best results, collect the rows to be inserted on the application side and perform single rows add operation. Experiment with the number of rows to determine the ideal number of rows to use in single API call. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(AddPostRequestBody body, Action(requestInfo, WorkbookTableRow.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Adds rows to the end of the table. Note that the API can accept multiple rows data using this API. Adding one row at a time could lead to performance degradation. The recommended approach would be to batch the rows together in a single call rather than doing single row insertion. For best results, collect the rows to be inserted on the application side and perform single rows add operation. Experiment with the number of rows to determine the ideal number of rows to use in single API call. + /// Adds rows to the end of the table. Note that the API can accept multiple rows data using this API. Adding one row at a time could lead to performance degradation. The recommended approach would be to batch the rows together in a single call rather than doing single row insertion. For best results, collect the rows to be inserted on the application side and perform single rows add operation. Experiment with the number of rows to determine the ideal number of rows to use in single API call. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountGetResponse.cs new file mode 100644 index 00000000000..67a5c671dfb --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountGetResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Count { + public class CountGetResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public int? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new countGetResponse and sets the default values. + /// + public CountGetResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CountGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteIntValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountRequestBuilder.cs index a1746d20b11..e8c3196d1a5 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountRequestBuilder.cs @@ -33,6 +33,26 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsCountGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsCountGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CountGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function count + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsCountGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountResponse.cs index e22dc94df4a..7f4de516563 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Count { - public class CountResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public int? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new countResponse and sets the default values. - /// - public CountResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use countGetResponse instead.")] + public class CountResponse : CountGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static CountResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CountResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CountResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilder.cs index 37b6fae082e..b1370953841 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilder.cs @@ -34,7 +34,7 @@ public WorkbookTableRowItemRequestBuilder(Dictionary pathParamet public WorkbookTableRowItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes the row from the table. + /// Deletes the row from the table. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of tablerow object. + /// Retrieve the properties and relationships of tablerow object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookTableRow.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of tablerow object. + /// Update the properties of tablerow object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(WorkbookTableRow body, Action(requestInfo, WorkbookTableRow.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes the row from the table. + /// Deletes the row from the table. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of tablerow object. + /// Retrieve the properties and relationships of tablerow object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of tablerow object. + /// Update the properties of tablerow object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public WorkbookTableRowItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of tablerow object. + /// Retrieve the properties and relationships of tablerow object. This API is supported in the following national cloud deployments. /// public class WorkbookTableRowItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs index 3aed8c337fc..7419394bf6e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs @@ -32,7 +32,6 @@ public ItemAtWithIndexRequestBuilder(string rawUrl, IRequestAdapter requestAdapt } /// /// Invoke function itemAt - /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.cs index 844f24ebef7..94f6c0a7a63 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.cs @@ -48,8 +48,8 @@ public RowsRequestBuilder(Dictionary pathParameters, IRequestAda public RowsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of tablerow objects. - /// Find more info here + /// Retrieve a list of tablerow objects. This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -76,7 +76,7 @@ public ItemAtWithIndexRequestBuilder ItemAtWithIndex(int? index) { return new ItemAtWithIndexRequestBuilder(PathParameters, RequestAdapter, index); } /// - /// Adds rows to the end of a table. Note that this API can accept multiple rows of data. Adding one row at a time can affect performance. The recommended approach is to batch the rows together in a single call rather than inserting single rows. For best results, collect the rows to be inserted on the application side and perform a single row add operation. Experiment with the number of rows to determine the ideal number of rows to use in a single API call. This request might occasionally result in a 504 HTTP error. The appropriate response to this error is to repeat the request. + /// Adds rows to the end of a table. Note that this API can accept multiple rows of data. Adding one row at a time can affect performance. The recommended approach is to batch the rows together in a single call rather than inserting single rows. For best results, collect the rows to be inserted on the application side and perform a single row add operation. Experiment with the number of rows to determine the ideal number of rows to use in a single API call. This request might occasionally result in a 504 HTTP error. The appropriate response to this error is to repeat the request. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -98,7 +98,7 @@ public async Task PostAsync(WorkbookTableRow body, Action(requestInfo, WorkbookTableRow.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of tablerow objects. + /// Retrieve a list of tablerow objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -124,7 +124,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Adds rows to the end of a table. Note that this API can accept multiple rows of data. Adding one row at a time can affect performance. The recommended approach is to batch the rows together in a single call rather than inserting single rows. For best results, collect the rows to be inserted on the application side and perform a single row add operation. Experiment with the number of rows to determine the ideal number of rows to use in a single API call. This request might occasionally result in a 504 HTTP error. The appropriate response to this error is to repeat the request. + /// Adds rows to the end of a table. Note that this API can accept multiple rows of data. Adding one row at a time can affect performance. The recommended approach is to batch the rows together in a single call rather than inserting single rows. For best results, collect the rows to be inserted on the application side and perform a single row add operation. Experiment with the number of rows to determine the ideal number of rows to use in a single API call. This request might occasionally result in a 504 HTTP error. The appropriate response to this error is to repeat the request. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -159,7 +159,7 @@ public RowsRequestBuilder WithUrl(string rawUrl) { return new RowsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of tablerow objects. + /// Retrieve a list of tablerow objects. This API is supported in the following national cloud deployments. /// public class RowsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Apply/ApplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Apply/ApplyRequestBuilder.cs index 4b34c6f5d56..cda801ff582 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Apply/ApplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Apply/ApplyRequestBuilder.cs @@ -28,7 +28,7 @@ public ApplyRequestBuilder(Dictionary pathParameters, IRequestAd public ApplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/sort/apply", rawUrl) { } /// - /// Perform a sort operation. + /// Perform a sort operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ApplyPostRequestBody body, Action - /// Perform a sort operation. + /// Perform a sort operation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Clear/ClearRequestBuilder.cs index 2a4f5be1e51..2cf198b1974 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Clear/ClearRequestBuilder.cs @@ -28,7 +28,7 @@ public ClearRequestBuilder(Dictionary pathParameters, IRequestAd public ClearRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/sort/clear", rawUrl) { } /// - /// Clears the sorting that is currently on the table. While this doesn't modify the table's ordering, it clears the state of the header buttons. + /// Clears the sorting that is currently on the table. While this doesn't modify the table's ordering, it clears the state of the header buttons. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Clears the sorting that is currently on the table. While this doesn't modify the table's ordering, it clears the state of the header buttons. + /// Clears the sorting that is currently on the table. While this doesn't modify the table's ordering, it clears the state of the header buttons. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Reapply/ReapplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Reapply/ReapplyRequestBuilder.cs index 17764381eaf..f19e5b13c99 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Reapply/ReapplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Reapply/ReapplyRequestBuilder.cs @@ -28,7 +28,7 @@ public ReapplyRequestBuilder(Dictionary pathParameters, IRequest public ReapplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/sort/reapply", rawUrl) { } /// - /// Reapplies the current sorting parameters to the table. + /// Reapplies the current sorting parameters to the table. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Reapplies the current sorting parameters to the table. + /// Reapplies the current sorting parameters to the table. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/SortRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/SortRequestBuilder.cs index 003ff90e62a..0f44516e143 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/SortRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/SortRequestBuilder.cs @@ -63,7 +63,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of tablesort object. + /// Retrieve the properties and relationships of tablesort object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -128,7 +128,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of tablesort object. + /// Retrieve the properties and relationships of tablesort object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -205,7 +205,7 @@ public SortRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of tablesort object. + /// Retrieve the properties and relationships of tablesort object. This API is supported in the following national cloud deployments. /// public class SortRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs index 7e1bcd1b72d..32c5059bbe6 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs @@ -29,7 +29,7 @@ public TotalRowRangeRequestBuilder(Dictionary pathParameters, IR public TotalRowRangeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()", rawUrl) { } /// - /// Gets the range object associated with totals row of the table. + /// Gets the range object associated with totals row of the table. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookRange.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Gets the range object associated with totals row of the table. + /// Gets the range object associated with totals row of the table. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/WorkbookTableItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/WorkbookTableItemRequestBuilder.cs index 143fe5488cf..6246ae091f6 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/WorkbookTableItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/WorkbookTableItemRequestBuilder.cs @@ -84,7 +84,7 @@ public WorkbookTableItemRequestBuilder(Dictionary pathParameters public WorkbookTableItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes the table. + /// Deletes the table. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -104,7 +104,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of table object. + /// Retrieve the properties and relationships of table object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -124,7 +124,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookTable.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of table object. + /// Update the properties of table object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -146,7 +146,7 @@ public async Task PatchAsync(WorkbookTable body, Action(requestInfo, WorkbookTable.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes the table. + /// Deletes the table. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,7 +170,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of table object. + /// Retrieve the properties and relationships of table object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -196,7 +196,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of table object. + /// Update the properties of table object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -247,7 +247,7 @@ public WorkbookTableItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of table object. + /// Retrieve the properties and relationships of table object. This API is supported in the following national cloud deployments. /// public class WorkbookTableItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.cs index e5c1c294091..8779a60524c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.cs @@ -48,7 +48,7 @@ public TablesRequestBuilder(Dictionary pathParameters, IRequestA public TablesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of table objects. + /// Retrieve a list of table objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -97,7 +97,7 @@ public async Task PostAsync(WorkbookTable body, Action(requestInfo, WorkbookTable.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of table objects. + /// Retrieve a list of table objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,7 +158,7 @@ public TablesRequestBuilder WithUrl(string rawUrl) { return new TablesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of table objects. + /// Retrieve a list of table objects. This API is supported in the following national cloud deployments. /// public class TablesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Add/AddRequestBuilder.cs index 45b75f7a2d1..a6bb2fdf4cb 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Add/AddRequestBuilder.cs @@ -29,7 +29,7 @@ public AddRequestBuilder(Dictionary pathParameters, IRequestAdap public AddRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/add", rawUrl) { } /// - /// Adds a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you wish to activate the newly added worksheet, call.activate() on it. + /// Adds a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you wish to activate the newly added worksheet, call .activate() on it. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(AddPostRequestBody body, Action(requestInfo, WorkbookWorksheet.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Adds a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you wish to activate the newly added worksheet, call.activate() on it. + /// Adds a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you wish to activate the newly added worksheet, call .activate() on it. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Add/AddRequestBuilder.cs index f80916e0d41..6253a9d29b4 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Add/AddRequestBuilder.cs @@ -29,7 +29,7 @@ public AddRequestBuilder(Dictionary pathParameters, IRequestAdap public AddRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/add", rawUrl) { } /// - /// Creates a new chart. + /// Creates a new chart. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(AddPostRequestBody body, Action(requestInfo, WorkbookChart.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Creates a new chart. + /// Creates a new chart. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.cs index 40fc579726a..8744d272437 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.cs @@ -49,8 +49,8 @@ public ChartsRequestBuilder(Dictionary pathParameters, IRequestA public ChartsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of chart objects. - /// Find more info here + /// Retrieve a list of chart objects. This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -85,7 +85,7 @@ public ItemWithNameRequestBuilder ItemWithName(string name) { return new ItemWithNameRequestBuilder(PathParameters, RequestAdapter, name); } /// - /// Use this API to create a new Chart. + /// Use this API to create a new Chart. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -107,7 +107,7 @@ public async Task PostAsync(WorkbookChart body, Action(requestInfo, WorkbookChart.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of chart objects. + /// Retrieve a list of chart objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -133,7 +133,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Chart. + /// Use this API to create a new Chart. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -168,7 +168,7 @@ public ChartsRequestBuilder WithUrl(string rawUrl) { return new ChartsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of chart objects. + /// Retrieve a list of chart objects. This API is supported in the following national cloud deployments. /// public class ChartsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountGetResponse.cs new file mode 100644 index 00000000000..37975c19ba7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountGetResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Count { + public class CountGetResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public int? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new countGetResponse and sets the default values. + /// + public CountGetResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CountGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteIntValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountRequestBuilder.cs index d7212e52f47..479ee37435e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountRequestBuilder.cs @@ -33,6 +33,26 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsCountGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsCountGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CountGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function count + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsCountGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountResponse.cs index a2428de53c8..87a0c73b7b4 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Count { - public class CountResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public int? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new countResponse and sets the default values. - /// - public CountResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use countGetResponse instead.")] + public class CountResponse : CountGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static CountResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CountResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CountResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Font/FontRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Font/FontRequestBuilder.cs index a357eee440c..42934433191 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Font/FontRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Font/FontRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chartfont object. + /// Retrieve the properties and relationships of chartfont object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookChartFont.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of chartfont object. + /// Update the properties of chartfont object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chartfont object. + /// Retrieve the properties and relationships of chartfont object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of chartfont object. + /// Update the properties of chartfont object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -191,7 +191,7 @@ public FontRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chartfont object. + /// Retrieve the properties and relationships of chartfont object. This API is supported in the following national cloud deployments. /// public class FontRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Line/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Line/Clear/ClearRequestBuilder.cs index 47f80853665..f6f670def94 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Line/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Line/Clear/ClearRequestBuilder.cs @@ -28,7 +28,7 @@ public ClearRequestBuilder(Dictionary pathParameters, IRequestAd public ClearRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/format/line/clear", rawUrl) { } /// - /// Clear the line format of a chart element. + /// Clear the line format of a chart element. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Clear the line format of a chart element. + /// Clear the line format of a chart element. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Line/LineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Line/LineRequestBuilder.cs index a526ad3f4d3..69ea22b839f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Line/LineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Line/LineRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chartlineformat object. + /// Retrieve the properties and relationships of chartlineformat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -73,7 +73,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookChartLineFormat.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of chartlineformat object. + /// Update the properties of chartlineformat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -119,7 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chartlineformat object. + /// Retrieve the properties and relationships of chartlineformat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -145,7 +145,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of chartlineformat object. + /// Update the properties of chartlineformat object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -196,7 +196,7 @@ public LineRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chartlineformat object. + /// Retrieve the properties and relationships of chartlineformat object. This API is supported in the following national cloud deployments. /// public class LineRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.cs index a6c0d00ae14..1bf37fdbc40 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.cs @@ -28,7 +28,7 @@ public ClearRequestBuilder(Dictionary pathParameters, IRequestAd public ClearRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/majorGridlines/format/line/clear", rawUrl) { } /// - /// Clear the line format of a chart element. + /// Clear the line format of a chart element. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Clear the line format of a chart element. + /// Clear the line format of a chart element. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.cs index 21fac1a2a4d..138ea5b5dd1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.cs @@ -28,7 +28,7 @@ public ClearRequestBuilder(Dictionary pathParameters, IRequestAd public ClearRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/minorGridlines/format/line/clear", rawUrl) { } /// - /// Clear the line format of a chart element. + /// Clear the line format of a chart element. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Clear the line format of a chart element. + /// Clear the line format of a chart element. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs index 9b584c3f4b9..227d349e9b3 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chartgridlines object. + /// Retrieve the properties and relationships of chartgridlines object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -73,7 +73,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookChartGridlines.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of chartgridlines object. + /// Update the properties of chartgridlines object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -119,7 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chartgridlines object. + /// Retrieve the properties and relationships of chartgridlines object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -145,7 +145,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of chartgridlines object. + /// Update the properties of chartgridlines object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -196,7 +196,7 @@ public MinorGridlinesRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chartgridlines object. + /// Retrieve the properties and relationships of chartgridlines object. This API is supported in the following national cloud deployments. /// public class MinorGridlinesRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/TitleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/TitleRequestBuilder.cs index e81ea919ed7..103ba69ecae 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/TitleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/TitleRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chartaxistitle object. + /// Retrieve the properties and relationships of chartaxistitle object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -73,7 +73,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookChartAxisTitle.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of chartaxistitle object. + /// Update the properties of chartaxistitle object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -119,7 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chartaxistitle object. + /// Retrieve the properties and relationships of chartaxistitle object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -145,7 +145,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of chartaxistitle object. + /// Update the properties of chartaxistitle object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -196,7 +196,7 @@ public TitleRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chartaxistitle object. + /// Retrieve the properties and relationships of chartaxistitle object. This API is supported in the following national cloud deployments. /// public class TitleRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Font/FontRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Font/FontRequestBuilder.cs index c34023eed54..783ececae3b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Font/FontRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Font/FontRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chartfont object. + /// Retrieve the properties and relationships of chartfont object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookChartFont.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of chartfont object. + /// Update the properties of chartfont object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chartfont object. + /// Retrieve the properties and relationships of chartfont object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of chartfont object. + /// Update the properties of chartfont object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -191,7 +191,7 @@ public FontRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chartfont object. + /// Retrieve the properties and relationships of chartfont object. This API is supported in the following national cloud deployments. /// public class FontRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Line/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Line/Clear/ClearRequestBuilder.cs index 4532dfffb44..4c5c47b5a81 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Line/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Line/Clear/ClearRequestBuilder.cs @@ -28,7 +28,7 @@ public ClearRequestBuilder(Dictionary pathParameters, IRequestAd public ClearRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/format/line/clear", rawUrl) { } /// - /// Clear the line format of a chart element. + /// Clear the line format of a chart element. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Clear the line format of a chart element. + /// Clear the line format of a chart element. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Line/LineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Line/LineRequestBuilder.cs index 94e2523a4c7..0cbc7711e93 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Line/LineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Line/LineRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chartlineformat object. + /// Retrieve the properties and relationships of chartlineformat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -73,7 +73,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookChartLineFormat.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of chartlineformat object. + /// Update the properties of chartlineformat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -119,7 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chartlineformat object. + /// Retrieve the properties and relationships of chartlineformat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -145,7 +145,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of chartlineformat object. + /// Update the properties of chartlineformat object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -196,7 +196,7 @@ public LineRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chartlineformat object. + /// Retrieve the properties and relationships of chartlineformat object. This API is supported in the following national cloud deployments. /// public class LineRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.cs index 466adf21118..1516465f1f0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.cs @@ -28,7 +28,7 @@ public ClearRequestBuilder(Dictionary pathParameters, IRequestAd public ClearRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/majorGridlines/format/line/clear", rawUrl) { } /// - /// Clear the line format of a chart element. + /// Clear the line format of a chart element. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Clear the line format of a chart element. + /// Clear the line format of a chart element. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.cs index 5afa9d3afed..c9321dd3dde 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.cs @@ -28,7 +28,7 @@ public ClearRequestBuilder(Dictionary pathParameters, IRequestAd public ClearRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/minorGridlines/format/line/clear", rawUrl) { } /// - /// Clear the line format of a chart element. + /// Clear the line format of a chart element. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Clear the line format of a chart element. + /// Clear the line format of a chart element. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs index d0eb6b053cb..a07e49916e2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chartgridlines object. + /// Retrieve the properties and relationships of chartgridlines object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -73,7 +73,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookChartGridlines.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of chartgridlines object. + /// Update the properties of chartgridlines object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -119,7 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chartgridlines object. + /// Retrieve the properties and relationships of chartgridlines object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -145,7 +145,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of chartgridlines object. + /// Update the properties of chartgridlines object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -196,7 +196,7 @@ public MinorGridlinesRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chartgridlines object. + /// Retrieve the properties and relationships of chartgridlines object. This API is supported in the following national cloud deployments. /// public class MinorGridlinesRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/TitleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/TitleRequestBuilder.cs index a7a196767d7..2d008837dc0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/TitleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/TitleRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chartaxistitle object. + /// Retrieve the properties and relationships of chartaxistitle object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -73,7 +73,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookChartAxisTitle.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of chartaxistitle object. + /// Update the properties of chartaxistitle object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -119,7 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chartaxistitle object. + /// Retrieve the properties and relationships of chartaxistitle object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -145,7 +145,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of chartaxistitle object. + /// Update the properties of chartaxistitle object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -196,7 +196,7 @@ public TitleRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chartaxistitle object. + /// Retrieve the properties and relationships of chartaxistitle object. This API is supported in the following national cloud deployments. /// public class TitleRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Font/FontRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Font/FontRequestBuilder.cs index 0eea75192fb..389bac7e147 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Font/FontRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Font/FontRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chartfont object. + /// Retrieve the properties and relationships of chartfont object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookChartFont.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of chartfont object. + /// Update the properties of chartfont object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chartfont object. + /// Retrieve the properties and relationships of chartfont object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of chartfont object. + /// Update the properties of chartfont object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -191,7 +191,7 @@ public FontRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chartfont object. + /// Retrieve the properties and relationships of chartfont object. This API is supported in the following national cloud deployments. /// public class FontRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Line/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Line/Clear/ClearRequestBuilder.cs index 994a2a50c07..6c7d82d9b95 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Line/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Line/Clear/ClearRequestBuilder.cs @@ -28,7 +28,7 @@ public ClearRequestBuilder(Dictionary pathParameters, IRequestAd public ClearRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/format/line/clear", rawUrl) { } /// - /// Clear the line format of a chart element. + /// Clear the line format of a chart element. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Clear the line format of a chart element. + /// Clear the line format of a chart element. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Line/LineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Line/LineRequestBuilder.cs index f2b9910f144..7985de08246 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Line/LineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Line/LineRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chartlineformat object. + /// Retrieve the properties and relationships of chartlineformat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -73,7 +73,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookChartLineFormat.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of chartlineformat object. + /// Update the properties of chartlineformat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -119,7 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chartlineformat object. + /// Retrieve the properties and relationships of chartlineformat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -145,7 +145,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of chartlineformat object. + /// Update the properties of chartlineformat object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -196,7 +196,7 @@ public LineRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chartlineformat object. + /// Retrieve the properties and relationships of chartlineformat object. This API is supported in the following national cloud deployments. /// public class LineRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.cs index 2786f17c69c..acacba4a044 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.cs @@ -28,7 +28,7 @@ public ClearRequestBuilder(Dictionary pathParameters, IRequestAd public ClearRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/majorGridlines/format/line/clear", rawUrl) { } /// - /// Clear the line format of a chart element. + /// Clear the line format of a chart element. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Clear the line format of a chart element. + /// Clear the line format of a chart element. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.cs index 73a496eb694..9175d04f4d8 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.cs @@ -28,7 +28,7 @@ public ClearRequestBuilder(Dictionary pathParameters, IRequestAd public ClearRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/minorGridlines/format/line/clear", rawUrl) { } /// - /// Clear the line format of a chart element. + /// Clear the line format of a chart element. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Clear the line format of a chart element. + /// Clear the line format of a chart element. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs index 85dfc1bca15..752fbed98d5 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chartgridlines object. + /// Retrieve the properties and relationships of chartgridlines object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -73,7 +73,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookChartGridlines.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of chartgridlines object. + /// Update the properties of chartgridlines object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -119,7 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chartgridlines object. + /// Retrieve the properties and relationships of chartgridlines object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -145,7 +145,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of chartgridlines object. + /// Update the properties of chartgridlines object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -196,7 +196,7 @@ public MinorGridlinesRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chartgridlines object. + /// Retrieve the properties and relationships of chartgridlines object. This API is supported in the following national cloud deployments. /// public class MinorGridlinesRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/TitleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/TitleRequestBuilder.cs index 6734c29230e..18e9a918ce2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/TitleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/TitleRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chartaxistitle object. + /// Retrieve the properties and relationships of chartaxistitle object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -73,7 +73,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookChartAxisTitle.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of chartaxistitle object. + /// Update the properties of chartaxistitle object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -119,7 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chartaxistitle object. + /// Retrieve the properties and relationships of chartaxistitle object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -145,7 +145,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of chartaxistitle object. + /// Update the properties of chartaxistitle object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -196,7 +196,7 @@ public TitleRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chartaxistitle object. + /// Retrieve the properties and relationships of chartaxistitle object. This API is supported in the following national cloud deployments. /// public class TitleRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/ValueAxisRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/ValueAxisRequestBuilder.cs index ff2545d2654..257104038ba 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/ValueAxisRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/ValueAxisRequestBuilder.cs @@ -68,7 +68,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chartaxis object. + /// Retrieve the properties and relationships of chartaxis object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -88,7 +88,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookChartAxis.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of chartaxis object. + /// Update the properties of chartaxis object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -134,7 +134,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chartaxis object. + /// Retrieve the properties and relationships of chartaxis object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -160,7 +160,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of chartaxis object. + /// Update the properties of chartaxis object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -211,7 +211,7 @@ public ValueAxisRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chartaxis object. + /// Retrieve the properties and relationships of chartaxis object. This API is supported in the following national cloud deployments. /// public class ValueAxisRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/DataLabelsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/DataLabelsRequestBuilder.cs index 43c9d0b7173..26adfe29808 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/DataLabelsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/DataLabelsRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chartdatalabels object. + /// Retrieve the properties and relationships of chartdatalabels object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -73,7 +73,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookChartDataLabels.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of chartdatalabels object. + /// Update the properties of chartdatalabels object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -119,7 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chartdatalabels object. + /// Retrieve the properties and relationships of chartdatalabels object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -145,7 +145,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of chartdatalabels object. + /// Update the properties of chartdatalabels object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -196,7 +196,7 @@ public DataLabelsRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chartdatalabels object. + /// Retrieve the properties and relationships of chartdatalabels object. This API is supported in the following national cloud deployments. /// public class DataLabelsRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/Clear/ClearRequestBuilder.cs index 67b1f63384b..f92195d6f5a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/Clear/ClearRequestBuilder.cs @@ -28,7 +28,7 @@ public ClearRequestBuilder(Dictionary pathParameters, IRequestAd public ClearRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels/format/fill/clear", rawUrl) { } /// - /// Clear the fill color of a chart element. + /// Clear the fill color of a chart element. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Clear the fill color of a chart element. + /// Clear the fill color of a chart element. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs index d8ab78dfa55..a974158abfd 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs @@ -28,7 +28,7 @@ public SetSolidColorRequestBuilder(Dictionary pathParameters, IR public SetSolidColorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels/format/fill/setSolidColor", rawUrl) { } /// - /// Sets the fill formatting of a chart element to a uniform color. + /// Sets the fill formatting of a chart element to a uniform color. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SetSolidColorPostRequestBody body, Action - /// Sets the fill formatting of a chart element to a uniform color. + /// Sets the fill formatting of a chart element to a uniform color. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/Clear/ClearRequestBuilder.cs index ee71186195d..05751398b03 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/Clear/ClearRequestBuilder.cs @@ -28,7 +28,7 @@ public ClearRequestBuilder(Dictionary pathParameters, IRequestAd public ClearRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/format/fill/clear", rawUrl) { } /// - /// Clear the fill color of a chart element. + /// Clear the fill color of a chart element. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Clear the fill color of a chart element. + /// Clear the fill color of a chart element. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs index 57eaba8d16f..db6c626b0aa 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs @@ -28,7 +28,7 @@ public SetSolidColorRequestBuilder(Dictionary pathParameters, IR public SetSolidColorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/format/fill/setSolidColor", rawUrl) { } /// - /// Sets the fill formatting of a chart element to a uniform color. + /// Sets the fill formatting of a chart element to a uniform color. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SetSolidColorPostRequestBody body, Action - /// Sets the fill formatting of a chart element to a uniform color. + /// Sets the fill formatting of a chart element to a uniform color. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageGetResponse.cs new file mode 100644 index 00000000000..8560c51ffc9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageGetResponse.cs @@ -0,0 +1,64 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Image { + public class ImageGetResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public string Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Instantiates a new imageGetResponse and sets the default values. + /// + public ImageGetResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static ImageGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new ImageGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageRequestBuilder.cs index 6191abd3431..8b0f121aff9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageRequestBuilder.cs @@ -33,6 +33,26 @@ public ImageRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsImageGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsImageGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ImageGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function image + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsImageGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageResponse.cs index b9022194908..aaca738155a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageResponse.cs @@ -1,64 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Image { - public class ImageResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public string Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } -#endif - /// - /// Instantiates a new imageResponse and sets the default values. - /// - public ImageResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use imageGetResponse instead.")] + public class ImageResponse : ImageGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static ImageResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new ImageResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ImageResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidth/ImageWithWidthGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidth/ImageWithWidthGetResponse.cs new file mode 100644 index 00000000000..bbc63c28a0f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidth/ImageWithWidthGetResponse.cs @@ -0,0 +1,64 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.ImageWithWidth { + public class ImageWithWidthGetResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public string Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Instantiates a new imageWithWidthGetResponse and sets the default values. + /// + public ImageWithWidthGetResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static ImageWithWidthGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new ImageWithWidthGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidth/ImageWithWidthRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidth/ImageWithWidthRequestBuilder.cs index 7af5b7007d8..760db4c5d1a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidth/ImageWithWidthRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidth/ImageWithWidthRequestBuilder.cs @@ -35,6 +35,26 @@ public ImageWithWidthRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsImageWithWidthGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsImageWithWidthGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ImageWithWidthGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function image + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsImageWithWidthGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidth/ImageWithWidthResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidth/ImageWithWidthResponse.cs index b7828e3dcf2..ed06af9df88 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidth/ImageWithWidthResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidth/ImageWithWidthResponse.cs @@ -1,64 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.ImageWithWidth { - public class ImageWithWidthResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public string Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } -#endif - /// - /// Instantiates a new imageWithWidthResponse and sets the default values. - /// - public ImageWithWidthResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use imageWithWidthGetResponse instead.")] + public class ImageWithWidthResponse : ImageWithWidthGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static ImageWithWidthResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new ImageWithWidthResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ImageWithWidthResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeight/ImageWithWidthWithHeightGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeight/ImageWithWidthWithHeightGetResponse.cs new file mode 100644 index 00000000000..709c771d0c2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeight/ImageWithWidthWithHeightGetResponse.cs @@ -0,0 +1,64 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.ImageWithWidthWithHeight { + public class ImageWithWidthWithHeightGetResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public string Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Instantiates a new imageWithWidthWithHeightGetResponse and sets the default values. + /// + public ImageWithWidthWithHeightGetResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static ImageWithWidthWithHeightGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new ImageWithWidthWithHeightGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeight/ImageWithWidthWithHeightRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeight/ImageWithWidthWithHeightRequestBuilder.cs index da8976cbc29..6407d23f686 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeight/ImageWithWidthWithHeightRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeight/ImageWithWidthWithHeightRequestBuilder.cs @@ -37,6 +37,26 @@ public ImageWithWidthWithHeightRequestBuilder(string rawUrl, IRequestAdapter req /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsImageWithWidthWithHeightGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsImageWithWidthWithHeightGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ImageWithWidthWithHeightGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function image + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsImageWithWidthWithHeightGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeight/ImageWithWidthWithHeightResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeight/ImageWithWidthWithHeightResponse.cs index 57bb6a5f1bd..d1363fdb3e9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeight/ImageWithWidthWithHeightResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeight/ImageWithWidthWithHeightResponse.cs @@ -1,64 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.ImageWithWidthWithHeight { - public class ImageWithWidthWithHeightResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public string Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } -#endif - /// - /// Instantiates a new imageWithWidthWithHeightResponse and sets the default values. - /// - public ImageWithWidthWithHeightResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use imageWithWidthWithHeightGetResponse instead.")] + public class ImageWithWidthWithHeightResponse : ImageWithWidthWithHeightGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static ImageWithWidthWithHeightResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new ImageWithWidthWithHeightResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ImageWithWidthWithHeightResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeGetResponse.cs similarity index 66% rename from src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs rename to src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeGetResponse.cs index bab894be8b7..9f960a43103 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeGetResponse.cs @@ -5,8 +5,8 @@ using System.IO; using System.Linq; using System; -namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.CheckMemberGroups { - public class CheckMemberGroupsPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable { +namespace Microsoft.Graph.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.ImageWithWidthWithHeightWithFittingMode { + public class ImageWithWidthWithHeightWithFittingModeGetResponse : IAdditionalDataHolder, IBackedModel, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get { return BackingStore?.Get>("additionalData"); } @@ -14,24 +14,24 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The groupIds property + /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? GroupIds { - get { return BackingStore?.Get?>("groupIds"); } - set { BackingStore?.Set("groupIds", value); } + public string? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } } #nullable restore #else - public List GroupIds { - get { return BackingStore?.Get>("groupIds"); } - set { BackingStore?.Set("groupIds", value); } + public string Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } } #endif /// - /// Instantiates a new checkMemberGroupsPostRequestBody and sets the default values. + /// Instantiates a new imageWithWidthWithHeightWithFittingModeGetResponse and sets the default values. /// - public CheckMemberGroupsPostRequestBody() { + public ImageWithWidthWithHeightWithFittingModeGetResponse() { BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); AdditionalData = new Dictionary(); } @@ -39,16 +39,16 @@ public CheckMemberGroupsPostRequestBody() { /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ImageWithWidthWithHeightWithFittingModeGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberGroupsPostRequestBody(); + return new ImageWithWidthWithHeightWithFittingModeGetResponse(); } /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + {"value", n => { Value = n.GetStringValue(); } }, }; } /// @@ -57,7 +57,7 @@ public IDictionary> GetFieldDeserializers() { /// Serialization writer to use to serialize this model public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("groupIds", GroupIds); + writer.WriteStringValue("value", Value); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.cs index d2901ed9f87..d5a8f51729f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.cs @@ -39,6 +39,26 @@ public ImageWithWidthWithHeightWithFittingModeRequestBuilder(string rawUrl, IReq /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsImageWithWidthWithHeightWithFittingModeGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsImageWithWidthWithHeightWithFittingModeGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ImageWithWidthWithHeightWithFittingModeGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function image + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsImageWithWidthWithHeightWithFittingModeGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeResponse.cs index 65fe58f47ea..b9d4a3143ca 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeResponse.cs @@ -1,64 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.ImageWithWidthWithHeightWithFittingMode { - public class ImageWithWidthWithHeightWithFittingModeResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public string Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } -#endif - /// - /// Instantiates a new imageWithWidthWithHeightWithFittingModeResponse and sets the default values. - /// - public ImageWithWidthWithHeightWithFittingModeResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use imageWithWidthWithHeightWithFittingModeGetResponse instead.")] + public class ImageWithWidthWithHeightWithFittingModeResponse : ImageWithWidthWithHeightWithFittingModeGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static ImageWithWidthWithHeightWithFittingModeResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new ImageWithWidthWithHeightWithFittingModeResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ImageWithWidthWithHeightWithFittingModeResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/Clear/ClearRequestBuilder.cs index 200e9d7fad7..e662978ca9f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/Clear/ClearRequestBuilder.cs @@ -28,7 +28,7 @@ public ClearRequestBuilder(Dictionary pathParameters, IRequestAd public ClearRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend/format/fill/clear", rawUrl) { } /// - /// Clear the fill color of a chart element. + /// Clear the fill color of a chart element. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Clear the fill color of a chart element. + /// Clear the fill color of a chart element. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs index a0fd7476197..dcf79d56cf5 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs @@ -28,7 +28,7 @@ public SetSolidColorRequestBuilder(Dictionary pathParameters, IR public SetSolidColorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend/format/fill/setSolidColor", rawUrl) { } /// - /// Sets the fill formatting of a chart element to a uniform color. + /// Sets the fill formatting of a chart element to a uniform color. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SetSolidColorPostRequestBody body, Action - /// Sets the fill formatting of a chart element to a uniform color. + /// Sets the fill formatting of a chart element to a uniform color. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/LegendRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/LegendRequestBuilder.cs index e73234aa7c3..8ebc97cdc80 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/LegendRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/LegendRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chartlegend object. + /// Retrieve the properties and relationships of chartlegend object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -73,7 +73,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookChartLegend.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of chartlegend object. + /// Update the properties of chartlegend object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -119,7 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chartlegend object. + /// Retrieve the properties and relationships of chartlegend object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -145,7 +145,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of chartlegend object. + /// Update the properties of chartlegend object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -196,7 +196,7 @@ public LegendRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chartlegend object. + /// Retrieve the properties and relationships of chartlegend object. This API is supported in the following national cloud deployments. /// public class LegendRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountGetResponse.cs new file mode 100644 index 00000000000..ac33b4e6269 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountGetResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Count { + public class CountGetResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public int? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new countGetResponse and sets the default values. + /// + public CountGetResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CountGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteIntValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountRequestBuilder.cs index 72abba6c6ad..8616b6fa02e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountRequestBuilder.cs @@ -33,6 +33,26 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsCountGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsCountGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CountGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function count + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsCountGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountResponse.cs index a775afd8a9d..b5d66cbdf09 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Count { - public class CountResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public int? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new countResponse and sets the default values. - /// - public CountResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use countGetResponse instead.")] + public class CountResponse : CountGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static CountResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CountResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CountResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/Clear/ClearRequestBuilder.cs index cf280fbf5d6..afd63b4b37a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/Clear/ClearRequestBuilder.cs @@ -28,7 +28,7 @@ public ClearRequestBuilder(Dictionary pathParameters, IRequestAd public ClearRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format/fill/clear", rawUrl) { } /// - /// Clear the fill color of a chart element. + /// Clear the fill color of a chart element. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Clear the fill color of a chart element. + /// Clear the fill color of a chart element. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/FillRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/FillRequestBuilder.cs index 5fb6a64ded0..9d936670678 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/FillRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/FillRequestBuilder.cs @@ -58,7 +58,7 @@ public async Task DeleteAsync(Action - /// Represents the fill format of a chart series, which includes background formating information. Read-only. + /// Represents the fill format of a chart series, which includes background formatting information. Read-only. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -122,7 +122,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Represents the fill format of a chart series, which includes background formating information. Read-only. + /// Represents the fill format of a chart series, which includes background formatting information. Read-only. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -199,7 +199,7 @@ public FillRequestBuilderDeleteRequestConfiguration() { } } /// - /// Represents the fill format of a chart series, which includes background formating information. Read-only. + /// Represents the fill format of a chart series, which includes background formatting information. Read-only. /// public class FillRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs index d6044045c20..d5397e53f6b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs @@ -28,7 +28,7 @@ public SetSolidColorRequestBuilder(Dictionary pathParameters, IR public SetSolidColorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format/fill/setSolidColor", rawUrl) { } /// - /// Sets the fill formatting of a chart element to a uniform color. + /// Sets the fill formatting of a chart element to a uniform color. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SetSolidColorPostRequestBody body, Action - /// Sets the fill formatting of a chart element to a uniform color. + /// Sets the fill formatting of a chart element to a uniform color. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Line/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Line/Clear/ClearRequestBuilder.cs index 8e2d347a1ef..5c2a527fc10 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Line/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Line/Clear/ClearRequestBuilder.cs @@ -28,7 +28,7 @@ public ClearRequestBuilder(Dictionary pathParameters, IRequestAd public ClearRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format/line/clear", rawUrl) { } /// - /// Clear the line format of a chart element. + /// Clear the line format of a chart element. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Clear the line format of a chart element. + /// Clear the line format of a chart element. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountGetResponse.cs new file mode 100644 index 00000000000..04a19663470 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountGetResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Points.Count { + public class CountGetResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public int? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new countGetResponse and sets the default values. + /// + public CountGetResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CountGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteIntValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountRequestBuilder.cs index 5153791de5b..6cf036de0b8 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountRequestBuilder.cs @@ -33,6 +33,26 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsCountGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsCountGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CountGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function count + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsCountGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountResponse.cs index 4f1e9a44eed..9d0214243d7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Points.Count { - public class CountResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public int? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new countResponse and sets the default values. - /// - public CountResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use countGetResponse instead.")] + public class CountResponse : CountGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static CountResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CountResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CountResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/Clear/ClearRequestBuilder.cs index 69107a1e073..4f35499e72f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/Clear/ClearRequestBuilder.cs @@ -28,7 +28,7 @@ public ClearRequestBuilder(Dictionary pathParameters, IRequestAd public ClearRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/{workbookChartPoint%2Did}/format/fill/clear", rawUrl) { } /// - /// Clear the fill color of a chart element. + /// Clear the fill color of a chart element. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Clear the fill color of a chart element. + /// Clear the fill color of a chart element. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/FillRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/FillRequestBuilder.cs index 58d2c473165..8c9ef08aef8 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/FillRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/FillRequestBuilder.cs @@ -58,7 +58,7 @@ public async Task DeleteAsync(Action - /// Represents the fill format of a chart, which includes background formating information. Read-only. + /// Represents the fill format of a chart, which includes background formatting information. Read-only. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -122,7 +122,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Represents the fill format of a chart, which includes background formating information. Read-only. + /// Represents the fill format of a chart, which includes background formatting information. Read-only. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -199,7 +199,7 @@ public FillRequestBuilderDeleteRequestConfiguration() { } } /// - /// Represents the fill format of a chart, which includes background formating information. Read-only. + /// Represents the fill format of a chart, which includes background formatting information. Read-only. /// public class FillRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs index 04e7c81a55a..945c94baec3 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs @@ -28,7 +28,7 @@ public SetSolidColorRequestBuilder(Dictionary pathParameters, IR public SetSolidColorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/{workbookChartPoint%2Did}/format/fill/setSolidColor", rawUrl) { } /// - /// Sets the fill formatting of a chart element to a uniform color. + /// Sets the fill formatting of a chart element to a uniform color. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SetSolidColorPostRequestBody body, Action - /// Sets the fill formatting of a chart element to a uniform color. + /// Sets the fill formatting of a chart element to a uniform color. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/WorkbookChartPointItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/WorkbookChartPointItemRequestBuilder.cs index 9a05c0588af..3b1f8f63c54 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/WorkbookChartPointItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/WorkbookChartPointItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chartpoint object. + /// Retrieve the properties and relationships of chartpoint object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chartpoint object. + /// Retrieve the properties and relationships of chartpoint object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public WorkbookChartPointItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chartpoint object. + /// Retrieve the properties and relationships of chartpoint object. This API is supported in the following national cloud deployments. /// public class WorkbookChartPointItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs index 0dd73d01199..2f3144a7f24 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs @@ -32,7 +32,6 @@ public ItemAtWithIndexRequestBuilder(string rawUrl, IRequestAdapter requestAdapt } /// /// Invoke function itemAt - /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilder.cs index 43a1a15b44b..9edb5548e20 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilder.cs @@ -43,8 +43,8 @@ public PointsRequestBuilder(Dictionary pathParameters, IRequestA public PointsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of chartpoint objects. - /// Find more info here + /// Retrieve a list of chartpoints objects. This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -71,7 +71,7 @@ public ItemAtWithIndexRequestBuilder ItemAtWithIndex(int? index) { return new ItemAtWithIndexRequestBuilder(PathParameters, RequestAdapter, index); } /// - /// Use this API to create a new ChartPoints. + /// Use this API to create a new ChartPoints. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -93,7 +93,7 @@ public async Task PostAsync(WorkbookChartPoint body, Action< return await RequestAdapter.SendAsync(requestInfo, WorkbookChartPoint.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of chartpoint objects. + /// Retrieve a list of chartpoints objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -119,7 +119,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new ChartPoints. + /// Use this API to create a new ChartPoints. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -154,7 +154,7 @@ public PointsRequestBuilder WithUrl(string rawUrl) { return new PointsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of chartpoint objects. + /// Retrieve a list of chartpoints objects. This API is supported in the following national cloud deployments. /// public class PointsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/WorkbookChartSeriesItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/WorkbookChartSeriesItemRequestBuilder.cs index 019205dfef8..ed50c30966e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/WorkbookChartSeriesItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/WorkbookChartSeriesItemRequestBuilder.cs @@ -58,7 +58,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chartseries object. + /// Retrieve the properties and relationships of chartseries object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -78,7 +78,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookChartSeries.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of chartseries object. + /// Update the properties of chartseries object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -124,7 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chartseries object. + /// Retrieve the properties and relationships of chartseries object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -150,7 +150,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of chartseries object. + /// Update the properties of chartseries object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -201,7 +201,7 @@ public WorkbookChartSeriesItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chartseries object. + /// Retrieve the properties and relationships of chartseries object. This API is supported in the following national cloud deployments. /// public class WorkbookChartSeriesItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs index 13a5afbd3c7..68d444144ae 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs @@ -32,7 +32,6 @@ public ItemAtWithIndexRequestBuilder(string rawUrl, IRequestAdapter requestAdapt } /// /// Invoke function itemAt - /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.cs index bd5e80dad7f..9bdb44f54f7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.cs @@ -43,8 +43,8 @@ public SeriesRequestBuilder(Dictionary pathParameters, IRequestA public SeriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of chartseries objects. - /// Find more info here + /// Retrieve a list of chartseries objects. This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -71,7 +71,7 @@ public ItemAtWithIndexRequestBuilder ItemAtWithIndex(int? index) { return new ItemAtWithIndexRequestBuilder(PathParameters, RequestAdapter, index); } /// - /// Use this API to create a new ChartSeries. + /// Use this API to create a new ChartSeries. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -93,7 +93,7 @@ public async Task PostAsync(WorkbookChartSeries body, Actio return await RequestAdapter.SendAsync(requestInfo, WorkbookChartSeries.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of chartseries objects. + /// Retrieve a list of chartseries objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -119,7 +119,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new ChartSeries. + /// Use this API to create a new ChartSeries. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -154,7 +154,7 @@ public SeriesRequestBuilder WithUrl(string rawUrl) { return new SeriesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of chartseries objects. + /// Retrieve a list of chartseries objects. This API is supported in the following national cloud deployments. /// public class SeriesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetData/SetDataRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetData/SetDataRequestBuilder.cs index 97261c99778..dbe86034204 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetData/SetDataRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetData/SetDataRequestBuilder.cs @@ -28,7 +28,7 @@ public SetDataRequestBuilder(Dictionary pathParameters, IRequest public SetDataRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/setData", rawUrl) { } /// - /// Resets the source data for the chart. + /// Resets the source data for the chart. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SetDataPostRequestBody body, Action - /// Resets the source data for the chart. + /// Resets the source data for the chart. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetPosition/SetPositionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetPosition/SetPositionRequestBuilder.cs index d445f054056..bbedd65d625 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetPosition/SetPositionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetPosition/SetPositionRequestBuilder.cs @@ -28,7 +28,7 @@ public SetPositionRequestBuilder(Dictionary pathParameters, IReq public SetPositionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/setPosition", rawUrl) { } /// - /// Positions the chart relative to cells on the worksheet. + /// Positions the chart relative to cells on the worksheet. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SetPositionPostRequestBody body, Action - /// Positions the chart relative to cells on the worksheet. + /// Positions the chart relative to cells on the worksheet. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/Clear/ClearRequestBuilder.cs index 794eb07e5d7..493b1ed9278 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/Clear/ClearRequestBuilder.cs @@ -28,7 +28,7 @@ public ClearRequestBuilder(Dictionary pathParameters, IRequestAd public ClearRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title/format/fill/clear", rawUrl) { } /// - /// Clear the fill color of a chart element. + /// Clear the fill color of a chart element. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Clear the fill color of a chart element. + /// Clear the fill color of a chart element. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs index 69f48a0c9b9..664826e68a3 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs @@ -28,7 +28,7 @@ public SetSolidColorRequestBuilder(Dictionary pathParameters, IR public SetSolidColorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title/format/fill/setSolidColor", rawUrl) { } /// - /// Sets the fill formatting of a chart element to a uniform color. + /// Sets the fill formatting of a chart element to a uniform color. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SetSolidColorPostRequestBody body, Action - /// Sets the fill formatting of a chart element to a uniform color. + /// Sets the fill formatting of a chart element to a uniform color. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/TitleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/TitleRequestBuilder.cs index 3354500ab49..afab0527c23 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/TitleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/TitleRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of charttitle object. + /// Retrieve the properties and relationships of charttitle object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -73,7 +73,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookChartTitle.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of charttitle object. + /// Update the properties of charttitle object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -119,7 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of charttitle object. + /// Retrieve the properties and relationships of charttitle object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -145,7 +145,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of charttitle object. + /// Update the properties of charttitle object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -196,7 +196,7 @@ public TitleRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of charttitle object. + /// Retrieve the properties and relationships of charttitle object. This API is supported in the following national cloud deployments. /// public class TitleRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/WorkbookChartItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/WorkbookChartItemRequestBuilder.cs index 06ea43885a0..5b45497c583 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/WorkbookChartItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/WorkbookChartItemRequestBuilder.cs @@ -82,7 +82,7 @@ public WorkbookChartItemRequestBuilder(Dictionary pathParameters public WorkbookChartItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes the chart object. + /// Deletes the chart object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -102,7 +102,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chart object. + /// Retrieve the properties and relationships of chart object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -152,7 +152,7 @@ public ImageWithWidthWithHeightWithFittingModeRequestBuilder ImageWithWidthWithH return new ImageWithWidthWithHeightWithFittingModeRequestBuilder(PathParameters, RequestAdapter, fittingMode, height, width); } /// - /// Update the properties of chart object. + /// Update the properties of chart object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -174,7 +174,7 @@ public async Task PatchAsync(WorkbookChart body, Action(requestInfo, WorkbookChart.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes the chart object. + /// Deletes the chart object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -198,7 +198,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chart object. + /// Retrieve the properties and relationships of chart object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -224,7 +224,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of chart object. + /// Update the properties of chart object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -275,7 +275,7 @@ public WorkbookChartItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chart object. + /// Retrieve the properties and relationships of chart object. This API is supported in the following national cloud deployments. /// public class WorkbookChartItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs index a47ddc43f04..df3b3a8f836 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs @@ -32,7 +32,6 @@ public ItemAtWithIndexRequestBuilder(string rawUrl, IRequestAdapter requestAdapt } /// /// Invoke function itemAt - /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Add/AddRequestBuilder.cs index cd4850288e8..dd44d9a6f0f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Add/AddRequestBuilder.cs @@ -29,7 +29,7 @@ public AddRequestBuilder(Dictionary pathParameters, IRequestAdap public AddRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/add", rawUrl) { } /// - /// Adds a new name to the collection of the given scope using the user's locale for the formula. + /// Adds a new name to the collection of the given scope using the user's locale for the formula. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(AddPostRequestBody body, Action(requestInfo, WorkbookNamedItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Adds a new name to the collection of the given scope using the user's locale for the formula. + /// Adds a new name to the collection of the given scope using the user's locale for the formula. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/AddFormulaLocal/AddFormulaLocalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/AddFormulaLocal/AddFormulaLocalRequestBuilder.cs index bc0ab9e8a17..bf2065c6226 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/AddFormulaLocal/AddFormulaLocalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/AddFormulaLocal/AddFormulaLocalRequestBuilder.cs @@ -29,7 +29,7 @@ public AddFormulaLocalRequestBuilder(Dictionary pathParameters, public AddFormulaLocalRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/addFormulaLocal", rawUrl) { } /// - /// Adds a new name to the collection of the given scope using the user's locale for the formula. + /// Adds a new name to the collection of the given scope using the user's locale for the formula. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(AddFormulaLocalPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, WorkbookNamedItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Adds a new name to the collection of the given scope using the user's locale for the formula. + /// Adds a new name to the collection of the given scope using the user's locale for the formula. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RangeRequestBuilder.cs index 6e738bbb58a..5947e2b8313 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RangeRequestBuilder.cs @@ -29,8 +29,8 @@ public RangeRequestBuilder(Dictionary pathParameters, IRequestAd public RangeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()", rawUrl) { } /// - /// Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. - /// Find more info here + /// Retrieve the properties and relationships of range object. This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookRange.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. + /// Retrieve the properties and relationships of range object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/NamesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/NamesRequestBuilder.cs index aaa2cd1297f..cf74c8014f8 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/NamesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/NamesRequestBuilder.cs @@ -52,7 +52,7 @@ public NamesRequestBuilder(Dictionary pathParameters, IRequestAd public NamesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of named item associated with the worksheet. + /// Retrieve a list of named item associated with the worksheet. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -93,7 +93,7 @@ public async Task PostAsync(WorkbookNamedItem body, Action(requestInfo, WorkbookNamedItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of named item associated with the worksheet. + /// Retrieve a list of named item associated with the worksheet. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -154,7 +154,7 @@ public NamesRequestBuilder WithUrl(string rawUrl) { return new NamesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of named item associated with the worksheet. + /// Retrieve a list of named item associated with the worksheet. This API is supported in the following national cloud deployments. /// public class NamesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/Refresh/RefreshRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/Refresh/RefreshRequestBuilder.cs index 102616dc34b..c774bed3fed 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/Refresh/RefreshRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/Refresh/RefreshRequestBuilder.cs @@ -28,7 +28,7 @@ public RefreshRequestBuilder(Dictionary pathParameters, IRequest public RefreshRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/{workbookPivotTable%2Did}/refresh", rawUrl) { } /// - /// Refreshes the PivotTable. + /// Refreshes the PivotTable. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Refreshes the PivotTable. + /// Refreshes the PivotTable. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/WorkbookPivotTableItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/WorkbookPivotTableItemRequestBuilder.cs index 231988ea147..c4d6c6dca3e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/WorkbookPivotTableItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/WorkbookPivotTableItemRequestBuilder.cs @@ -58,7 +58,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of workbookPivotTable object. + /// Retrieve the properties and relationships of workbookPivotTable object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -123,7 +123,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of workbookPivotTable object. + /// Retrieve the properties and relationships of workbookPivotTable object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -200,7 +200,7 @@ public WorkbookPivotTableItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of workbookPivotTable object. + /// Retrieve the properties and relationships of workbookPivotTable object. This API is supported in the following national cloud deployments. /// public class WorkbookPivotTableItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/PivotTablesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/PivotTablesRequestBuilder.cs index b5af767206b..89dadf4bb29 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/PivotTablesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/PivotTablesRequestBuilder.cs @@ -47,7 +47,7 @@ public PivotTablesRequestBuilder(Dictionary pathParameters, IReq public PivotTablesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of workbookpivottable objects. + /// Retrieve a list of workbookpivottable objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -88,7 +88,7 @@ public async Task PostAsync(WorkbookPivotTable body, Action< return await RequestAdapter.SendAsync(requestInfo, WorkbookPivotTable.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of workbookpivottable objects. + /// Retrieve a list of workbookpivottable objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -149,7 +149,7 @@ public PivotTablesRequestBuilder WithUrl(string rawUrl) { return new PivotTablesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of workbookpivottable objects. + /// Retrieve a list of workbookpivottable objects. This API is supported in the following national cloud deployments. /// public class PivotTablesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/RefreshAll/RefreshAllRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/RefreshAll/RefreshAllRequestBuilder.cs index a3cfe699572..5b281858c61 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/RefreshAll/RefreshAllRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/RefreshAll/RefreshAllRequestBuilder.cs @@ -28,7 +28,7 @@ public RefreshAllRequestBuilder(Dictionary pathParameters, IRequ public RefreshAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/refreshAll", rawUrl) { } /// - /// Refreshes the PivotTable within a given worksheet. + /// Refreshes the PivotTable within a given worksheet. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Refreshes the PivotTable within a given worksheet. + /// Refreshes the PivotTable within a given worksheet. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Protect/ProtectRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Protect/ProtectRequestBuilder.cs index 272346bdea6..042122ae421 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Protect/ProtectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Protect/ProtectRequestBuilder.cs @@ -28,7 +28,7 @@ public ProtectRequestBuilder(Dictionary pathParameters, IRequest public ProtectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/protection/protect", rawUrl) { } /// - /// Protect a worksheet. It throws if the worksheet has been protected. + /// Protect a worksheet. It throws if the worksheet has been protected. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ProtectPostRequestBody body, Action - /// Protect a worksheet. It throws if the worksheet has been protected. + /// Protect a worksheet. It throws if the worksheet has been protected. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/ProtectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/ProtectionRequestBuilder.cs index d361b71cbd0..28863c721a0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/ProtectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/ProtectionRequestBuilder.cs @@ -58,7 +58,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of worksheetprotection object. + /// Retrieve the properties and relationships of worksheetprotection object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -123,7 +123,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of worksheetprotection object. + /// Retrieve the properties and relationships of worksheetprotection object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -200,7 +200,7 @@ public ProtectionRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of worksheetprotection object. + /// Retrieve the properties and relationships of worksheetprotection object. This API is supported in the following national cloud deployments. /// public class ProtectionRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Unprotect/UnprotectRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Unprotect/UnprotectRequestBuilder.cs index 688c1467008..d1163d14e63 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Unprotect/UnprotectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Unprotect/UnprotectRequestBuilder.cs @@ -28,7 +28,7 @@ public UnprotectRequestBuilder(Dictionary pathParameters, IReque public UnprotectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/protection/unprotect", rawUrl) { } /// - /// Unprotect a worksheet + /// Unprotect a worksheet This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Unprotect a worksheet + /// Unprotect a worksheet This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddRequestBuilder.cs index 4fe1a2e990c..b8f41dbad1d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddRequestBuilder.cs @@ -29,7 +29,8 @@ public AddRequestBuilder(Dictionary pathParameters, IRequestAdap public AddRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/add", rawUrl) { } /// - /// Invoke action add + /// Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -50,7 +51,7 @@ public async Task PostAsync(AddPostRequestBody body, Action(requestInfo, WorkbookTable.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Invoke action add + /// Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountGetResponse.cs new file mode 100644 index 00000000000..8dd2e8afaf5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountGetResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Count { + public class CountGetResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public int? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new countGetResponse and sets the default values. + /// + public CountGetResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CountGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteIntValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountRequestBuilder.cs index f9affab29c9..0b366507178 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountRequestBuilder.cs @@ -33,6 +33,26 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsCountGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsCountGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CountGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function count + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsCountGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountResponse.cs index 6b01e9f4b57..dbe06396156 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Count { - public class CountResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public int? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new countResponse and sets the default values. - /// - public CountResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use countGetResponse instead.")] + public class CountResponse : CountGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static CountResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CountResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CountResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ClearFilters/ClearFiltersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ClearFilters/ClearFiltersRequestBuilder.cs index e5a4d9f3448..d93e3669ab1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ClearFilters/ClearFiltersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ClearFilters/ClearFiltersRequestBuilder.cs @@ -28,7 +28,7 @@ public ClearFiltersRequestBuilder(Dictionary pathParameters, IRe public ClearFiltersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/clearFilters", rawUrl) { } /// - /// Clears all the filters currently applied on the table. + /// Clears all the filters currently applied on the table. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Clears all the filters currently applied on the table. + /// Clears all the filters currently applied on the table. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Add/AddRequestBuilder.cs index c8b5bcfb7ca..be2ba50ad62 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Add/AddRequestBuilder.cs @@ -29,7 +29,7 @@ public AddRequestBuilder(Dictionary pathParameters, IRequestAdap public AddRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/add", rawUrl) { } /// - /// Adds a new column to the table. + /// Adds a new column to the table. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(AddPostRequestBody body, Action return await RequestAdapter.SendAsync(requestInfo, WorkbookTableColumn.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Adds a new column to the table. + /// Adds a new column to the table. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.cs index 8fb2a086462..e27bb81d021 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.cs @@ -48,8 +48,8 @@ public ColumnsRequestBuilder(Dictionary pathParameters, IRequest public ColumnsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of tablecolumn objects. - /// Find more info here + /// Retrieve a list of tablecolumn objects. This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -76,7 +76,7 @@ public ItemAtWithIndexRequestBuilder ItemAtWithIndex(int? index) { return new ItemAtWithIndexRequestBuilder(PathParameters, RequestAdapter, index); } /// - /// Use this API to create a new TableColumn. + /// Use this API to create a new TableColumn. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -98,7 +98,7 @@ public async Task PostAsync(WorkbookTableColumn body, Actio return await RequestAdapter.SendAsync(requestInfo, WorkbookTableColumn.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of tablecolumn objects. + /// Retrieve a list of tablecolumn objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -124,7 +124,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new TableColumn. + /// Use this API to create a new TableColumn. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -159,7 +159,7 @@ public ColumnsRequestBuilder WithUrl(string rawUrl) { return new ColumnsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of tablecolumn objects. + /// Retrieve a list of tablecolumn objects. This API is supported in the following national cloud deployments. /// public class ColumnsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountGetResponse.cs new file mode 100644 index 00000000000..4ce48658e1f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountGetResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Count { + public class CountGetResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public int? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new countGetResponse and sets the default values. + /// + public CountGetResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CountGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteIntValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountRequestBuilder.cs index 7223513892b..bceeed174d9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountRequestBuilder.cs @@ -33,6 +33,26 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsCountGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsCountGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CountGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function count + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsCountGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountResponse.cs index 4eb49061a36..9e1da26260e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Count { - public class CountResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public int? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new countResponse and sets the default values. - /// - public CountResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use countGetResponse instead.")] + public class CountResponse : CountGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static CountResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CountResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CountResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs index ac2884517d1..68935020bc2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs @@ -29,7 +29,7 @@ public DataBodyRangeRequestBuilder(Dictionary pathParameters, IR public DataBodyRangeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()", rawUrl) { } /// - /// Gets the range object associated with the data body of the column. + /// Gets the range object associated with the data body of the column. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookRange.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Gets the range object associated with the data body of the column. + /// Gets the range object associated with the data body of the column. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Apply/ApplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Apply/ApplyRequestBuilder.cs index da2b39eb570..1f8c1dc6f7d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Apply/ApplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Apply/ApplyRequestBuilder.cs @@ -28,7 +28,7 @@ public ApplyRequestBuilder(Dictionary pathParameters, IRequestAd public ApplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/apply", rawUrl) { } /// - /// Apply the given filter criteria on the given column. + /// Apply the given filter criteria on the given column. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ApplyPostRequestBody body, Action - /// Apply the given filter criteria on the given column. + /// Apply the given filter criteria on the given column. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Clear/ClearRequestBuilder.cs index c7887a36be5..f5e17457393 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Clear/ClearRequestBuilder.cs @@ -28,7 +28,7 @@ public ClearRequestBuilder(Dictionary pathParameters, IRequestAd public ClearRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/clear", rawUrl) { } /// - /// Clear the filter on the given column. + /// Clear the filter on the given column. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Clear the filter on the given column. + /// Clear the filter on the given column. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs index b9008264ca0..89189c1b3d5 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs @@ -29,7 +29,7 @@ public HeaderRowRangeRequestBuilder(Dictionary pathParameters, I public HeaderRowRangeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()", rawUrl) { } /// - /// Gets the range object associated with the header row of the column. + /// Gets the range object associated with the header row of the column. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookRange.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Gets the range object associated with the header row of the column. + /// Gets the range object associated with the header row of the column. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/RangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/RangeRequestBuilder.cs index 2b15d740601..abf57e38cd9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/RangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/RangeRequestBuilder.cs @@ -29,7 +29,7 @@ public RangeRequestBuilder(Dictionary pathParameters, IRequestAd public RangeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()", rawUrl) { } /// - /// Gets the range object associated with the entire column. + /// Gets the range object associated with the entire column. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookRange.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Gets the range object associated with the entire column. + /// Gets the range object associated with the entire column. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs index ce562a7a08e..d8aa9144f84 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs @@ -29,7 +29,7 @@ public TotalRowRangeRequestBuilder(Dictionary pathParameters, IR public TotalRowRangeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()", rawUrl) { } /// - /// Gets the range object associated with the totals row of the column. + /// Gets the range object associated with the totals row of the column. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookRange.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Gets the range object associated with the totals row of the column. + /// Gets the range object associated with the totals row of the column. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilder.cs index f24b8fe0ff8..8b8ac79ec41 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilder.cs @@ -54,7 +54,7 @@ public WorkbookTableColumnItemRequestBuilder(Dictionary pathPara public WorkbookTableColumnItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes the column from the table. + /// Deletes the column from the table. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of tablecolumn object. + /// Retrieve the properties and relationships of tablecolumn object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -94,7 +94,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookTableColumn.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of tablecolumn object. + /// Update the properties of tablecolumn object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -116,7 +116,7 @@ public async Task PatchAsync(WorkbookTableColumn body, Acti return await RequestAdapter.SendAsync(requestInfo, WorkbookTableColumn.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes the column from the table. + /// Deletes the column from the table. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of tablecolumn object. + /// Retrieve the properties and relationships of tablecolumn object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -166,7 +166,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of tablecolumn object. + /// Update the properties of tablecolumn object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -217,7 +217,7 @@ public WorkbookTableColumnItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of tablecolumn object. + /// Retrieve the properties and relationships of tablecolumn object. This API is supported in the following national cloud deployments. /// public class WorkbookTableColumnItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs index 447f807ebf7..d001a7ebcdf 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs @@ -32,7 +32,6 @@ public ItemAtWithIndexRequestBuilder(string rawUrl, IRequestAdapter requestAdapt } /// /// Invoke function itemAt - /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ConvertToRange/ConvertToRangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ConvertToRange/ConvertToRangeRequestBuilder.cs index 0dbb11fa264..75f76c5e94b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ConvertToRange/ConvertToRangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ConvertToRange/ConvertToRangeRequestBuilder.cs @@ -29,7 +29,7 @@ public ConvertToRangeRequestBuilder(Dictionary pathParameters, I public ConvertToRangeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/convertToRange", rawUrl) { } /// - /// Converts the table into a normal range of cells. All data is preserved. + /// Converts the table into a normal range of cells. All data is preserved. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, WorkbookRange.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Converts the table into a normal range of cells. All data is preserved. + /// Converts the table into a normal range of cells. All data is preserved. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs index f4690401074..618d53fa893 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs @@ -29,7 +29,7 @@ public DataBodyRangeRequestBuilder(Dictionary pathParameters, IR public DataBodyRangeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()", rawUrl) { } /// - /// Gets the range object associated with the data body of the table. + /// Gets the range object associated with the data body of the table. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookRange.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Gets the range object associated with the data body of the table. + /// Gets the range object associated with the data body of the table. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs index 19ea5abc4ab..796e1c1906c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs @@ -29,7 +29,7 @@ public HeaderRowRangeRequestBuilder(Dictionary pathParameters, I public HeaderRowRangeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()", rawUrl) { } /// - /// Gets the range object associated with header row of the table. + /// Gets the range object associated with header row of the table. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookRange.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Gets the range object associated with header row of the table. + /// Gets the range object associated with header row of the table. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/RangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/RangeRequestBuilder.cs index 7990523a8e2..74bab4ab71a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/RangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/RangeRequestBuilder.cs @@ -29,7 +29,7 @@ public RangeRequestBuilder(Dictionary pathParameters, IRequestAd public RangeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()", rawUrl) { } /// - /// Get the range object associated with the entire table. + /// Get the range object associated with the entire table. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookRange.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the range object associated with the entire table. + /// Get the range object associated with the entire table. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ReapplyFilters/ReapplyFiltersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ReapplyFilters/ReapplyFiltersRequestBuilder.cs index 9677125cd37..0044b1ea4c2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ReapplyFilters/ReapplyFiltersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ReapplyFilters/ReapplyFiltersRequestBuilder.cs @@ -28,7 +28,7 @@ public ReapplyFiltersRequestBuilder(Dictionary pathParameters, I public ReapplyFiltersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/reapplyFilters", rawUrl) { } /// - /// Reapplies all the filters currently on the table. + /// Reapplies all the filters currently on the table. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Reapplies all the filters currently on the table. + /// Reapplies all the filters currently on the table. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Add/AddRequestBuilder.cs index f0388198da5..9652078c0db 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Add/AddRequestBuilder.cs @@ -29,7 +29,7 @@ public AddRequestBuilder(Dictionary pathParameters, IRequestAdap public AddRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/add", rawUrl) { } /// - /// Adds rows to the end of the table. Note that the API can accept multiple rows data using this API. Adding one row at a time could lead to performance degradation. The recommended approach would be to batch the rows together in a single call rather than doing single row insertion. For best results, collect the rows to be inserted on the application side and perform single rows add operation. Experiment with the number of rows to determine the ideal number of rows to use in single API call. + /// Adds rows to the end of the table. Note that the API can accept multiple rows data using this API. Adding one row at a time could lead to performance degradation. The recommended approach would be to batch the rows together in a single call rather than doing single row insertion. For best results, collect the rows to be inserted on the application side and perform single rows add operation. Experiment with the number of rows to determine the ideal number of rows to use in single API call. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(AddPostRequestBody body, Action(requestInfo, WorkbookTableRow.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Adds rows to the end of the table. Note that the API can accept multiple rows data using this API. Adding one row at a time could lead to performance degradation. The recommended approach would be to batch the rows together in a single call rather than doing single row insertion. For best results, collect the rows to be inserted on the application side and perform single rows add operation. Experiment with the number of rows to determine the ideal number of rows to use in single API call. + /// Adds rows to the end of the table. Note that the API can accept multiple rows data using this API. Adding one row at a time could lead to performance degradation. The recommended approach would be to batch the rows together in a single call rather than doing single row insertion. For best results, collect the rows to be inserted on the application side and perform single rows add operation. Experiment with the number of rows to determine the ideal number of rows to use in single API call. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountGetResponse.cs new file mode 100644 index 00000000000..fc3acb43a42 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountGetResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Count { + public class CountGetResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public int? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new countGetResponse and sets the default values. + /// + public CountGetResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CountGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteIntValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountRequestBuilder.cs index a1b38b97daf..a23620d4247 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountRequestBuilder.cs @@ -33,6 +33,26 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsCountGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsCountGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CountGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function count + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsCountGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountResponse.cs index 585d61d430a..af9db09efa9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Count { - public class CountResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public int? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new countResponse and sets the default values. - /// - public CountResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use countGetResponse instead.")] + public class CountResponse : CountGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static CountResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CountResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CountResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilder.cs index 5b78e297f6c..873ef59dd55 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilder.cs @@ -34,7 +34,7 @@ public WorkbookTableRowItemRequestBuilder(Dictionary pathParamet public WorkbookTableRowItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes the row from the table. + /// Deletes the row from the table. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of tablerow object. + /// Retrieve the properties and relationships of tablerow object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookTableRow.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of tablerow object. + /// Update the properties of tablerow object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(WorkbookTableRow body, Action(requestInfo, WorkbookTableRow.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes the row from the table. + /// Deletes the row from the table. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of tablerow object. + /// Retrieve the properties and relationships of tablerow object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of tablerow object. + /// Update the properties of tablerow object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public WorkbookTableRowItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of tablerow object. + /// Retrieve the properties and relationships of tablerow object. This API is supported in the following national cloud deployments. /// public class WorkbookTableRowItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs index 77e743600a8..031834564bd 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs @@ -32,7 +32,6 @@ public ItemAtWithIndexRequestBuilder(string rawUrl, IRequestAdapter requestAdapt } /// /// Invoke function itemAt - /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.cs index 0786ec3b120..37f6431b36a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.cs @@ -48,8 +48,8 @@ public RowsRequestBuilder(Dictionary pathParameters, IRequestAda public RowsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of tablerow objects. - /// Find more info here + /// Retrieve a list of tablerow objects. This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -76,7 +76,7 @@ public ItemAtWithIndexRequestBuilder ItemAtWithIndex(int? index) { return new ItemAtWithIndexRequestBuilder(PathParameters, RequestAdapter, index); } /// - /// Adds rows to the end of a table. Note that this API can accept multiple rows of data. Adding one row at a time can affect performance. The recommended approach is to batch the rows together in a single call rather than inserting single rows. For best results, collect the rows to be inserted on the application side and perform a single row add operation. Experiment with the number of rows to determine the ideal number of rows to use in a single API call. This request might occasionally result in a 504 HTTP error. The appropriate response to this error is to repeat the request. + /// Adds rows to the end of a table. Note that this API can accept multiple rows of data. Adding one row at a time can affect performance. The recommended approach is to batch the rows together in a single call rather than inserting single rows. For best results, collect the rows to be inserted on the application side and perform a single row add operation. Experiment with the number of rows to determine the ideal number of rows to use in a single API call. This request might occasionally result in a 504 HTTP error. The appropriate response to this error is to repeat the request. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -98,7 +98,7 @@ public async Task PostAsync(WorkbookTableRow body, Action(requestInfo, WorkbookTableRow.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of tablerow objects. + /// Retrieve a list of tablerow objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -124,7 +124,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Adds rows to the end of a table. Note that this API can accept multiple rows of data. Adding one row at a time can affect performance. The recommended approach is to batch the rows together in a single call rather than inserting single rows. For best results, collect the rows to be inserted on the application side and perform a single row add operation. Experiment with the number of rows to determine the ideal number of rows to use in a single API call. This request might occasionally result in a 504 HTTP error. The appropriate response to this error is to repeat the request. + /// Adds rows to the end of a table. Note that this API can accept multiple rows of data. Adding one row at a time can affect performance. The recommended approach is to batch the rows together in a single call rather than inserting single rows. For best results, collect the rows to be inserted on the application side and perform a single row add operation. Experiment with the number of rows to determine the ideal number of rows to use in a single API call. This request might occasionally result in a 504 HTTP error. The appropriate response to this error is to repeat the request. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -159,7 +159,7 @@ public RowsRequestBuilder WithUrl(string rawUrl) { return new RowsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of tablerow objects. + /// Retrieve a list of tablerow objects. This API is supported in the following national cloud deployments. /// public class RowsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Apply/ApplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Apply/ApplyRequestBuilder.cs index d2bfa1c6e45..b837f2568a6 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Apply/ApplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Apply/ApplyRequestBuilder.cs @@ -28,7 +28,7 @@ public ApplyRequestBuilder(Dictionary pathParameters, IRequestAd public ApplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/sort/apply", rawUrl) { } /// - /// Perform a sort operation. + /// Perform a sort operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ApplyPostRequestBody body, Action - /// Perform a sort operation. + /// Perform a sort operation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Clear/ClearRequestBuilder.cs index 91aac3d3a17..fc7fca252ea 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Clear/ClearRequestBuilder.cs @@ -28,7 +28,7 @@ public ClearRequestBuilder(Dictionary pathParameters, IRequestAd public ClearRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/sort/clear", rawUrl) { } /// - /// Clears the sorting that is currently on the table. While this doesn't modify the table's ordering, it clears the state of the header buttons. + /// Clears the sorting that is currently on the table. While this doesn't modify the table's ordering, it clears the state of the header buttons. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Clears the sorting that is currently on the table. While this doesn't modify the table's ordering, it clears the state of the header buttons. + /// Clears the sorting that is currently on the table. While this doesn't modify the table's ordering, it clears the state of the header buttons. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Reapply/ReapplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Reapply/ReapplyRequestBuilder.cs index 37cfc19af3f..0607fbc7747 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Reapply/ReapplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Reapply/ReapplyRequestBuilder.cs @@ -28,7 +28,7 @@ public ReapplyRequestBuilder(Dictionary pathParameters, IRequest public ReapplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/sort/reapply", rawUrl) { } /// - /// Reapplies the current sorting parameters to the table. + /// Reapplies the current sorting parameters to the table. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Reapplies the current sorting parameters to the table. + /// Reapplies the current sorting parameters to the table. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/SortRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/SortRequestBuilder.cs index 450b967a438..2a3e069c111 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/SortRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/SortRequestBuilder.cs @@ -63,7 +63,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of tablesort object. + /// Retrieve the properties and relationships of tablesort object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -128,7 +128,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of tablesort object. + /// Retrieve the properties and relationships of tablesort object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -205,7 +205,7 @@ public SortRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of tablesort object. + /// Retrieve the properties and relationships of tablesort object. This API is supported in the following national cloud deployments. /// public class SortRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs index 88d3e544008..f901238aa55 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs @@ -29,7 +29,7 @@ public TotalRowRangeRequestBuilder(Dictionary pathParameters, IR public TotalRowRangeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()", rawUrl) { } /// - /// Gets the range object associated with totals row of the table. + /// Gets the range object associated with totals row of the table. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookRange.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Gets the range object associated with totals row of the table. + /// Gets the range object associated with totals row of the table. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/TablesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/TablesRequestBuilder.cs index 2b28356b652..0c9cad09f20 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/TablesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/TablesRequestBuilder.cs @@ -48,7 +48,7 @@ public TablesRequestBuilder(Dictionary pathParameters, IRequestA public TablesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of table objects. + /// Retrieve a list of table objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -97,7 +97,7 @@ public async Task PostAsync(WorkbookTable body, Action(requestInfo, WorkbookTable.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of table objects. + /// Retrieve a list of table objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,7 +158,7 @@ public TablesRequestBuilder WithUrl(string rawUrl) { return new TablesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of table objects. + /// Retrieve a list of table objects. This API is supported in the following national cloud deployments. /// public class TablesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/WorkbookWorksheetItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/WorkbookWorksheetItemRequestBuilder.cs index 17f76830b9c..66263f20544 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/WorkbookWorksheetItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/WorkbookWorksheetItemRequestBuilder.cs @@ -77,7 +77,7 @@ public WorkbookWorksheetItemRequestBuilder(Dictionary pathParame public WorkbookWorksheetItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes the worksheet from the workbook. + /// Deletes the worksheet from the workbook. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -97,7 +97,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of worksheet object. + /// Retrieve the properties and relationships of worksheet object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -117,7 +117,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookWorksheet.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of worksheet object. + /// Update the properties of worksheet object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -147,7 +147,7 @@ public RangeWithAddressRequestBuilder RangeWithAddress(string address) { return new RangeWithAddressRequestBuilder(PathParameters, RequestAdapter, address); } /// - /// Deletes the worksheet from the workbook. + /// Deletes the worksheet from the workbook. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -171,7 +171,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of worksheet object. + /// Retrieve the properties and relationships of worksheet object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -197,7 +197,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of worksheet object. + /// Update the properties of worksheet object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -256,7 +256,7 @@ public WorkbookWorksheetItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of worksheet object. + /// Retrieve the properties and relationships of worksheet object. This API is supported in the following national cloud deployments. /// public class WorkbookWorksheetItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.cs index 5fde10334b3..1aab6b3814b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.cs @@ -47,8 +47,8 @@ public WorksheetsRequestBuilder(Dictionary pathParameters, IRequ public WorksheetsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of worksheet objects. - /// Find more info here + /// Retrieve a list of worksheet objects. This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -88,7 +88,7 @@ public async Task PostAsync(WorkbookWorksheet body, Action(requestInfo, WorkbookWorksheet.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of worksheet objects. + /// Retrieve a list of worksheet objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -149,7 +149,7 @@ public WorksheetsRequestBuilder WithUrl(string rawUrl) { return new WorksheetsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of worksheet objects. + /// Retrieve a list of worksheet objects. This API is supported in the following national cloud deployments. /// public class WorksheetsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Drives/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index 88339b92804..516dadfb185 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.Drives.Item.LastModifiedByUser.MailboxSettings; +using Microsoft.Graph.Drives.Item.LastModifiedByUser.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class LastModifiedByUserRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new LastModifiedByUserRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..18e79d74b6e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Drives.Item.LastModifiedByUser.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..7a9cb0d89b5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Drives.Item.LastModifiedByUser.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Drives.Item.LastModifiedByUser.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \drives\{drive-id}\lastModifiedByUser\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Columns/ColumnsRequestBuilder.cs index a1a68e4878c..5833a400e1c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Columns/ColumnsRequestBuilder.cs @@ -42,7 +42,7 @@ public ColumnsRequestBuilder(Dictionary pathParameters, IRequest public ColumnsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/columns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [list][list]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [list][list]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ColumnDefinitionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a column for a [list][list] with a request that specifies a [columnDefinition][columnDefinition]. + /// Create a column for a list][list] with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(ColumnDefinition body, Action(requestInfo, ColumnDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [list][list]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [list][list]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a column for a [list][list] with a request that specifies a [columnDefinition][columnDefinition]. + /// Create a column for a list][list] with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ColumnsRequestBuilder WithUrl(string rawUrl) { return new ColumnsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [list][list]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [list][list]. This API is supported in the following [national cloud deployments. /// public class ColumnsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/AddCopy/AddCopyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/AddCopy/AddCopyRequestBuilder.cs index 88eb05bd2ce..d469284990d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/AddCopy/AddCopyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/AddCopy/AddCopyRequestBuilder.cs @@ -29,7 +29,7 @@ public AddCopyRequestBuilder(Dictionary pathParameters, IRequest public AddCopyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/addCopy", rawUrl) { } /// - /// Add a copy of a [content type][contentType] from a [site][site] to a [list][list]. + /// Add a copy of a content type][contentType] from a [site][site] to a [list][list]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(AddCopyPostRequestBody body, Action(requestInfo, ContentType.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a copy of a [content type][contentType] from a [site][site] to a [list][list]. + /// Add a copy of a content type][contentType] from a [site][site] to a [list][list]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs index 538190a28eb..c2591e01207 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs @@ -29,7 +29,7 @@ public AddCopyFromContentTypeHubRequestBuilder(Dictionary pathPa public AddCopyFromContentTypeHubRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/addCopyFromContentTypeHub", rawUrl) { } /// - /// Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. + /// Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(AddCopyFromContentTypeHubPostRequestBod return await RequestAdapter.SendAsync(requestInfo, ContentType.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. + /// Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/ContentTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/ContentTypesRequestBuilder.cs index aed991bc812..cd775e40499 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/ContentTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/ContentTypesRequestBuilder.cs @@ -57,7 +57,7 @@ public ContentTypesRequestBuilder(Dictionary pathParameters, IRe public ContentTypesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the collection of [contentType][contentType] resources in a [list][]. + /// Get the collection of contentType][contentType] resources in a [list][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -98,7 +98,7 @@ public async Task PostAsync(ContentType body, Action(requestInfo, ContentType.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the collection of [contentType][contentType] resources in a [list][]. + /// Get the collection of contentType][contentType] resources in a [list][]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -159,7 +159,7 @@ public ContentTypesRequestBuilder WithUrl(string rawUrl) { return new ContentTypesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the collection of [contentType][contentType] resources in a [list][]. + /// Get the collection of contentType][contentType] resources in a [list][]. This API is supported in the following [national cloud deployments. /// public class ContentTypesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs new file mode 100644 index 00000000000..1dab1a43794 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Drives.Item.List.ContentTypes.GetCompatibleHubContentTypes { + public class GetCompatibleHubContentTypesGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetCompatibleHubContentTypesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetCompatibleHubContentTypesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs index 60967449fee..7cfd3004df4 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs @@ -33,6 +33,26 @@ public GetCompatibleHubContentTypesRequestBuilder(string rawUrl, IRequestAdapter /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetCompatibleHubContentTypesGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetCompatibleHubContentTypesGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetCompatibleHubContentTypesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getCompatibleHubContentTypes + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetCompatibleHubContentTypesGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs index b359e11c884..2748098741c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Drives.Item.List.ContentTypes.GetCompatibleHubContentTypes { - public class GetCompatibleHubContentTypesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getCompatibleHubContentTypesGetResponse instead.")] + public class GetCompatibleHubContentTypesResponse : GetCompatibleHubContentTypesGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetCompatibleHubContentTypesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs index 055944e8f0c..cba467e55ac 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs @@ -28,7 +28,7 @@ public AssociateWithHubSitesRequestBuilder(Dictionary pathParame public AssociateWithHubSitesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/associateWithHubSites", rawUrl) { } /// - /// Associate a published [content type][contentType] present in a content type hub with a list of hub sites. + /// Associate a published content type][contentType] present in a content type hub with a list of hub sites. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AssociateWithHubSitesPostRequestBody body, Action - /// Associate a published [content type][contentType] present in a content type hub with a list of hub sites. + /// Associate a published content type][contentType] present in a content type hub with a list of hub sites. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs index c7cb7a2ff49..09d8d213a56 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs @@ -42,7 +42,7 @@ public ColumnsRequestBuilder(Dictionary pathParameters, IRequest public ColumnsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [content type][contentType]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ColumnDefinitionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a column to a [content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. + /// Add a column to a content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(ColumnDefinition body, Action(requestInfo, ColumnDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [content type][contentType]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a column to a [content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. + /// Add a column to a content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ColumnsRequestBuilder WithUrl(string rawUrl) { return new ColumnsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [content type][contentType]. This API is supported in the following [national cloud deployments. /// public class ColumnsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs index 2321365be83..522fb38553e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs @@ -34,7 +34,7 @@ public ColumnDefinitionItemRequestBuilder(Dictionary pathParamet public ColumnDefinitionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Remove a [column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. + /// Remove a column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + /// Retrieve the metadata for a site][], a [list][], or a [contentType][] [column][columnDefinition]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, ColumnDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update a [site][], a [list][], or a [content type][contentType] [column][columnDefinition]. + /// Update a site][], a [list][], or a [content type][contentType] [column][columnDefinition]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(ColumnDefinition body, Action(requestInfo, ColumnDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Remove a [column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. + /// Remove a column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + /// Retrieve the metadata for a site][], a [list][], or a [contentType][] [column][columnDefinition]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update a [site][], a [list][], or a [content type][contentType] [column][columnDefinition]. + /// Update a site][], a [list][], or a [content type][contentType] [column][columnDefinition]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public ColumnDefinitionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + /// Retrieve the metadata for a site][], a [list][], or a [contentType][] [column][columnDefinition]. This API is supported in the following [national cloud deployments. /// public class ColumnDefinitionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs index f0a066c93ba..9dc075b447d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs @@ -28,7 +28,7 @@ public CopyToDefaultContentLocationRequestBuilder(Dictionary pat public CopyToDefaultContentLocationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/copyToDefaultContentLocation", rawUrl) { } /// - /// Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. + /// Copy a file to a default content location in a content type][contentType]. The file can then be added as a default file or template via a POST operation. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CopyToDefaultContentLocationPostRequestBody body, Ac await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. + /// Copy a file to a default content location in a content type][contentType]. The file can then be added as a default file or template via a POST operation. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs new file mode 100644 index 00000000000..960305aae33 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Drives.Item.List.ContentTypes.Item.IsPublished { + public class IsPublishedGetResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public bool? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new isPublishedGetResponse and sets the default values. + /// + public IsPublishedGetResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static IsPublishedGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new IsPublishedGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs index f2d15139953..4360fa933d7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs @@ -33,6 +33,26 @@ public IsPublishedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsIsPublishedGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsIsPublishedGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, IsPublishedGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function isPublished + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsIsPublishedGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/IsPublished/IsPublishedResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/IsPublished/IsPublishedResponse.cs index aeb5d3f62a2..c23257168af 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/IsPublished/IsPublishedResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/IsPublished/IsPublishedResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Drives.Item.List.ContentTypes.Item.IsPublished { - public class IsPublishedResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public bool? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new isPublishedResponse and sets the default values. - /// - public IsPublishedResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use isPublishedGetResponse instead.")] + public class IsPublishedResponse : IsPublishedGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static IsPublishedResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new IsPublishedResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new IsPublishedResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Publish/PublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Publish/PublishRequestBuilder.cs index 77b0af0b95f..938c42ed5bd 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Publish/PublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Publish/PublishRequestBuilder.cs @@ -28,7 +28,7 @@ public PublishRequestBuilder(Dictionary pathParameters, IRequest public PublishRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/publish", rawUrl) { } /// - /// Publishes a [contentType][] present in the content type hub site. + /// Publishes a contentType][] present in the content type hub site. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Publishes a [contentType][] present in the content type hub site. + /// Publishes a contentType][] present in the content type hub site. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs index 7a049d35fdc..f3571eb5696 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs @@ -28,7 +28,7 @@ public UnpublishRequestBuilder(Dictionary pathParameters, IReque public UnpublishRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/unpublish", rawUrl) { } /// - /// Unpublish a [contentType][] from a content type hub site. + /// Unpublish a contentType][] from a content type hub site. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Unpublish a [contentType][] from a content type hub site. + /// Unpublish a contentType][] from a content type hub site. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/CreatedByUser/CreatedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/CreatedByUser/CreatedByUserRequestBuilder.cs index 5986e20aad3..bd717297ea6 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/CreatedByUser/CreatedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/CreatedByUser/CreatedByUserRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.Drives.Item.List.CreatedByUser.MailboxSettings; +using Microsoft.Graph.Drives.Item.List.CreatedByUser.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class CreatedByUserRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new CreatedByUserRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..e8941f30d88 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Drives.Item.List.CreatedByUser.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/createdByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/createdByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..220c549387e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Drives.Item.List.CreatedByUser.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Drives.Item.List.CreatedByUser.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \drives\{drive-id}\list\createdByUser\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/createdByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/createdByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs index c81bbc3d214..afee93c802b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.Drives.Item.List.Items.Item.CreatedByUser.MailboxSettings; +using Microsoft.Graph.Drives.Item.List.Items.Item.CreatedByUser.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class CreatedByUserRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new CreatedByUserRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..a14fb08cae3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Drives.Item.List.Items.Item.CreatedByUser.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..017aa5ac82a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Drives.Item.List.Items.Item.CreatedByUser.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Drives.Item.List.Items.Item.CreatedByUser.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \drives\{drive-id}\list\items\{listItem-id}\createdByUser\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs index d71f67dfac6..7826bf548ca 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs @@ -42,7 +42,7 @@ public DocumentSetVersionsRequestBuilder(Dictionary pathParamete public DocumentSetVersionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/documentSetVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the versions of a document set item in a list. + /// Get a list of the versions of a document set item in a list. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, DocumentSetVersionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new version of a document set item in a list. + /// Create a new version of a document set item in a list. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(DocumentSetVersion body, Action< return await RequestAdapter.SendAsync(requestInfo, DocumentSetVersion.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the versions of a document set item in a list. + /// Get a list of the versions of a document set item in a list. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new version of a document set item in a list. + /// Create a new version of a document set item in a list. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public DocumentSetVersionsRequestBuilder WithUrl(string rawUrl) { return new DocumentSetVersionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the versions of a document set item in a list. + /// Get a list of the versions of a document set item in a list. This API is supported in the following national cloud deployments. /// public class DocumentSetVersionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs index 8c9fd9f53bf..29b74e6cae0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs @@ -39,7 +39,7 @@ public DocumentSetVersionItemRequestBuilder(Dictionary pathParam public DocumentSetVersionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a version of a document set in a list. + /// Delete a version of a document set in a list. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -59,7 +59,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a documentSetVersion object. + /// Read the properties and relationships of a documentSetVersion object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -100,7 +100,7 @@ public async Task PatchAsync(DocumentSetVersion body, Action return await RequestAdapter.SendAsync(requestInfo, DocumentSetVersion.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a version of a document set in a list. + /// Delete a version of a document set in a list. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -124,7 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a documentSetVersion object. + /// Read the properties and relationships of a documentSetVersion object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -201,7 +201,7 @@ public DocumentSetVersionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a documentSetVersion object. + /// Read the properties and relationships of a documentSetVersion object. This API is supported in the following national cloud deployments. /// public class DocumentSetVersionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs index c6a9f882579..72b1de1b68a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs @@ -28,7 +28,7 @@ public RestoreRequestBuilder(Dictionary pathParameters, IRequest public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%2Did}/restore", rawUrl) { } /// - /// Restore a document set version. + /// Restore a document set version. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Restore a document set version. + /// Restore a document set version. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Fields/FieldsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Fields/FieldsRequestBuilder.cs index cc55cf7410c..3db0519380f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Fields/FieldsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Fields/FieldsRequestBuilder.cs @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, FieldValueSet.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties on a [listItem][]. + /// Update the properties on a listItem][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -139,7 +139,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties on a [listItem][]. + /// Update the properties on a listItem][]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs new file mode 100644 index 00000000000..06c4f32b6af --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Drives.Item.List.Items.Item.GetActivitiesByInterval { + public class GetActivitiesByIntervalGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetActivitiesByIntervalGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetActivitiesByIntervalGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs index 3c7753a6ccf..e47f771708f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs @@ -33,6 +33,26 @@ public GetActivitiesByIntervalRequestBuilder(string rawUrl, IRequestAdapter requ /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetActivitiesByIntervalGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetActivitiesByIntervalGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetActivitiesByIntervalGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getActivitiesByInterval + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetActivitiesByIntervalGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index 4d88807f04f..c4bf6f3e42f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Drives.Item.List.Items.Item.GetActivitiesByInterval { - public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getActivitiesByIntervalGetResponse instead.")] + public class GetActivitiesByIntervalResponse : GetActivitiesByIntervalGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs new file mode 100644 index 00000000000..1320ffd9b53 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Drives.Item.List.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs index 2b3aa3b2e6c..615427ee36c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs @@ -39,6 +39,26 @@ public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalReques /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getActivitiesByInterval + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index bba42dec2cb..1d4a973d917 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Drives.Item.List.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse instead.")] + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index 27626737123..eea00478a71 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.Drives.Item.List.Items.Item.LastModifiedByUser.MailboxSettings; +using Microsoft.Graph.Drives.Item.List.Items.Item.LastModifiedByUser.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class LastModifiedByUserRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new LastModifiedByUserRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..713fdf5dcdb --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Drives.Item.List.Items.Item.LastModifiedByUser.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..1bc8fbbc14d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Drives.Item.List.Items.Item.LastModifiedByUser.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Drives.Item.List.Items.Item.LastModifiedByUser.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \drives\{drive-id}\list\items\{listItem-id}\lastModifiedByUser\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/ListItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/ListItemItemRequestBuilder.cs index 583fbfb5ab6..a82970c448a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/ListItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/ListItemItemRequestBuilder.cs @@ -70,7 +70,7 @@ public ListItemItemRequestBuilder(Dictionary pathParameters, IRe public ListItemItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Removes an item from a [list][]. + /// Removes an item from a list][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -102,7 +102,7 @@ public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalReques return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(PathParameters, RequestAdapter, endDateTime, interval, startDateTime); } /// - /// Returns the metadata for an [item][] in a [list][]. + /// Returns the metadata for an item][] in a [list][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -143,7 +143,7 @@ public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalReques return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.ListItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Removes an item from a [list][]. + /// Removes an item from a list][]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -167,7 +167,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Returns the metadata for an [item][] in a [list][]. + /// Returns the metadata for an item][] in a [list][]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -244,7 +244,7 @@ public ListItemItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Returns the metadata for an [item][] in a [list][]. + /// Returns the metadata for an item][] in a [list][]. This API is supported in the following [national cloud deployments. /// public class ListItemItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs index c263885443d..abbe929ca5f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs @@ -58,7 +58,7 @@ public async Task DeleteAsync(Action - /// Retrieve the metadata for a specific version of a ListItem. + /// Retrieve the metadata for a specific version of a ListItem. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -123,7 +123,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the metadata for a specific version of a ListItem. + /// Retrieve the metadata for a specific version of a ListItem. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -200,7 +200,7 @@ public ListItemVersionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the metadata for a specific version of a ListItem. + /// Retrieve the metadata for a specific version of a ListItem. This API is supported in the following national cloud deployments. /// public class ListItemVersionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs index 66232c0870f..392600e10ec 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs @@ -28,7 +28,7 @@ public RestoreVersionRequestBuilder(Dictionary pathParameters, I public RestoreVersionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/versions/{listItemVersion%2Did}/restoreVersion", rawUrl) { } /// - /// Restore a previous version of a ListItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the item. + /// Restore a previous version of a ListItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the item. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Restore a previous version of a ListItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the item. + /// Restore a previous version of a ListItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the item. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Versions/VersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Versions/VersionsRequestBuilder.cs index 83f163e0e8f..c19ad00aab6 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Versions/VersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Versions/VersionsRequestBuilder.cs @@ -42,7 +42,7 @@ public VersionsRequestBuilder(Dictionary pathParameters, IReques public VersionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/versions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. + /// SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ListItemVersion body, Action(requestInfo, ListItemVersion.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. + /// SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public VersionsRequestBuilder WithUrl(string rawUrl) { return new VersionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. + /// SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. This API is supported in the following national cloud deployments. /// public class VersionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/ItemsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/ItemsRequestBuilder.cs index 8c5a165dca4..3767d4161f8 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/ItemsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/ItemsRequestBuilder.cs @@ -42,7 +42,7 @@ public ItemsRequestBuilder(Dictionary pathParameters, IRequestAd public ItemsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/items{?%24top,%24skip,%24search,%24filter,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the collection of [items][item] in a [list][]. + /// Get the collection of items][item] in a [list][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ListItemCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new [listItem][] in a [list][]. + /// Create a new listItem][] in a [list][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.ListItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the collection of [items][item] in a [list][]. + /// Get the collection of items][item] in a [list][]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new [listItem][] in a [list][]. + /// Create a new listItem][] in a [list][]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ItemsRequestBuilder WithUrl(string rawUrl) { return new ItemsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the collection of [items][item] in a [list][]. + /// Get the collection of items][item] in a [list][]. This API is supported in the following [national cloud deployments. /// public class ItemsRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index 72e7f95921f..723a9c29b1b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.Drives.Item.List.LastModifiedByUser.MailboxSettings; +using Microsoft.Graph.Drives.Item.List.LastModifiedByUser.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class LastModifiedByUserRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new LastModifiedByUserRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..dfd7759cfa9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Drives.Item.List.LastModifiedByUser.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/lastModifiedByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/lastModifiedByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..01eb86c1c20 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Drives.Item.List.LastModifiedByUser.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Drives.Item.List.LastModifiedByUser.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \drives\{drive-id}\list\lastModifiedByUser\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/lastModifiedByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/lastModifiedByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs index 782b351970b..e3b3e9959e9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs @@ -28,7 +28,7 @@ public ReauthorizeRequestBuilder(Dictionary pathParameters, IReq public ReauthorizeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/subscriptions/{subscription%2Did}/reauthorize", rawUrl) { } /// - /// Reauthorize a subscription when you receive a reauthorizationRequired challenge. + /// Reauthorize a subscription when you receive a reauthorizationRequired challenge. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Reauthorize a subscription when you receive a reauthorizationRequired challenge. + /// Reauthorize a subscription when you receive a reauthorizationRequired challenge. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Recent/RecentGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Recent/RecentGetResponse.cs new file mode 100644 index 00000000000..5314320cb96 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/Recent/RecentGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Drives.Item.Recent { + public class RecentGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new RecentGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new RecentGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Recent/RecentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Recent/RecentRequestBuilder.cs index 3e3ec76e0d7..51a67412fe0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Recent/RecentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Recent/RecentRequestBuilder.cs @@ -33,6 +33,26 @@ public RecentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsRecentGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsRecentGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, RecentGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function recent + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsRecentGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Recent/RecentResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Recent/RecentResponse.cs index eac0dfaead6..97ba5c675e8 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Recent/RecentResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Recent/RecentResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Drives.Item.Recent { - public class RecentResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use recentGetResponse instead.")] + public class RecentResponse : RecentGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RecentResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Root/RootRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Root/RootRequestBuilder.cs index 2b0b8662376..dfc86f4cd57 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Root/RootRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Root/RootRequestBuilder.cs @@ -34,7 +34,7 @@ public RootRequestBuilder(Dictionary pathParameters, IRequestAda public RootRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/root{?%24select,%24expand}", rawUrl) { } /// - /// Retrieve the metadata for a driveItem in a drive by file system path or ID.item-id is the ID of a driveItem. It may also be the unique ID of a SharePoint list item. + /// Retrieve the metadata for a driveItem in a drive by file system path or ID.item-id is the ID of a driveItem. It may also be the unique ID of a SharePoint list item. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public RootRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the metadata for a driveItem in a drive by file system path or ID.item-id is the ID of a driveItem. It may also be the unique ID of a SharePoint list item. + /// Retrieve the metadata for a driveItem in a drive by file system path or ID.item-id is the ID of a driveItem. It may also be the unique ID of a SharePoint list item. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,7 +87,7 @@ public RootRequestBuilder WithUrl(string rawUrl) { return new RootRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the metadata for a driveItem in a drive by file system path or ID.item-id is the ID of a driveItem. It may also be the unique ID of a SharePoint list item. + /// Retrieve the metadata for a driveItem in a drive by file system path or ID.item-id is the ID of a driveItem. It may also be the unique ID of a SharePoint list item. This API is supported in the following national cloud deployments. /// public class RootRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/SearchWithQ/SearchWithQGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/SearchWithQ/SearchWithQGetResponse.cs new file mode 100644 index 00000000000..e4e83c4162f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/SearchWithQ/SearchWithQGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Drives.Item.SearchWithQ { + public class SearchWithQGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new SearchWithQGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new SearchWithQGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/SearchWithQ/SearchWithQRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/SearchWithQ/SearchWithQRequestBuilder.cs index 7fbda923417..770c318d627 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/SearchWithQ/SearchWithQRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/SearchWithQ/SearchWithQRequestBuilder.cs @@ -35,6 +35,26 @@ public SearchWithQRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsSearchWithQGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsSearchWithQGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, SearchWithQGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function search + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsSearchWithQGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Drives/Item/SearchWithQ/SearchWithQResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/SearchWithQ/SearchWithQResponse.cs index 51e4c90a255..96cddbea744 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/SearchWithQ/SearchWithQResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/SearchWithQ/SearchWithQResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Drives.Item.SearchWithQ { - public class SearchWithQResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use searchWithQGetResponse instead.")] + public class SearchWithQResponse : SearchWithQGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SearchWithQResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/SharedWithMe/SharedWithMeGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/SharedWithMe/SharedWithMeGetResponse.cs new file mode 100644 index 00000000000..aad7b8fe7af --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/SharedWithMe/SharedWithMeGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Drives.Item.SharedWithMe { + public class SharedWithMeGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new SharedWithMeGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new SharedWithMeGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/SharedWithMe/SharedWithMeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/SharedWithMe/SharedWithMeRequestBuilder.cs index 486b1d94162..b6c8569502b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/SharedWithMe/SharedWithMeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/SharedWithMe/SharedWithMeRequestBuilder.cs @@ -33,6 +33,26 @@ public SharedWithMeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsSharedWithMeGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsSharedWithMeGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, SharedWithMeGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function sharedWithMe + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsSharedWithMeGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Drives/Item/SharedWithMe/SharedWithMeResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/SharedWithMe/SharedWithMeResponse.cs index 0244806677a..65f2be72584 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/SharedWithMe/SharedWithMeResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/SharedWithMe/SharedWithMeResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Drives.Item.SharedWithMe { - public class SharedWithMeResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use sharedWithMeGetResponse instead.")] + public class SharedWithMeResponse : SharedWithMeGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SharedWithMeResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Special/Item/DriveItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Special/Item/DriveItemItemRequestBuilder.cs index 8f92753ca4c..9f10174cf21 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Special/Item/DriveItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Special/Item/DriveItemItemRequestBuilder.cs @@ -34,7 +34,7 @@ public DriveItemItemRequestBuilder(Dictionary pathParameters, IR public DriveItemItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/special/{driveItem%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Use the special collection to access a special folder by name. Special folders provide simple aliases to access well-known folders in OneDrive without the need to look up the folder by path (which would require localization), or reference the folder with an ID. If a special folder is renamed or moved to another location within the drive, this syntax will continue to find that folder. Special folders are automatically created the first time an application attempts to write to one, if it doesn't already exist. If a user deletes one, it is recreated when written to again. + /// Use the special collection to access a special folder by name. Special folders provide simple aliases to access well-known folders in OneDrive without the need to look up the folder by path (which would require localization), or reference the folder with an ID. If a special folder is renamed or moved to another location within the drive, this syntax will continue to find that folder. Special folders are automatically created the first time an application attempts to write to one, if it doesn't already exist. If a user deletes one, it is recreated when written to again. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public DriveItemItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use the special collection to access a special folder by name. Special folders provide simple aliases to access well-known folders in OneDrive without the need to look up the folder by path (which would require localization), or reference the folder with an ID. If a special folder is renamed or moved to another location within the drive, this syntax will continue to find that folder. Special folders are automatically created the first time an application attempts to write to one, if it doesn't already exist. If a user deletes one, it is recreated when written to again. + /// Use the special collection to access a special folder by name. Special folders provide simple aliases to access well-known folders in OneDrive without the need to look up the folder by path (which would require localization), or reference the folder with an ID. If a special folder is renamed or moved to another location within the drive, this syntax will continue to find that folder. Special folders are automatically created the first time an application attempts to write to one, if it doesn't already exist. If a user deletes one, it is recreated when written to again. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,7 +87,7 @@ public DriveItemItemRequestBuilder WithUrl(string rawUrl) { return new DriveItemItemRequestBuilder(rawUrl, RequestAdapter); } /// - /// Use the special collection to access a special folder by name. Special folders provide simple aliases to access well-known folders in OneDrive without the need to look up the folder by path (which would require localization), or reference the folder with an ID. If a special folder is renamed or moved to another location within the drive, this syntax will continue to find that folder. Special folders are automatically created the first time an application attempts to write to one, if it doesn't already exist. If a user deletes one, it is recreated when written to again. + /// Use the special collection to access a special folder by name. Special folders provide simple aliases to access well-known folders in OneDrive without the need to look up the folder by path (which would require localization), or reference the folder with an ID. If a special folder is renamed or moved to another location within the drive, this syntax will continue to find that folder. Special folders are automatically created the first time an application attempts to write to one, if it doesn't already exist. If a user deletes one, it is recreated when written to again. This API is supported in the following national cloud deployments. /// public class DriveItemItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Special/SpecialRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Special/SpecialRequestBuilder.cs index 7015078acf2..21e068b7ba0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Special/SpecialRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Special/SpecialRequestBuilder.cs @@ -42,7 +42,7 @@ public SpecialRequestBuilder(Dictionary pathParameters, IRequest public SpecialRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/special{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Use the special collection to access a special folder by name. Special folders provide simple aliases to access well-known folders in OneDrive without the need to look up the folder by path (which would require localization), or reference the folder with an ID. If a special folder is renamed or moved to another location within the drive, this syntax will continue to find that folder. Special folders are automatically created the first time an application attempts to write to one, if it doesn't already exist. If a user deletes one, it is recreated when written to again. + /// Use the special collection to access a special folder by name. Special folders provide simple aliases to access well-known folders in OneDrive without the need to look up the folder by path (which would require localization), or reference the folder with an ID. If a special folder is renamed or moved to another location within the drive, this syntax will continue to find that folder. Special folders are automatically created the first time an application attempts to write to one, if it doesn't already exist. If a user deletes one, it is recreated when written to again. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, DriveItemCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use the special collection to access a special folder by name. Special folders provide simple aliases to access well-known folders in OneDrive without the need to look up the folder by path (which would require localization), or reference the folder with an ID. If a special folder is renamed or moved to another location within the drive, this syntax will continue to find that folder. Special folders are automatically created the first time an application attempts to write to one, if it doesn't already exist. If a user deletes one, it is recreated when written to again. + /// Use the special collection to access a special folder by name. Special folders provide simple aliases to access well-known folders in OneDrive without the need to look up the folder by path (which would require localization), or reference the folder with an ID. If a special folder is renamed or moved to another location within the drive, this syntax will continue to find that folder. Special folders are automatically created the first time an application attempts to write to one, if it doesn't already exist. If a user deletes one, it is recreated when written to again. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -94,7 +94,7 @@ public SpecialRequestBuilder WithUrl(string rawUrl) { return new SpecialRequestBuilder(rawUrl, RequestAdapter); } /// - /// Use the special collection to access a special folder by name. Special folders provide simple aliases to access well-known folders in OneDrive without the need to look up the folder by path (which would require localization), or reference the folder with an ID. If a special folder is renamed or moved to another location within the drive, this syntax will continue to find that folder. Special folders are automatically created the first time an application attempts to write to one, if it doesn't already exist. If a user deletes one, it is recreated when written to again. + /// Use the special collection to access a special folder by name. Special folders provide simple aliases to access well-known folders in OneDrive without the need to look up the folder by path (which would require localization), or reference the folder with an ID. If a special folder is renamed or moved to another location within the drive, this syntax will continue to find that folder. Special folders are automatically created the first time an application attempts to write to one, if it doesn't already exist. If a user deletes one, it is recreated when written to again. This API is supported in the following national cloud deployments. /// public class SpecialRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Classes/ClassesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/ClassesRequestBuilder.cs index f05512fdc64..f46e967df9a 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/ClassesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/ClassesRequestBuilder.cs @@ -47,7 +47,7 @@ public ClassesRequestBuilder(Dictionary pathParameters, IRequest public ClassesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the educationClass objects and their properties. + /// Get a list of the educationClass objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, EducationClassCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new educationClass object. + /// Create a new educationClass object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(EducationClass body, Action(requestInfo, EducationClass.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the educationClass objects and their properties. + /// Get a list of the educationClass objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new educationClass object. + /// Create a new educationClass object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public ClassesRequestBuilder WithUrl(string rawUrl) { return new ClassesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the educationClass objects and their properties. + /// Get a list of the educationClass objects and their properties. This API is supported in the following national cloud deployments. /// public class ClassesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Education/Classes/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..c1e54c7eafa --- /dev/null +++ b/src/Microsoft.Graph/Generated/Education/Classes/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Education.Classes.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(EducationClass.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Delta/DeltaRequestBuilder.cs index b7959ca3942..3b6e188a6ec 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Education/Classes/Delta/DeltaResponse.cs index 36bc3a59fa6..02126bebe3e 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Education.Classes.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(EducationClass.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/AssignmentCategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/AssignmentCategoriesRequestBuilder.cs index bcba2bc701d..0b8f1dea26e 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/AssignmentCategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/AssignmentCategoriesRequestBuilder.cs @@ -47,7 +47,7 @@ public AssignmentCategoriesRequestBuilder(Dictionary pathParamet public AssignmentCategoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentCategories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of educationCategory objects. Only teachers can perform this operation. + /// Retrieve a list of educationCategory objects. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, EducationCategoryCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Creates a new educationCategory on an educationClass. Only teachers can perform this operation. + /// Create a new educationCategory on an educationClass. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(EducationCategory body, Action(requestInfo, EducationCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of educationCategory objects. Only teachers can perform this operation. + /// Retrieve a list of educationCategory objects. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Creates a new educationCategory on an educationClass. Only teachers can perform this operation. + /// Create a new educationCategory on an educationClass. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AssignmentCategoriesRequestBuilder WithUrl(string rawUrl) { return new AssignmentCategoriesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of educationCategory objects. Only teachers can perform this operation. + /// Retrieve a list of educationCategory objects. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// public class AssignmentCategoriesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..0a61c1449e8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Education.Classes.Item.AssignmentCategories.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(EducationCategory.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaRequestBuilder.cs index 0315b364074..8d8a76fca54 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaResponse.cs index 7cd0109938c..c35052bb937 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Education.Classes.Item.AssignmentCategories.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(EducationCategory.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/Item/EducationCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/Item/EducationCategoryItemRequestBuilder.cs index f6d7e61bc14..9a9baa9f366 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/Item/EducationCategoryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/Item/EducationCategoryItemRequestBuilder.cs @@ -29,7 +29,7 @@ public EducationCategoryItemRequestBuilder(Dictionary pathParame public EducationCategoryItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentCategories/{educationCategory%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an existing category. Only teachers can perform this operation. + /// Delete an existing category. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve an educationCategory object. Only teachers, students, and applications with application permissions can perform this operation. + /// Retrieve an educationCategory object. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(EducationCategory body, Action(requestInfo, EducationCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an existing category. Only teachers can perform this operation. + /// Delete an existing category. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve an educationCategory object. Only teachers, students, and applications with application permissions can perform this operation. + /// Retrieve an educationCategory object. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public EducationCategoryItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve an educationCategory object. Only teachers, students, and applications with application permissions can perform this operation. + /// Retrieve an educationCategory object. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// public class EducationCategoryItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentDefaults/AssignmentDefaultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentDefaults/AssignmentDefaultsRequestBuilder.cs index 4393e192ea4..a2b81e53c55 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentDefaults/AssignmentDefaultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentDefaults/AssignmentDefaultsRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an educationAssignmentDefaults object. These are the class-level assignment defaults respected by new assignments created in the class. Callers can continue to specify custom values on each assignment creation if they don't want the default behaviors. Only teachers can perform this operation. + /// Read the properties and relationships of an educationAssignmentDefaults object. These are the class-level assignment defaults respected by new assignments created in the class. Callers can continue to specify custom values on each assignment creation if they don't want the default behaviors. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, EducationAssignmentDefaults.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an educationAssignmentDefaults object. Only teachers can update these settings. + /// Update the properties of an educationAssignmentDefaults object. Only teachers can update these settings. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an educationAssignmentDefaults object. These are the class-level assignment defaults respected by new assignments created in the class. Callers can continue to specify custom values on each assignment creation if they don't want the default behaviors. Only teachers can perform this operation. + /// Read the properties and relationships of an educationAssignmentDefaults object. These are the class-level assignment defaults respected by new assignments created in the class. Callers can continue to specify custom values on each assignment creation if they don't want the default behaviors. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an educationAssignmentDefaults object. Only teachers can update these settings. + /// Update the properties of an educationAssignmentDefaults object. Only teachers can update these settings. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -191,7 +191,7 @@ public AssignmentDefaultsRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of an educationAssignmentDefaults object. These are the class-level assignment defaults respected by new assignments created in the class. Callers can continue to specify custom values on each assignment creation if they don't want the default behaviors. Only teachers can perform this operation. + /// Read the properties and relationships of an educationAssignmentDefaults object. These are the class-level assignment defaults respected by new assignments created in the class. Callers can continue to specify custom values on each assignment creation if they don't want the default behaviors. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// public class AssignmentDefaultsRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/AssignmentSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/AssignmentSettingsRequestBuilder.cs index 6be54993340..5721b87ea6e 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/AssignmentSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/AssignmentSettingsRequestBuilder.cs @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, EducationAssignmentSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an educationAssignmentSettings object. Only teachers can update these settings. + /// Update the properties of an educationAssignmentSettings object. Only teachers can update these settings. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -139,7 +139,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an educationAssignmentSettings object. Only teachers can update these settings. + /// Update the properties of an educationAssignmentSettings object. Only teachers can update these settings. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/AssignmentsRequestBuilder.cs index 386aea8a086..838f1e8ae76 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/AssignmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AssignmentsRequestBuilder(Dictionary pathParameters, IReq public AssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of assignment objects. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application executing with application permissions can see all assignment objects for the class. Students can only see assignments that are assigned to them. + /// Retrieve a list of assignment objects. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application executing with application permissions can see all assignment objects for the class. Students can only see assignments that are assigned to them. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, EducationAssignmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new assignment. Only teachers in a class can create an assignment. Assignments start in the Draft state, which means that students will not see the assignment until publication. + /// Create a new assignment. Only teachers in a class can create an assignment. Assignments start in the Draft state, which means that students will not see the assignment until publication. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(EducationAssignment body, Actio return await RequestAdapter.SendAsync(requestInfo, EducationAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of assignment objects. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application executing with application permissions can see all assignment objects for the class. Students can only see assignments that are assigned to them. + /// Retrieve a list of assignment objects. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application executing with application permissions can see all assignment objects for the class. Students can only see assignments that are assigned to them. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new assignment. Only teachers in a class can create an assignment. Assignments start in the Draft state, which means that students will not see the assignment until publication. + /// Create a new assignment. Only teachers in a class can create an assignment. Assignments start in the Draft state, which means that students will not see the assignment until publication. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AssignmentsRequestBuilder WithUrl(string rawUrl) { return new AssignmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of assignment objects. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application executing with application permissions can see all assignment objects for the class. Students can only see assignments that are assigned to them. + /// Retrieve a list of assignment objects. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application executing with application permissions can see all assignment objects for the class. Students can only see assignments that are assigned to them. This API is supported in the following national cloud deployments. /// public class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..53562357c1d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Education.Classes.Item.Assignments.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(EducationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Delta/DeltaRequestBuilder.cs index b7909d7624e..3a43fc5cd27 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Delta/DeltaResponse.cs index 71f83c3ac69..8a9d7cd91ea 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Education.Classes.Item.Assignments.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(EducationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/CategoriesRequestBuilder.cs index 8ad3deb89d7..3151bdccd32 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/CategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/CategoriesRequestBuilder.cs @@ -52,7 +52,7 @@ public CategoriesRequestBuilder(Dictionary pathParameters, IRequ public CategoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -72,7 +72,7 @@ public async Task GetAsync(Action(requestInfo, EducationCategoryCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. + /// Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -94,7 +94,7 @@ public async Task PostAsync(EducationCategory body, Action(requestInfo, EducationCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. + /// Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -155,7 +155,7 @@ public CategoriesRequestBuilder WithUrl(string rawUrl) { return new CategoriesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// public class CategoriesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..48f753879e7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Education.Classes.Item.Assignments.Item.Categories.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(EducationCategory.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaRequestBuilder.cs index 54ae1a6140b..08ae8fc1578 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaResponse.cs index b97255d95f0..7c2cd0ddfec 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Education.Classes.Item.Assignments.Item.Categories.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(EducationCategory.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs index efa8a09339a..0ae796434dc 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs @@ -28,7 +28,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref{?%40id*}", rawUrl) { } /// - /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -80,7 +80,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderDeleteQueryParameters { /// Delete Uri diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.cs index 5ae1eb75637..75b766b67c9 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.cs @@ -29,7 +29,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { } /// - /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, StringCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. + /// Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -71,7 +71,7 @@ public async Task PostAsync(ReferenceCreate body, Action - /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -97,7 +97,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. + /// Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -131,7 +131,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/EducationAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/EducationAssignmentItemRequestBuilder.cs index 4ec2a215161..8fdc743db5c 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/EducationAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/EducationAssignmentItemRequestBuilder.cs @@ -64,7 +64,7 @@ public EducationAssignmentItemRequestBuilder(Dictionary pathPara public EducationAssignmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an existing assignment. Only teachers within a class can delete assignments. + /// Delete an existing assignment. Only teachers within a class can delete assignments. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task DeleteAsync(Action - /// Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. + /// Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -104,7 +104,7 @@ public async Task GetAsync(Action(requestInfo, EducationAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update an educationAssignment object. Only teachers can perform this action. Alternatively, request to change the status of an assignment with publish action. Don't use a PATCH operation for this purpose. + /// Update an educationAssignment object. Only teachers can perform this action. Alternatively, request to change the status of an assignment with publish action. Don't use a PATCH operation for this purpose. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -126,7 +126,7 @@ public async Task PatchAsync(EducationAssignment body, Acti return await RequestAdapter.SendAsync(requestInfo, EducationAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an existing assignment. Only teachers within a class can delete assignments. + /// Delete an existing assignment. Only teachers within a class can delete assignments. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -150,7 +150,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. + /// Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -176,7 +176,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update an educationAssignment object. Only teachers can perform this action. Alternatively, request to change the status of an assignment with publish action. Don't use a PATCH operation for this purpose. + /// Update an educationAssignment object. Only teachers can perform this action. Alternatively, request to change the status of an assignment with publish action. Don't use a PATCH operation for this purpose. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -227,7 +227,7 @@ public EducationAssignmentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. + /// Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. This API is supported in the following national cloud deployments. /// public class EducationAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Publish/PublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Publish/PublishRequestBuilder.cs index 8e91cbd5c65..38ec4103363 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Publish/PublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Publish/PublishRequestBuilder.cs @@ -29,7 +29,7 @@ public PublishRequestBuilder(Dictionary pathParameters, IRequest public PublishRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/publish", rawUrl) { } /// - /// Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. + /// Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, EducationAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. + /// Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.cs index faab72da31b..1f5c2023b42 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.cs @@ -29,7 +29,7 @@ public EducationAssignmentResourceItemRequestBuilder(Dictionary public EducationAssignmentResourceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/resources/{educationAssignmentResource%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a specific educationAssignmentResource attached to an assignment. In general, only teachers in the class can remove a resource. However, teachers cannot remove resources marked as 'distributeToStudents', after the assignment has been published to students. + /// Delete a specific educationAssignmentResource attached to an assignment. In general, only teachers in the class can remove a resource. However, teachers cannot remove resources marked as 'distributeToStudents', after the assignment has been published to students. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(EducationAssignmentRes return await RequestAdapter.SendAsync(requestInfo, EducationAssignmentResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a specific educationAssignmentResource attached to an assignment. In general, only teachers in the class can remove a resource. However, teachers cannot remove resources marked as 'distributeToStudents', after the assignment has been published to students. + /// Delete a specific educationAssignmentResource attached to an assignment. In general, only teachers in the class can remove a resource. However, teachers cannot remove resources marked as 'distributeToStudents', after the assignment has been published to students. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public EducationAssignmentResourceItemRequestBuilderDeleteRequestConfiguration() } } /// - /// Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// public class EducationAssignmentResourceItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Resources/ResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Resources/ResourcesRequestBuilder.cs index 05fab952678..e97129f7058 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Resources/ResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Resources/ResourcesRequestBuilder.cs @@ -42,7 +42,7 @@ public ResourcesRequestBuilder(Dictionary pathParameters, IReque public ResourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/resources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action return await RequestAdapter.SendAsync(requestInfo, EducationAssignmentResourceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an assignment resource. Only teachers can perform this operation. You can create the following types of assignment resources: Every resource has an @odata.type property to indicate which type of resource is being created. + /// Create an assignment resource. Only teachers can perform this operation. You can create the following types of assignment resources: Every resource has an @odata.type property to indicate which type of resource is being created. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(EducationAssignmentReso return await RequestAdapter.SendAsync(requestInfo, EducationAssignmentResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an assignment resource. Only teachers can perform this operation. You can create the following types of assignment resources: Every resource has an @odata.type property to indicate which type of resource is being created. + /// Create an assignment resource. Only teachers can perform this operation. You can create the following types of assignment resources: Every resource has an @odata.type property to indicate which type of resource is being created. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ResourcesRequestBuilder WithUrl(string rawUrl) { return new ResourcesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// public class ResourcesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Rubric/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Rubric/Ref/RefRequestBuilder.cs index 4efbad4c976..2fd33941d20 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Rubric/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Rubric/Ref/RefRequestBuilder.cs @@ -29,7 +29,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/rubric/$ref", rawUrl) { } /// - /// Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + /// Remove an educationRubric from an educationAssignment. This method doesn't delete the rubric itself and can only be performed by teachers. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + /// Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. + /// Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PutAsync(ReferenceUpdate body, Action - /// Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + /// Remove an educationRubric from an educationAssignment. This method doesn't delete the rubric itself and can only be performed by teachers. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + /// Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. + /// Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Rubric/RubricRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Rubric/RubricRequestBuilder.cs index a4d087cc6d6..acf91361d8a 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Rubric/RubricRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Rubric/RubricRequestBuilder.cs @@ -34,7 +34,7 @@ public RubricRequestBuilder(Dictionary pathParameters, IRequestA public RubricRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/rubric{?%24select,%24expand}", rawUrl) { } /// - /// Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + /// Remove an educationRubric from an educationAssignment. This method doesn't delete the rubric itself and can only be performed by teachers. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + /// Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, EducationRubric.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. + /// Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(EducationRubric body, Action(requestInfo, EducationRubric.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + /// Remove an educationRubric from an educationAssignment. This method doesn't delete the rubric itself and can only be performed by teachers. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + /// Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. + /// Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public RubricRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + /// Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// public class RubricRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.cs index f5d09516d52..e7845f83f2d 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.cs @@ -29,7 +29,7 @@ public SetUpFeedbackResourcesFolderRequestBuilder(Dictionary pat public SetUpFeedbackResourcesFolderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/setUpFeedbackResourcesFolder", rawUrl) { } /// - /// Create a SharePoint folder to upload feedback files for a given educationSubmission. Only teachers can perform this operation. The teacher determines the resources to upload in the feedback resources folder of a submission. + /// Create a SharePoint folder to upload feedback files for a given educationSubmission. Only teachers can perform this operation. The teacher determines the resources to upload in the feedback resources folder of a submission. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, EducationAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a SharePoint folder to upload feedback files for a given educationSubmission. Only teachers can perform this operation. The teacher determines the resources to upload in the feedback resources folder of a submission. + /// Create a SharePoint folder to upload feedback files for a given educationSubmission. Only teachers can perform this operation. The teacher determines the resources to upload in the feedback resources folder of a submission. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs index 181e4bb3e31..3dbac6a9fc9 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs @@ -29,7 +29,7 @@ public SetUpResourcesFolderRequestBuilder(Dictionary pathParamet public SetUpResourcesFolderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/setUpResourcesFolder", rawUrl) { } /// - /// Create a SharePoint folder to upload files for a given educationAssignment. Only teachers can perform this operation. The teacher determines the resources to upload in the assignment's folder. + /// Create a SharePoint folder to upload files for a given educationAssignment. Only teachers can perform this operation. The teacher determines the resources to upload in the assignment's folder. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, EducationAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a SharePoint folder to upload files for a given educationAssignment. Only teachers can perform this operation. The teacher determines the resources to upload in the assignment's folder. + /// Create a SharePoint folder to upload files for a given educationAssignment. Only teachers can perform this operation. The teacher determines the resources to upload in the assignment's folder. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs index d39680c28e4..1c929432619 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs @@ -88,7 +88,7 @@ public async Task DeleteAsync(Action - /// Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. + /// Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -153,7 +153,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. + /// Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -230,7 +230,7 @@ public EducationSubmissionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. + /// Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. This API is supported in the following national cloud deployments. /// public class EducationSubmissionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.cs index 4fa1c893086..04273b3f2d8 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.cs @@ -29,7 +29,7 @@ public EducationOutcomeItemRequestBuilder(Dictionary pathParamet public EducationOutcomeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes/{educationOutcome%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a feedback resource from a submission. This can only be done by a teacher. + /// Delete a feedback resource from a submission. This can only be done by a teacher. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, EducationOutcome.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an educationOutcome object. Only teachers can perform this operation. + /// Update the properties of an educationOutcome object. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -90,7 +90,7 @@ public async Task PatchAsync(EducationOutcome body, Action(requestInfo, EducationOutcome.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a feedback resource from a submission. This can only be done by a teacher. + /// Delete a feedback resource from a submission. This can only be done by a teacher. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an educationOutcome object. Only teachers can perform this operation. + /// Update the properties of an educationOutcome object. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs index 49ef246acf7..293eadf112b 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs @@ -42,7 +42,7 @@ public OutcomesRequestBuilder(Dictionary pathParameters, IReques public OutcomesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, EducationOutcomeCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new feedback resource for a submission. Only a teacher can perform this operation. To create a new file-based resource, upload the file to the feedback resources folder associated with the assignment. If the file doesn't exist or isn't in that folder, the POST request will fail. + /// Create a new feedback resource for a submission. Only a teacher can perform this operation. To create a new file-based resource, upload the file to the feedback resources folder associated with the assignment. If the file doesn't exist or isn't in that folder, the POST request will fail. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(EducationOutcome body, Action(requestInfo, EducationOutcome.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new feedback resource for a submission. Only a teacher can perform this operation. To create a new file-based resource, upload the file to the feedback resources folder associated with the assignment. If the file doesn't exist or isn't in that folder, the POST request will fail. + /// Create a new feedback resource for a submission. Only a teacher can perform this operation. To create a new file-based resource, upload the file to the feedback resources folder associated with the assignment. If the file doesn't exist or isn't in that folder, the POST request will fail. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public OutcomesRequestBuilder WithUrl(string rawUrl) { return new OutcomesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. This API is supported in the following national cloud deployments. /// public class OutcomesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs index 4948ded83f1..1fd8bdbeb1b 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs @@ -29,7 +29,7 @@ public ReassignRequestBuilder(Dictionary pathParameters, IReques public ReassignRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/reassign", rawUrl) { } /// - /// Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. + /// Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, EducationSubmission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. + /// Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.cs index 67780732883..05148947221 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.cs @@ -29,7 +29,7 @@ public EducationSubmissionResourceItemRequestBuilder(Dictionary public EducationSubmissionResourceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources/{educationSubmissionResource%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource was not copied from the assignment but was added from the student, the resource is simply deleted. + /// Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource wasn't copied from the assignment but was added from the student, the resource is deleted. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. + /// Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(EducationSubmissionRes return await RequestAdapter.SendAsync(requestInfo, EducationSubmissionResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource was not copied from the assignment but was added from the student, the resource is simply deleted. + /// Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource wasn't copied from the assignment but was added from the student, the resource is deleted. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. + /// Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public EducationSubmissionResourceItemRequestBuilderDeleteRequestConfiguration() } } /// - /// Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. + /// Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. This API is supported in the following national cloud deployments. /// public class EducationSubmissionResourceItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs index ec36537aa9c..cd91ff1a312 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs @@ -42,7 +42,7 @@ public ResourcesRequestBuilder(Dictionary pathParameters, IReque public ResourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action return await RequestAdapter.SendAsync(requestInfo, EducationSubmissionResourceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add an educationSubmissionResource to a submission resource list. Only teachers and students can perform this operation. The operation will not succeed if the allowStudentsToAddResources flag is not set to true. To create a new file-based resource, upload the file to the resources folder associated with the submission. If the file doesn't exist or is not in that folder, the POST request will fail. + /// Add an educationSubmissionResource to a submission resource list. Only teachers and students can perform this operation. The operation will not succeed if the allowStudentsToAddResources flag is not set to true. To create a new file-based resource, upload the file to the resources folder associated with the submission. If the file doesn't exist or is not in that folder, the POST request will fail. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(EducationSubmissionReso return await RequestAdapter.SendAsync(requestInfo, EducationSubmissionResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add an educationSubmissionResource to a submission resource list. Only teachers and students can perform this operation. The operation will not succeed if the allowStudentsToAddResources flag is not set to true. To create a new file-based resource, upload the file to the resources folder associated with the submission. If the file doesn't exist or is not in that folder, the POST request will fail. + /// Add an educationSubmissionResource to a submission resource list. Only teachers and students can perform this operation. The operation will not succeed if the allowStudentsToAddResources flag is not set to true. To create a new file-based resource, upload the file to the resources folder associated with the submission. If the file doesn't exist or is not in that folder, the POST request will fail. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ResourcesRequestBuilder WithUrl(string rawUrl) { return new ResourcesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. This API is supported in the following national cloud deployments. /// public class ResourcesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.cs index 6df231b04da..9079a8ac39b 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.cs @@ -29,7 +29,7 @@ public ReturnRequestBuilder(Dictionary pathParameters, IRequestA public ReturnRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/return", rawUrl) { } /// - /// Make the grade and feedback associated with this submission available to the student. This action changes the status of the submission from 'submitted' to 'returned' and indicates that feedback is provided or grading is done. This action can only be done by the teacher. + /// Make the grade and feedback associated with this submission available to the student. This action changes the status of the submission from 'submitted' to 'returned' and indicates that feedback is provided or grading is done. This action can only be done by the teacher. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, EducationSubmission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Make the grade and feedback associated with this submission available to the student. This action changes the status of the submission from 'submitted' to 'returned' and indicates that feedback is provided or grading is done. This action can only be done by the teacher. + /// Make the grade and feedback associated with this submission available to the student. This action changes the status of the submission from 'submitted' to 'returned' and indicates that feedback is provided or grading is done. This action can only be done by the teacher. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs index 4d69d542cd5..a3c84c0fd7c 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs @@ -29,7 +29,7 @@ public SetUpResourcesFolderRequestBuilder(Dictionary pathParamet public SetUpResourcesFolderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/setUpResourcesFolder", rawUrl) { } /// - /// Trigger the creation of the SharePoint resource folder where all file-based resources (Word, Excel, and so on) should be uploaded for a given submission. Only teachers and students can perform this operation. Note that files must be located in this folder in order to be added as resources. Only a student in the class can determine what files to upload in a given submission-level resource folder. + /// Trigger the creation of the SharePoint resource folder where all file-based resources (Word, Excel, and so on) should be uploaded for a given submission. Only teachers and students can perform this operation. Note that files must be located in this folder in order to be added as resources. Only a student in the class can determine what files to upload in a given submission-level resource folder. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, EducationSubmission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Trigger the creation of the SharePoint resource folder where all file-based resources (Word, Excel, and so on) should be uploaded for a given submission. Only teachers and students can perform this operation. Note that files must be located in this folder in order to be added as resources. Only a student in the class can determine what files to upload in a given submission-level resource folder. + /// Trigger the creation of the SharePoint resource folder where all file-based resources (Word, Excel, and so on) should be uploaded for a given submission. Only teachers and students can perform this operation. Note that files must be located in this folder in order to be added as resources. Only a student in the class can determine what files to upload in a given submission-level resource folder. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.cs index cd53d147d8e..d5e55466105 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.cs @@ -29,7 +29,7 @@ public SubmitRequestBuilder(Dictionary pathParameters, IRequestA public SubmitRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submit", rawUrl) { } /// - /// Indicate that a student is done with the work and is ready to hand in the assignment. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from working to submitted. During the submit process, all the resources are copied to the submittedResources bucket. The teacher will be looking at the submitted resources list for grading. A teacher can also submit a student's assignment on their behalf. + /// Indicate that a student is done with the work and is ready to hand in the assignment. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from working to submitted. During the submit process, all the resources are copied to the submittedResources bucket. The teacher will be looking at the submitted resources list for grading. A teacher can also submit a student's assignment on their behalf. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, EducationSubmission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Indicate that a student is done with the work and is ready to hand in the assignment. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from working to submitted. During the submit process, all the resources are copied to the submittedResources bucket. The teacher will be looking at the submitted resources list for grading. A teacher can also submit a student's assignment on their behalf. + /// Indicate that a student is done with the work and is ready to hand in the assignment. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from working to submitted. During the submit process, all the resources are copied to the submittedResources bucket. The teacher will be looking at the submitted resources list for grading. A teacher can also submit a student's assignment on their behalf. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.cs index f4648ab1cdc..fc11aebf1d4 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Note that teachers can leave notes in some resources. + /// Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Teachers can leave notes in some resources. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Note that teachers can leave notes in some resources. + /// Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Teachers can leave notes in some resources. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public EducationSubmissionResourceItemRequestBuilderDeleteRequestConfiguration() } } /// - /// Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Note that teachers can leave notes in some resources. + /// Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Teachers can leave notes in some resources. This API is supported in the following national cloud deployments. /// public class EducationSubmissionResourceItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs index 86d9285a7fb..61bb2c2ec8a 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs @@ -42,7 +42,7 @@ public SubmittedResourcesRequestBuilder(Dictionary pathParameter public SubmittedResourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + /// List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(EducationSubmissionReso return await RequestAdapter.SendAsync(requestInfo, EducationSubmissionResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + /// List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SubmittedResourcesRequestBuilder WithUrl(string rawUrl) { return new SubmittedResourcesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + /// List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. This API is supported in the following national cloud deployments. /// public class SubmittedResourcesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.cs index d86032d4ba4..55bd2f9b954 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.cs @@ -29,7 +29,7 @@ public UnsubmitRequestBuilder(Dictionary pathParameters, IReques public UnsubmitRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/unsubmit", rawUrl) { } /// - /// Indicate that a student wants to work on the submission of the assignment after it was turned in. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from submitted to working. During the submit process, all the resources are copied from submittedResources to workingResources. The teacher will be looking at the working resources list for grading. A teacher can also unsubmit a student's assignment on their behalf. + /// Indicate that a student wants to work on the submission of the assignment after it was turned in. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from submitted to working. During the submit process, all the resources are copied from submittedResources to workingResources. The teacher will be looking at the working resources list for grading. A teacher can also unsubmit a student's assignment on their behalf. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, EducationSubmission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Indicate that a student wants to work on the submission of the assignment after it was turned in. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from submitted to working. During the submit process, all the resources are copied from submittedResources to workingResources. The teacher will be looking at the working resources list for grading. A teacher can also unsubmit a student's assignment on their behalf. + /// Indicate that a student wants to work on the submission of the assignment after it was turned in. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from submitted to working. During the submit process, all the resources are copied from submittedResources to workingResources. The teacher will be looking at the working resources list for grading. A teacher can also unsubmit a student's assignment on their behalf. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs index 23d384b04ab..33cd42e635d 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs @@ -42,7 +42,7 @@ public SubmissionsRequestBuilder(Dictionary pathParameters, IReq public SubmissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(EducationSubmission body, Actio return await RequestAdapter.SendAsync(requestInfo, EducationSubmission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SubmissionsRequestBuilder WithUrl(string rawUrl) { return new SubmissionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. This API is supported in the following national cloud deployments. /// public class SubmissionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/EducationClassItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/EducationClassItemRequestBuilder.cs index ab40de99b09..2c6f11290eb 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/EducationClassItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/EducationClassItemRequestBuilder.cs @@ -69,7 +69,7 @@ public EducationClassItemRequestBuilder(Dictionary pathParameter public EducationClassItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an educationClass. Because a class is also a universal group, deleting a class deletes the group. + /// Delete an educationClass. Because a class is also a universal group, deleting a class deletes the group. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task DeleteAsync(Action - /// Retrieve a class from the system. A class is a universal group with a special property that indicates to the system that the group is a class. Group members represent the students; group admins represent the teachers in the class. If you're using the delegated token, the user will only see classes in which they are members. + /// Retrieve a class from the system. A class is a universal group with a special property that indicates to the system that the group is a class. Group members represent the students; group admins represent the teachers in the class. If you're using the delegated token, the user will only see classes in which they are members. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -109,7 +109,7 @@ public async Task GetAsync(Action(requestInfo, EducationClass.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an educationClass object. + /// Update the properties of an educationClass object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -131,7 +131,7 @@ public async Task PatchAsync(EducationClass body, Action(requestInfo, EducationClass.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an educationClass. Because a class is also a universal group, deleting a class deletes the group. + /// Delete an educationClass. Because a class is also a universal group, deleting a class deletes the group. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -155,7 +155,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a class from the system. A class is a universal group with a special property that indicates to the system that the group is a class. Group members represent the students; group admins represent the teachers in the class. If you're using the delegated token, the user will only see classes in which they are members. + /// Retrieve a class from the system. A class is a universal group with a special property that indicates to the system that the group is a class. Group members represent the students; group admins represent the teachers in the class. If you're using the delegated token, the user will only see classes in which they are members. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -181,7 +181,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an educationClass object. + /// Update the properties of an educationClass object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -232,7 +232,7 @@ public EducationClassItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a class from the system. A class is a universal group with a special property that indicates to the system that the group is a class. Group members represent the students; group admins represent the teachers in the class. If you're using the delegated token, the user will only see classes in which they are members. + /// Retrieve a class from the system. A class is a universal group with a special property that indicates to the system that the group is a class. Group members represent the students; group admins represent the teachers in the class. If you're using the delegated token, the user will only see classes in which they are members. This API is supported in the following national cloud deployments. /// public class EducationClassItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Group/GroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Group/GroupRequestBuilder.cs index 17bceddc9b6..7f9c31c8137 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Group/GroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Group/GroupRequestBuilder.cs @@ -1,4 +1,5 @@ // +using Microsoft.Graph.Education.Classes.Item.Group.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -14,6 +15,10 @@ namespace Microsoft.Graph.Education.Classes.Item.Group { /// Provides operations to manage the group property of the microsoft.graph.educationClass entity. /// public class GroupRequestBuilder : BaseRequestBuilder { + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new GroupRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..6ad35ea0575 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Education.Classes.Item.Group.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/group/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/group/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..7d0059fe511 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Education.Classes.Item.Group.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Education.Classes.Item.Group.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \education\classes\{educationClass-id}\group\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/group/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/group/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/Item/Ref/RefRequestBuilder.cs index fa9f6541bfc..dde616c3615 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/Item/Ref/RefRequestBuilder.cs @@ -28,7 +28,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/members/{educationUser%2Did}/$ref{?%40id*}", rawUrl) { } /// - /// Remove an educationUser from an educationClass. + /// Remove an educationUser from an educationClass. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Remove an educationUser from an educationClass. + /// Remove an educationUser from an educationClass. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -80,7 +80,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove an educationUser from an educationClass. + /// Remove an educationUser from an educationClass. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderDeleteQueryParameters { /// Delete Uri diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/MembersRequestBuilder.cs index b0f6374abe6..13fa6e70529 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/MembersRequestBuilder.cs @@ -47,7 +47,7 @@ public MembersRequestBuilder(Dictionary pathParameters, IRequest public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/members{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieves the educationUser members of an educationClass. + /// Retrieves the educationUser members of an educationClass. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, EducationUserCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieves the educationUser members of an educationClass. + /// Retrieves the educationUser members of an educationClass. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -100,7 +100,7 @@ public MembersRequestBuilder WithUrl(string rawUrl) { return new MembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieves the educationUser members of an educationClass. + /// Retrieves the educationUser members of an educationClass. This API is supported in the following national cloud deployments. /// public class MembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/Ref/RefRequestBuilder.cs index 5b17b7eacc2..d992709ee4d 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/Ref/RefRequestBuilder.cs @@ -29,7 +29,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { } /// - /// Retrieves the educationUser members of an educationClass. + /// Retrieves the educationUser members of an educationClass. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, StringCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add an educationUser member to an educationClass. + /// Add an educationUser member to an educationClass. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -71,7 +71,7 @@ public async Task PostAsync(ReferenceCreate body, Action - /// Retrieves the educationUser members of an educationClass. + /// Retrieves the educationUser members of an educationClass. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -97,7 +97,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add an educationUser member to an educationClass. + /// Add an educationUser member to an educationClass. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -131,7 +131,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieves the educationUser members of an educationClass. + /// Retrieves the educationUser members of an educationClass. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Schools/SchoolsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Schools/SchoolsRequestBuilder.cs index 1123bfef693..37f21493b85 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Schools/SchoolsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Schools/SchoolsRequestBuilder.cs @@ -42,7 +42,7 @@ public SchoolsRequestBuilder(Dictionary pathParameters, IRequest public SchoolsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/schools{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of schools in which the class is taught. + /// Retrieve a list of schools in which the class is taught. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, EducationSchoolCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of schools in which the class is taught. + /// Retrieve a list of schools in which the class is taught. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public SchoolsRequestBuilder WithUrl(string rawUrl) { return new SchoolsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of schools in which the class is taught. + /// Retrieve a list of schools in which the class is taught. This API is supported in the following national cloud deployments. /// public class SchoolsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Item/Ref/RefRequestBuilder.cs index 33aa9cdd2c6..f6374654994 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Item/Ref/RefRequestBuilder.cs @@ -28,7 +28,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/teachers/{educationUser%2Did}/$ref{?%40id*}", rawUrl) { } /// - /// Remove teacher from an educationClass. + /// Remove a teacher from an educationClass. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Remove teacher from an educationClass. + /// Remove a teacher from an educationClass. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -80,7 +80,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove teacher from an educationClass. + /// Remove a teacher from an educationClass. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderDeleteQueryParameters { /// Delete Uri diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Ref/RefRequestBuilder.cs index 22646d3ceaa..abfa820f39b 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Ref/RefRequestBuilder.cs @@ -29,7 +29,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/teachers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { } /// - /// Retrieve a list teachers for a class. Delegated tokens must be members of the class to get the teacher list. + /// Retrieve a list of teachers for a class. Delegated tokens must be members of the class to get the teacher list. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, StringCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a teacher to a class. + /// Add a teacher to a class. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -71,7 +71,7 @@ public async Task PostAsync(ReferenceCreate body, Action - /// Retrieve a list teachers for a class. Delegated tokens must be members of the class to get the teacher list. + /// Retrieve a list of teachers for a class. Delegated tokens must be members of the class to get the teacher list. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -97,7 +97,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a teacher to a class. + /// Add a teacher to a class. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -131,7 +131,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list teachers for a class. Delegated tokens must be members of the class to get the teacher list. + /// Retrieve a list of teachers for a class. Delegated tokens must be members of the class to get the teacher list. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/TeachersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/TeachersRequestBuilder.cs index 635148c4aad..6b3ac4a5ad3 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/TeachersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/TeachersRequestBuilder.cs @@ -47,7 +47,7 @@ public TeachersRequestBuilder(Dictionary pathParameters, IReques public TeachersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/teachers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list teachers for a class. Delegated tokens must be members of the class to get the teacher list. + /// Retrieve a list of teachers for a class. Delegated tokens must be members of the class to get the teacher list. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, EducationUserCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list teachers for a class. Delegated tokens must be members of the class to get the teacher list. + /// Retrieve a list of teachers for a class. Delegated tokens must be members of the class to get the teacher list. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -100,7 +100,7 @@ public TeachersRequestBuilder WithUrl(string rawUrl) { return new TeachersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list teachers for a class. Delegated tokens must be members of the class to get the teacher list. + /// Retrieve a list of teachers for a class. Delegated tokens must be members of the class to get the teacher list. This API is supported in the following national cloud deployments. /// public class TeachersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/AssignmentsRequestBuilder.cs index 9bb0be7fc44..ee4d0f56491 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/AssignmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AssignmentsRequestBuilder(Dictionary pathParameters, IReq public AssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Returns a list of educationAssignment assigned to a educationUser for all classes. Only teachers, students, and applications with application permissions can perform this operation. This method allows a caller to find all the assignments belonging to a student or a teacher in a single call rather than having to request assignments from each class. The assignment list contains what is needed to get the detailed information for the assignment from within the class namespace. Use the methods defined for the assignment for all other operations. + /// Returns a list of educationAssignment assigned to a educationUser for all classes. Only teachers, students, and applications with application permissions can perform this operation. This method allows a caller to find all the assignments belonging to a student or a teacher in a single call rather than having to request assignments from each class. The assignment list contains what is needed to get the detailed information for the assignment from within the class namespace. Use the methods defined for the assignment for all other operations. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -88,7 +88,7 @@ public async Task PostAsync(EducationAssignment body, Actio return await RequestAdapter.SendAsync(requestInfo, EducationAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Returns a list of educationAssignment assigned to a educationUser for all classes. Only teachers, students, and applications with application permissions can perform this operation. This method allows a caller to find all the assignments belonging to a student or a teacher in a single call rather than having to request assignments from each class. The assignment list contains what is needed to get the detailed information for the assignment from within the class namespace. Use the methods defined for the assignment for all other operations. + /// Returns a list of educationAssignment assigned to a educationUser for all classes. Only teachers, students, and applications with application permissions can perform this operation. This method allows a caller to find all the assignments belonging to a student or a teacher in a single call rather than having to request assignments from each class. The assignment list contains what is needed to get the detailed information for the assignment from within the class namespace. Use the methods defined for the assignment for all other operations. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -149,7 +149,7 @@ public AssignmentsRequestBuilder WithUrl(string rawUrl) { return new AssignmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Returns a list of educationAssignment assigned to a educationUser for all classes. Only teachers, students, and applications with application permissions can perform this operation. This method allows a caller to find all the assignments belonging to a student or a teacher in a single call rather than having to request assignments from each class. The assignment list contains what is needed to get the detailed information for the assignment from within the class namespace. Use the methods defined for the assignment for all other operations. + /// Returns a list of educationAssignment assigned to a educationUser for all classes. Only teachers, students, and applications with application permissions can perform this operation. This method allows a caller to find all the assignments belonging to a student or a teacher in a single call rather than having to request assignments from each class. The assignment list contains what is needed to get the detailed information for the assignment from within the class namespace. Use the methods defined for the assignment for all other operations. This API is supported in the following national cloud deployments. /// public class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..a87850261ba --- /dev/null +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Education.Me.Assignments.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(EducationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Delta/DeltaRequestBuilder.cs index 8bc7be6a9cc..6a5d7a75e18 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Delta/DeltaResponse.cs index f7737b9abc7..bdd0701cbe3 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Education.Me.Assignments.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(EducationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/CategoriesRequestBuilder.cs index 990ce79e2d4..4bf68217d8e 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/CategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/CategoriesRequestBuilder.cs @@ -52,7 +52,7 @@ public CategoriesRequestBuilder(Dictionary pathParameters, IRequ public CategoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -72,7 +72,7 @@ public async Task GetAsync(Action(requestInfo, EducationCategoryCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. + /// Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -94,7 +94,7 @@ public async Task PostAsync(EducationCategory body, Action(requestInfo, EducationCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. + /// Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -155,7 +155,7 @@ public CategoriesRequestBuilder WithUrl(string rawUrl) { return new CategoriesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// public class CategoriesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..debc1fbe165 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Education.Me.Assignments.Item.Categories.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(EducationCategory.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Delta/DeltaRequestBuilder.cs index 0ebb822f798..d6a6ef186c6 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Delta/DeltaResponse.cs index 1d8c133fb51..96e4bf1898e 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Education.Me.Assignments.Item.Categories.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(EducationCategory.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs index 5da3667c99f..5a8f79a6c9a 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs @@ -28,7 +28,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref{?%40id*}", rawUrl) { } /// - /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -80,7 +80,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderDeleteQueryParameters { /// Delete Uri diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Ref/RefRequestBuilder.cs index 07a4435ed46..508b192fa11 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Ref/RefRequestBuilder.cs @@ -29,7 +29,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { } /// - /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, StringCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. + /// Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -71,7 +71,7 @@ public async Task PostAsync(ReferenceCreate body, Action - /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -97,7 +97,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. + /// Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -131,7 +131,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Publish/PublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Publish/PublishRequestBuilder.cs index 86ce64b2032..ea93ab41626 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Publish/PublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Publish/PublishRequestBuilder.cs @@ -29,7 +29,7 @@ public PublishRequestBuilder(Dictionary pathParameters, IRequest public PublishRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/publish", rawUrl) { } /// - /// Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. + /// Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, EducationAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. + /// Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.cs index a3f0f52615b..730170dc8ce 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.cs @@ -29,7 +29,7 @@ public EducationAssignmentResourceItemRequestBuilder(Dictionary public EducationAssignmentResourceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/resources/{educationAssignmentResource%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a specific educationAssignmentResource attached to an assignment. In general, only teachers in the class can remove a resource. However, teachers cannot remove resources marked as 'distributeToStudents', after the assignment has been published to students. + /// Delete a specific educationAssignmentResource attached to an assignment. In general, only teachers in the class can remove a resource. However, teachers cannot remove resources marked as 'distributeToStudents', after the assignment has been published to students. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(EducationAssignmentRes return await RequestAdapter.SendAsync(requestInfo, EducationAssignmentResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a specific educationAssignmentResource attached to an assignment. In general, only teachers in the class can remove a resource. However, teachers cannot remove resources marked as 'distributeToStudents', after the assignment has been published to students. + /// Delete a specific educationAssignmentResource attached to an assignment. In general, only teachers in the class can remove a resource. However, teachers cannot remove resources marked as 'distributeToStudents', after the assignment has been published to students. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public EducationAssignmentResourceItemRequestBuilderDeleteRequestConfiguration() } } /// - /// Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// public class EducationAssignmentResourceItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Resources/ResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Resources/ResourcesRequestBuilder.cs index 165b3d0c39e..cd6b7ba5177 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Resources/ResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Resources/ResourcesRequestBuilder.cs @@ -42,7 +42,7 @@ public ResourcesRequestBuilder(Dictionary pathParameters, IReque public ResourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/resources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action return await RequestAdapter.SendAsync(requestInfo, EducationAssignmentResourceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an assignment resource. Only teachers can perform this operation. You can create the following types of assignment resources: Every resource has an @odata.type property to indicate which type of resource is being created. + /// Create an assignment resource. Only teachers can perform this operation. You can create the following types of assignment resources: Every resource has an @odata.type property to indicate which type of resource is being created. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(EducationAssignmentReso return await RequestAdapter.SendAsync(requestInfo, EducationAssignmentResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an assignment resource. Only teachers can perform this operation. You can create the following types of assignment resources: Every resource has an @odata.type property to indicate which type of resource is being created. + /// Create an assignment resource. Only teachers can perform this operation. You can create the following types of assignment resources: Every resource has an @odata.type property to indicate which type of resource is being created. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ResourcesRequestBuilder WithUrl(string rawUrl) { return new ResourcesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// public class ResourcesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Rubric/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Rubric/Ref/RefRequestBuilder.cs index 0c0fb869ba6..045c6e8e2f1 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Rubric/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Rubric/Ref/RefRequestBuilder.cs @@ -29,7 +29,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/rubric/$ref", rawUrl) { } /// - /// Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + /// Remove an educationRubric from an educationAssignment. This method doesn't delete the rubric itself and can only be performed by teachers. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + /// Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. + /// Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PutAsync(ReferenceUpdate body, Action - /// Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + /// Remove an educationRubric from an educationAssignment. This method doesn't delete the rubric itself and can only be performed by teachers. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + /// Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. + /// Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Rubric/RubricRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Rubric/RubricRequestBuilder.cs index b25079823c8..f03f3afab33 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Rubric/RubricRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Rubric/RubricRequestBuilder.cs @@ -34,7 +34,7 @@ public RubricRequestBuilder(Dictionary pathParameters, IRequestA public RubricRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/rubric{?%24select,%24expand}", rawUrl) { } /// - /// Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + /// Remove an educationRubric from an educationAssignment. This method doesn't delete the rubric itself and can only be performed by teachers. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + /// Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, EducationRubric.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. + /// Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(EducationRubric body, Action(requestInfo, EducationRubric.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + /// Remove an educationRubric from an educationAssignment. This method doesn't delete the rubric itself and can only be performed by teachers. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + /// Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. + /// Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public RubricRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + /// Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// public class RubricRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.cs index 1c5827d811f..d99851fe0be 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.cs @@ -29,7 +29,7 @@ public SetUpFeedbackResourcesFolderRequestBuilder(Dictionary pat public SetUpFeedbackResourcesFolderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/setUpFeedbackResourcesFolder", rawUrl) { } /// - /// Create a SharePoint folder to upload feedback files for a given educationSubmission. Only teachers can perform this operation. The teacher determines the resources to upload in the feedback resources folder of a submission. + /// Create a SharePoint folder to upload feedback files for a given educationSubmission. Only teachers can perform this operation. The teacher determines the resources to upload in the feedback resources folder of a submission. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, EducationAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a SharePoint folder to upload feedback files for a given educationSubmission. Only teachers can perform this operation. The teacher determines the resources to upload in the feedback resources folder of a submission. + /// Create a SharePoint folder to upload feedback files for a given educationSubmission. Only teachers can perform this operation. The teacher determines the resources to upload in the feedback resources folder of a submission. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs index 73c6f6ae199..ae8d2ab27d1 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs @@ -29,7 +29,7 @@ public SetUpResourcesFolderRequestBuilder(Dictionary pathParamet public SetUpResourcesFolderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/setUpResourcesFolder", rawUrl) { } /// - /// Create a SharePoint folder to upload files for a given educationAssignment. Only teachers can perform this operation. The teacher determines the resources to upload in the assignment's folder. + /// Create a SharePoint folder to upload files for a given educationAssignment. Only teachers can perform this operation. The teacher determines the resources to upload in the assignment's folder. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, EducationAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a SharePoint folder to upload files for a given educationAssignment. Only teachers can perform this operation. The teacher determines the resources to upload in the assignment's folder. + /// Create a SharePoint folder to upload files for a given educationAssignment. Only teachers can perform this operation. The teacher determines the resources to upload in the assignment's folder. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs index 98ba812b61c..e7aade4fe13 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs @@ -88,7 +88,7 @@ public async Task DeleteAsync(Action - /// Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. + /// Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -153,7 +153,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. + /// Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -230,7 +230,7 @@ public EducationSubmissionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. + /// Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. This API is supported in the following national cloud deployments. /// public class EducationSubmissionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.cs index dcc46220f2f..63ed20f08cd 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.cs @@ -29,7 +29,7 @@ public EducationOutcomeItemRequestBuilder(Dictionary pathParamet public EducationOutcomeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes/{educationOutcome%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a feedback resource from a submission. This can only be done by a teacher. + /// Delete a feedback resource from a submission. This can only be done by a teacher. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, EducationOutcome.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an educationOutcome object. Only teachers can perform this operation. + /// Update the properties of an educationOutcome object. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -90,7 +90,7 @@ public async Task PatchAsync(EducationOutcome body, Action(requestInfo, EducationOutcome.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a feedback resource from a submission. This can only be done by a teacher. + /// Delete a feedback resource from a submission. This can only be done by a teacher. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an educationOutcome object. Only teachers can perform this operation. + /// Update the properties of an educationOutcome object. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs index 6c7d1c66a38..8d9898349d7 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs @@ -42,7 +42,7 @@ public OutcomesRequestBuilder(Dictionary pathParameters, IReques public OutcomesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, EducationOutcomeCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new feedback resource for a submission. Only a teacher can perform this operation. To create a new file-based resource, upload the file to the feedback resources folder associated with the assignment. If the file doesn't exist or isn't in that folder, the POST request will fail. + /// Create a new feedback resource for a submission. Only a teacher can perform this operation. To create a new file-based resource, upload the file to the feedback resources folder associated with the assignment. If the file doesn't exist or isn't in that folder, the POST request will fail. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(EducationOutcome body, Action(requestInfo, EducationOutcome.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new feedback resource for a submission. Only a teacher can perform this operation. To create a new file-based resource, upload the file to the feedback resources folder associated with the assignment. If the file doesn't exist or isn't in that folder, the POST request will fail. + /// Create a new feedback resource for a submission. Only a teacher can perform this operation. To create a new file-based resource, upload the file to the feedback resources folder associated with the assignment. If the file doesn't exist or isn't in that folder, the POST request will fail. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public OutcomesRequestBuilder WithUrl(string rawUrl) { return new OutcomesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. This API is supported in the following national cloud deployments. /// public class OutcomesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs index 0b86a352c8e..e958e03fd0b 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs @@ -29,7 +29,7 @@ public ReassignRequestBuilder(Dictionary pathParameters, IReques public ReassignRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/reassign", rawUrl) { } /// - /// Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. + /// Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, EducationSubmission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. + /// Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.cs index cda8344a6f8..3dcbbf6a494 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.cs @@ -29,7 +29,7 @@ public EducationSubmissionResourceItemRequestBuilder(Dictionary public EducationSubmissionResourceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources/{educationSubmissionResource%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource was not copied from the assignment but was added from the student, the resource is simply deleted. + /// Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource wasn't copied from the assignment but was added from the student, the resource is deleted. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. + /// Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(EducationSubmissionRes return await RequestAdapter.SendAsync(requestInfo, EducationSubmissionResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource was not copied from the assignment but was added from the student, the resource is simply deleted. + /// Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource wasn't copied from the assignment but was added from the student, the resource is deleted. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. + /// Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public EducationSubmissionResourceItemRequestBuilderDeleteRequestConfiguration() } } /// - /// Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. + /// Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. This API is supported in the following national cloud deployments. /// public class EducationSubmissionResourceItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs index c6c263ea874..bb0e4ede3a7 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs @@ -42,7 +42,7 @@ public ResourcesRequestBuilder(Dictionary pathParameters, IReque public ResourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action return await RequestAdapter.SendAsync(requestInfo, EducationSubmissionResourceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add an educationSubmissionResource to a submission resource list. Only teachers and students can perform this operation. The operation will not succeed if the allowStudentsToAddResources flag is not set to true. To create a new file-based resource, upload the file to the resources folder associated with the submission. If the file doesn't exist or is not in that folder, the POST request will fail. + /// Add an educationSubmissionResource to a submission resource list. Only teachers and students can perform this operation. The operation will not succeed if the allowStudentsToAddResources flag is not set to true. To create a new file-based resource, upload the file to the resources folder associated with the submission. If the file doesn't exist or is not in that folder, the POST request will fail. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(EducationSubmissionReso return await RequestAdapter.SendAsync(requestInfo, EducationSubmissionResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add an educationSubmissionResource to a submission resource list. Only teachers and students can perform this operation. The operation will not succeed if the allowStudentsToAddResources flag is not set to true. To create a new file-based resource, upload the file to the resources folder associated with the submission. If the file doesn't exist or is not in that folder, the POST request will fail. + /// Add an educationSubmissionResource to a submission resource list. Only teachers and students can perform this operation. The operation will not succeed if the allowStudentsToAddResources flag is not set to true. To create a new file-based resource, upload the file to the resources folder associated with the submission. If the file doesn't exist or is not in that folder, the POST request will fail. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ResourcesRequestBuilder WithUrl(string rawUrl) { return new ResourcesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. This API is supported in the following national cloud deployments. /// public class ResourcesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.cs index b1a3f0d7fcc..dcbc2e21e63 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.cs @@ -29,7 +29,7 @@ public ReturnRequestBuilder(Dictionary pathParameters, IRequestA public ReturnRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/return", rawUrl) { } /// - /// Make the grade and feedback associated with this submission available to the student. This action changes the status of the submission from 'submitted' to 'returned' and indicates that feedback is provided or grading is done. This action can only be done by the teacher. + /// Make the grade and feedback associated with this submission available to the student. This action changes the status of the submission from 'submitted' to 'returned' and indicates that feedback is provided or grading is done. This action can only be done by the teacher. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, EducationSubmission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Make the grade and feedback associated with this submission available to the student. This action changes the status of the submission from 'submitted' to 'returned' and indicates that feedback is provided or grading is done. This action can only be done by the teacher. + /// Make the grade and feedback associated with this submission available to the student. This action changes the status of the submission from 'submitted' to 'returned' and indicates that feedback is provided or grading is done. This action can only be done by the teacher. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs index 2a42eee3c1a..924215c2286 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs @@ -29,7 +29,7 @@ public SetUpResourcesFolderRequestBuilder(Dictionary pathParamet public SetUpResourcesFolderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/setUpResourcesFolder", rawUrl) { } /// - /// Trigger the creation of the SharePoint resource folder where all file-based resources (Word, Excel, and so on) should be uploaded for a given submission. Only teachers and students can perform this operation. Note that files must be located in this folder in order to be added as resources. Only a student in the class can determine what files to upload in a given submission-level resource folder. + /// Trigger the creation of the SharePoint resource folder where all file-based resources (Word, Excel, and so on) should be uploaded for a given submission. Only teachers and students can perform this operation. Note that files must be located in this folder in order to be added as resources. Only a student in the class can determine what files to upload in a given submission-level resource folder. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, EducationSubmission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Trigger the creation of the SharePoint resource folder where all file-based resources (Word, Excel, and so on) should be uploaded for a given submission. Only teachers and students can perform this operation. Note that files must be located in this folder in order to be added as resources. Only a student in the class can determine what files to upload in a given submission-level resource folder. + /// Trigger the creation of the SharePoint resource folder where all file-based resources (Word, Excel, and so on) should be uploaded for a given submission. Only teachers and students can perform this operation. Note that files must be located in this folder in order to be added as resources. Only a student in the class can determine what files to upload in a given submission-level resource folder. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.cs index 9b95757f5c9..8e18ecad2a5 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.cs @@ -29,7 +29,7 @@ public SubmitRequestBuilder(Dictionary pathParameters, IRequestA public SubmitRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submit", rawUrl) { } /// - /// Indicate that a student is done with the work and is ready to hand in the assignment. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from working to submitted. During the submit process, all the resources are copied to the submittedResources bucket. The teacher will be looking at the submitted resources list for grading. A teacher can also submit a student's assignment on their behalf. + /// Indicate that a student is done with the work and is ready to hand in the assignment. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from working to submitted. During the submit process, all the resources are copied to the submittedResources bucket. The teacher will be looking at the submitted resources list for grading. A teacher can also submit a student's assignment on their behalf. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, EducationSubmission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Indicate that a student is done with the work and is ready to hand in the assignment. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from working to submitted. During the submit process, all the resources are copied to the submittedResources bucket. The teacher will be looking at the submitted resources list for grading. A teacher can also submit a student's assignment on their behalf. + /// Indicate that a student is done with the work and is ready to hand in the assignment. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from working to submitted. During the submit process, all the resources are copied to the submittedResources bucket. The teacher will be looking at the submitted resources list for grading. A teacher can also submit a student's assignment on their behalf. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.cs index 3558720bf98..dc5582953c8 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Note that teachers can leave notes in some resources. + /// Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Teachers can leave notes in some resources. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Note that teachers can leave notes in some resources. + /// Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Teachers can leave notes in some resources. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public EducationSubmissionResourceItemRequestBuilderDeleteRequestConfiguration() } } /// - /// Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Note that teachers can leave notes in some resources. + /// Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Teachers can leave notes in some resources. This API is supported in the following national cloud deployments. /// public class EducationSubmissionResourceItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs index f18c6ac89a7..057bcfdd360 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs @@ -42,7 +42,7 @@ public SubmittedResourcesRequestBuilder(Dictionary pathParameter public SubmittedResourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + /// List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(EducationSubmissionReso return await RequestAdapter.SendAsync(requestInfo, EducationSubmissionResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + /// List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SubmittedResourcesRequestBuilder WithUrl(string rawUrl) { return new SubmittedResourcesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + /// List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. This API is supported in the following national cloud deployments. /// public class SubmittedResourcesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.cs index ada245b5f56..ac3685e788c 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.cs @@ -29,7 +29,7 @@ public UnsubmitRequestBuilder(Dictionary pathParameters, IReques public UnsubmitRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/unsubmit", rawUrl) { } /// - /// Indicate that a student wants to work on the submission of the assignment after it was turned in. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from submitted to working. During the submit process, all the resources are copied from submittedResources to workingResources. The teacher will be looking at the working resources list for grading. A teacher can also unsubmit a student's assignment on their behalf. + /// Indicate that a student wants to work on the submission of the assignment after it was turned in. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from submitted to working. During the submit process, all the resources are copied from submittedResources to workingResources. The teacher will be looking at the working resources list for grading. A teacher can also unsubmit a student's assignment on their behalf. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, EducationSubmission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Indicate that a student wants to work on the submission of the assignment after it was turned in. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from submitted to working. During the submit process, all the resources are copied from submittedResources to workingResources. The teacher will be looking at the working resources list for grading. A teacher can also unsubmit a student's assignment on their behalf. + /// Indicate that a student wants to work on the submission of the assignment after it was turned in. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from submitted to working. During the submit process, all the resources are copied from submittedResources to workingResources. The teacher will be looking at the working resources list for grading. A teacher can also unsubmit a student's assignment on their behalf. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs index 81d9f0afd6a..b8ef05c5d27 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs @@ -42,7 +42,7 @@ public SubmissionsRequestBuilder(Dictionary pathParameters, IReq public SubmissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(EducationSubmission body, Actio return await RequestAdapter.SendAsync(requestInfo, EducationSubmission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SubmissionsRequestBuilder WithUrl(string rawUrl) { return new SubmissionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. This API is supported in the following national cloud deployments. /// public class SubmissionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Me/Classes/ClassesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Classes/ClassesRequestBuilder.cs index 1a3ce9a5826..a2d7129e3ef 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Classes/ClassesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Classes/ClassesRequestBuilder.cs @@ -42,7 +42,7 @@ public ClassesRequestBuilder(Dictionary pathParameters, IRequest public ClassesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/classes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the educationClass resources an educationUser is a member of. + /// Get the educationClass resources an educationUser is a member of. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, EducationClassCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the educationClass resources an educationUser is a member of. + /// Get the educationClass resources an educationUser is a member of. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public ClassesRequestBuilder WithUrl(string rawUrl) { return new ClassesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the educationClass resources an educationUser is a member of. + /// Get the educationClass resources an educationUser is a member of. This API is supported in the following national cloud deployments. /// public class ClassesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Me/Rubrics/Item/EducationRubricItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Rubrics/Item/EducationRubricItemRequestBuilder.cs index 70c5b1489d0..108c0d88364 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Rubrics/Item/EducationRubricItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Rubrics/Item/EducationRubricItemRequestBuilder.cs @@ -29,7 +29,7 @@ public EducationRubricItemRequestBuilder(Dictionary pathParamete public EducationRubricItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/rubrics/{educationRubric%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an educationRubric object. Only teachers can perform this operation. + /// Delete an educationRubric object. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of an educationRubric object. Only teachers and students can perform this operation. + /// Retrieve the properties and relationships of an educationRubric object. Only teachers and students can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, EducationRubric.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/acdefc6b-2dc6-4e71-b1e9-6d9810ab1793/assignments/cf6005fc-9e13-44a2-a6ac-a53322006454/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/acdefc6b-2dc6-4e71-b1e9-6d9810ab1793/assignments/cf6005fc-9e13-44a2-a6ac-a53322006454/rubric, but it cannot be updated. + /// Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{class-id}/assignments/{assignment-id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{class-id}/assignments/{assignment-id}/rubric, but it cannot be updated. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(EducationRubric body, Action(requestInfo, EducationRubric.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an educationRubric object. Only teachers can perform this operation. + /// Delete an educationRubric object. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of an educationRubric object. Only teachers and students can perform this operation. + /// Retrieve the properties and relationships of an educationRubric object. Only teachers and students can perform this operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/acdefc6b-2dc6-4e71-b1e9-6d9810ab1793/assignments/cf6005fc-9e13-44a2-a6ac-a53322006454/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/acdefc6b-2dc6-4e71-b1e9-6d9810ab1793/assignments/cf6005fc-9e13-44a2-a6ac-a53322006454/rubric, but it cannot be updated. + /// Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{class-id}/assignments/{assignment-id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{class-id}/assignments/{assignment-id}/rubric, but it cannot be updated. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public EducationRubricItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of an educationRubric object. Only teachers and students can perform this operation. + /// Retrieve the properties and relationships of an educationRubric object. Only teachers and students can perform this operation. This API is supported in the following national cloud deployments. /// public class EducationRubricItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Education/Me/Rubrics/RubricsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Rubrics/RubricsRequestBuilder.cs index d52cd1e4d58..a0935e6352a 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Rubrics/RubricsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Rubrics/RubricsRequestBuilder.cs @@ -42,7 +42,7 @@ public RubricsRequestBuilder(Dictionary pathParameters, IRequest public RubricsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/rubrics{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of educationRubric objects. + /// Retrieve a list of educationRubric objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, EducationRubricCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new educationRubric object. + /// Create a new educationRubric object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(EducationRubric body, Action(requestInfo, EducationRubric.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of educationRubric objects. + /// Retrieve a list of educationRubric objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new educationRubric object. + /// Create a new educationRubric object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public RubricsRequestBuilder WithUrl(string rawUrl) { return new RubricsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of educationRubric objects. + /// Retrieve a list of educationRubric objects. This API is supported in the following national cloud deployments. /// public class RubricsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Me/Schools/SchoolsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Schools/SchoolsRequestBuilder.cs index 0488e76ce55..5a9b0ea61bf 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Schools/SchoolsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Schools/SchoolsRequestBuilder.cs @@ -42,7 +42,7 @@ public SchoolsRequestBuilder(Dictionary pathParameters, IRequest public SchoolsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/schools{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of schools for a user. + /// Retrieve a list of schools for a user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, EducationSchoolCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of schools for a user. + /// Retrieve a list of schools for a user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public SchoolsRequestBuilder WithUrl(string rawUrl) { return new SchoolsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of schools for a user. + /// Retrieve a list of schools for a user. This API is supported in the following national cloud deployments. /// public class SchoolsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Me/TaughtClasses/TaughtClassesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/TaughtClasses/TaughtClassesRequestBuilder.cs index 1a772f2b6b9..73317e0ee5a 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/TaughtClasses/TaughtClassesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/TaughtClasses/TaughtClassesRequestBuilder.cs @@ -42,7 +42,7 @@ public TaughtClassesRequestBuilder(Dictionary pathParameters, IR public TaughtClassesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/taughtClasses{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the educationClass resources owned by an educationUser. + /// Get the educationClass resources owned by an educationUser. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, EducationClassCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the educationClass resources owned by an educationUser. + /// Get the educationClass resources owned by an educationUser. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public TaughtClassesRequestBuilder WithUrl(string rawUrl) { return new TaughtClassesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the educationClass resources owned by an educationUser. + /// Get the educationClass resources owned by an educationUser. This API is supported in the following national cloud deployments. /// public class TaughtClassesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Me/User/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/User/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..d2e661be250 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Education/Me/User/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Education.Me.User.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/user/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/user/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Education/Me/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..a9a6b463ef3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Education/Me/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Education.Me.User.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Education.Me.User.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \education\me\user\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/user/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/user/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Education/Me/User/UserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/User/UserRequestBuilder.cs index 4a22ef0b942..326cb10f516 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/User/UserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/User/UserRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.Education.Me.User.MailboxSettings; +using Microsoft.Graph.Education.Me.User.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class UserRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new UserRequestBuilder and sets the default values. /// @@ -34,7 +39,7 @@ public UserRequestBuilder(Dictionary pathParameters, IRequestAda public UserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/user{?%24select,%24expand}", rawUrl) { } /// - /// Retrieve the simple directory user that corresponds to this educationUser. + /// Retrieve the simple directory user that corresponds to this educationUser. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +59,7 @@ public UserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the simple directory user that corresponds to this educationUser. + /// Retrieve the simple directory user that corresponds to this educationUser. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,7 +92,7 @@ public UserRequestBuilder WithUrl(string rawUrl) { return new UserRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the simple directory user that corresponds to this educationUser. + /// Retrieve the simple directory user that corresponds to this educationUser. This API is supported in the following national cloud deployments. /// public class UserRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Education/Schools/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Education/Schools/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..c2672d7f993 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Education/Schools/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Education.Schools.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(EducationSchool.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Education/Schools/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Schools/Delta/DeltaRequestBuilder.cs index 267bde2bb27..b84df705138 100644 --- a/src/Microsoft.Graph/Generated/Education/Schools/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Schools/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Education/Schools/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Education/Schools/Delta/DeltaResponse.cs index 1b642efce08..79780d71762 100644 --- a/src/Microsoft.Graph/Generated/Education/Schools/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Education/Schools/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Education.Schools.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(EducationSchool.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Education/Schools/Item/AdministrativeUnit/AdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Schools/Item/AdministrativeUnit/AdministrativeUnitRequestBuilder.cs index 039591b2bb8..53e82e5c966 100644 --- a/src/Microsoft.Graph/Generated/Education/Schools/Item/AdministrativeUnit/AdministrativeUnitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Schools/Item/AdministrativeUnit/AdministrativeUnitRequestBuilder.cs @@ -29,7 +29,7 @@ public AdministrativeUnitRequestBuilder(Dictionary pathParameter public AdministrativeUnitRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/administrativeUnit{?%24select,%24expand}", rawUrl) { } /// - /// Get a list of administrativeUnits associated with an educationSchool object. + /// Get a list of administrativeUnits associated with an educationSchool object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -70,7 +70,7 @@ public AdministrativeUnitRequestBuilder(string rawUrl, IRequestAdapter requestAd return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.AdministrativeUnit.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of administrativeUnits associated with an educationSchool object. + /// Get a list of administrativeUnits associated with an educationSchool object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -131,7 +131,7 @@ public AdministrativeUnitRequestBuilder WithUrl(string rawUrl) { return new AdministrativeUnitRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of administrativeUnits associated with an educationSchool object. + /// Get a list of administrativeUnits associated with an educationSchool object. This API is supported in the following national cloud deployments. /// public class AdministrativeUnitRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/ClassesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/ClassesRequestBuilder.cs index 081b37b9224..bc7c6e47c5b 100644 --- a/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/ClassesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/ClassesRequestBuilder.cs @@ -47,7 +47,7 @@ public ClassesRequestBuilder(Dictionary pathParameters, IRequest public ClassesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/classes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the educationClass resources owned by an educationSchool. + /// Get the educationClass resources owned by an educationSchool. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, EducationClassCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the educationClass resources owned by an educationSchool. + /// Get the educationClass resources owned by an educationSchool. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -100,7 +100,7 @@ public ClassesRequestBuilder WithUrl(string rawUrl) { return new ClassesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the educationClass resources owned by an educationSchool. + /// Get the educationClass resources owned by an educationSchool. This API is supported in the following national cloud deployments. /// public class ClassesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/Item/Ref/RefRequestBuilder.cs index 9ca20d27203..de57e84ee45 100644 --- a/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/Item/Ref/RefRequestBuilder.cs @@ -28,7 +28,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/classes/{educationClass%2Did}/$ref{?%40id*}", rawUrl) { } /// - /// Delete a class from a school. + /// Delete a class from a school. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Delete a class from a school. + /// Delete a class from a school. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -80,7 +80,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Delete a class from a school. + /// Delete a class from a school. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderDeleteQueryParameters { /// Delete Uri diff --git a/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/Ref/RefRequestBuilder.cs index 385bf47256b..0b61439f726 100644 --- a/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/Ref/RefRequestBuilder.cs @@ -29,7 +29,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/classes/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { } /// - /// Get the educationClass resources owned by an educationSchool. + /// Get the educationClass resources owned by an educationSchool. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, StringCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a class to a school. + /// Add a class to a school. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -71,7 +71,7 @@ public async Task PostAsync(ReferenceCreate body, Action - /// Get the educationClass resources owned by an educationSchool. + /// Get the educationClass resources owned by an educationSchool. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -97,7 +97,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a class to a school. + /// Add a class to a school. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -131,7 +131,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the educationClass resources owned by an educationSchool. + /// Get the educationClass resources owned by an educationSchool. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Schools/Item/EducationSchoolItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Schools/Item/EducationSchoolItemRequestBuilder.cs index 0ea76f9a2a8..f1f2b404a73 100644 --- a/src/Microsoft.Graph/Generated/Education/Schools/Item/EducationSchoolItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Schools/Item/EducationSchoolItemRequestBuilder.cs @@ -44,7 +44,7 @@ public EducationSchoolItemRequestBuilder(Dictionary pathParamete public EducationSchoolItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a school. + /// Delete a school. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -64,7 +64,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an educationSchool object. + /// Read the properties and relationships of an educationSchool object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, EducationSchool.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an educationSchool object. + /// Update the properties of an educationSchool object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -106,7 +106,7 @@ public async Task PatchAsync(EducationSchool body, Action(requestInfo, EducationSchool.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a school. + /// Delete a school. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an educationSchool object. + /// Read the properties and relationships of an educationSchool object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -156,7 +156,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an educationSchool object. + /// Update the properties of an educationSchool object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -207,7 +207,7 @@ public EducationSchoolItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of an educationSchool object. + /// Read the properties and relationships of an educationSchool object. This API is supported in the following national cloud deployments. /// public class EducationSchoolItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Item/Ref/RefRequestBuilder.cs index a9b8c7f0381..481d82b1710 100644 --- a/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Item/Ref/RefRequestBuilder.cs @@ -28,7 +28,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/users/{educationUser%2Did}/$ref{?%40id*}", rawUrl) { } /// - /// Delete a user from a school. + /// Delete a user from a school. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Delete a user from a school. + /// Delete a user from a school. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -80,7 +80,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Delete a user from a school. + /// Delete a user from a school. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderDeleteQueryParameters { /// Delete Uri diff --git a/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Ref/RefRequestBuilder.cs index b9bde41f4fd..5f45672cbd6 100644 --- a/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Ref/RefRequestBuilder.cs @@ -29,7 +29,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/users/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { } /// - /// Get the educationUser resources associated with an educationSchool. + /// Get the educationUser resources associated with an educationSchool. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, StringCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a user to a school. + /// Add a user to a school. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -71,7 +71,7 @@ public async Task PostAsync(ReferenceCreate body, Action - /// Get the educationUser resources associated with an educationSchool. + /// Get the educationUser resources associated with an educationSchool. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -97,7 +97,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a user to a school. + /// Add a user to a school. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -131,7 +131,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the educationUser resources associated with an educationSchool. + /// Get the educationUser resources associated with an educationSchool. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/UsersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/UsersRequestBuilder.cs index 86957bdd4b7..3455999ed20 100644 --- a/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/UsersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/UsersRequestBuilder.cs @@ -47,7 +47,7 @@ public UsersRequestBuilder(Dictionary pathParameters, IRequestAd public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/users{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the educationUser resources associated with an educationSchool. + /// Get the educationUser resources associated with an educationSchool. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, EducationUserCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the educationUser resources associated with an educationSchool. + /// Get the educationUser resources associated with an educationSchool. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -100,7 +100,7 @@ public UsersRequestBuilder WithUrl(string rawUrl) { return new UsersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the educationUser resources associated with an educationSchool. + /// Get the educationUser resources associated with an educationSchool. This API is supported in the following national cloud deployments. /// public class UsersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Schools/SchoolsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Schools/SchoolsRequestBuilder.cs index 911666c959b..70eddab084b 100644 --- a/src/Microsoft.Graph/Generated/Education/Schools/SchoolsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Schools/SchoolsRequestBuilder.cs @@ -47,7 +47,7 @@ public SchoolsRequestBuilder(Dictionary pathParameters, IRequest public SchoolsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the educationSchool objects and their properties. + /// Get a list of the educationSchool objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, EducationSchoolCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new educationSchool object. + /// Create a new educationSchool object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(EducationSchool body, Action(requestInfo, EducationSchool.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the educationSchool objects and their properties. + /// Get a list of the educationSchool objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new educationSchool object. + /// Create a new educationSchool object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public SchoolsRequestBuilder WithUrl(string rawUrl) { return new SchoolsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the educationSchool objects and their properties. + /// Get a list of the educationSchool objects and their properties. This API is supported in the following national cloud deployments. /// public class SchoolsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Users/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Education/Users/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..6b13aa2f147 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Education/Users/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Education.Users.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(EducationUser.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Education/Users/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Delta/DeltaRequestBuilder.cs index c3384c07ea5..4c64134dcab 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Education/Users/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Education/Users/Delta/DeltaResponse.cs index a0f08e89e37..b1fd1b03bbc 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Education.Users.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(EducationUser.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/AssignmentsRequestBuilder.cs index 96a2fa173bf..6e055490d4f 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/AssignmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AssignmentsRequestBuilder(Dictionary pathParameters, IReq public AssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Returns a list of educationAssignment assigned to a educationUser for all classes. Only teachers, students, and applications with application permissions can perform this operation. This method allows a caller to find all the assignments belonging to a student or a teacher in a single call rather than having to request assignments from each class. The assignment list contains what is needed to get the detailed information for the assignment from within the class namespace. Use the methods defined for the assignment for all other operations. + /// Returns a list of educationAssignment assigned to a educationUser for all classes. Only teachers, students, and applications with application permissions can perform this operation. This method allows a caller to find all the assignments belonging to a student or a teacher in a single call rather than having to request assignments from each class. The assignment list contains what is needed to get the detailed information for the assignment from within the class namespace. Use the methods defined for the assignment for all other operations. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -88,7 +88,7 @@ public async Task PostAsync(EducationAssignment body, Actio return await RequestAdapter.SendAsync(requestInfo, EducationAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Returns a list of educationAssignment assigned to a educationUser for all classes. Only teachers, students, and applications with application permissions can perform this operation. This method allows a caller to find all the assignments belonging to a student or a teacher in a single call rather than having to request assignments from each class. The assignment list contains what is needed to get the detailed information for the assignment from within the class namespace. Use the methods defined for the assignment for all other operations. + /// Returns a list of educationAssignment assigned to a educationUser for all classes. Only teachers, students, and applications with application permissions can perform this operation. This method allows a caller to find all the assignments belonging to a student or a teacher in a single call rather than having to request assignments from each class. The assignment list contains what is needed to get the detailed information for the assignment from within the class namespace. Use the methods defined for the assignment for all other operations. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -149,7 +149,7 @@ public AssignmentsRequestBuilder WithUrl(string rawUrl) { return new AssignmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Returns a list of educationAssignment assigned to a educationUser for all classes. Only teachers, students, and applications with application permissions can perform this operation. This method allows a caller to find all the assignments belonging to a student or a teacher in a single call rather than having to request assignments from each class. The assignment list contains what is needed to get the detailed information for the assignment from within the class namespace. Use the methods defined for the assignment for all other operations. + /// Returns a list of educationAssignment assigned to a educationUser for all classes. Only teachers, students, and applications with application permissions can perform this operation. This method allows a caller to find all the assignments belonging to a student or a teacher in a single call rather than having to request assignments from each class. The assignment list contains what is needed to get the detailed information for the assignment from within the class namespace. Use the methods defined for the assignment for all other operations. This API is supported in the following national cloud deployments. /// public class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..b8ab72768ab --- /dev/null +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Education.Users.Item.Assignments.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(EducationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Delta/DeltaRequestBuilder.cs index bf8592638dd..39a6b3a27fa 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Delta/DeltaResponse.cs index ea33e081232..6f0586dfb6c 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Education.Users.Item.Assignments.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(EducationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/CategoriesRequestBuilder.cs index 288c374426c..0dbe8d9a740 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/CategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/CategoriesRequestBuilder.cs @@ -52,7 +52,7 @@ public CategoriesRequestBuilder(Dictionary pathParameters, IRequ public CategoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -72,7 +72,7 @@ public async Task GetAsync(Action(requestInfo, EducationCategoryCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. + /// Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -94,7 +94,7 @@ public async Task PostAsync(EducationCategory body, Action(requestInfo, EducationCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. + /// Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -155,7 +155,7 @@ public CategoriesRequestBuilder WithUrl(string rawUrl) { return new CategoriesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// public class CategoriesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..0f1139094cb --- /dev/null +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Education.Users.Item.Assignments.Item.Categories.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(EducationCategory.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaRequestBuilder.cs index 244065bab0e..3132a55f87d 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaResponse.cs index 5f74242fcaa..865330a727b 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Education.Users.Item.Assignments.Item.Categories.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(EducationCategory.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs index 454432424d6..71825f1f8a1 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs @@ -28,7 +28,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref{?%40id*}", rawUrl) { } /// - /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -80,7 +80,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderDeleteQueryParameters { /// Delete Uri diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.cs index c209e4fdcc9..f2a5adc3014 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.cs @@ -29,7 +29,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { } /// - /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, StringCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. + /// Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -71,7 +71,7 @@ public async Task PostAsync(ReferenceCreate body, Action - /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -97,7 +97,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. + /// Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -131,7 +131,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Publish/PublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Publish/PublishRequestBuilder.cs index 64d3e4b43aa..083633688aa 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Publish/PublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Publish/PublishRequestBuilder.cs @@ -29,7 +29,7 @@ public PublishRequestBuilder(Dictionary pathParameters, IRequest public PublishRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/publish", rawUrl) { } /// - /// Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. + /// Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, EducationAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. + /// Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.cs index fdefeb03064..eedc63da5f2 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.cs @@ -29,7 +29,7 @@ public EducationAssignmentResourceItemRequestBuilder(Dictionary public EducationAssignmentResourceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/resources/{educationAssignmentResource%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a specific educationAssignmentResource attached to an assignment. In general, only teachers in the class can remove a resource. However, teachers cannot remove resources marked as 'distributeToStudents', after the assignment has been published to students. + /// Delete a specific educationAssignmentResource attached to an assignment. In general, only teachers in the class can remove a resource. However, teachers cannot remove resources marked as 'distributeToStudents', after the assignment has been published to students. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(EducationAssignmentRes return await RequestAdapter.SendAsync(requestInfo, EducationAssignmentResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a specific educationAssignmentResource attached to an assignment. In general, only teachers in the class can remove a resource. However, teachers cannot remove resources marked as 'distributeToStudents', after the assignment has been published to students. + /// Delete a specific educationAssignmentResource attached to an assignment. In general, only teachers in the class can remove a resource. However, teachers cannot remove resources marked as 'distributeToStudents', after the assignment has been published to students. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public EducationAssignmentResourceItemRequestBuilderDeleteRequestConfiguration() } } /// - /// Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// public class EducationAssignmentResourceItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Resources/ResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Resources/ResourcesRequestBuilder.cs index 8807e532289..51652484a1d 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Resources/ResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Resources/ResourcesRequestBuilder.cs @@ -42,7 +42,7 @@ public ResourcesRequestBuilder(Dictionary pathParameters, IReque public ResourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/resources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action return await RequestAdapter.SendAsync(requestInfo, EducationAssignmentResourceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an assignment resource. Only teachers can perform this operation. You can create the following types of assignment resources: Every resource has an @odata.type property to indicate which type of resource is being created. + /// Create an assignment resource. Only teachers can perform this operation. You can create the following types of assignment resources: Every resource has an @odata.type property to indicate which type of resource is being created. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(EducationAssignmentReso return await RequestAdapter.SendAsync(requestInfo, EducationAssignmentResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an assignment resource. Only teachers can perform this operation. You can create the following types of assignment resources: Every resource has an @odata.type property to indicate which type of resource is being created. + /// Create an assignment resource. Only teachers can perform this operation. You can create the following types of assignment resources: Every resource has an @odata.type property to indicate which type of resource is being created. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ResourcesRequestBuilder WithUrl(string rawUrl) { return new ResourcesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// public class ResourcesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Rubric/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Rubric/Ref/RefRequestBuilder.cs index ba295b6b1e6..f05a57b170f 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Rubric/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Rubric/Ref/RefRequestBuilder.cs @@ -29,7 +29,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/rubric/$ref", rawUrl) { } /// - /// Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + /// Remove an educationRubric from an educationAssignment. This method doesn't delete the rubric itself and can only be performed by teachers. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + /// Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. + /// Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PutAsync(ReferenceUpdate body, Action - /// Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + /// Remove an educationRubric from an educationAssignment. This method doesn't delete the rubric itself and can only be performed by teachers. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + /// Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. + /// Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Rubric/RubricRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Rubric/RubricRequestBuilder.cs index 4fa506a5872..758e9677f6a 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Rubric/RubricRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Rubric/RubricRequestBuilder.cs @@ -34,7 +34,7 @@ public RubricRequestBuilder(Dictionary pathParameters, IRequestA public RubricRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/rubric{?%24select,%24expand}", rawUrl) { } /// - /// Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + /// Remove an educationRubric from an educationAssignment. This method doesn't delete the rubric itself and can only be performed by teachers. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + /// Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, EducationRubric.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. + /// Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(EducationRubric body, Action(requestInfo, EducationRubric.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Remove an educationRubric from an educationAssignment. This method does not delete the rubric itself and can only be performed by teachers. + /// Remove an educationRubric from an educationAssignment. This method doesn't delete the rubric itself and can only be performed by teachers. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + /// Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. + /// Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public RubricRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + /// Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. This API is supported in the following national cloud deployments. /// public class RubricRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.cs index b5197a1ee25..725951b6ffc 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.cs @@ -29,7 +29,7 @@ public SetUpFeedbackResourcesFolderRequestBuilder(Dictionary pat public SetUpFeedbackResourcesFolderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/setUpFeedbackResourcesFolder", rawUrl) { } /// - /// Create a SharePoint folder to upload feedback files for a given educationSubmission. Only teachers can perform this operation. The teacher determines the resources to upload in the feedback resources folder of a submission. + /// Create a SharePoint folder to upload feedback files for a given educationSubmission. Only teachers can perform this operation. The teacher determines the resources to upload in the feedback resources folder of a submission. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, EducationAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a SharePoint folder to upload feedback files for a given educationSubmission. Only teachers can perform this operation. The teacher determines the resources to upload in the feedback resources folder of a submission. + /// Create a SharePoint folder to upload feedback files for a given educationSubmission. Only teachers can perform this operation. The teacher determines the resources to upload in the feedback resources folder of a submission. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs index aa31c7f3e9d..b3a662f87d5 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs @@ -29,7 +29,7 @@ public SetUpResourcesFolderRequestBuilder(Dictionary pathParamet public SetUpResourcesFolderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/setUpResourcesFolder", rawUrl) { } /// - /// Create a SharePoint folder to upload files for a given educationAssignment. Only teachers can perform this operation. The teacher determines the resources to upload in the assignment's folder. + /// Create a SharePoint folder to upload files for a given educationAssignment. Only teachers can perform this operation. The teacher determines the resources to upload in the assignment's folder. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, EducationAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a SharePoint folder to upload files for a given educationAssignment. Only teachers can perform this operation. The teacher determines the resources to upload in the assignment's folder. + /// Create a SharePoint folder to upload files for a given educationAssignment. Only teachers can perform this operation. The teacher determines the resources to upload in the assignment's folder. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs index 1289450f2d2..0c0f9b45a7e 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs @@ -88,7 +88,7 @@ public async Task DeleteAsync(Action - /// Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. + /// Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -153,7 +153,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. + /// Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -230,7 +230,7 @@ public EducationSubmissionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. + /// Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. This API is supported in the following national cloud deployments. /// public class EducationSubmissionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.cs index 81ae16c28c4..45c178465e3 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.cs @@ -29,7 +29,7 @@ public EducationOutcomeItemRequestBuilder(Dictionary pathParamet public EducationOutcomeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes/{educationOutcome%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a feedback resource from a submission. This can only be done by a teacher. + /// Delete a feedback resource from a submission. This can only be done by a teacher. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, EducationOutcome.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an educationOutcome object. Only teachers can perform this operation. + /// Update the properties of an educationOutcome object. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -90,7 +90,7 @@ public async Task PatchAsync(EducationOutcome body, Action(requestInfo, EducationOutcome.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a feedback resource from a submission. This can only be done by a teacher. + /// Delete a feedback resource from a submission. This can only be done by a teacher. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an educationOutcome object. Only teachers can perform this operation. + /// Update the properties of an educationOutcome object. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs index 35cc804e9c5..af4ac1a9b67 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs @@ -42,7 +42,7 @@ public OutcomesRequestBuilder(Dictionary pathParameters, IReques public OutcomesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, EducationOutcomeCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new feedback resource for a submission. Only a teacher can perform this operation. To create a new file-based resource, upload the file to the feedback resources folder associated with the assignment. If the file doesn't exist or isn't in that folder, the POST request will fail. + /// Create a new feedback resource for a submission. Only a teacher can perform this operation. To create a new file-based resource, upload the file to the feedback resources folder associated with the assignment. If the file doesn't exist or isn't in that folder, the POST request will fail. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(EducationOutcome body, Action(requestInfo, EducationOutcome.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new feedback resource for a submission. Only a teacher can perform this operation. To create a new file-based resource, upload the file to the feedback resources folder associated with the assignment. If the file doesn't exist or isn't in that folder, the POST request will fail. + /// Create a new feedback resource for a submission. Only a teacher can perform this operation. To create a new file-based resource, upload the file to the feedback resources folder associated with the assignment. If the file doesn't exist or isn't in that folder, the POST request will fail. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public OutcomesRequestBuilder WithUrl(string rawUrl) { return new OutcomesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. This API is supported in the following national cloud deployments. /// public class OutcomesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs index a502acab6e8..c6d7e40da44 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs @@ -29,7 +29,7 @@ public ReassignRequestBuilder(Dictionary pathParameters, IReques public ReassignRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/reassign", rawUrl) { } /// - /// Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. + /// Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, EducationSubmission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. + /// Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.cs index 8ce2af9fd49..bfa4b3a20f0 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.cs @@ -29,7 +29,7 @@ public EducationSubmissionResourceItemRequestBuilder(Dictionary public EducationSubmissionResourceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources/{educationSubmissionResource%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource was not copied from the assignment but was added from the student, the resource is simply deleted. + /// Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource wasn't copied from the assignment but was added from the student, the resource is deleted. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. + /// Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(EducationSubmissionRes return await RequestAdapter.SendAsync(requestInfo, EducationSubmissionResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource was not copied from the assignment but was added from the student, the resource is simply deleted. + /// Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource wasn't copied from the assignment but was added from the student, the resource is deleted. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. + /// Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public EducationSubmissionResourceItemRequestBuilderDeleteRequestConfiguration() } } /// - /// Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. + /// Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. This API is supported in the following national cloud deployments. /// public class EducationSubmissionResourceItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs index 3fe5f223024..75d79f35590 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs @@ -42,7 +42,7 @@ public ResourcesRequestBuilder(Dictionary pathParameters, IReque public ResourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action return await RequestAdapter.SendAsync(requestInfo, EducationSubmissionResourceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add an educationSubmissionResource to a submission resource list. Only teachers and students can perform this operation. The operation will not succeed if the allowStudentsToAddResources flag is not set to true. To create a new file-based resource, upload the file to the resources folder associated with the submission. If the file doesn't exist or is not in that folder, the POST request will fail. + /// Add an educationSubmissionResource to a submission resource list. Only teachers and students can perform this operation. The operation will not succeed if the allowStudentsToAddResources flag is not set to true. To create a new file-based resource, upload the file to the resources folder associated with the submission. If the file doesn't exist or is not in that folder, the POST request will fail. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(EducationSubmissionReso return await RequestAdapter.SendAsync(requestInfo, EducationSubmissionResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add an educationSubmissionResource to a submission resource list. Only teachers and students can perform this operation. The operation will not succeed if the allowStudentsToAddResources flag is not set to true. To create a new file-based resource, upload the file to the resources folder associated with the submission. If the file doesn't exist or is not in that folder, the POST request will fail. + /// Add an educationSubmissionResource to a submission resource list. Only teachers and students can perform this operation. The operation will not succeed if the allowStudentsToAddResources flag is not set to true. To create a new file-based resource, upload the file to the resources folder associated with the submission. If the file doesn't exist or is not in that folder, the POST request will fail. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ResourcesRequestBuilder WithUrl(string rawUrl) { return new ResourcesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. This API is supported in the following national cloud deployments. /// public class ResourcesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.cs index 6b3b160e0db..053db2f8791 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.cs @@ -29,7 +29,7 @@ public ReturnRequestBuilder(Dictionary pathParameters, IRequestA public ReturnRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/return", rawUrl) { } /// - /// Make the grade and feedback associated with this submission available to the student. This action changes the status of the submission from 'submitted' to 'returned' and indicates that feedback is provided or grading is done. This action can only be done by the teacher. + /// Make the grade and feedback associated with this submission available to the student. This action changes the status of the submission from 'submitted' to 'returned' and indicates that feedback is provided or grading is done. This action can only be done by the teacher. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, EducationSubmission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Make the grade and feedback associated with this submission available to the student. This action changes the status of the submission from 'submitted' to 'returned' and indicates that feedback is provided or grading is done. This action can only be done by the teacher. + /// Make the grade and feedback associated with this submission available to the student. This action changes the status of the submission from 'submitted' to 'returned' and indicates that feedback is provided or grading is done. This action can only be done by the teacher. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs index bb0fd1d5aa5..15b4cbc8c20 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs @@ -29,7 +29,7 @@ public SetUpResourcesFolderRequestBuilder(Dictionary pathParamet public SetUpResourcesFolderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/setUpResourcesFolder", rawUrl) { } /// - /// Trigger the creation of the SharePoint resource folder where all file-based resources (Word, Excel, and so on) should be uploaded for a given submission. Only teachers and students can perform this operation. Note that files must be located in this folder in order to be added as resources. Only a student in the class can determine what files to upload in a given submission-level resource folder. + /// Trigger the creation of the SharePoint resource folder where all file-based resources (Word, Excel, and so on) should be uploaded for a given submission. Only teachers and students can perform this operation. Note that files must be located in this folder in order to be added as resources. Only a student in the class can determine what files to upload in a given submission-level resource folder. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, EducationSubmission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Trigger the creation of the SharePoint resource folder where all file-based resources (Word, Excel, and so on) should be uploaded for a given submission. Only teachers and students can perform this operation. Note that files must be located in this folder in order to be added as resources. Only a student in the class can determine what files to upload in a given submission-level resource folder. + /// Trigger the creation of the SharePoint resource folder where all file-based resources (Word, Excel, and so on) should be uploaded for a given submission. Only teachers and students can perform this operation. Note that files must be located in this folder in order to be added as resources. Only a student in the class can determine what files to upload in a given submission-level resource folder. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.cs index 49bb0d603e1..f2bcc2dc48a 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.cs @@ -29,7 +29,7 @@ public SubmitRequestBuilder(Dictionary pathParameters, IRequestA public SubmitRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submit", rawUrl) { } /// - /// Indicate that a student is done with the work and is ready to hand in the assignment. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from working to submitted. During the submit process, all the resources are copied to the submittedResources bucket. The teacher will be looking at the submitted resources list for grading. A teacher can also submit a student's assignment on their behalf. + /// Indicate that a student is done with the work and is ready to hand in the assignment. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from working to submitted. During the submit process, all the resources are copied to the submittedResources bucket. The teacher will be looking at the submitted resources list for grading. A teacher can also submit a student's assignment on their behalf. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, EducationSubmission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Indicate that a student is done with the work and is ready to hand in the assignment. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from working to submitted. During the submit process, all the resources are copied to the submittedResources bucket. The teacher will be looking at the submitted resources list for grading. A teacher can also submit a student's assignment on their behalf. + /// Indicate that a student is done with the work and is ready to hand in the assignment. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from working to submitted. During the submit process, all the resources are copied to the submittedResources bucket. The teacher will be looking at the submitted resources list for grading. A teacher can also submit a student's assignment on their behalf. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.cs index 2ad87cfe4c8..a3debb90fac 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Note that teachers can leave notes in some resources. + /// Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Teachers can leave notes in some resources. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Note that teachers can leave notes in some resources. + /// Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Teachers can leave notes in some resources. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public EducationSubmissionResourceItemRequestBuilderDeleteRequestConfiguration() } } /// - /// Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Note that teachers can leave notes in some resources. + /// Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Teachers can leave notes in some resources. This API is supported in the following national cloud deployments. /// public class EducationSubmissionResourceItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs index 5e1b79f8876..31e04dec076 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs @@ -42,7 +42,7 @@ public SubmittedResourcesRequestBuilder(Dictionary pathParameter public SubmittedResourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + /// List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(EducationSubmissionReso return await RequestAdapter.SendAsync(requestInfo, EducationSubmissionResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + /// List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SubmittedResourcesRequestBuilder WithUrl(string rawUrl) { return new SubmittedResourcesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + /// List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. This API is supported in the following national cloud deployments. /// public class SubmittedResourcesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.cs index 47c1db33127..94a400642ab 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.cs @@ -29,7 +29,7 @@ public UnsubmitRequestBuilder(Dictionary pathParameters, IReques public UnsubmitRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/unsubmit", rawUrl) { } /// - /// Indicate that a student wants to work on the submission of the assignment after it was turned in. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from submitted to working. During the submit process, all the resources are copied from submittedResources to workingResources. The teacher will be looking at the working resources list for grading. A teacher can also unsubmit a student's assignment on their behalf. + /// Indicate that a student wants to work on the submission of the assignment after it was turned in. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from submitted to working. During the submit process, all the resources are copied from submittedResources to workingResources. The teacher will be looking at the working resources list for grading. A teacher can also unsubmit a student's assignment on their behalf. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, EducationSubmission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Indicate that a student wants to work on the submission of the assignment after it was turned in. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from submitted to working. During the submit process, all the resources are copied from submittedResources to workingResources. The teacher will be looking at the working resources list for grading. A teacher can also unsubmit a student's assignment on their behalf. + /// Indicate that a student wants to work on the submission of the assignment after it was turned in. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from submitted to working. During the submit process, all the resources are copied from submittedResources to workingResources. The teacher will be looking at the working resources list for grading. A teacher can also unsubmit a student's assignment on their behalf. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs index e0e6af58bb2..06dcfd772aa 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs @@ -42,7 +42,7 @@ public SubmissionsRequestBuilder(Dictionary pathParameters, IReq public SubmissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(EducationSubmission body, Actio return await RequestAdapter.SendAsync(requestInfo, EducationSubmission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SubmissionsRequestBuilder WithUrl(string rawUrl) { return new SubmissionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. This API is supported in the following national cloud deployments. /// public class SubmissionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Classes/ClassesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Classes/ClassesRequestBuilder.cs index 84872869dd7..265d90345b0 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Classes/ClassesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Classes/ClassesRequestBuilder.cs @@ -42,7 +42,7 @@ public ClassesRequestBuilder(Dictionary pathParameters, IRequest public ClassesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/classes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the educationClass resources an educationUser is a member of. + /// Get the educationClass resources an educationUser is a member of. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, EducationClassCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the educationClass resources an educationUser is a member of. + /// Get the educationClass resources an educationUser is a member of. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public ClassesRequestBuilder WithUrl(string rawUrl) { return new ClassesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the educationClass resources an educationUser is a member of. + /// Get the educationClass resources an educationUser is a member of. This API is supported in the following national cloud deployments. /// public class ClassesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/EducationUserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/EducationUserItemRequestBuilder.cs index 7b2c8e6e859..b1bda5ff232 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/EducationUserItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/EducationUserItemRequestBuilder.cs @@ -59,7 +59,7 @@ public EducationUserItemRequestBuilder(Dictionary pathParameters public EducationUserItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a user. + /// Delete a user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -79,7 +79,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an educationUser object. + /// Read the properties and relationships of an educationUser object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -99,7 +99,7 @@ public async Task GetAsync(Action(requestInfo, EducationUser.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an educationUser object. + /// Update the properties of an educationUser object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -121,7 +121,7 @@ public async Task PatchAsync(EducationUser body, Action(requestInfo, EducationUser.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a user. + /// Delete a user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -145,7 +145,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an educationUser object. + /// Read the properties and relationships of an educationUser object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -171,7 +171,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an educationUser object. + /// Update the properties of an educationUser object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -222,7 +222,7 @@ public EducationUserItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of an educationUser object. + /// Read the properties and relationships of an educationUser object. This API is supported in the following national cloud deployments. /// public class EducationUserItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Rubrics/Item/EducationRubricItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Rubrics/Item/EducationRubricItemRequestBuilder.cs index e8cf22c7434..2c406a865fd 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Rubrics/Item/EducationRubricItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Rubrics/Item/EducationRubricItemRequestBuilder.cs @@ -29,7 +29,7 @@ public EducationRubricItemRequestBuilder(Dictionary pathParamete public EducationRubricItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/rubrics/{educationRubric%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an educationRubric object. Only teachers can perform this operation. + /// Delete an educationRubric object. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of an educationRubric object. Only teachers and students can perform this operation. + /// Retrieve the properties and relationships of an educationRubric object. Only teachers and students can perform this operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, EducationRubric.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/acdefc6b-2dc6-4e71-b1e9-6d9810ab1793/assignments/cf6005fc-9e13-44a2-a6ac-a53322006454/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/acdefc6b-2dc6-4e71-b1e9-6d9810ab1793/assignments/cf6005fc-9e13-44a2-a6ac-a53322006454/rubric, but it cannot be updated. + /// Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{class-id}/assignments/{assignment-id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{class-id}/assignments/{assignment-id}/rubric, but it cannot be updated. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(EducationRubric body, Action(requestInfo, EducationRubric.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an educationRubric object. Only teachers can perform this operation. + /// Delete an educationRubric object. Only teachers can perform this operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of an educationRubric object. Only teachers and students can perform this operation. + /// Retrieve the properties and relationships of an educationRubric object. Only teachers and students can perform this operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/acdefc6b-2dc6-4e71-b1e9-6d9810ab1793/assignments/cf6005fc-9e13-44a2-a6ac-a53322006454/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/acdefc6b-2dc6-4e71-b1e9-6d9810ab1793/assignments/cf6005fc-9e13-44a2-a6ac-a53322006454/rubric, but it cannot be updated. + /// Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{class-id}/assignments/{assignment-id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{class-id}/assignments/{assignment-id}/rubric, but it cannot be updated. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public EducationRubricItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of an educationRubric object. Only teachers and students can perform this operation. + /// Retrieve the properties and relationships of an educationRubric object. Only teachers and students can perform this operation. This API is supported in the following national cloud deployments. /// public class EducationRubricItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Rubrics/RubricsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Rubrics/RubricsRequestBuilder.cs index ba2b4d4a3fb..82bdc00b810 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Rubrics/RubricsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Rubrics/RubricsRequestBuilder.cs @@ -42,7 +42,7 @@ public RubricsRequestBuilder(Dictionary pathParameters, IRequest public RubricsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/rubrics{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of educationRubric objects. + /// Retrieve a list of educationRubric objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, EducationRubricCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new educationRubric object. + /// Create a new educationRubric object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(EducationRubric body, Action(requestInfo, EducationRubric.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of educationRubric objects. + /// Retrieve a list of educationRubric objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new educationRubric object. + /// Create a new educationRubric object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public RubricsRequestBuilder WithUrl(string rawUrl) { return new RubricsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of educationRubric objects. + /// Retrieve a list of educationRubric objects. This API is supported in the following national cloud deployments. /// public class RubricsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Schools/SchoolsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Schools/SchoolsRequestBuilder.cs index dfbb0c30bbb..e6cf258c449 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Schools/SchoolsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Schools/SchoolsRequestBuilder.cs @@ -42,7 +42,7 @@ public SchoolsRequestBuilder(Dictionary pathParameters, IRequest public SchoolsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/schools{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of schools for a user. + /// Retrieve a list of schools for a user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, EducationSchoolCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of schools for a user. + /// Retrieve a list of schools for a user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public SchoolsRequestBuilder WithUrl(string rawUrl) { return new SchoolsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of schools for a user. + /// Retrieve a list of schools for a user. This API is supported in the following national cloud deployments. /// public class SchoolsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/TaughtClasses/TaughtClassesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/TaughtClasses/TaughtClassesRequestBuilder.cs index 0c8900cdeba..9a6b96e2203 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/TaughtClasses/TaughtClassesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/TaughtClasses/TaughtClassesRequestBuilder.cs @@ -42,7 +42,7 @@ public TaughtClassesRequestBuilder(Dictionary pathParameters, IR public TaughtClassesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/taughtClasses{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the educationClass resources owned by an educationUser. + /// Get the educationClass resources owned by an educationUser. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, EducationClassCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the educationClass resources owned by an educationUser. + /// Get the educationClass resources owned by an educationUser. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public TaughtClassesRequestBuilder WithUrl(string rawUrl) { return new TaughtClassesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the educationClass resources owned by an educationUser. + /// Get the educationClass resources owned by an educationUser. This API is supported in the following national cloud deployments. /// public class TaughtClassesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/User/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/User/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..b6be666b7b2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/User/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Education.Users.Item.User.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/user/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/user/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..23cc17f1c4b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Education.Users.Item.User.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Education.Users.Item.User.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \education\users\{educationUser-id}\user\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/user/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/user/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/User/UserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/User/UserRequestBuilder.cs index b018401158a..e1ebc89721d 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/User/UserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/User/UserRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.Education.Users.Item.User.MailboxSettings; +using Microsoft.Graph.Education.Users.Item.User.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class UserRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new UserRequestBuilder and sets the default values. /// @@ -34,7 +39,7 @@ public UserRequestBuilder(Dictionary pathParameters, IRequestAda public UserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/user{?%24select,%24expand}", rawUrl) { } /// - /// Retrieve the simple directory user that corresponds to this educationUser. + /// Retrieve the simple directory user that corresponds to this educationUser. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +59,7 @@ public UserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the simple directory user that corresponds to this educationUser. + /// Retrieve the simple directory user that corresponds to this educationUser. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,7 +92,7 @@ public UserRequestBuilder WithUrl(string rawUrl) { return new UserRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the simple directory user that corresponds to this educationUser. + /// Retrieve the simple directory user that corresponds to this educationUser. This API is supported in the following national cloud deployments. /// public class UserRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Education/Users/UsersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/UsersRequestBuilder.cs index c62392d70e5..b4c1b86a982 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/UsersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/UsersRequestBuilder.cs @@ -47,7 +47,7 @@ public UsersRequestBuilder(Dictionary pathParameters, IRequestAd public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the educationUser objects and their properties. + /// Get a list of the educationUser objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, EducationUserCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new educationUser object. + /// Create a new educationUser object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(EducationUser body, Action(requestInfo, EducationUser.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the educationUser objects and their properties. + /// Get a list of the educationUser objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new educationUser object. + /// Create a new educationUser object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public UsersRequestBuilder WithUrl(string rawUrl) { return new UsersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the educationUser objects and their properties. + /// Get a list of the educationUser objects and their properties. This API is supported in the following national cloud deployments. /// public class UsersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs index 7b609cb9c48..80d1cf55c68 100644 --- a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. + /// Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. + /// Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public LearningCourseActivityItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. + /// Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. This API is supported in the following national cloud deployments. /// public class LearningCourseActivityItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs index 9c088f88f82..3ecd64157a6 100644 --- a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs @@ -42,7 +42,7 @@ public LearningCourseActivitiesRequestBuilder(Dictionary pathPar public LearningCourseActivitiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/employeeExperience/learningCourseActivities{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. + /// Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(LearningCourseActivity body, return await RequestAdapter.SendAsync(requestInfo, LearningCourseActivity.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. + /// Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public LearningCourseActivitiesRequestBuilder WithUrl(string rawUrl) { return new LearningCourseActivitiesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. + /// Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. This API is supported in the following national cloud deployments. /// public class LearningCourseActivitiesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/Item/LearningContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/Item/LearningContentItemRequestBuilder.cs index 9446ad58fd2..f30f6ec5916 100644 --- a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/Item/LearningContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/Item/LearningContentItemRequestBuilder.cs @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get the specified learningContent resource which represents the metadata of the specified provider's ingested content. + /// Get the specified learningContent resource which represents the metadata of the specified provider's ingested content. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the specified learningContent resource which represents the metadata of the specified provider's ingested content. + /// Get the specified learningContent resource which represents the metadata of the specified provider's ingested content. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public LearningContentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the specified learningContent resource which represents the metadata of the specified provider's ingested content. + /// Get the specified learningContent resource which represents the metadata of the specified provider's ingested content. This API is supported in the following national cloud deployments. /// public class LearningContentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/LearningContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/LearningContentsRequestBuilder.cs index cdbb55fc1e3..67bccdb2e67 100644 --- a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/LearningContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/LearningContentsRequestBuilder.cs @@ -42,7 +42,7 @@ public LearningContentsRequestBuilder(Dictionary pathParameters, public LearningContentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/employeeExperience/learningProviders/{learningProvider%2Did}/learningContents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the learningContent resources and their properties. This list represents the metadata of the specified provider's content in Viva Learning. + /// Get a list of the learningContent resources and their properties. This list represents the metadata of the specified provider's content in Viva Learning. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(LearningContent body, Action(requestInfo, LearningContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the learningContent resources and their properties. This list represents the metadata of the specified provider's content in Viva Learning. + /// Get a list of the learningContent resources and their properties. This list represents the metadata of the specified provider's content in Viva Learning. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public LearningContentsRequestBuilder WithUrl(string rawUrl) { return new LearningContentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the learningContent resources and their properties. This list represents the metadata of the specified provider's content in Viva Learning. + /// Get a list of the learningContent resources and their properties. This list represents the metadata of the specified provider's content in Viva Learning. This API is supported in the following national cloud deployments. /// public class LearningContentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs index d011cad976b..42d99c74c36 100644 --- a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs @@ -29,7 +29,7 @@ public LearningCourseActivityItemRequestBuilder(Dictionary pathP public LearningCourseActivityItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/employeeExperience/learningProviders/{learningProvider%2Did}/learningCourseActivities/{learningCourseActivity%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a learningCourseActivity object by using the course activity ID of either an assignment or a self-initiated activity. + /// Delete a learningCourseActivity object by using the course activity ID of either an assignment or a self-initiated activity. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, LearningCourseActivity.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a learningCourseActivity object. + /// Update the properties of a learningCourseActivity object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -90,7 +90,7 @@ public async Task PatchAsync(LearningCourseActivity body return await RequestAdapter.SendAsync(requestInfo, LearningCourseActivity.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a learningCourseActivity object by using the course activity ID of either an assignment or a self-initiated activity. + /// Delete a learningCourseActivity object by using the course activity ID of either an assignment or a self-initiated activity. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a learningCourseActivity object. + /// Update the properties of a learningCourseActivity object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs index ecfac028a23..1328b3e04a7 100644 --- a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, LearningCourseActivityCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new learningCourseActivity object. A learning course activity can be one of two types: - Assignment- Self-initiated Use this method to create either type of activity. + /// Create a new learningCourseActivity object. A learning course activity can be one of two types: - Assignment- Self-initiated Use this method to create either type of activity. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new learningCourseActivity object. A learning course activity can be one of two types: - Assignment- Self-initiated Use this method to create either type of activity. + /// Create a new learningCourseActivity object. A learning course activity can be one of two types: - Assignment- Self-initiated Use this method to create either type of activity. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningProviderItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningProviderItemRequestBuilder.cs index 56b0ae85247..4e0febd8ac0 100644 --- a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningProviderItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningProviderItemRequestBuilder.cs @@ -59,7 +59,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a learningProvider object. + /// Read the properties and relationships of a learningProvider object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -79,7 +79,7 @@ public async Task GetAsync(Action(requestInfo, LearningProvider.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a learningProvider object. + /// Update the properties of a learningProvider object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -125,7 +125,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a learningProvider object. + /// Read the properties and relationships of a learningProvider object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -151,7 +151,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a learningProvider object. + /// Update the properties of a learningProvider object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -202,7 +202,7 @@ public LearningProviderItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a learningProvider object. + /// Read the properties and relationships of a learningProvider object. This API is supported in the following national cloud deployments. /// public class LearningProviderItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/LearningProvidersRequestBuilder.cs b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/LearningProvidersRequestBuilder.cs index b5fc96f9223..8fa157406cf 100644 --- a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/LearningProvidersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/LearningProvidersRequestBuilder.cs @@ -42,7 +42,7 @@ public LearningProvidersRequestBuilder(Dictionary pathParameters public LearningProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/employeeExperience/learningProviders{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the learningProvider resources registered in Viva Learning for a tenant. + /// Get a list of the learningProvider resources registered in Viva Learning for a tenant. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, LearningProviderCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new learningProvider object and register it with Viva Learning using the specified display name and logos for different themes. + /// Create a new learningProvider object and register it with Viva Learning using the specified display name and logos for different themes. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(LearningProvider body, Action(requestInfo, LearningProvider.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the learningProvider resources registered in Viva Learning for a tenant. + /// Get a list of the learningProvider resources registered in Viva Learning for a tenant. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new learningProvider object and register it with Viva Learning using the specified display name and logos for different themes. + /// Create a new learningProvider object and register it with Viva Learning using the specified display name and logos for different themes. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public LearningProvidersRequestBuilder WithUrl(string rawUrl) { return new LearningProvidersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the learningProvider resources registered in Viva Learning for a tenant. + /// Get a list of the learningProvider resources registered in Viva Learning for a tenant. This API is supported in the following national cloud deployments. /// public class LearningProvidersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/External/Connections/ConnectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/Connections/ConnectionsRequestBuilder.cs index c0c2ce5be6e..fdf1816781e 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/ConnectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/ConnectionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ConnectionsRequestBuilder(Dictionary pathParameters, IReq public ConnectionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/external/connections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the externalConnection objects and their properties. + /// Get a list of the externalConnection objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ExternalConnectionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new externalConnection object. + /// Create a new externalConnection object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(ExternalConnection body, Action< return await RequestAdapter.SendAsync(requestInfo, ExternalConnection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the externalConnection objects and their properties. + /// Get a list of the externalConnection objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new externalConnection object. + /// Create a new externalConnection object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ConnectionsRequestBuilder WithUrl(string rawUrl) { return new ConnectionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the externalConnection objects and their properties. + /// Get a list of the externalConnection objects and their properties. This API is supported in the following national cloud deployments. /// public class ConnectionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/External/Connections/Item/ExternalConnectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/Connections/Item/ExternalConnectionItemRequestBuilder.cs index e3db313b653..dbd89568b9a 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/Item/ExternalConnectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/Item/ExternalConnectionItemRequestBuilder.cs @@ -49,7 +49,7 @@ public ExternalConnectionItemRequestBuilder(Dictionary pathParam public ExternalConnectionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/external/connections/{externalConnection%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes an externalConnection object. + /// Deletes an externalConnection object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an externalConnection object. + /// Read the properties and relationships of an externalConnection object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task GetAsync(Action(requestInfo, ExternalConnection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an externalConnection object. + /// Update the properties of an externalConnection object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -111,7 +111,7 @@ public async Task PatchAsync(ExternalConnection body, Action return await RequestAdapter.SendAsync(requestInfo, ExternalConnection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes an externalConnection object. + /// Deletes an externalConnection object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -135,7 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an externalConnection object. + /// Read the properties and relationships of an externalConnection object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -161,7 +161,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an externalConnection object. + /// Update the properties of an externalConnection object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -212,7 +212,7 @@ public ExternalConnectionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of an externalConnection object. + /// Read the properties and relationships of an externalConnection object. This API is supported in the following national cloud deployments. /// public class ExternalConnectionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/GroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/GroupsRequestBuilder.cs index 2cf2b3d9920..349dc07f8dd 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/GroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/GroupsRequestBuilder.cs @@ -42,7 +42,7 @@ public GroupsRequestBuilder(Dictionary pathParameters, IRequestA public GroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/external/connections/{externalConnection%2Did}/groups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an externalGroup object. + /// Get an externalGroup object. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExternalGroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new externalGroup object. + /// Create a new externalGroup object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(ExternalGroup body, Action(requestInfo, ExternalGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an externalGroup object. + /// Get an externalGroup object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new externalGroup object. + /// Create a new externalGroup object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public GroupsRequestBuilder WithUrl(string rawUrl) { return new GroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an externalGroup object. + /// Get an externalGroup object. This API is supported in the following national cloud deployments. /// public class GroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.cs index 5d87bafde20..ba50c5fbaee 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.cs @@ -34,7 +34,7 @@ public ExternalGroupItemRequestBuilder(Dictionary pathParameters public ExternalGroupItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/external/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an externalGroup object. + /// Delete an externalGroup object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Get an externalGroup object. + /// Get an externalGroup object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, ExternalGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an externalGroup object. + /// Update the properties of an externalGroup object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(ExternalGroup body, Action(requestInfo, ExternalGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an externalGroup object. + /// Delete an externalGroup object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an externalGroup object. + /// Get an externalGroup object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an externalGroup object. + /// Update the properties of an externalGroup object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public ExternalGroupItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an externalGroup object. + /// Get an externalGroup object. This API is supported in the following national cloud deployments. /// public class ExternalGroupItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilder.cs index a38d406dcf3..61f224d60af 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilder.cs @@ -29,7 +29,7 @@ public IdentityItemRequestBuilder(Dictionary pathParameters, IRe public IdentityItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/external/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}/members/{identity%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an identity resource to remove the corresponding member from an externalGroup. + /// Delete an identity resource to remove the corresponding member from an externalGroup. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.ExternalConnectors.Identity.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an identity resource to remove the corresponding member from an externalGroup. + /// Delete an identity resource to remove the corresponding member from an externalGroup. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/Item/Members/MembersRequestBuilder.cs index 94cfa6334c3..3218e5caed5 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/Item/Members/MembersRequestBuilder.cs @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, IdentityCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an identity resource for a new member in an externalGroup. + /// Create an identity resource for a new member in an externalGroup. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an identity resource for a new member in an externalGroup. + /// Create an identity resource for a new member in an externalGroup. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.cs index 9e88469273a..65ca9b2fb62 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.cs @@ -39,7 +39,7 @@ public ExternalItemItemRequestBuilder(Dictionary pathParameters, public ExternalItemItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/external/connections/{externalConnection%2Did}/items/{externalItem%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an externalItem object. + /// Delete an externalItem object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -59,7 +59,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an externalItem object. + /// Read the properties and relationships of an externalItem object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -100,7 +100,7 @@ public async Task PutAsync(ExternalItem body, Action(requestInfo, ExternalItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an externalItem object. + /// Delete an externalItem object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -124,7 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an externalItem object. + /// Read the properties and relationships of an externalItem object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -201,7 +201,7 @@ public ExternalItemItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of an externalItem object. + /// Read the properties and relationships of an externalItem object. This API is supported in the following national cloud deployments. /// public class ExternalItemItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostResponse.cs b/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostResponse.cs new file mode 100644 index 00000000000..915f663ec03 --- /dev/null +++ b/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostResponse.cs @@ -0,0 +1,51 @@ +// +using Microsoft.Graph.Models.ExternalConnectors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.External.Connections.Item.Items.Item.MicrosoftGraphExternalConnectorsAddActivities { + public class AddActivitiesPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AddActivitiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AddActivitiesPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ExternalActivityResult.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesResponse.cs b/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesResponse.cs index 8e02cb26f0f..a16654468fe 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesResponse.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesResponse.cs @@ -1,27 +1,12 @@ // -using Microsoft.Graph.Models.ExternalConnectors; -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.External.Connections.Item.Items.Item.MicrosoftGraphExternalConnectorsAddActivities { - public class AddActivitiesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use addActivitiesPostResponse instead.")] + public class AddActivitiesResponse : AddActivitiesPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -30,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddActivitiesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ExternalActivityResult.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.cs index 0d3336b3062..7aec2bb771c 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.cs @@ -34,6 +34,28 @@ public MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder(string rawUrl /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsAddActivitiesPostResponseAsync(AddActivitiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsAddActivitiesPostResponseAsync(AddActivitiesPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AddActivitiesPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action addActivities + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsAddActivitiesPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(AddActivitiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/External/Connections/Item/Items/ItemsRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/Connections/Item/Items/ItemsRequestBuilder.cs index 289364ce47c..525de96cbee 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/Item/Items/ItemsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/Item/Items/ItemsRequestBuilder.cs @@ -42,7 +42,7 @@ public ItemsRequestBuilder(Dictionary pathParameters, IRequestAd public ItemsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/external/connections/{externalConnection%2Did}/items{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of an externalItem object. + /// Read the properties and relationships of an externalItem object. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(ExternalItem body, Action(requestInfo, ExternalItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of an externalItem object. + /// Read the properties and relationships of an externalItem object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public ItemsRequestBuilder WithUrl(string rawUrl) { return new ItemsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of an externalItem object. + /// Read the properties and relationships of an externalItem object. This API is supported in the following national cloud deployments. /// public class ItemsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/External/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.cs index cb009ee6164..ea0aa445d12 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a connectionOperation object. + /// Read the properties and relationships of a connectionOperation object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a connectionOperation object. + /// Read the properties and relationships of a connectionOperation object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ConnectionOperationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a connectionOperation object. + /// Read the properties and relationships of a connectionOperation object. This API is supported in the following national cloud deployments. /// public class ConnectionOperationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/External/Connections/Item/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/Connections/Item/Operations/OperationsRequestBuilder.cs index 30a4df02aed..1a2c2a2d28e 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/Item/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/Item/Operations/OperationsRequestBuilder.cs @@ -42,7 +42,7 @@ public OperationsRequestBuilder(Dictionary pathParameters, IRequ public OperationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/external/connections/{externalConnection%2Did}/operations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of a connectionOperation object. + /// Read the properties and relationships of a connectionOperation object. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(ConnectionOperation body, Actio return await RequestAdapter.SendAsync(requestInfo, ConnectionOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of a connectionOperation object. + /// Read the properties and relationships of a connectionOperation object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public OperationsRequestBuilder WithUrl(string rawUrl) { return new OperationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of a connectionOperation object. + /// Read the properties and relationships of a connectionOperation object. This API is supported in the following national cloud deployments. /// public class OperationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/External/Connections/Item/Schema/SchemaRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/Connections/Item/Schema/SchemaRequestBuilder.cs index 815436cd44a..8faf36a4f94 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/Item/Schema/SchemaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/Item/Schema/SchemaRequestBuilder.cs @@ -29,26 +29,7 @@ public SchemaRequestBuilder(Dictionary pathParameters, IRequestA public SchemaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/external/connections/{externalConnection%2Did}/schema{?%24select,%24expand}", rawUrl) { } /// - /// Delete navigation property schema for external - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Read the properties and relationships of a schema object. + /// Read the properties and relationships of a schema object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -89,31 +70,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.ExternalConnectors.Schema.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete navigation property schema for external - /// - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation { - HttpMethod = Method.DELETE, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - if (requestConfiguration != null) { - var requestConfig = new SchemaRequestBuilderDeleteRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// - /// Read the properties and relationships of a schema object. + /// Read the properties and relationships of a schema object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -174,23 +131,7 @@ public SchemaRequestBuilder WithUrl(string rawUrl) { return new SchemaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class SchemaRequestBuilderDeleteRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new schemaRequestBuilderDeleteRequestConfiguration and sets the default values. - /// - public SchemaRequestBuilderDeleteRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } - /// - /// Read the properties and relationships of a schema object. + /// Read the properties and relationships of a schema object. This API is supported in the following national cloud deployments. /// public class SchemaRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.cs index ccf5fcb7592..7568b620b6c 100644 --- a/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.cs @@ -42,7 +42,7 @@ public GroupLifecyclePoliciesRequestBuilder(Dictionary pathParam public GroupLifecyclePoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groupLifecyclePolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all the groupLifecyclePolicies. + /// List all the groupLifecyclePolicies. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, GroupLifecyclePolicyCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Creates a new groupLifecyclePolicy. + /// Creates a new groupLifecyclePolicy. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(GroupLifecyclePolicy body, Act return await RequestAdapter.SendAsync(requestInfo, GroupLifecyclePolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all the groupLifecyclePolicies. + /// List all the groupLifecyclePolicies. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Creates a new groupLifecyclePolicy. + /// Creates a new groupLifecyclePolicy. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public GroupLifecyclePoliciesRequestBuilder WithUrl(string rawUrl) { return new GroupLifecyclePoliciesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the groupLifecyclePolicies. + /// List all the groupLifecyclePolicies. This API is supported in the following national cloud deployments. /// public class GroupLifecyclePoliciesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostResponse.cs b/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostResponse.cs new file mode 100644 index 00000000000..406f6f422fa --- /dev/null +++ b/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.GroupLifecyclePolicies.Item.AddGroup { + public class AddGroupPostResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public bool? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new addGroupPostResponse and sets the default values. + /// + public AddGroupPostResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static AddGroupPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AddGroupPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.cs index 8afcb664fa7..3369b5b07a4 100644 --- a/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.cs @@ -28,13 +28,36 @@ public AddGroupRequestBuilder(Dictionary pathParameters, IReques public AddGroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groupLifecyclePolicies/{groupLifecyclePolicy%2Did}/addGroup", rawUrl) { } /// - /// Adds specific groups to a lifecycle policy. This action limits the group lifecycle policy to a set of groups only if the managedGroupTypes property of groupLifecyclePolicy is set to Selected. + /// Adds specific groups to a lifecycle policy. This action limits the group lifecycle policy to a set of groups only if the managedGroupTypes property of groupLifecyclePolicy is set to Selected. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsAddGroupPostResponseAsync(AddGroupPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsAddGroupPostResponseAsync(AddGroupPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AddGroupPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Adds specific groups to a lifecycle policy. This action limits the group lifecycle policy to a set of groups only if the managedGroupTypes property of groupLifecyclePolicy is set to Selected. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsAddGroupPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(AddGroupPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(AddGroupPostRequestBody body, Acti return await RequestAdapter.SendAsync(requestInfo, AddGroupResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Adds specific groups to a lifecycle policy. This action limits the group lifecycle policy to a set of groups only if the managedGroupTypes property of groupLifecyclePolicy is set to Selected. + /// Adds specific groups to a lifecycle policy. This action limits the group lifecycle policy to a set of groups only if the managedGroupTypes property of groupLifecyclePolicy is set to Selected. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupResponse.cs b/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupResponse.cs index f679144fcd3..cb0280a5770 100644 --- a/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupResponse.cs +++ b/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.GroupLifecyclePolicies.Item.AddGroup { - public class AddGroupResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public bool? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new addGroupResponse and sets the default values. - /// - public AddGroupResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use addGroupPostResponse instead.")] + public class AddGroupResponse : AddGroupPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static AddGroupResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new AddGroupResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddGroupResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilder.cs index 6efdcd8c9e1..2f6e7f44bd4 100644 --- a/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilder.cs @@ -39,7 +39,7 @@ public GroupLifecyclePolicyItemRequestBuilder(Dictionary pathPar public GroupLifecyclePolicyItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groupLifecyclePolicies/{groupLifecyclePolicy%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a groupLifecyclePolicy. + /// Delete a groupLifecyclePolicy. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -59,7 +59,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a groupLifecyclePolicies object. + /// Retrieve the properties and relationships of a groupLifecyclePolicies object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -79,7 +79,7 @@ public async Task GetAsync(Action(requestInfo, GroupLifecyclePolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a groupLifecyclePolicygroupLifecyclePolicy resource type object. + /// Update the properties of a groupLifecyclePolicygroupLifecyclePolicy resource type object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -101,7 +101,7 @@ public async Task PatchAsync(GroupLifecyclePolicy body, Ac return await RequestAdapter.SendAsync(requestInfo, GroupLifecyclePolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a groupLifecyclePolicy. + /// Delete a groupLifecyclePolicy. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -125,7 +125,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a groupLifecyclePolicies object. + /// Retrieve the properties and relationships of a groupLifecyclePolicies object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -151,7 +151,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a groupLifecyclePolicygroupLifecyclePolicy resource type object. + /// Update the properties of a groupLifecyclePolicygroupLifecyclePolicy resource type object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -202,7 +202,7 @@ public GroupLifecyclePolicyItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a groupLifecyclePolicies object. + /// Retrieve the properties and relationships of a groupLifecyclePolicies object. This API is supported in the following national cloud deployments. /// public class GroupLifecyclePolicyItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostResponse.cs b/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostResponse.cs new file mode 100644 index 00000000000..39d1166fdc5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.GroupLifecyclePolicies.Item.RemoveGroup { + public class RemoveGroupPostResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public bool? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new removeGroupPostResponse and sets the default values. + /// + public RemoveGroupPostResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static RemoveGroupPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new RemoveGroupPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.cs index ed5a2b67b87..6bcf36d0f1a 100644 --- a/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.cs @@ -28,13 +28,36 @@ public RemoveGroupRequestBuilder(Dictionary pathParameters, IReq public RemoveGroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groupLifecyclePolicies/{groupLifecyclePolicy%2Did}/removeGroup", rawUrl) { } /// - /// Removes a group from a lifecycle policy. + /// Removes a group from a lifecycle policy. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsRemoveGroupPostResponseAsync(RemoveGroupPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsRemoveGroupPostResponseAsync(RemoveGroupPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, RemoveGroupPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Removes a group from a lifecycle policy. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsRemoveGroupPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(RemoveGroupPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(RemoveGroupPostRequestBody body return await RequestAdapter.SendAsync(requestInfo, RemoveGroupResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Removes a group from a lifecycle policy. + /// Removes a group from a lifecycle policy. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupResponse.cs b/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupResponse.cs index 95bec254bea..7881ccd4715 100644 --- a/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupResponse.cs +++ b/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.GroupLifecyclePolicies.Item.RemoveGroup { - public class RemoveGroupResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public bool? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new removeGroupResponse and sets the default values. - /// - public RemoveGroupResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use removeGroupPostResponse instead.")] + public class RemoveGroupResponse : RemoveGroupPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static RemoveGroupResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new RemoveGroupResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RemoveGroupResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..72750f30f85 --- /dev/null +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.GroupSettingTemplates.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Delta/DeltaRequestBuilder.cs index c76db308367..2edfb3f0e34 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Delta/DeltaResponse.cs index 1b993b4ac57..2663135cb44 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.GroupSettingTemplates.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs new file mode 100644 index 00000000000..5231eb34f95 --- /dev/null +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.GroupSettingTemplates.GetAvailableExtensionProperties { + public class GetAvailableExtensionPropertiesPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAvailableExtensionPropertiesPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index a50ed48abc5..bcb73d9a231 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -28,13 +28,36 @@ public GetAvailableExtensionPropertiesRequestBuilder(Dictionary public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groupSettingTemplates/getAvailableExtensionProperties", rawUrl) { } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetAvailableExtensionPropertiesPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetAvailabl return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index fb6da5f8acd..3fe1865929f 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.GroupSettingTemplates.GetAvailableExtensionProperties { - public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAvailableExtensionPropertiesPostResponse instead.")] + public class GetAvailableExtensionPropertiesResponse : GetAvailableExtensionPropertiesPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetByIds/GetByIdsPostResponse.cs new file mode 100644 index 00000000000..cc31fb0707e --- /dev/null +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetByIds/GetByIdsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.GroupSettingTemplates.GetByIds { + public class GetByIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetByIdsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetByIds/GetByIdsRequestBuilder.cs index a3d25ae58a7..ba0cbe1562a 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetByIds/GetByIdsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetByIdsRequestBuilder(Dictionary pathParameters, IReques public GetByIdsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groupSettingTemplates/getByIds", rawUrl) { } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetByIdsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetByIdsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetByIdsPostRequestBody body, Acti return await RequestAdapter.SendAsync(requestInfo, GetByIdsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetByIds/GetByIdsResponse.cs index b65340418ed..c71c9746a77 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetByIds/GetByIdsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.GroupSettingTemplates.GetByIds { - public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getByIdsPostResponse instead.")] + public class GetByIdsResponse : GetByIdsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/GroupSettingTemplatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/GroupSettingTemplatesRequestBuilder.cs index bf3345f7506..337bfce4214 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/GroupSettingTemplatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/GroupSettingTemplatesRequestBuilder.cs @@ -62,7 +62,7 @@ public GroupSettingTemplatesRequestBuilder(Dictionary pathParame public GroupSettingTemplatesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groupSettingTemplates{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Group setting templates represents a set of templates from which group settings may be created and used within a tenant. This operation retrieves the list of available groupSettingTemplates objects. + /// Group setting templates represents a set of templates from which group settings may be created and used within a tenant. This operation retrieves the list of available groupSettingTemplates objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -103,7 +103,7 @@ public async Task PostAsync(GroupSettingTemplate body, Act return await RequestAdapter.SendAsync(requestInfo, GroupSettingTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Group setting templates represents a set of templates from which group settings may be created and used within a tenant. This operation retrieves the list of available groupSettingTemplates objects. + /// Group setting templates represents a set of templates from which group settings may be created and used within a tenant. This operation retrieves the list of available groupSettingTemplates objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,7 +164,7 @@ public GroupSettingTemplatesRequestBuilder WithUrl(string rawUrl) { return new GroupSettingTemplatesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Group setting templates represents a set of templates from which group settings may be created and used within a tenant. This operation retrieves the list of available groupSettingTemplates objects. + /// Group setting templates represents a set of templates from which group settings may be created and used within a tenant. This operation retrieves the list of available groupSettingTemplates objects. This API is supported in the following national cloud deployments. /// public class GroupSettingTemplatesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..34a0a83a94d --- /dev/null +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.GroupSettingTemplates.Item.CheckMemberGroups { + public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index ed65477edc7..32119265193 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groupSettingTemplates/{groupSettingTemplate%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index e57d07242ac..4cf58521ef6 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.GroupSettingTemplates.Item.CheckMemberGroups { - public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberGroupsPostResponse instead.")] + public class CheckMemberGroupsResponse : CheckMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..c932025a6b0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.GroupSettingTemplates.Item.CheckMemberObjects { + public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index d477c45fdf6..145370f9664 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -34,6 +34,28 @@ public CheckMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAd /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action checkMemberObjects + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index 8a6fc5b5dd4..690fabc4794 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.GroupSettingTemplates.Item.CheckMemberObjects { - public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberObjectsPostResponse instead.")] + public class CheckMemberObjectsResponse : CheckMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..78cefca2845 --- /dev/null +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.GroupSettingTemplates.Item.GetMemberGroups { + public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index 05d30f33899..b884cffbe5f 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberGroupsRequestBuilder(Dictionary pathParameters, public GetMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groupSettingTemplates/{groupSettingTemplate%2Did}/getMemberGroups", rawUrl) { } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberGroupsPostRequestB return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsResponse.cs index cc1886b7047..94b4492a541 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.GroupSettingTemplates.Item.GetMemberGroups { - public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberGroupsPostResponse instead.")] + public class GetMemberGroupsResponse : GetMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..2b3681d6c71 --- /dev/null +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.GroupSettingTemplates.Item.GetMemberObjects { + public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index e0d602fe7ed..82f26df9c3d 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberObjectsRequestBuilder(Dictionary pathParameters, public GetMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groupSettingTemplates/{groupSettingTemplate%2Did}/getMemberObjects", rawUrl) { } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberObjectsPostReques return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsResponse.cs index 133973cd612..e02ca929762 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.GroupSettingTemplates.Item.GetMemberObjects { - public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberObjectsPostResponse instead.")] + public class GetMemberObjectsResponse : GetMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GroupSettingTemplateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GroupSettingTemplateItemRequestBuilder.cs index c30f8a3b56b..327a7b22320 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GroupSettingTemplateItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GroupSettingTemplateItemRequestBuilder.cs @@ -73,7 +73,7 @@ public async Task DeleteAsync(Action - /// A group setting template represents a template of settings from which settings may be created within a tenant. This operation allows retrieval of the properties of the groupSettingTemplate object, including the available settings and their defaults. + /// A group setting template represents a template of settings from which settings may be created within a tenant. This operation allows retrieval of the properties of the groupSettingTemplate object, including the available settings and their defaults. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -138,7 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// A group setting template represents a template of settings from which settings may be created within a tenant. This operation allows retrieval of the properties of the groupSettingTemplate object, including the available settings and their defaults. + /// A group setting template represents a template of settings from which settings may be created within a tenant. This operation allows retrieval of the properties of the groupSettingTemplate object, including the available settings and their defaults. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -215,7 +215,7 @@ public GroupSettingTemplateItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// A group setting template represents a template of settings from which settings may be created within a tenant. This operation allows retrieval of the properties of the groupSettingTemplate object, including the available settings and their defaults. + /// A group setting template represents a template of settings from which settings may be created within a tenant. This operation allows retrieval of the properties of the groupSettingTemplate object, including the available settings and their defaults. This API is supported in the following national cloud deployments. /// public class GroupSettingTemplateItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/Restore/RestoreRequestBuilder.cs index a53984d7a90..aa328de138e 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/Restore/RestoreRequestBuilder.cs @@ -29,7 +29,7 @@ public RestoreRequestBuilder(Dictionary pathParameters, IRequest public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groupSettingTemplates/{groupSettingTemplate%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.cs index 58498df8ca5..c53918fb209 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -28,7 +28,7 @@ public ValidatePropertiesRequestBuilder(Dictionary pathParameter public ValidatePropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groupSettingTemplates/validateProperties", rawUrl) { } /// - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ValidatePropertiesPostRequestBody body, Action - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/GroupSettings/GroupSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupSettings/GroupSettingsRequestBuilder.cs index 1b0a33715ce..ad6dc119e8d 100644 --- a/src/Microsoft.Graph/Generated/GroupSettings/GroupSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupSettings/GroupSettingsRequestBuilder.cs @@ -42,7 +42,7 @@ public GroupSettingsRequestBuilder(Dictionary pathParameters, IR public GroupSettingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groupSettings{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of tenant-level or group-specific group settings objects. + /// Retrieve a list of tenant-level or group-specific group settings objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, GroupSettingCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new setting based on the templates available in groupSettingTemplates. These settings can be at the tenant-level or at the group level. Group settings apply to only Microsoft 365 groups. The template named Group.Unified can be used to configure tenant-wide Microsoft 365 group settings, while the template named Group.Unified.Guest can be used to configure group-specific settings. + /// Create a new setting based on the templates available in groupSettingTemplates. These settings can be at the tenant-level or at the group level. Group settings apply to only Microsoft 365 groups. The template named Group.Unified can be used to configure tenant-wide Microsoft 365 group settings, while the template named Group.Unified.Guest can be used to configure group-specific settings. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(GroupSetting body, Action(requestInfo, GroupSetting.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of tenant-level or group-specific group settings objects. + /// Retrieve a list of tenant-level or group-specific group settings objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new setting based on the templates available in groupSettingTemplates. These settings can be at the tenant-level or at the group level. Group settings apply to only Microsoft 365 groups. The template named Group.Unified can be used to configure tenant-wide Microsoft 365 group settings, while the template named Group.Unified.Guest can be used to configure group-specific settings. + /// Create a new setting based on the templates available in groupSettingTemplates. These settings can be at the tenant-level or at the group level. Group settings apply to only Microsoft 365 groups. The template named Group.Unified can be used to configure tenant-wide Microsoft 365 group settings, while the template named Group.Unified.Guest can be used to configure group-specific settings. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public GroupSettingsRequestBuilder WithUrl(string rawUrl) { return new GroupSettingsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of tenant-level or group-specific group settings objects. + /// Retrieve a list of tenant-level or group-specific group settings objects. This API is supported in the following national cloud deployments. /// public class GroupSettingsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/GroupSettings/Item/GroupSettingItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupSettings/Item/GroupSettingItemRequestBuilder.cs index ea76caebc05..e05490608cf 100644 --- a/src/Microsoft.Graph/Generated/GroupSettings/Item/GroupSettingItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupSettings/Item/GroupSettingItemRequestBuilder.cs @@ -29,7 +29,7 @@ public GroupSettingItemRequestBuilder(Dictionary pathParameters, public GroupSettingItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groupSettings/{groupSetting%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a tenant-level or group-specific groupSetting object. + /// Delete a tenant-level or group-specific groupSetting object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties of a specific group setting object. The setting can be a tenant-level or group-specific setting. + /// Retrieve the properties of a specific group setting object. The setting can be a tenant-level or group-specific setting. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, GroupSetting.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a groupSetting object for tenant-wide group settings or a specific group setting. + /// Update the properties of a groupSetting object for tenant-wide group settings or a specific group setting. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(GroupSetting body, Action(requestInfo, GroupSetting.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a tenant-level or group-specific groupSetting object. + /// Delete a tenant-level or group-specific groupSetting object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties of a specific group setting object. The setting can be a tenant-level or group-specific setting. + /// Retrieve the properties of a specific group setting object. The setting can be a tenant-level or group-specific setting. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a groupSetting object for tenant-wide group settings or a specific group setting. + /// Update the properties of a groupSetting object for tenant-wide group settings or a specific group setting. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public GroupSettingItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties of a specific group setting object. The setting can be a tenant-level or group-specific setting. + /// Retrieve the properties of a specific group setting object. The setting can be a tenant-level or group-specific setting. This API is supported in the following national cloud deployments. /// public class GroupSettingItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..c01d002d84d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Group.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Delta/DeltaRequestBuilder.cs index 418ed4eb414..1ddab9d6649 100644 --- a/src/Microsoft.Graph/Generated/Groups/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Groups/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Groups/Delta/DeltaResponse.cs index 7f07c0d266f..657d7cb9bbd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Group.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs new file mode 100644 index 00000000000..1ed0c37bfaf --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.GetAvailableExtensionProperties { + public class GetAvailableExtensionPropertiesPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAvailableExtensionPropertiesPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index 3a4c56e2bd0..48d24fd5aaa 100644 --- a/src/Microsoft.Graph/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -28,13 +28,36 @@ public GetAvailableExtensionPropertiesRequestBuilder(Dictionary public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/getAvailableExtensionProperties", rawUrl) { } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetAvailableExtensionPropertiesPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetAvailabl return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index b75447da101..fd6694d991f 100644 --- a/src/Microsoft.Graph/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.GetAvailableExtensionProperties { - public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAvailableExtensionPropertiesPostResponse instead.")] + public class GetAvailableExtensionPropertiesResponse : GetAvailableExtensionPropertiesPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/GetByIds/GetByIdsPostResponse.cs new file mode 100644 index 00000000000..d839eba6628 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/GetByIds/GetByIdsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.GetByIds { + public class GetByIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetByIdsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/GetByIds/GetByIdsRequestBuilder.cs index 227993675a0..7af9b74b54d 100644 --- a/src/Microsoft.Graph/Generated/Groups/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/GetByIds/GetByIdsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetByIdsRequestBuilder(Dictionary pathParameters, IReques public GetByIdsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/getByIds", rawUrl) { } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetByIdsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetByIdsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetByIdsPostRequestBody body, Acti return await RequestAdapter.SendAsync(requestInfo, GetByIdsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/Groups/GetByIds/GetByIdsResponse.cs index 21043ac1055..56053565474 100644 --- a/src/Microsoft.Graph/Generated/Groups/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/GetByIds/GetByIdsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.GetByIds { - public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getByIdsPostResponse instead.")] + public class GetByIdsResponse : GetByIdsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/GroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/GroupsRequestBuilder.cs index 99d6e667912..2f74badf7e3 100644 --- a/src/Microsoft.Graph/Generated/Groups/GroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/GroupsRequestBuilder.cs @@ -62,7 +62,7 @@ public GroupsRequestBuilder(Dictionary pathParameters, IRequestA public GroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all the groups available in an organization, excluding dynamic distribution groups. To retrieve dynamic distribution groups, use the Exchange admin center. This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the group and specify the properties in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and are not returned in the $select query. + /// List all the groups available in an organization, excluding dynamic distribution groups. To retrieve dynamic distribution groups, use the Exchange admin center. This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the group and specify the properties in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and are not returned in the $select query. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -82,7 +82,7 @@ public async Task GetAsync(Action(requestInfo, GroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new group as specified in the request body. You can create the following types of groups: This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. + /// Create a new group as specified in the request body. You can create the following types of groups: This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -104,7 +104,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Group.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all the groups available in an organization, excluding dynamic distribution groups. To retrieve dynamic distribution groups, use the Exchange admin center. This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the group and specify the properties in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and are not returned in the $select query. + /// List all the groups available in an organization, excluding dynamic distribution groups. To retrieve dynamic distribution groups, use the Exchange admin center. This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the group and specify the properties in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and are not returned in the $select query. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -130,7 +130,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new group as specified in the request body. You can create the following types of groups: This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. + /// Create a new group as specified in the request body. You can create the following types of groups: This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -165,7 +165,7 @@ public GroupsRequestBuilder WithUrl(string rawUrl) { return new GroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the groups available in an organization, excluding dynamic distribution groups. To retrieve dynamic distribution groups, use the Exchange admin center. This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the group and specify the properties in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and are not returned in the $select query. + /// List all the groups available in an organization, excluding dynamic distribution groups. To retrieve dynamic distribution groups, use the Exchange admin center. This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the group and specify the properties in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and are not returned in the $select query. This API is supported in the following national cloud deployments. /// public class GroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/AcceptedSendersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/AcceptedSendersRequestBuilder.cs index 63b5d34e840..3a938634cee 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/AcceptedSendersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/AcceptedSendersRequestBuilder.cs @@ -47,7 +47,7 @@ public AcceptedSendersRequestBuilder(Dictionary pathParameters, public AcceptedSendersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/acceptedSenders{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Users in the accepted senders list can post to conversations of the group (identified in the GET request URL).Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. + /// Users in the accepted senders list can post to conversations of the group (identified in the GET request URL).Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, DirectoryObjectCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Users in the accepted senders list can post to conversations of the group (identified in the GET request URL).Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. + /// Users in the accepted senders list can post to conversations of the group (identified in the GET request URL).Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -100,7 +100,7 @@ public AcceptedSendersRequestBuilder WithUrl(string rawUrl) { return new AcceptedSendersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Users in the accepted senders list can post to conversations of the group (identified in the GET request URL).Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. + /// Users in the accepted senders list can post to conversations of the group (identified in the GET request URL).Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. This API is supported in the following national cloud deployments. /// public class AcceptedSendersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/Ref/RefRequestBuilder.cs index 390d7558b9d..61b592e8cbb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/Ref/RefRequestBuilder.cs @@ -29,7 +29,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/acceptedSenders/$ref{?%24top,%24skip,%24filter,%24count,%24orderby}", rawUrl) { } /// - /// Users in the accepted senders list can post to conversations of the group (identified in the GET request URL).Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. + /// Users in the accepted senders list can post to conversations of the group (identified in the GET request URL).Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, StringCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Specify the user or group in @odata.id in the request body. Users in the accepted senders list can post to conversations of the group. Make sure you don't specify the same user or group in the accepted senders and rejected senders lists, otherwise you'll get an error. + /// Specify the user or group in @odata.id in the request body. Users in the accepted senders list can post to conversations of the group. Make sure you don't specify the same user or group in the accepted senders and rejected senders lists, otherwise you'll get an error. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -71,7 +71,7 @@ public async Task PostAsync(ReferenceCreate body, Action - /// Users in the accepted senders list can post to conversations of the group (identified in the GET request URL).Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. + /// Users in the accepted senders list can post to conversations of the group (identified in the GET request URL).Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -97,7 +97,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Specify the user or group in @odata.id in the request body. Users in the accepted senders list can post to conversations of the group. Make sure you don't specify the same user or group in the accepted senders and rejected senders lists, otherwise you'll get an error. + /// Specify the user or group in @odata.id in the request body. Users in the accepted senders list can post to conversations of the group. Make sure you don't specify the same user or group in the accepted senders and rejected senders lists, otherwise you'll get an error. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -131,7 +131,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Users in the accepted senders list can post to conversations of the group (identified in the GET request URL).Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. + /// Users in the accepted senders list can post to conversations of the group (identified in the GET request URL).Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/AddFavorite/AddFavoriteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/AddFavorite/AddFavoriteRequestBuilder.cs index 693fec2e044..efbed40f17f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/AddFavorite/AddFavoriteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/AddFavorite/AddFavoriteRequestBuilder.cs @@ -28,7 +28,7 @@ public AddFavoriteRequestBuilder(Dictionary pathParameters, IReq public AddFavoriteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/addFavorite", rawUrl) { } /// - /// Add the group to the list of the current user's favorite groups. Supported for Microsoft 365 groups only. + /// Add the group to the list of the current user's favorite groups. Supported for Microsoft 365 groups only. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Add the group to the list of the current user's favorite groups. Supported for Microsoft 365 groups only. + /// Add the group to the list of the current user's favorite groups. Supported for Microsoft 365 groups only. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.cs index a69437d1858..05e25658b93 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.cs @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, AppRoleAssignmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to assign an app role to a security group. All direct members of the group will be considered assigned. Security groups with dynamic memberships are supported. To grant an app role assignment to a group, you need three identifiers: Additional licenses might be required to use a group to manage access to applications. + /// Use this API to assign an app role to a security group. All direct members of the group will be considered assigned. Security groups with dynamic memberships are supported. To grant an app role assignment to a group, you need three identifiers: Additional licenses might be required to use a group to manage access to applications. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to assign an app role to a security group. All direct members of the group will be considered assigned. Security groups with dynamic memberships are supported. To grant an app role assignment to a group, you need three identifiers: Additional licenses might be required to use a group to manage access to applications. + /// Use this API to assign an app role to a security group. All direct members of the group will be considered assigned. Security groups with dynamic memberships are supported. To grant an app role assignment to a group, you need three identifiers: Additional licenses might be required to use a group to manage access to applications. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.cs index f08a3c88833..b8b51984b22 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AppRoleAssignmentItemRequestBuilder(Dictionary pathParame public AppRoleAssignmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/appRoleAssignments/{appRoleAssignment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes an appRoleAssignment that a group has been granted. + /// Deletes an appRoleAssignment that a group has been granted. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task PatchAsync(AppRoleAssignment body, Action(requestInfo, AppRoleAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes an appRoleAssignment that a group has been granted. + /// Deletes an appRoleAssignment that a group has been granted. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/AssignLicense/AssignLicenseRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/AssignLicense/AssignLicenseRequestBuilder.cs index 5f49eed16ad..2a95bdf734a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/AssignLicense/AssignLicenseRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/AssignLicense/AssignLicenseRequestBuilder.cs @@ -29,7 +29,7 @@ public AssignLicenseRequestBuilder(Dictionary pathParameters, IR public AssignLicenseRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/assignLicense", rawUrl) { } /// - /// Add or remove licenses on the group. Licenses assigned to the group will be assigned to all users in the group. To learn more about group-based licensing, see What is group-based licensing in Azure Active Directory. To get the subscriptions available in the directory, perform a GET subscribedSkus request. + /// Add or remove licenses on the group. Licenses assigned to the group will be assigned to all users in the group. To learn more about group-based licensing, see What is group-based licensing in Azure Active Directory. To get the subscriptions available in the directory, perform a GET subscribedSkus request. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public AssignLicenseRequestBuilder(string rawUrl, IRequestAdapter requestAdapter return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Group.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add or remove licenses on the group. Licenses assigned to the group will be assigned to all users in the group. To learn more about group-based licensing, see What is group-based licensing in Azure Active Directory. To get the subscriptions available in the directory, perform a GET subscribedSkus request. + /// Add or remove licenses on the group. Licenses assigned to the group will be assigned to all users in the group. To learn more about group-based licensing, see What is group-based licensing in Azure Active Directory. To get the subscriptions available in the directory, perform a GET subscribedSkus request. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs new file mode 100644 index 00000000000..44b87129e5d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Calendar.AllowedCalendarSharingRolesWithUser { + public class AllowedCalendarSharingRolesWithUserGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AllowedCalendarSharingRolesWithUserGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AllowedCalendarSharingRolesWithUserGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfEnumValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfEnumValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs index 047040f3125..e2564c89bdf 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs @@ -35,6 +35,26 @@ public AllowedCalendarSharingRolesWithUserRequestBuilder(string rawUrl, IRequest /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsAllowedCalendarSharingRolesWithUserGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsAllowedCalendarSharingRolesWithUserGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AllowedCalendarSharingRolesWithUserGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function allowedCalendarSharingRoles + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsAllowedCalendarSharingRolesWithUserGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs index f63c199d4bb..54daf506dbb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Calendar.AllowedCalendarSharingRolesWithUser { - public class AllowedCalendarSharingRolesWithUserResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use allowedCalendarSharingRolesWithUserGetResponse instead.")] + public class AllowedCalendarSharingRolesWithUserResponse : AllowedCalendarSharingRolesWithUserGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AllowedCalendarSharingRolesWithUserResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfEnumValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfEnumValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs index 37e1d9df17c..bc9c2573ede 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs @@ -42,7 +42,7 @@ public CalendarPermissionsRequestBuilder(Dictionary pathParamete public CalendarPermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarPermissions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. + /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, CalendarPermissionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. + /// Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(CalendarPermission body, Action< return await RequestAdapter.SendAsync(requestInfo, CalendarPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. + /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. + /// Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public CalendarPermissionsRequestBuilder WithUrl(string rawUrl) { return new CalendarPermissionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. + /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. This API is supported in the following national cloud deployments. /// public class CalendarPermissionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs index e7fead6eb1d..c4c13f2c60b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs @@ -29,7 +29,7 @@ public CalendarPermissionItemRequestBuilder(Dictionary pathParam public CalendarPermissionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarPermissions/{calendarPermission%2Did}{?%24select}", rawUrl) { } /// - /// Delete calendarPermission. + /// Delete calendarPermission. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get the specified permissions object of a user or group calendar that has been shared. + /// Get the specified permissions object of a user or group calendar that has been shared. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, CalendarPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the permissions assigned to an existing sharee or delegate, through the corresponding <b>calendarPermission</b> object for a calendar. + /// Update the permissions assigned to an existing share recipient or delegate, through the corresponding <b>calendarPermission</b> object for a calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(CalendarPermission body, Action return await RequestAdapter.SendAsync(requestInfo, CalendarPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete calendarPermission. + /// Delete calendarPermission. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the specified permissions object of a user or group calendar that has been shared. + /// Get the specified permissions object of a user or group calendar that has been shared. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the permissions assigned to an existing sharee or delegate, through the corresponding <b>calendarPermission</b> object for a calendar. + /// Update the permissions assigned to an existing share recipient or delegate, through the corresponding <b>calendarPermission</b> object for a calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public CalendarPermissionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the specified permissions object of a user or group calendar that has been shared. + /// Get the specified permissions object of a user or group calendar that has been shared. This API is supported in the following national cloud deployments. /// public class CalendarPermissionItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..884ff8cdb4b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Calendar.CalendarView.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.cs index 3d44736adc1..77fc3098c50 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaResponse.cs index 56df9f9b002..f2caaa9e112 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Calendar.CalendarView.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.cs index dcda6e265ff..53782895a5c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 4cc6ef3715e..cfaca8b1f22 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 4a6398cb8f0..009569b496d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 27be4a522a4..0fda7a29efa 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.cs index 1aa49a168b1..014df271856 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.cs index 5b5e73d5fdc..b0417a2a673 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs index 8b967159fe1..758d780b93b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs index c16eb43d9b3..53388ab516c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 7e9ea4d70e2..116530b7ecd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.cs index a2325b679d7..fa46808c238 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..17cb4bc0e6b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Calendar.CalendarView.Item.Instances.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs index b1068e18d8e..23e6ee4696d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaResponse.cs index 25948a747d5..b52efcbe048 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Calendar.CalendarView.Item.Instances.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index 8182775ad29..1ea63648a50 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 2728df25edd..0626aeed983 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 0c73b3a6890..1ef5bac4d35 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 2206a0b2c26..c9a2fea3294 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index 73cb8d9614a..ffcef172f59 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index 7f004fb29c4..22d2d167c75 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index fe6b2fc77ef..9a344c2428e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index 8a88190b3a3..fea8e912b24 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index f86b23eff0b..7be705913cc 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index fcb094a2f34..545b32e6304 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index fb35ebd2c63..7b049a74f10 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index c0c6cbcc89e..707bcaabc58 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 23030cfc9ed..6ddeecb3c09 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 5a26753ea46..0de37a476a4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..89e80ef9184 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Calendar.Events.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Delta/DeltaRequestBuilder.cs index 2a606a31fdf..5c816fcb869 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Delta/DeltaResponse.cs index 8a44c3694b0..ac1159095c4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Calendar.Events.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/EventsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/EventsRequestBuilder.cs index db40500a7f3..0adae32ca3c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/EventsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/EventsRequestBuilder.cs @@ -47,7 +47,7 @@ public EventsRequestBuilder(Dictionary pathParameters, IRequestA public EventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. + /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to create a new event in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. + /// Use this API to create a new event in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Event body, Action(requestInfo, Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. + /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new event in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. + /// Use this API to create a new event in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public EventsRequestBuilder WithUrl(string rawUrl) { return new EventsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. + /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. This API is supported in the following national cloud deployments. /// public class EventsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.cs index df17ca3f6aa..4a2451ac232 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs index c293ab0786f..9deb1ba1e0b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 32b1f96ff3f..40dbceee51f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 1569d0f68a0..219e475d277 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.cs index 985d0eb242a..1b34fa1cbfc 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.cs index c3d9507d19a..6766d05c337 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs index 79355d96d09..c23ebdbb44b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/EventItemRequestBuilder.cs index 498337fe9e0..a01ae379662 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/EventItemRequestBuilder.cs @@ -122,7 +122,7 @@ public async Task GetAsync(Action(requestInfo, Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update an event object. + /// Update an event object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -194,7 +194,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update an event object. + /// Update an event object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs index e28a8e04883..eee116f9a9b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 6e17a590ebc..5e6fdd6a03b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.cs index 02745418517..aae3810c609 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..e76d5826e8b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Calendar.Events.Item.Instances.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.cs index 8ab47cdcff6..65cfb31b24e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaResponse.cs index f42d35ea6bc..b35c8d0e9d9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Calendar.Events.Item.Instances.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index 7ac7cd6dabc..3257001e76a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 884a5f96cc5..ac923abe554 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 47effee3d10..94286004b20 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 46a0653c4c7..994f03e817e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index 752c6cda036..3ce7880923c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index 077088fddcc..6f5396877e2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index 0c8e32208ad..1d7f7fccf0c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index 4dff701f686..fdd9635e843 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index a0550aff1a1..03de19beb4a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index 795f786931b..15f9d09320f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index ed2a4c9801d..f5d86d93bd4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 8afdc5dc21a..342b5e50f4b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 15a507d1d94..1a4c227bfe8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 2b368bc07fb..05e3268e7cf 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/GetSchedule/GetSchedulePostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/GetSchedule/GetSchedulePostResponse.cs new file mode 100644 index 00000000000..d7d83bf459e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/GetSchedule/GetSchedulePostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Calendar.GetSchedule { + public class GetSchedulePostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetSchedulePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetSchedulePostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ScheduleInformation.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.cs index 6087a9a415c..98f4a9d9b70 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.cs @@ -28,13 +28,36 @@ public GetScheduleRequestBuilder(Dictionary pathParameters, IReq public GetScheduleRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/getSchedule", rawUrl) { } /// - /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. + /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetSchedulePostResponseAsync(GetSchedulePostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetSchedulePostResponseAsync(GetSchedulePostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetSchedulePostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetSchedulePostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetSchedulePostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetSchedulePostRequestBody body return await RequestAdapter.SendAsync(requestInfo, GetScheduleResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. + /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/GetSchedule/GetScheduleResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/GetSchedule/GetScheduleResponse.cs index 5eb1f453cc4..3b9ce274529 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/GetSchedule/GetScheduleResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/GetSchedule/GetScheduleResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Calendar.GetSchedule { - public class GetScheduleResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getSchedulePostResponse instead.")] + public class GetScheduleResponse : GetSchedulePostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetScheduleResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ScheduleInformation.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..f0c77732b63 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.CalendarView.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Delta/DeltaRequestBuilder.cs index 930514b4bb3..42f738218f1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Delta/DeltaResponse.cs index 17f61a941f2..91f4f1a03a7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.CalendarView.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs index f3f62e4e828..3a19c16a26d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index e88f0865e20..76dcd74e248 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 220e4059d8d..db6dbad4dc6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 209c0b15d14..cc76734e2e3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs index 09e1fd36b4a..05e9421dd63 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs index 1fee24bf34f..e4faff8126a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs index c6c473daf65..9f29a6ca205 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs index aa70e31b274..a545dd0bf7c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 6ab9f8dc1e1..c7a1dabdcc4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs index 30ddb489b0c..fe38ac77c47 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..f012d38c5e2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.CalendarView.Item.Instances.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs index 6cf18b7ec52..1c61c8e3baa 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs index fefaeabf2f7..0e4bcd302bc 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.CalendarView.Item.Instances.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index f8c38e7eff7..961a1fd974d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 3857091c44d..2c2a05664ac 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index a2c8f9df266..ba95f90f395 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index b8ff19df6b8..0cff3d4698b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index 7676a6b5905..9a0bfd90d37 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index bab73090952..c0bef3b6bf2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index 13432bbe071..3ff8b60c8e0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index c9bf6e005b3..3dbd2ebb632 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 33fa6c53abe..32ecc68e12f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index b4fb1a5d94e..6ea7dadf53f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index b13c0eac986..24b4aa978e8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 406e87360eb..1ae1861b3e9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index ebf5785b028..a4d592564cf 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index bcc0ebd500e..611cae8dc9b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppPostResponse.cs new file mode 100644 index 00000000000..dc906cdd21c --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.CheckGrantedPermissionsForApp { + public class CheckGrantedPermissionsForAppPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckGrantedPermissionsForAppPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckGrantedPermissionsForAppPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppRequestBuilder.cs index 7b4ba7133cb..4be29b1d4e5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppRequestBuilder.cs @@ -33,6 +33,26 @@ public CheckGrantedPermissionsForAppRequestBuilder(string rawUrl, IRequestAdapte /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckGrantedPermissionsForAppPostResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckGrantedPermissionsForAppPostResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckGrantedPermissionsForAppPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action checkGrantedPermissionsForApp + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckGrantedPermissionsForAppPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppResponse.cs index 314ac6be77e..bacaf1c649a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.CheckGrantedPermissionsForApp { - public class CheckGrantedPermissionsForAppResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkGrantedPermissionsForAppPostResponse instead.")] + public class CheckGrantedPermissionsForAppResponse : CheckGrantedPermissionsForAppPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckGrantedPermissionsForAppResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..8a087522556 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.CheckMemberGroups { + public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index b3e457c54d6..6c5d93c0636 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index 4ae45a9459a..078d6a49665 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.CheckMemberGroups { - public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberGroupsPostResponse instead.")] + public class CheckMemberGroupsResponse : CheckMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..a6c19bdf18e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.CheckMemberObjects { + public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index f1b45ee4902..ef6867b2800 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -34,6 +34,28 @@ public CheckMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAd /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action checkMemberObjects + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index 21161184071..91fbcb62e7b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.CheckMemberObjects { - public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberObjectsPostResponse instead.")] + public class CheckMemberObjectsResponse : CheckMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs index 55ea6093228..c29e42ad370 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs @@ -42,7 +42,7 @@ public ConversationsRequestBuilder(Dictionary pathParameters, IR public ConversationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Retrieve the list of conversations in this group. + /// Retrieve the list of conversations in this group. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,8 +62,8 @@ public async Task GetAsync(Action(requestInfo, ConversationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. - /// Find more info here + /// Use reply thread or reply post to further post to that conversation. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task PostAsync(Conversation body, Action(requestInfo, Conversation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of conversations in this group. + /// Retrieve the list of conversations in this group. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Use reply thread or reply post to further post to that conversation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ConversationsRequestBuilder WithUrl(string rawUrl) { return new ConversationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of conversations in this group. + /// Retrieve the list of conversations in this group. This API is supported in the following national cloud deployments. /// public class ConversationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs index 4ca4036df68..a3d3c981b46 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs @@ -34,8 +34,8 @@ public ConversationItemRequestBuilder(Dictionary pathParameters, public ConversationItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}{?%24select}", rawUrl) { } /// - /// Delete conversation. - /// Find more info here + /// This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// The group's conversations. + /// This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, Conversation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete conversation. + /// This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -98,7 +98,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// The group's conversations. + /// This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,7 +147,7 @@ public ConversationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// The group's conversations. + /// This API is supported in the following national cloud deployments. /// public class ConversationItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilder.cs index ccd7741204f..b2b3501e497 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to a post. + /// Retrieve a list of attachment objects attached to a post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -88,7 +88,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to a post. + /// Retrieve a list of attachment objects attached to a post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -149,7 +149,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to a post. + /// Retrieve a list of attachment objects attached to a post. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 513a593449a..3a1e92f608e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilder.cs index 57efdc5a070..4cec3380036 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 5027616cf0e..86e9edda2a8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + /// Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + /// Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -191,7 +191,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Forward/ForwardRequestBuilder.cs index dca71ea221e..9825bf844b1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/forward", rawUrl) { } /// - /// Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + /// Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + /// Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilder.cs index 329a51d00c0..651311f7fc9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to a post. + /// Retrieve a list of attachment objects attached to a post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -88,7 +88,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to a post. + /// Retrieve a list of attachment objects attached to a post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -149,7 +149,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to a post. + /// Retrieve a list of attachment objects attached to a post. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index a12fbf0b715..c972e6806b4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilder.cs index aad8e10b59a..7e976fb29d7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilder.cs index a17bcd63a33..f661c57e046 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + /// Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + /// Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -191,7 +191,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardRequestBuilder.cs index 4166be7c93a..44910a75807 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/forward", rawUrl) { } /// - /// Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + /// Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + /// Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs index 1ffc300ca1a..b538e9baa2b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs @@ -28,8 +28,8 @@ public ReplyRequestBuilder(Dictionary pathParameters, IRequestAd public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/reply", rawUrl) { } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. - /// Find more info here + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -50,7 +50,7 @@ public async Task PostAsync(ReplyPostRequestBody body, Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs index 2ac1e4a947e..a8d1b4184a9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs @@ -28,8 +28,8 @@ public ReplyRequestBuilder(Dictionary pathParameters, IRequestAd public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/reply", rawUrl) { } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. - /// Find more info here + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -50,7 +50,7 @@ public async Task PostAsync(ReplyPostRequestBody body, Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/PostsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/PostsRequestBuilder.cs index ba142ad2769..669352bd141 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/PostsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/PostsRequestBuilder.cs @@ -42,8 +42,8 @@ public PostsRequestBuilder(Dictionary pathParameters, IRequestAd public PostsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. - /// Find more info here + /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, PostCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public PostsRequestBuilder WithUrl(string rawUrl) { return new PostsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. This API is supported in the following national cloud deployments. /// public class PostsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.cs index 1fd7e4b1548..0ee01c46cec 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.cs @@ -28,8 +28,8 @@ public ReplyRequestBuilder(Dictionary pathParameters, IRequestAd public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/reply", rawUrl) { } /// - /// Add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -50,7 +50,7 @@ public async Task PostAsync(ReplyPostRequestBody body, Action - /// Add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/ThreadsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/ThreadsRequestBuilder.cs index 6d82a611ed3..68d9992879e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/ThreadsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/ThreadsRequestBuilder.cs @@ -42,7 +42,7 @@ public ThreadsRequestBuilder(Dictionary pathParameters, IRequest public ThreadsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get all the threads in a group conversation. Note: You can also get all the threads of a group. + /// Get all the threads in a group conversation. Note: You can also get all the threads of a group. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ConversationThreadCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new thread in the specified conversation. A thread and post are created as specified. Use reply thread to further post to that thread. Or, if you get the post ID, you can also reply to that post in that thread. Note: You can also start a new conversation by first creating a thread. + /// Create a new thread in the specified conversation. A thread and post are created as specified. Use reply thread to further post to that thread. Or, if you get the post ID, you can also reply to that post in that thread. Note: You can also start a new conversation by first creating a thread. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(ConversationThread body, Action< return await RequestAdapter.SendAsync(requestInfo, ConversationThread.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get all the threads in a group conversation. Note: You can also get all the threads of a group. + /// Get all the threads in a group conversation. Note: You can also get all the threads of a group. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new thread in the specified conversation. A thread and post are created as specified. Use reply thread to further post to that thread. Or, if you get the post ID, you can also reply to that post in that thread. Note: You can also start a new conversation by first creating a thread. + /// Create a new thread in the specified conversation. A thread and post are created as specified. Use reply thread to further post to that thread. Or, if you get the post ID, you can also reply to that post in that thread. Note: You can also start a new conversation by first creating a thread. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ThreadsRequestBuilder WithUrl(string rawUrl) { return new ThreadsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get all the threads in a group conversation. Note: You can also get all the threads of a group. + /// Get all the threads in a group conversation. Note: You can also get all the threads of a group. This API is supported in the following national cloud deployments. /// public class ThreadsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..0f6f86aaf9c --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Events.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Delta/DeltaRequestBuilder.cs index 6cc68a5b1df..c5404bd7ed6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Delta/DeltaResponse.cs index fd408575408..b3653fc2a54 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Events.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/EventsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/EventsRequestBuilder.cs index 7e43a24dd87..04ff04d3089 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/EventsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/EventsRequestBuilder.cs @@ -47,7 +47,7 @@ public EventsRequestBuilder(Dictionary pathParameters, IRequestA public EventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Retrieve a list of event objects. + /// Retrieve a list of event objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to create a new event. + /// Use this API to create a new event. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Event body, Action(requestInfo, Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of event objects. + /// Retrieve a list of event objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new event. + /// Use this API to create a new event. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public EventsRequestBuilder WithUrl(string rawUrl) { return new EventsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of event objects. + /// Retrieve a list of event objects. This API is supported in the following national cloud deployments. /// public class EventsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Accept/AcceptRequestBuilder.cs index 097f2f2870f..7e07a447d80 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index cd7acda4256..3144c888b9f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index e43a9f62d80..55d81a07d72 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 90f659d806d..54c644052b4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Cancel/CancelRequestBuilder.cs index 9a1dd6f3088..2d621113239 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Decline/DeclineRequestBuilder.cs index 4dd21fbea6f..4fa88eec42a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs index cad698161d5..8bc18ff4f31 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/EventItemRequestBuilder.cs index cb99c9c3c2b..e338f6cef9c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/EventItemRequestBuilder.cs @@ -84,7 +84,7 @@ public EventItemRequestBuilder(Dictionary pathParameters, IReque public EventItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}{?%24select}", rawUrl) { } /// - /// Delete an event object. + /// Delete an event object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -104,7 +104,7 @@ public async Task DeleteAsync(Action - /// Get an event object. + /// Get an event object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -145,7 +145,7 @@ public async Task PatchAsync(Event body, Action(requestInfo, Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an event object. + /// Delete an event object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -169,7 +169,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an event object. + /// Get an event object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -246,7 +246,7 @@ public EventItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an event object. + /// Get an event object. This API is supported in the following national cloud deployments. /// public class EventItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs index 5d5d9d53f00..79bd9b9a199 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index a5b1e524110..dbb3d181d4e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Forward/ForwardRequestBuilder.cs index 1139d745791..2e8750a3746 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..2417a58ea89 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Events.Item.Instances.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs index 1feaefe293d..23f92049176 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaResponse.cs index 88098b16b65..6cc34ef383d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Events.Item.Instances.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index a2359f96da5..ad2c4bcd952 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index be43732b09d..08d70262a63 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 1ff015f7e0c..15c200f2fd0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index c35594fc4a8..c81fa94d764 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index 1c912aa16aa..51782536223 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index 71c421ebea9..dfe671dc020 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index 325ed614052..4caf63a5503 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index e331a2556aa..03853a1b6aa 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index c428549e79a..1c77aa8e849 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index ac8ac2b49cf..6b4c26681cd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 7a5b5beffbb..7533585855e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index e9910ce79ef..21fe5b4c3fd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 503545ad13a..14e294af711 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index a9522220644..81efad14b4e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..0c43db32e17 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.GetMemberGroups { + public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index ad9788fdfa5..2883068faff 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberGroupsRequestBuilder(Dictionary pathParameters, public GetMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/getMemberGroups", rawUrl) { } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberGroupsPostRequestB return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsResponse.cs index d83162cc124..435bdd44e41 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.GetMemberGroups { - public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberGroupsPostResponse instead.")] + public class GetMemberGroupsResponse : GetMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..8a64556e3ed --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.GetMemberObjects { + public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index 9570ce795aa..c76053b4fcf 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberObjectsRequestBuilder(Dictionary pathParameters, public GetMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/getMemberObjects", rawUrl) { } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberObjectsPostReques return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsResponse.cs index 951653fa1f3..aa84753feb4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.GetMemberObjects { - public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberObjectsPostResponse instead.")] + public class GetMemberObjectsResponse : GetMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/GroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/GroupItemRequestBuilder.cs index 6f99a3897be..3d2eea5cf8b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/GroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/GroupItemRequestBuilder.cs @@ -32,6 +32,7 @@ using Microsoft.Graph.Groups.Item.ResetUnseenCount; using Microsoft.Graph.Groups.Item.Restore; using Microsoft.Graph.Groups.Item.RetryServiceProvisioning; +using Microsoft.Graph.Groups.Item.ServiceProvisioningErrors; using Microsoft.Graph.Groups.Item.Settings; using Microsoft.Graph.Groups.Item.Sites; using Microsoft.Graph.Groups.Item.SubscribeByMail; @@ -188,6 +189,10 @@ public class GroupItemRequestBuilder : BaseRequestBuilder { public RetryServiceProvisioningRequestBuilder RetryServiceProvisioning { get => new RetryServiceProvisioningRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to manage the settings property of the microsoft.graph.group entity. public SettingsRequestBuilder Settings { get => new SettingsRequestBuilder(PathParameters, RequestAdapter); @@ -239,7 +244,7 @@ public GroupItemRequestBuilder(Dictionary pathParameters, IReque public GroupItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete group. When deleted, Microsoft 365 groups are moved to a temporary container and can be restored within 30 days. After that time, they're permanently deleted. This isn't applicable to Security groups and Distribution groups which are permanently deleted immediately. To learn more, see deletedItems. + /// Delete group. When deleted, Microsoft 365 groups are moved to a temporary container and can be restored within 30 days. After that time, they're permanently deleted. This isn't applicable to Security groups and Distribution groups which are permanently deleted immediately. To learn more, see deletedItems. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -259,7 +264,7 @@ public async Task DeleteAsync(Action - /// Get the properties and relationships of a group object. This operation returns by default only a subset of all the available properties, as noted in the Properties section. To get properties that are not returned by default, specify them in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and are not returned in the $select query. + /// Get the properties and relationships of a group object. This operation returns by default only a subset of all the available properties, as noted in the Properties section. To get properties that aren't_ returned by default, specify them in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and aren't returned in the $select query. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -279,8 +284,8 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Group.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a group object. - /// Find more info here + /// Add a member to a security or Microsoft 365 group through the members navigation property. The following table shows the types of members that can be added to either security groups or Microsoft 365 groups. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -301,7 +306,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Group.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete group. When deleted, Microsoft 365 groups are moved to a temporary container and can be restored within 30 days. After that time, they're permanently deleted. This isn't applicable to Security groups and Distribution groups which are permanently deleted immediately. To learn more, see deletedItems. + /// Delete group. When deleted, Microsoft 365 groups are moved to a temporary container and can be restored within 30 days. After that time, they're permanently deleted. This isn't applicable to Security groups and Distribution groups which are permanently deleted immediately. To learn more, see deletedItems. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -325,7 +330,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties and relationships of a group object. This operation returns by default only a subset of all the available properties, as noted in the Properties section. To get properties that are not returned by default, specify them in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and are not returned in the $select query. + /// Get the properties and relationships of a group object. This operation returns by default only a subset of all the available properties, as noted in the Properties section. To get properties that aren't_ returned by default, specify them in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and aren't returned in the $select query. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -351,7 +356,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a group object. + /// Add a member to a security or Microsoft 365 group through the members navigation property. The following table shows the types of members that can be added to either security groups or Microsoft 365 groups. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -402,7 +407,7 @@ public GroupItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the properties and relationships of a group object. This operation returns by default only a subset of all the available properties, as noted in the Properties section. To get properties that are not returned by default, specify them in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and are not returned in the $select query. + /// Get the properties and relationships of a group object. This operation returns by default only a subset of all the available properties, as noted in the Properties section. To get properties that aren't_ returned by default, specify them in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and aren't returned in the $select query. This API is supported in the following national cloud deployments. /// public class GroupItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.cs index d33cd4c4ded..fe2b065415d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.cs @@ -42,7 +42,7 @@ public GroupLifecyclePoliciesRequestBuilder(Dictionary pathParam public GroupLifecyclePoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/groupLifecyclePolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieves a list of groupLifecyclePolicy objects to which a group belongs. + /// Retrieves a list of groupLifecyclePolicy objects to which a group belongs. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(GroupLifecyclePolicy body, Act return await RequestAdapter.SendAsync(requestInfo, GroupLifecyclePolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieves a list of groupLifecyclePolicy objects to which a group belongs. + /// Retrieves a list of groupLifecyclePolicy objects to which a group belongs. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public GroupLifecyclePoliciesRequestBuilder WithUrl(string rawUrl) { return new GroupLifecyclePoliciesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieves a list of groupLifecyclePolicy objects to which a group belongs. + /// Retrieves a list of groupLifecyclePolicy objects to which a group belongs. This API is supported in the following national cloud deployments. /// public class GroupLifecyclePoliciesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostResponse.cs new file mode 100644 index 00000000000..255500fb6e3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.GroupLifecyclePolicies.Item.AddGroup { + public class AddGroupPostResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public bool? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new addGroupPostResponse and sets the default values. + /// + public AddGroupPostResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static AddGroupPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AddGroupPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.cs index 471c82985b1..ff7544def54 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.cs @@ -28,13 +28,36 @@ public AddGroupRequestBuilder(Dictionary pathParameters, IReques public AddGroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/groupLifecyclePolicies/{groupLifecyclePolicy%2Did}/addGroup", rawUrl) { } /// - /// Adds specific groups to a lifecycle policy. This action limits the group lifecycle policy to a set of groups only if the managedGroupTypes property of groupLifecyclePolicy is set to Selected. + /// Adds specific groups to a lifecycle policy. This action limits the group lifecycle policy to a set of groups only if the managedGroupTypes property of groupLifecyclePolicy is set to Selected. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsAddGroupPostResponseAsync(AddGroupPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsAddGroupPostResponseAsync(AddGroupPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AddGroupPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Adds specific groups to a lifecycle policy. This action limits the group lifecycle policy to a set of groups only if the managedGroupTypes property of groupLifecyclePolicy is set to Selected. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsAddGroupPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(AddGroupPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(AddGroupPostRequestBody body, Acti return await RequestAdapter.SendAsync(requestInfo, AddGroupResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Adds specific groups to a lifecycle policy. This action limits the group lifecycle policy to a set of groups only if the managedGroupTypes property of groupLifecyclePolicy is set to Selected. + /// Adds specific groups to a lifecycle policy. This action limits the group lifecycle policy to a set of groups only if the managedGroupTypes property of groupLifecyclePolicy is set to Selected. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupResponse.cs index a73c803906e..1330e459e1d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.GroupLifecyclePolicies.Item.AddGroup { - public class AddGroupResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public bool? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new addGroupResponse and sets the default values. - /// - public AddGroupResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use addGroupPostResponse instead.")] + public class AddGroupResponse : AddGroupPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static AddGroupResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new AddGroupResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddGroupResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostResponse.cs new file mode 100644 index 00000000000..3416d14affa --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.GroupLifecyclePolicies.Item.RemoveGroup { + public class RemoveGroupPostResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public bool? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new removeGroupPostResponse and sets the default values. + /// + public RemoveGroupPostResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static RemoveGroupPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new RemoveGroupPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.cs index ad01c7fd730..dc3820ea514 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.cs @@ -28,13 +28,36 @@ public RemoveGroupRequestBuilder(Dictionary pathParameters, IReq public RemoveGroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/groupLifecyclePolicies/{groupLifecyclePolicy%2Did}/removeGroup", rawUrl) { } /// - /// Removes a group from a lifecycle policy. + /// Removes a group from a lifecycle policy. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsRemoveGroupPostResponseAsync(RemoveGroupPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsRemoveGroupPostResponseAsync(RemoveGroupPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, RemoveGroupPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Removes a group from a lifecycle policy. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsRemoveGroupPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(RemoveGroupPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(RemoveGroupPostRequestBody body return await RequestAdapter.SendAsync(requestInfo, RemoveGroupResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Removes a group from a lifecycle policy. + /// Removes a group from a lifecycle policy. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupResponse.cs index 4b5289dc638..8a19d8359c8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.GroupLifecyclePolicies.Item.RemoveGroup { - public class RemoveGroupResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public bool? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new removeGroupResponse and sets the default values. - /// - public RemoveGroupResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use removeGroupPostResponse instead.")] + public class RemoveGroupResponse : RemoveGroupPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static RemoveGroupResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new RemoveGroupResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RemoveGroupResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/Ref/RefRequestBuilder.cs index 0a55c9de8eb..80f077f13a4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/Ref/RefRequestBuilder.cs @@ -28,7 +28,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { } /// - /// Remove a member from a group via the members navigation property. You can't remove a member from groups with dynamic memberships. + /// Remove a member from a group via the members navigation property. You can't remove a member from groups with dynamic memberships. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Remove a member from a group via the members navigation property. You can't remove a member from groups with dynamic memberships. + /// Remove a member from a group via the members navigation property. You can't remove a member from groups with dynamic memberships. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -80,7 +80,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a member from a group via the members navigation property. You can't remove a member from groups with dynamic memberships. + /// Remove a member from a group via the members navigation property. You can't remove a member from groups with dynamic memberships. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderDeleteQueryParameters { /// Delete Uri diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Members/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Members/Ref/RefRequestBuilder.cs index a87bb629c11..b9c6f33b412 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Members/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Members/Ref/RefRequestBuilder.cs @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, StringCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a member to a security or Microsoft 365 group through the members navigation property. The following table shows the types of members that can be added to either security groups or Microsoft 365 groups. + /// Add a member to a security or Microsoft 365 group through the members navigation property. The following table shows the types of members that can be added to either security groups or Microsoft 365 groups. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -97,7 +97,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a member to a security or Microsoft 365 group through the members navigation property. The following table shows the types of members that can be added to either security groups or Microsoft 365 groups. + /// Add a member to a security or Microsoft 365 group through the members navigation property. The following table shows the types of members that can be added to either security groups or Microsoft 365 groups. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs index 6e77b01aa16..edf08971c7a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs @@ -29,7 +29,7 @@ public GetNotebookFromWebUrlRequestBuilder(Dictionary pathParame public GetNotebookFromWebUrlRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/getNotebookFromWebUrl", rawUrl) { } /// - /// Retrieve the properties and relationships of a notebook object by using its URL path. The location can be user notebooks on Microsoft 365, group notebooks, or SharePoint site-hosted team notebooks on Microsoft 365. + /// Retrieve the properties and relationships of a notebook object by using its URL path. The location can be user notebooks on Microsoft 365, group notebooks, or SharePoint site-hosted team notebooks on Microsoft 365. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(GetNotebookFromWebUrlPostRequestB return await RequestAdapter.SendAsync(requestInfo, CopyNotebookModel.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the properties and relationships of a notebook object by using its URL path. The location can be user notebooks on Microsoft 365, group notebooks, or SharePoint site-hosted team notebooks on Microsoft 365. + /// Retrieve the properties and relationships of a notebook object by using its URL path. The location can be user notebooks on Microsoft 365, group notebooks, or SharePoint site-hosted team notebooks on Microsoft 365. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs new file mode 100644 index 00000000000..4e4d553d7bc --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Onenote.Notebooks.GetRecentNotebooksWithIncludePersonalNotebooks { + public class GetRecentNotebooksWithIncludePersonalNotebooksGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetRecentNotebooksWithIncludePersonalNotebooksGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetRecentNotebooksWithIncludePersonalNotebooksGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(RecentNotebook.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs index 48b232159b9..32095f98e8e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs @@ -35,6 +35,26 @@ public GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder(string rawUr /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetRecentNotebooksWithIncludePersonalNotebooksGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetRecentNotebooksWithIncludePersonalNotebooksGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getRecentNotebooks + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetRecentNotebooksWithIncludePersonalNotebooksGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs index 69f3b7e2316..9efcb6cd27d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Onenote.Notebooks.GetRecentNotebooksWithIncludePersonalNotebooks { - public class GetRecentNotebooksWithIncludePersonalNotebooksResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getRecentNotebooksWithIncludePersonalNotebooksGetResponse instead.")] + public class GetRecentNotebooksWithIncludePersonalNotebooksResponse : GetRecentNotebooksWithIncludePersonalNotebooksGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetRecentNotebooksWithIncludePersonalNotebooksResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(RecentNotebook.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs index 42a8ffa45d3..6b810a7e058 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyNotebookRequestBuilder(Dictionary pathParameters, IRe public CopyNotebookRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/copyNotebook", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyNotebookPostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs index 313067af5d4..4fbdb07e291 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs @@ -63,7 +63,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a notebook object. + /// Retrieve the properties and relationships of a notebook object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -128,7 +128,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a notebook object. + /// Retrieve the properties and relationships of a notebook object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -205,7 +205,7 @@ public NotebookItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a notebook object. + /// Retrieve the properties and relationships of a notebook object. This API is supported in the following national cloud deployments. /// public class NotebookItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs index 3feedce8f41..20dbc20ea44 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionGroupsRequestBuilder(Dictionary pathParameters, IR public SectionGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sectionGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of section groups from the specified section group. + /// Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, SectionGroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of section groups from the specified section group. + /// Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public SectionGroupsRequestBuilder WithUrl(string rawUrl) { return new SectionGroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of section groups from the specified section group. + /// Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. /// public class SectionGroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index 90910e8bb24..5729ab290ba 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToNotebookRequestBuilder(Dictionary pathParameters, I public CopyToNotebookRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToNotebook", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToNotebookPostRequestBody body return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index 46ae2d479f2..bd3d1da84b4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionGroupRequestBuilder(Dictionary pathParameter public CopyToSectionGroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionGroupPostRequestBody return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index d24a80cceb7..7c900af5335 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionRequestBuilder(Dictionary pathParameters, IR public CopyToSectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", rawUrl) { } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionPostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs index 15186a08a97..7d0f55f0a66 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs @@ -42,7 +42,7 @@ public PagesRequestBuilder(Dictionary pathParameters, IRequestAd public PagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenotePageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenotePage body, Action(requestInfo, OnenotePage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PagesRequestBuilder WithUrl(string rawUrl) { return new PagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// public class PagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs index 4dea2b4141f..d5fbc795ea8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionsRequestBuilder(Dictionary pathParameters, IReques public SectionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of onenoteSection objects from the specified section group. + /// Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenoteSectionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new onenoteSection in the specified section group. + /// Create a new onenoteSection in the specified section group. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenoteSection body, Action(requestInfo, OnenoteSection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of onenoteSection objects from the specified section group. + /// Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new onenoteSection in the specified section group. + /// Create a new onenoteSection in the specified section group. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SectionsRequestBuilder WithUrl(string rawUrl) { return new SectionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of onenoteSection objects from the specified section group. + /// Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. /// public class SectionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs index 90d2a31e431..df06f668f42 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionGroupsRequestBuilder(Dictionary pathParameters, IR public SectionGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of section groups from the specified notebook. + /// Retrieve a list of section groups from the specified notebook. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, SectionGroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new section group in the specified notebook. + /// Create a new section group in the specified notebook. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(SectionGroup body, Action(requestInfo, SectionGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of section groups from the specified notebook. + /// Retrieve a list of section groups from the specified notebook. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new section group in the specified notebook. + /// Create a new section group in the specified notebook. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SectionGroupsRequestBuilder WithUrl(string rawUrl) { return new SectionGroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of section groups from the specified notebook. + /// Retrieve a list of section groups from the specified notebook. This API is supported in the following national cloud deployments. /// public class SectionGroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index 2358b670fbe..e33ffa60cae 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToNotebookRequestBuilder(Dictionary pathParameters, I public CopyToNotebookRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/copyToNotebook", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToNotebookPostRequestBody body return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index eb699056015..9fb7c66db48 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionGroupRequestBuilder(Dictionary pathParameter public CopyToSectionGroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionGroupPostRequestBody return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 940f445e345..d29cb55cdb6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionRequestBuilder(Dictionary pathParameters, IR public CopyToSectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", rawUrl) { } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionPostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs index a8b0b646b0c..2da1cddc798 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs @@ -42,7 +42,7 @@ public PagesRequestBuilder(Dictionary pathParameters, IRequestAd public PagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenotePageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenotePage body, Action(requestInfo, OnenotePage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PagesRequestBuilder WithUrl(string rawUrl) { return new PagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// public class PagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs index 4febfc31118..76a1e0fd4c7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionsRequestBuilder(Dictionary pathParameters, IReques public SectionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of onenoteSection objects from the specified notebook. + /// Retrieve a list of onenoteSection objects from the specified notebook. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenoteSectionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new onenoteSection in the specified notebook. + /// Create a new onenoteSection in the specified notebook. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenoteSection body, Action(requestInfo, OnenoteSection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of onenoteSection objects from the specified notebook. + /// Retrieve a list of onenoteSection objects from the specified notebook. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new onenoteSection in the specified notebook. + /// Create a new onenoteSection in the specified notebook. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SectionsRequestBuilder WithUrl(string rawUrl) { return new SectionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of onenoteSection objects from the specified notebook. + /// Retrieve a list of onenoteSection objects from the specified notebook. This API is supported in the following national cloud deployments. /// public class SectionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs index 8153cc14053..0bdf46c8681 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs @@ -48,7 +48,7 @@ public NotebooksRequestBuilder(Dictionary pathParameters, IReque public NotebooksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/notebooks{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of notebook objects. + /// Retrieve a list of notebook objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -76,7 +76,7 @@ public GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder GetRecentNot return new GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder(PathParameters, RequestAdapter, includePersonalNotebooks); } /// - /// Create a new OneNote notebook. + /// Create a new OneNote notebook. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -98,7 +98,7 @@ public async Task PostAsync(Notebook body, Action(requestInfo, Notebook.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of notebook objects. + /// Retrieve a list of notebook objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -124,7 +124,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new OneNote notebook. + /// Create a new OneNote notebook. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -159,7 +159,7 @@ public NotebooksRequestBuilder WithUrl(string rawUrl) { return new NotebooksRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of notebook objects. + /// Retrieve a list of notebook objects. This API is supported in the following national cloud deployments. /// public class NotebooksRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs index 553a2ccd817..5e8b1e129dc 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public OnenoteOperationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. /// public class OnenoteOperationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Operations/OperationsRequestBuilder.cs index dd7a7c4f289..1d5a6567dbd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Operations/OperationsRequestBuilder.cs @@ -42,7 +42,7 @@ public OperationsRequestBuilder(Dictionary pathParameters, IRequ public OperationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/operations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(OnenoteOperation body, Action(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public OperationsRequestBuilder WithUrl(string rawUrl) { return new OperationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. /// public class OperationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 0ef59723ad6..7648604fd68 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionRequestBuilder(Dictionary pathParameters, IR public CopyToSectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/pages/{onenotePage%2Did}/copyToSection", rawUrl) { } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionPostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs index cd0389435fb..649d1df23b5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -59,7 +59,7 @@ public OnenotePageItemRequestBuilder(Dictionary pathParameters, public OnenotePageItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/pages/{onenotePage%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a OneNote page. + /// Delete a OneNote page. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -79,7 +79,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. + /// Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -120,7 +120,7 @@ public async Task PatchAsync(OnenotePage body, Action(requestInfo, OnenotePage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a OneNote page. + /// Delete a OneNote page. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. + /// Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -221,7 +221,7 @@ public OnenotePageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. + /// Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. This API is supported in the following national cloud deployments. /// public class OnenotePageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/PagesRequestBuilder.cs index 4cbed27c8b3..bcf4762d411 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/PagesRequestBuilder.cs @@ -42,7 +42,7 @@ public PagesRequestBuilder(Dictionary pathParameters, IRequestAd public PagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/pages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of page objects. + /// Retrieve a list of page objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenotePageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new OneNote page in the default section of the default notebook. To create a page in a different section in the default notebook, you can use the sectionName query parameter. Example: ../onenote/pages?sectionName=My%20section The POST /onenote/pages operation is used only to create pages in the current user's default notebook. If you're targeting other notebooks, you can create pages in a specified section. + /// Create a new OneNote page in the default section of the default notebook. To create a page in a different section in the default notebook, you can use the sectionName query parameter. Example: ../onenote/pages?sectionName=My%20section The POST /onenote/pages operation is used only to create pages in the current user's default notebook. If you're targeting other notebooks, you can create pages in a specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenotePage body, Action(requestInfo, OnenotePage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of page objects. + /// Retrieve a list of page objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new OneNote page in the default section of the default notebook. To create a page in a different section in the default notebook, you can use the sectionName query parameter. Example: ../onenote/pages?sectionName=My%20section The POST /onenote/pages operation is used only to create pages in the current user's default notebook. If you're targeting other notebooks, you can create pages in a specified section. + /// Create a new OneNote page in the default section of the default notebook. To create a page in a different section in the default notebook, you can use the sectionName query parameter. Example: ../onenote/pages?sectionName=My%20section The POST /onenote/pages operation is used only to create pages in the current user's default notebook. If you're targeting other notebooks, you can create pages in a specified section. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PagesRequestBuilder WithUrl(string rawUrl) { return new PagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of page objects. + /// Retrieve a list of page objects. This API is supported in the following national cloud deployments. /// public class PagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs index ed215323236..c02937de5be 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + /// The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -117,7 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + /// The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -194,7 +194,7 @@ public OnenoteResourceItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + /// The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. /// public class OnenoteResourceItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Resources/ResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Resources/ResourcesRequestBuilder.cs index 4400c0446a8..51e1126d8b1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Resources/ResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Resources/ResourcesRequestBuilder.cs @@ -42,7 +42,7 @@ public ResourcesRequestBuilder(Dictionary pathParameters, IReque public ResourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/resources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + /// The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(OnenoteResource body, Action(requestInfo, OnenoteResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + /// The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public ResourcesRequestBuilder WithUrl(string rawUrl) { return new ResourcesRequestBuilder(rawUrl, RequestAdapter); } /// - /// The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + /// The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. /// public class ResourcesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs index 868d42a95a6..f481579425a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs @@ -68,7 +68,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a sectionGroup object. + /// Retrieve the properties and relationships of a sectionGroup object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -133,7 +133,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a sectionGroup object. + /// Retrieve the properties and relationships of a sectionGroup object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -210,7 +210,7 @@ public SectionGroupItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a sectionGroup object. + /// Retrieve the properties and relationships of a sectionGroup object. This API is supported in the following national cloud deployments. /// public class SectionGroupItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs index 7225fdca314..ae5a45f8a14 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionGroupsRequestBuilder(Dictionary pathParameters, IR public SectionGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sectionGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of section groups from the specified section group. + /// Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, SectionGroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of section groups from the specified section group. + /// Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public SectionGroupsRequestBuilder WithUrl(string rawUrl) { return new SectionGroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of section groups from the specified section group. + /// Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. /// public class SectionGroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index 8ff2c2629d4..02a82a810d5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToNotebookRequestBuilder(Dictionary pathParameters, I public CopyToNotebookRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToNotebook", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToNotebookPostRequestBody body return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index b24dacbe9c0..3103f56a31b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionGroupRequestBuilder(Dictionary pathParameter public CopyToSectionGroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionGroupPostRequestBody return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index c90b471c37d..1d3bba9d0c5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionRequestBuilder(Dictionary pathParameters, IR public CopyToSectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", rawUrl) { } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionPostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs index 00b0076b2ba..d3283862356 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs @@ -42,7 +42,7 @@ public PagesRequestBuilder(Dictionary pathParameters, IRequestAd public PagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenotePageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenotePage body, Action(requestInfo, OnenotePage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PagesRequestBuilder WithUrl(string rawUrl) { return new PagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// public class PagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs index a52d29a1e08..6bff73f777a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionsRequestBuilder(Dictionary pathParameters, IReques public SectionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of onenoteSection objects from the specified section group. + /// Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenoteSectionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new onenoteSection in the specified section group. + /// Create a new onenoteSection in the specified section group. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenoteSection body, Action(requestInfo, OnenoteSection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of onenoteSection objects from the specified section group. + /// Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new onenoteSection in the specified section group. + /// Create a new onenoteSection in the specified section group. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SectionsRequestBuilder WithUrl(string rawUrl) { return new SectionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of onenoteSection objects from the specified section group. + /// Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. /// public class SectionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs index 4f68d0fa41f..7c67f551b69 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionGroupsRequestBuilder(Dictionary pathParameters, IR public SectionGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/sectionGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of sectionGroup objects. + /// Retrieve a list of sectionGroup objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(SectionGroup body, Action(requestInfo, SectionGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of sectionGroup objects. + /// Retrieve a list of sectionGroup objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SectionGroupsRequestBuilder WithUrl(string rawUrl) { return new SectionGroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of sectionGroup objects. + /// Retrieve a list of sectionGroup objects. This API is supported in the following national cloud deployments. /// public class SectionGroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index a944d2a9c06..51770062cf3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToNotebookRequestBuilder(Dictionary pathParameters, I public CopyToNotebookRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/copyToNotebook", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToNotebookPostRequestBody body return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index 4ebcc027317..dfd0733bdec 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionGroupRequestBuilder(Dictionary pathParameter public CopyToSectionGroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/copyToSectionGroup", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionGroupPostRequestBody return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs index 19a3ba1fb84..978d61200f2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs @@ -73,7 +73,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a onenoteSection object. + /// Retrieve the properties and relationships of a onenoteSection object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -138,7 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a onenoteSection object. + /// Retrieve the properties and relationships of a onenoteSection object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -215,7 +215,7 @@ public OnenoteSectionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a onenoteSection object. + /// Retrieve the properties and relationships of a onenoteSection object. This API is supported in the following national cloud deployments. /// public class OnenoteSectionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 01933c0789c..34094f6a6dd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionRequestBuilder(Dictionary pathParameters, IR public CopyToSectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", rawUrl) { } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionPostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs index 89095c39370..b77c4d775bd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs @@ -42,7 +42,7 @@ public PagesRequestBuilder(Dictionary pathParameters, IRequestAd public PagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/pages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenotePageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenotePage body, Action(requestInfo, OnenotePage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PagesRequestBuilder WithUrl(string rawUrl) { return new PagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// public class PagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/SectionsRequestBuilder.cs index 7e152fab687..c617ec74f66 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/SectionsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionsRequestBuilder(Dictionary pathParameters, IReques public SectionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/onenote/sections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of onenoteSection objects. + /// Retrieve a list of onenoteSection objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(OnenoteSection body, Action(requestInfo, OnenoteSection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of onenoteSection objects. + /// Retrieve a list of onenoteSection objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SectionsRequestBuilder WithUrl(string rawUrl) { return new SectionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of onenoteSection objects. + /// Retrieve a list of onenoteSection objects. This API is supported in the following national cloud deployments. /// public class SectionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/Ref/RefRequestBuilder.cs index a2980f12539..74b9bb7c852 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/Ref/RefRequestBuilder.cs @@ -28,7 +28,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { } /// - /// Remove an owner from a Microsoft 365 group or a security group through the owners navigation property. Once owners are assigned to a group, the last owner (a user object) of the group cannot be removed. + /// Remove an owner from a Microsoft 365 group or a security group through the owners navigation property. Once owners are assigned to a group, the last owner (a user object) of the group cannot be removed. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Remove an owner from a Microsoft 365 group or a security group through the owners navigation property. Once owners are assigned to a group, the last owner (a user object) of the group cannot be removed. + /// Remove an owner from a Microsoft 365 group or a security group through the owners navigation property. Once owners are assigned to a group, the last owner (a user object) of the group cannot be removed. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -80,7 +80,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove an owner from a Microsoft 365 group or a security group through the owners navigation property. Once owners are assigned to a group, the last owner (a user object) of the group cannot be removed. + /// Remove an owner from a Microsoft 365 group or a security group through the owners navigation property. Once owners are assigned to a group, the last owner (a user object) of the group cannot be removed. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderDeleteQueryParameters { /// Delete Uri diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Owners/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Owners/Ref/RefRequestBuilder.cs index 8d81c0a2de2..a477ab9ce28 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Owners/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Owners/Ref/RefRequestBuilder.cs @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, StringCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a user or service principal to a Microsoft 365 or security group's owners. The owners are a set of users or service principals who are allowed to modify the group object. + /// Add a user or service principal to a Microsoft 365 or security group's owners. The owners are a set of users or service principals who are allowed to modify the group object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -97,7 +97,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a user or service principal to a Microsoft 365 or security group's owners. The owners are a set of users or service principals who are allowed to modify the group object. + /// Add a user or service principal to a Microsoft 365 or security group's owners. The owners are a set of users or service principals who are allowed to modify the group object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..a71f0a0093f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.PermissionGrants.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Delta/DeltaRequestBuilder.cs index 6bb11d153f9..d91c841fd57 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Delta/DeltaResponse.cs index bedc1939cda..cadd92c3cc0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.PermissionGrants.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs new file mode 100644 index 00000000000..86bb4bb0ed4 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.PermissionGrants.GetAvailableExtensionProperties { + public class GetAvailableExtensionPropertiesPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAvailableExtensionPropertiesPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index d56cccda5d1..b96a65e28d5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -28,13 +28,36 @@ public GetAvailableExtensionPropertiesRequestBuilder(Dictionary public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/permissionGrants/getAvailableExtensionProperties", rawUrl) { } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetAvailableExtensionPropertiesPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetAvailabl return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index 5bd159e24ae..f3af5979c0a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.PermissionGrants.GetAvailableExtensionProperties { - public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAvailableExtensionPropertiesPostResponse instead.")] + public class GetAvailableExtensionPropertiesResponse : GetAvailableExtensionPropertiesPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/GetByIds/GetByIdsPostResponse.cs new file mode 100644 index 00000000000..bb1e5d22e92 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/GetByIds/GetByIdsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.PermissionGrants.GetByIds { + public class GetByIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetByIdsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs index 2b7bf65ee1e..c38c2f6c461 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetByIdsRequestBuilder(Dictionary pathParameters, IReques public GetByIdsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/permissionGrants/getByIds", rawUrl) { } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetByIdsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetByIdsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetByIdsPostRequestBody body, Acti return await RequestAdapter.SendAsync(requestInfo, GetByIdsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/GetByIds/GetByIdsResponse.cs index 33e3349a5fd..6a3df14a3f7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/GetByIds/GetByIdsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.PermissionGrants.GetByIds { - public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getByIdsPostResponse instead.")] + public class GetByIdsResponse : GetByIdsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..b6967be8448 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.PermissionGrants.Item.CheckMemberGroups { + public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index a64870d604b..135cc4d2b66 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index cd984ac7db5..4313d5956a8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.PermissionGrants.Item.CheckMemberGroups { - public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberGroupsPostResponse instead.")] + public class CheckMemberGroupsResponse : CheckMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..f9571288eae --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.PermissionGrants.Item.CheckMemberObjects { + public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index 61f51d0717f..4f5ddf6dbb5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -34,6 +34,28 @@ public CheckMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAd /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action checkMemberObjects + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index 40da9a98b0c..81b0ec3827b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.PermissionGrants.Item.CheckMemberObjects { - public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberObjectsPostResponse instead.")] + public class CheckMemberObjectsResponse : CheckMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..b5e54af8f5a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.PermissionGrants.Item.GetMemberGroups { + public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index e780c465429..8e83e141d39 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberGroupsRequestBuilder(Dictionary pathParameters, public GetMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/getMemberGroups", rawUrl) { } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberGroupsPostRequestB return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs index e58714e901b..6191cdd122b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.PermissionGrants.Item.GetMemberGroups { - public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberGroupsPostResponse instead.")] + public class GetMemberGroupsResponse : GetMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..6d0f7cf14ca --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.PermissionGrants.Item.GetMemberObjects { + public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index df7ad286186..44953baa164 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberObjectsRequestBuilder(Dictionary pathParameters, public GetMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/getMemberObjects", rawUrl) { } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberObjectsPostReques return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs index 6189f9564d9..0b4002b49d3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.PermissionGrants.Item.GetMemberObjects { - public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberObjectsPostResponse instead.")] + public class GetMemberObjectsResponse : GetMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs index e31887f491e..6e702a003ab 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs @@ -29,7 +29,7 @@ public RestoreRequestBuilder(Dictionary pathParameters, IRequest public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs index 5a529a3e5dc..9b5b5681164 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs @@ -62,7 +62,7 @@ public PermissionGrantsRequestBuilder(Dictionary pathParameters, public PermissionGrantsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/permissionGrants{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all resource-specific permission grants on the group. This list specifies the Azure AD apps that have access to the group, along with the corresponding kind of resource-specific access that each app has. + /// List all resource-specific permission grants on the group. This list specifies the Azure AD apps that have access to the group, along with the corresponding kind of resource-specific access that each app has. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -103,7 +103,7 @@ public async Task PostAsync(ResourceSpecificPer return await RequestAdapter.SendAsync(requestInfo, ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all resource-specific permission grants on the group. This list specifies the Azure AD apps that have access to the group, along with the corresponding kind of resource-specific access that each app has. + /// List all resource-specific permission grants on the group. This list specifies the Azure AD apps that have access to the group, along with the corresponding kind of resource-specific access that each app has. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,7 +164,7 @@ public PermissionGrantsRequestBuilder WithUrl(string rawUrl) { return new PermissionGrantsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all resource-specific permission grants on the group. This list specifies the Azure AD apps that have access to the group, along with the corresponding kind of resource-specific access that each app has. + /// List all resource-specific permission grants on the group. This list specifies the Azure AD apps that have access to the group, along with the corresponding kind of resource-specific access that each app has. This API is supported in the following national cloud deployments. /// public class PermissionGrantsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs index f3f8a4bd277..54978254bd7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -28,7 +28,7 @@ public ValidatePropertiesRequestBuilder(Dictionary pathParameter public ValidatePropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/permissionGrants/validateProperties", rawUrl) { } /// - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ValidatePropertiesPostRequestBody body, Action - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Photos/PhotosRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Photos/PhotosRequestBuilder.cs index 6f4c4a2945b..21808a2f55d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Photos/PhotosRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Photos/PhotosRequestBuilder.cs @@ -42,7 +42,7 @@ public PhotosRequestBuilder(Dictionary pathParameters, IRequestA public PhotosRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/photos{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Retrieve a list of profilePhoto objects. + /// Retrieve a list of profilePhoto objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ProfilePhotoCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of profilePhoto objects. + /// Retrieve a list of profilePhoto objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public PhotosRequestBuilder WithUrl(string rawUrl) { return new PhotosRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of profilePhoto objects. + /// Retrieve a list of profilePhoto objects. This API is supported in the following national cloud deployments. /// public class PhotosRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs index 8d48f5b81d5..6d016d6ae49 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs @@ -42,7 +42,7 @@ public BucketsRequestBuilder(Dictionary pathParameters, IRequest public BucketsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of plannerBucket objects contained by a plannerPlan object. + /// Retrieve a list of plannerBucket objects contained by a plannerPlan object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(PlannerBucket body, Action(requestInfo, PlannerBucket.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of plannerBucket objects contained by a plannerPlan object. + /// Retrieve a list of plannerBucket objects contained by a plannerPlan object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public BucketsRequestBuilder WithUrl(string rawUrl) { return new BucketsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of plannerBucket objects contained by a plannerPlan object. + /// Retrieve a list of plannerBucket objects contained by a plannerPlan object. This API is supported in the following national cloud deployments. /// public class BucketsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs index bb4a8d5ed54..3fd1f75e57a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public AssignedToTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class AssignedToTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs index 2146bf76718..76fdd2aef6f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public BucketTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class BucketTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs index 270320be287..05c3be0cd20 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public DetailsRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// public class DetailsRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs index b562d9c9e13..929ee2d51b1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public ProgressTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class ProgressTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs index 36b684bb193..b21600168be 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs @@ -42,7 +42,7 @@ public TasksRequestBuilder(Dictionary pathParameters, IRequestAd public TasksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%2Did}/tasks{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of plannerTask objects associated to a plannerBucket object. + /// Retrieve a list of plannerTask objects associated to a plannerBucket object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(PlannerTask body, Action(requestInfo, PlannerTask.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of plannerTask objects associated to a plannerBucket object. + /// Retrieve a list of plannerTask objects associated to a plannerBucket object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public TasksRequestBuilder WithUrl(string rawUrl) { return new TasksRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of plannerTask objects associated to a plannerBucket object. + /// Retrieve a list of plannerTask objects associated to a plannerBucket object. This API is supported in the following national cloud deployments. /// public class TasksRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Details/DetailsRequestBuilder.cs index 74064359609..6263a6bde79 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Details/DetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Details/DetailsRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a plannerPlanDetails object. + /// Retrieve the properties and relationships of a plannerPlanDetails object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a plannerPlanDetails object. + /// Retrieve the properties and relationships of a plannerPlanDetails object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public DetailsRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a plannerPlanDetails object. + /// Retrieve the properties and relationships of a plannerPlanDetails object. This API is supported in the following national cloud deployments. /// public class DetailsRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs index 9770781aa7e..483d100ee26 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public AssignedToTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class AssignedToTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs index 7b0640e0e97..4c83a9a14c3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public BucketTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class BucketTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.cs index 9b1e3cc26eb..be89b151b81 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public DetailsRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// public class DetailsRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs index b994f3af451..d92ddfaad9b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public ProgressTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class ProgressTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs index 327ac1184cc..6e034b1614a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs @@ -42,7 +42,7 @@ public TasksRequestBuilder(Dictionary pathParameters, IRequestAd public TasksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/tasks{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of plannerTask objects associated with a plannerPlan object. + /// Retrieve a list of plannerTask objects associated with a plannerPlan object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(PlannerTask body, Action(requestInfo, PlannerTask.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of plannerTask objects associated with a plannerPlan object. + /// Retrieve a list of plannerTask objects associated with a plannerPlan object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public TasksRequestBuilder WithUrl(string rawUrl) { return new TasksRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of plannerTask objects associated with a plannerPlan object. + /// Retrieve a list of plannerTask objects associated with a plannerPlan object. This API is supported in the following national cloud deployments. /// public class TasksRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/PlansRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/PlansRequestBuilder.cs index 56b6de7f6b1..bef04fd0c39 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/PlansRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/PlansRequestBuilder.cs @@ -42,7 +42,7 @@ public PlansRequestBuilder(Dictionary pathParameters, IRequestAd public PlansRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/planner/plans{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of plannerPlan objects owned by a group object. + /// Retrieve a list of plannerPlan objects owned by a group object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(PlannerPlan body, Action(requestInfo, PlannerPlan.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of plannerPlan objects owned by a group object. + /// Retrieve a list of plannerPlan objects owned by a group object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public PlansRequestBuilder WithUrl(string rawUrl) { return new PlansRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of plannerPlan objects owned by a group object. + /// Retrieve a list of plannerPlan objects owned by a group object. This API is supported in the following national cloud deployments. /// public class PlansRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/Ref/RefRequestBuilder.cs index ed7a507b230..6ca41ed0179 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/Ref/RefRequestBuilder.cs @@ -29,7 +29,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/rejectedSenders/$ref{?%24top,%24skip,%24filter,%24count,%24orderby}", rawUrl) { } /// - /// Users in the rejected senders list cannot post to conversations of the group (identified in the GET request URL). Make sure you do not specify the same user or group in the rejected senders and accepted senders lists, otherwise you will get an error. + /// Users in the rejected senders list can't post to conversations of the group (identified in the GET request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you get an error. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, StringCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Specify the user or group in @odata.id in the request body. Users in the rejected senders list can't post to conversations of the group (identified in the POST request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you'll get an error. + /// Specify the user or group in @odata.id in the request body. Users in the rejected senders list can't post to conversations of the group (identified in the POST request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you'll get an error. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -71,7 +71,7 @@ public async Task PostAsync(ReferenceCreate body, Action - /// Users in the rejected senders list cannot post to conversations of the group (identified in the GET request URL). Make sure you do not specify the same user or group in the rejected senders and accepted senders lists, otherwise you will get an error. + /// Users in the rejected senders list can't post to conversations of the group (identified in the GET request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you get an error. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -97,7 +97,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Specify the user or group in @odata.id in the request body. Users in the rejected senders list can't post to conversations of the group (identified in the POST request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you'll get an error. + /// Specify the user or group in @odata.id in the request body. Users in the rejected senders list can't post to conversations of the group (identified in the POST request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you'll get an error. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -131,7 +131,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Users in the rejected senders list cannot post to conversations of the group (identified in the GET request URL). Make sure you do not specify the same user or group in the rejected senders and accepted senders lists, otherwise you will get an error. + /// Users in the rejected senders list can't post to conversations of the group (identified in the GET request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you get an error. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/RejectedSendersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/RejectedSendersRequestBuilder.cs index 6e11dbc466d..524b74ca591 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/RejectedSendersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/RejectedSendersRequestBuilder.cs @@ -47,7 +47,7 @@ public RejectedSendersRequestBuilder(Dictionary pathParameters, public RejectedSendersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/rejectedSenders{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Users in the rejected senders list cannot post to conversations of the group (identified in the GET request URL). Make sure you do not specify the same user or group in the rejected senders and accepted senders lists, otherwise you will get an error. + /// Users in the rejected senders list can't post to conversations of the group (identified in the GET request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you get an error. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, DirectoryObjectCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Users in the rejected senders list cannot post to conversations of the group (identified in the GET request URL). Make sure you do not specify the same user or group in the rejected senders and accepted senders lists, otherwise you will get an error. + /// Users in the rejected senders list can't post to conversations of the group (identified in the GET request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you get an error. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -100,7 +100,7 @@ public RejectedSendersRequestBuilder WithUrl(string rawUrl) { return new RejectedSendersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Users in the rejected senders list cannot post to conversations of the group (identified in the GET request URL). Make sure you do not specify the same user or group in the rejected senders and accepted senders lists, otherwise you will get an error. + /// Users in the rejected senders list can't post to conversations of the group (identified in the GET request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you get an error. This API is supported in the following national cloud deployments. /// public class RejectedSendersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/RemoveFavorite/RemoveFavoriteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/RemoveFavorite/RemoveFavoriteRequestBuilder.cs index 341a92a1ca9..e5490a48ee1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/RemoveFavorite/RemoveFavoriteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/RemoveFavorite/RemoveFavoriteRequestBuilder.cs @@ -28,7 +28,7 @@ public RemoveFavoriteRequestBuilder(Dictionary pathParameters, I public RemoveFavoriteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/removeFavorite", rawUrl) { } /// - /// Remove the group from the list of the current user's favorite groups. Supported for Microsoft 365 groups only. + /// Remove the group from the list of the current user's favorite groups. Supported for Microsoft 365 groups only. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Remove the group from the list of the current user's favorite groups. Supported for Microsoft 365 groups only. + /// Remove the group from the list of the current user's favorite groups. Supported for Microsoft 365 groups only. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Renew/RenewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Renew/RenewRequestBuilder.cs index 60968bcb3ce..1c2e6b01c1e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Renew/RenewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Renew/RenewRequestBuilder.cs @@ -28,7 +28,7 @@ public RenewRequestBuilder(Dictionary pathParameters, IRequestAd public RenewRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/renew", rawUrl) { } /// - /// Renews a group's expiration. When a group is renewed, the group expiration is extended by the number of days defined in the policy. + /// Renews a group's expiration. When a group is renewed, the group expiration is extended by the number of days defined in the policy. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Renews a group's expiration. When a group is renewed, the group expiration is extended by the number of days defined in the policy. + /// Renews a group's expiration. When a group is renewed, the group expiration is extended by the number of days defined in the policy. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/ResetUnseenCount/ResetUnseenCountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/ResetUnseenCount/ResetUnseenCountRequestBuilder.cs index e7a078c5b84..dc80c69a0b6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/ResetUnseenCount/ResetUnseenCountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/ResetUnseenCount/ResetUnseenCountRequestBuilder.cs @@ -28,7 +28,7 @@ public ResetUnseenCountRequestBuilder(Dictionary pathParameters, public ResetUnseenCountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/resetUnseenCount", rawUrl) { } /// - /// Reset the unseenCount of all the posts that the current user has not seen since their last visit. Supported for Microsoft 365 groups only. + /// Reset the unseenCount of all the posts that the current user hasn't seen since their last visit. Supported for Microsoft 365 groups only. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Reset the unseenCount of all the posts that the current user has not seen since their last visit. Supported for Microsoft 365 groups only. + /// Reset the unseenCount of all the posts that the current user hasn't seen since their last visit. Supported for Microsoft 365 groups only. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Restore/RestoreRequestBuilder.cs index ee8b7c2357c..9798a6ee48f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Restore/RestoreRequestBuilder.cs @@ -29,7 +29,7 @@ public RestoreRequestBuilder(Dictionary pathParameters, IRequest public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..dcaaa2877ce --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,116 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Groups.Item.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/serviceProvisioningErrors/$count{?%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/serviceProvisioningErrors/$count{?%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..57938610693 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Groups.Item.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Groups.Item.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \groups\{group-id}\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Settings/Item/GroupSettingItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Settings/Item/GroupSettingItemRequestBuilder.cs index 2e7a63b05ad..ec6d0bed8c2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Settings/Item/GroupSettingItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Settings/Item/GroupSettingItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties of a specific group setting object. The setting can be a tenant-level or group-specific setting. + /// Retrieve the properties of a specific group setting object. The setting can be a tenant-level or group-specific setting. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, GroupSetting.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a groupSetting object for tenant-wide group settings or a specific group setting. + /// Update the properties of a groupSetting object for tenant-wide group settings or a specific group setting. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties of a specific group setting object. The setting can be a tenant-level or group-specific setting. + /// Retrieve the properties of a specific group setting object. The setting can be a tenant-level or group-specific setting. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a groupSetting object for tenant-wide group settings or a specific group setting. + /// Update the properties of a groupSetting object for tenant-wide group settings or a specific group setting. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -191,7 +191,7 @@ public GroupSettingItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties of a specific group setting object. The setting can be a tenant-level or group-specific setting. + /// Retrieve the properties of a specific group setting object. The setting can be a tenant-level or group-specific setting. This API is supported in the following national cloud deployments. /// public class GroupSettingItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Settings/SettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Settings/SettingsRequestBuilder.cs index 9f4e415a4a7..64e0c82659f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Settings/SettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Settings/SettingsRequestBuilder.cs @@ -42,7 +42,7 @@ public SettingsRequestBuilder(Dictionary pathParameters, IReques public SettingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/settings{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of tenant-level or group-specific group settings objects. + /// Retrieve a list of tenant-level or group-specific group settings objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, GroupSettingCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new setting based on the templates available in groupSettingTemplates. These settings can be at the tenant-level or at the group level. Group settings apply to only Microsoft 365 groups. The template named Group.Unified can be used to configure tenant-wide Microsoft 365 group settings, while the template named Group.Unified.Guest can be used to configure group-specific settings. + /// Create a new setting based on the templates available in groupSettingTemplates. These settings can be at the tenant-level or at the group level. Group settings apply to only Microsoft 365 groups. The template named Group.Unified can be used to configure tenant-wide Microsoft 365 group settings, while the template named Group.Unified.Guest can be used to configure group-specific settings. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(GroupSetting body, Action(requestInfo, GroupSetting.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of tenant-level or group-specific group settings objects. + /// Retrieve a list of tenant-level or group-specific group settings objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new setting based on the templates available in groupSettingTemplates. These settings can be at the tenant-level or at the group level. Group settings apply to only Microsoft 365 groups. The template named Group.Unified can be used to configure tenant-wide Microsoft 365 group settings, while the template named Group.Unified.Guest can be used to configure group-specific settings. + /// Create a new setting based on the templates available in groupSettingTemplates. These settings can be at the tenant-level or at the group level. Group settings apply to only Microsoft 365 groups. The template named Group.Unified can be used to configure tenant-wide Microsoft 365 group settings, while the template named Group.Unified.Guest can be used to configure group-specific settings. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SettingsRequestBuilder WithUrl(string rawUrl) { return new SettingsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of tenant-level or group-specific group settings objects. + /// Retrieve a list of tenant-level or group-specific group settings objects. This API is supported in the following national cloud deployments. /// public class SettingsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Add/AddPostResponse.cs new file mode 100644 index 00000000000..941d6a42c38 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Add/AddPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Sites.Add { + public class AddPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AddPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AddPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Site.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Add/AddRequestBuilder.cs index 1a0a729a06f..838082bf8e4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Add/AddRequestBuilder.cs @@ -35,6 +35,29 @@ public AddRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AddPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Follow a user's site or multiple sites. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsAddPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Add/AddResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Add/AddResponse.cs index c39d9dc1167..5448e44fd2f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Add/AddResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Add/AddResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Sites.Add { - public class AddResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use addPostResponse instead.")] + public class AddResponse : AddPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Site.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/GetAllSites/GetAllSitesGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/GetAllSites/GetAllSitesGetResponse.cs new file mode 100644 index 00000000000..c58ee0f7a2d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/GetAllSites/GetAllSitesGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Sites.GetAllSites { + public class GetAllSitesGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAllSitesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAllSitesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Site.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/GetAllSites/GetAllSitesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/GetAllSites/GetAllSitesRequestBuilder.cs index f2f7b50e3ec..bce16d2fb8c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/GetAllSites/GetAllSitesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/GetAllSites/GetAllSitesRequestBuilder.cs @@ -33,6 +33,26 @@ public GetAllSitesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetAllSitesGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetAllSitesGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAllSitesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getAllSites + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetAllSitesGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/GetAllSites/GetAllSitesResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/GetAllSites/GetAllSitesResponse.cs index a05a8ced423..6d570c6c5d4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/GetAllSites/GetAllSitesResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/GetAllSites/GetAllSitesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Sites.GetAllSites { - public class GetAllSitesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAllSitesGetResponse instead.")] + public class GetAllSitesResponse : GetAllSitesGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAllSitesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Site.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/AllTime/AllTimeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/AllTime/AllTimeRequestBuilder.cs index 228b58a58e7..eeb68437340 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/AllTime/AllTimeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/AllTime/AllTimeRequestBuilder.cs @@ -29,7 +29,7 @@ public AllTimeRequestBuilder(Dictionary pathParameters, IRequest public AllTimeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/allTime{?%24select,%24expand}", rawUrl) { } /// - /// Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the [getActivitiesByInterval][] API. + /// Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the getActivitiesByInterval][] API. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, ItemActivityStat.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the [getActivitiesByInterval][] API. + /// Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the getActivitiesByInterval][] API. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -82,7 +82,7 @@ public AllTimeRequestBuilder WithUrl(string rawUrl) { return new AllTimeRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the [getActivitiesByInterval][] API. + /// Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the getActivitiesByInterval][] API. This API is supported in the following [national cloud deployments. /// public class AllTimeRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Columns/ColumnsRequestBuilder.cs index 37e51a93104..dd0875779ae 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Columns/ColumnsRequestBuilder.cs @@ -42,7 +42,7 @@ public ColumnsRequestBuilder(Dictionary pathParameters, IRequest public ColumnsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/columns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [site][site]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [site][site]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ColumnDefinitionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a column for a [site][site] with a request that specifies a [columnDefinition][columnDefinition]. + /// Create a column for a site][site] with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(ColumnDefinition body, Action(requestInfo, ColumnDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [site][site]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [site][site]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a column for a [site][site] with a request that specifies a [columnDefinition][columnDefinition]. + /// Create a column for a site][site] with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ColumnsRequestBuilder WithUrl(string rawUrl) { return new ColumnsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [site][site]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [site][site]. This API is supported in the following [national cloud deployments. /// public class ColumnsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs index 3cb03dd0467..721e3c6cc90 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs @@ -29,7 +29,7 @@ public AddCopyRequestBuilder(Dictionary pathParameters, IRequest public AddCopyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/addCopy", rawUrl) { } /// - /// Add a copy of a [content type][contentType] from a [site][site] to a [list][list]. + /// Add a copy of a content type][contentType] from a [site][site] to a [list][list]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(AddCopyPostRequestBody body, Action(requestInfo, ContentType.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a copy of a [content type][contentType] from a [site][site] to a [list][list]. + /// Add a copy of a content type][contentType] from a [site][site] to a [list][list]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs index ee456c80a44..3e1c66e4dc1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs @@ -29,7 +29,7 @@ public AddCopyFromContentTypeHubRequestBuilder(Dictionary pathPa public AddCopyFromContentTypeHubRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/addCopyFromContentTypeHub", rawUrl) { } /// - /// Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. + /// Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(AddCopyFromContentTypeHubPostRequestBod return await RequestAdapter.SendAsync(requestInfo, ContentType.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. + /// Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/ContentTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/ContentTypesRequestBuilder.cs index 889aa810672..8955bbcbf2b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/ContentTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/ContentTypesRequestBuilder.cs @@ -57,7 +57,7 @@ public ContentTypesRequestBuilder(Dictionary pathParameters, IRe public ContentTypesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the collection of [contentType][contentType] resources in a [site][]. + /// Get the collection of contentType][contentType] resources in a [site][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -77,7 +77,7 @@ public async Task GetAsync(Action(requestInfo, ContentTypeCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new [contentType][] in a [site][]. + /// Create a new contentType][] in a [site][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -99,7 +99,7 @@ public async Task PostAsync(ContentType body, Action(requestInfo, ContentType.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the collection of [contentType][contentType] resources in a [site][]. + /// Get the collection of contentType][contentType] resources in a [site][]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -125,7 +125,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new [contentType][] in a [site][]. + /// Create a new contentType][] in a [site][]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -160,7 +160,7 @@ public ContentTypesRequestBuilder WithUrl(string rawUrl) { return new ContentTypesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the collection of [contentType][contentType] resources in a [site][]. + /// Get the collection of contentType][contentType] resources in a [site][]. This API is supported in the following [national cloud deployments. /// public class ContentTypesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs new file mode 100644 index 00000000000..cf38027dabe --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Sites.Item.ContentTypes.GetCompatibleHubContentTypes { + public class GetCompatibleHubContentTypesGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetCompatibleHubContentTypesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetCompatibleHubContentTypesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs index 12714d1c53b..6d411302e8f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs @@ -33,6 +33,26 @@ public GetCompatibleHubContentTypesRequestBuilder(string rawUrl, IRequestAdapter /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetCompatibleHubContentTypesGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetCompatibleHubContentTypesGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetCompatibleHubContentTypesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getCompatibleHubContentTypes + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetCompatibleHubContentTypesGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs index 721c487eab6..abdc6b34684 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Sites.Item.ContentTypes.GetCompatibleHubContentTypes { - public class GetCompatibleHubContentTypesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getCompatibleHubContentTypesGetResponse instead.")] + public class GetCompatibleHubContentTypesResponse : GetCompatibleHubContentTypesGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetCompatibleHubContentTypesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs index 06501b9c64f..5cb93cd5d84 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs @@ -28,7 +28,7 @@ public AssociateWithHubSitesRequestBuilder(Dictionary pathParame public AssociateWithHubSitesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/associateWithHubSites", rawUrl) { } /// - /// Associate a published [content type][contentType] present in a content type hub with a list of hub sites. + /// Associate a published content type][contentType] present in a content type hub with a list of hub sites. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AssociateWithHubSitesPostRequestBody body, Action - /// Associate a published [content type][contentType] present in a content type hub with a list of hub sites. + /// Associate a published content type][contentType] present in a content type hub with a list of hub sites. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs index 4bc2de7f7b8..7b9022a81bd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs @@ -42,7 +42,7 @@ public ColumnsRequestBuilder(Dictionary pathParameters, IRequest public ColumnsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [content type][contentType]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ColumnDefinitionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a column to a [content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. + /// Add a column to a content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(ColumnDefinition body, Action(requestInfo, ColumnDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [content type][contentType]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a column to a [content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. + /// Add a column to a content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ColumnsRequestBuilder WithUrl(string rawUrl) { return new ColumnsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [content type][contentType]. This API is supported in the following [national cloud deployments. /// public class ColumnsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs index 0dc7f016b19..e8b78181ef5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs @@ -34,7 +34,7 @@ public ColumnDefinitionItemRequestBuilder(Dictionary pathParamet public ColumnDefinitionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Remove a [column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. + /// Remove a column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + /// Retrieve the metadata for a site][], a [list][], or a [contentType][] [column][columnDefinition]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, ColumnDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update a [site][], a [list][], or a [content type][contentType] [column][columnDefinition]. + /// Update a site][], a [list][], or a [content type][contentType] [column][columnDefinition]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(ColumnDefinition body, Action(requestInfo, ColumnDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Remove a [column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. + /// Remove a column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + /// Retrieve the metadata for a site][], a [list][], or a [contentType][] [column][columnDefinition]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update a [site][], a [list][], or a [content type][contentType] [column][columnDefinition]. + /// Update a site][], a [list][], or a [content type][contentType] [column][columnDefinition]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public ColumnDefinitionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + /// Retrieve the metadata for a site][], a [list][], or a [contentType][] [column][columnDefinition]. This API is supported in the following [national cloud deployments. /// public class ColumnDefinitionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.cs index 9d3604cf209..65bfba9ef4e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.cs @@ -79,7 +79,7 @@ public ContentTypeItemRequestBuilder(Dictionary pathParameters, public ContentTypeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Remove a [content type][contentType] from a [list][] or a [site][]. + /// Remove a content type][contentType] from a [list][] or a [site][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -99,7 +99,7 @@ public async Task DeleteAsync(Action - /// Retrieve the metadata for a [content type][contentType] in a [site][] or a [list][]. + /// Retrieve the metadata for a content type][contentType] in a [site][] or a [list][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -119,7 +119,7 @@ public async Task GetAsync(Action(requestInfo, ContentType.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update a [content type][contentType]. + /// Update a content type][contentType]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -141,7 +141,7 @@ public async Task PatchAsync(ContentType body, Action(requestInfo, ContentType.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Remove a [content type][contentType] from a [list][] or a [site][]. + /// Remove a content type][contentType] from a [list][] or a [site][]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -165,7 +165,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the metadata for a [content type][contentType] in a [site][] or a [list][]. + /// Retrieve the metadata for a content type][contentType] in a [site][] or a [list][]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update a [content type][contentType]. + /// Update a content type][contentType]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -242,7 +242,7 @@ public ContentTypeItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the metadata for a [content type][contentType] in a [site][] or a [list][]. + /// Retrieve the metadata for a content type][contentType] in a [site][] or a [list][]. This API is supported in the following [national cloud deployments. /// public class ContentTypeItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs index b1f4d15b2dc..a26773945ed 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs @@ -28,7 +28,7 @@ public CopyToDefaultContentLocationRequestBuilder(Dictionary pat public CopyToDefaultContentLocationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/copyToDefaultContentLocation", rawUrl) { } /// - /// Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. + /// Copy a file to a default content location in a content type][contentType]. The file can then be added as a default file or template via a POST operation. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CopyToDefaultContentLocationPostRequestBody body, Ac await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. + /// Copy a file to a default content location in a content type][contentType]. The file can then be added as a default file or template via a POST operation. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs new file mode 100644 index 00000000000..626a8e0d2e5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Sites.Item.ContentTypes.Item.IsPublished { + public class IsPublishedGetResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public bool? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new isPublishedGetResponse and sets the default values. + /// + public IsPublishedGetResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static IsPublishedGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new IsPublishedGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs index 51175d8cc3b..f0cea2aff41 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs @@ -33,6 +33,26 @@ public IsPublishedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsIsPublishedGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsIsPublishedGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, IsPublishedGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function isPublished + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsIsPublishedGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedResponse.cs index 16c1c244d89..a622bb002e1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Sites.Item.ContentTypes.Item.IsPublished { - public class IsPublishedResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public bool? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new isPublishedResponse and sets the default values. - /// - public IsPublishedResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use isPublishedGetResponse instead.")] + public class IsPublishedResponse : IsPublishedGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static IsPublishedResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new IsPublishedResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new IsPublishedResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Publish/PublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Publish/PublishRequestBuilder.cs index 46540a4948a..7d6b1f1c755 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Publish/PublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Publish/PublishRequestBuilder.cs @@ -28,7 +28,7 @@ public PublishRequestBuilder(Dictionary pathParameters, IRequest public PublishRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/publish", rawUrl) { } /// - /// Publishes a [contentType][] present in the content type hub site. + /// Publishes a contentType][] present in the content type hub site. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Publishes a [contentType][] present in the content type hub site. + /// Publishes a contentType][] present in the content type hub site. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs index 54a463cbeee..38079243143 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs @@ -28,7 +28,7 @@ public UnpublishRequestBuilder(Dictionary pathParameters, IReque public UnpublishRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/unpublish", rawUrl) { } /// - /// Unpublish a [contentType][] from a content type hub site. + /// Unpublish a contentType][] from a content type hub site. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Unpublish a [contentType][] from a content type hub site. + /// Unpublish a contentType][] from a content type hub site. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/CreatedByUser/CreatedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/CreatedByUser/CreatedByUserRequestBuilder.cs index eed699d8ded..7657461ec71 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/CreatedByUser/CreatedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/CreatedByUser/CreatedByUserRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.Groups.Item.Sites.Item.CreatedByUser.MailboxSettings; +using Microsoft.Graph.Groups.Item.Sites.Item.CreatedByUser.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class CreatedByUserRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new CreatedByUserRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..76378edb8be --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Groups.Item.Sites.Item.CreatedByUser.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..53093a76b17 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Groups.Item.Sites.Item.CreatedByUser.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Groups.Item.Sites.Item.CreatedByUser.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\createdByUser\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/createdByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/createdByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs new file mode 100644 index 00000000000..eead781cc95 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Sites.Item.GetActivitiesByInterval { + public class GetActivitiesByIntervalGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetActivitiesByIntervalGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetActivitiesByIntervalGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs index acaf67afa22..1aa5db7580d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs @@ -33,6 +33,26 @@ public GetActivitiesByIntervalRequestBuilder(string rawUrl, IRequestAdapter requ /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetActivitiesByIntervalGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetActivitiesByIntervalGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetActivitiesByIntervalGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getActivitiesByInterval + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetActivitiesByIntervalGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index 6609329a91c..7371efceba3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Sites.Item.GetActivitiesByInterval { - public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getActivitiesByIntervalGetResponse instead.")] + public class GetActivitiesByIntervalResponse : GetActivitiesByIntervalGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs new file mode 100644 index 00000000000..d7b9ea32ca4 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Sites.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs index 29412c95816..24ee82678b2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs @@ -39,6 +39,26 @@ public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalReques /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getActivitiesByInterval + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index f5fc3a69657..c185ea08001 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Sites.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse instead.")] + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdGetResponse.cs new file mode 100644 index 00000000000..ec51acceb05 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Sites.Item.GetApplicableContentTypesForListWithListId { + public class GetApplicableContentTypesForListWithListIdGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetApplicableContentTypesForListWithListIdGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetApplicableContentTypesForListWithListIdGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.cs index 3aec1a0630e..70bfd425d7a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.cs @@ -35,6 +35,26 @@ public GetApplicableContentTypesForListWithListIdRequestBuilder(string rawUrl, I /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetApplicableContentTypesForListWithListIdGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetApplicableContentTypesForListWithListIdGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetApplicableContentTypesForListWithListIdGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getApplicableContentTypesForList + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetApplicableContentTypesForListWithListIdGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdResponse.cs index b3f3287264e..2c54920bafd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Sites.Item.GetApplicableContentTypesForListWithListId { - public class GetApplicableContentTypesForListWithListIdResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getApplicableContentTypesForListWithListIdGetResponse instead.")] + public class GetApplicableContentTypesForListWithListIdResponse : GetApplicableContentTypesForListWithListIdGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetApplicableContentTypesForListWithListIdResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index 7baa2bad061..aad313e2fe0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.Groups.Item.Sites.Item.LastModifiedByUser.MailboxSettings; +using Microsoft.Graph.Groups.Item.Sites.Item.LastModifiedByUser.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class LastModifiedByUserRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new LastModifiedByUserRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..866cd6115e8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Groups.Item.Sites.Item.LastModifiedByUser.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..1a74ab4114e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Groups.Item.Sites.Item.LastModifiedByUser.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Groups.Item.Sites.Item.LastModifiedByUser.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\lastModifiedByUser\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/ColumnsRequestBuilder.cs index f0af996e760..da90576e17a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/ColumnsRequestBuilder.cs @@ -42,7 +42,7 @@ public ColumnsRequestBuilder(Dictionary pathParameters, IRequest public ColumnsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/columns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [list][list]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [list][list]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ColumnDefinitionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a column for a [list][list] with a request that specifies a [columnDefinition][columnDefinition]. + /// Create a column for a list][list] with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(ColumnDefinition body, Action(requestInfo, ColumnDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [list][list]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [list][list]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a column for a [list][list] with a request that specifies a [columnDefinition][columnDefinition]. + /// Create a column for a list][list] with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ColumnsRequestBuilder WithUrl(string rawUrl) { return new ColumnsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [list][list]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [list][list]. This API is supported in the following [national cloud deployments. /// public class ColumnsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs index a7f50207b94..c39e5fec335 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs @@ -29,7 +29,7 @@ public AddCopyRequestBuilder(Dictionary pathParameters, IRequest public AddCopyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/addCopy", rawUrl) { } /// - /// Add a copy of a [content type][contentType] from a [site][site] to a [list][list]. + /// Add a copy of a content type][contentType] from a [site][site] to a [list][list]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(AddCopyPostRequestBody body, Action(requestInfo, ContentType.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a copy of a [content type][contentType] from a [site][site] to a [list][list]. + /// Add a copy of a content type][contentType] from a [site][site] to a [list][list]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs index 405be3f33fd..efcce1665fe 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs @@ -29,7 +29,7 @@ public AddCopyFromContentTypeHubRequestBuilder(Dictionary pathPa public AddCopyFromContentTypeHubRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/addCopyFromContentTypeHub", rawUrl) { } /// - /// Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. + /// Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(AddCopyFromContentTypeHubPostRequestBod return await RequestAdapter.SendAsync(requestInfo, ContentType.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. + /// Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/ContentTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/ContentTypesRequestBuilder.cs index 94a3b3393bc..457cde17c70 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/ContentTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/ContentTypesRequestBuilder.cs @@ -57,7 +57,7 @@ public ContentTypesRequestBuilder(Dictionary pathParameters, IRe public ContentTypesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the collection of [contentType][contentType] resources in a [list][]. + /// Get the collection of contentType][contentType] resources in a [list][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -98,7 +98,7 @@ public async Task PostAsync(ContentType body, Action(requestInfo, ContentType.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the collection of [contentType][contentType] resources in a [list][]. + /// Get the collection of contentType][contentType] resources in a [list][]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -159,7 +159,7 @@ public ContentTypesRequestBuilder WithUrl(string rawUrl) { return new ContentTypesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the collection of [contentType][contentType] resources in a [list][]. + /// Get the collection of contentType][contentType] resources in a [list][]. This API is supported in the following [national cloud deployments. /// public class ContentTypesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs new file mode 100644 index 00000000000..c9c0ac3cf8b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.ContentTypes.GetCompatibleHubContentTypes { + public class GetCompatibleHubContentTypesGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetCompatibleHubContentTypesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetCompatibleHubContentTypesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs index 882387c1115..6bcc3134a41 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs @@ -33,6 +33,26 @@ public GetCompatibleHubContentTypesRequestBuilder(string rawUrl, IRequestAdapter /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetCompatibleHubContentTypesGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetCompatibleHubContentTypesGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetCompatibleHubContentTypesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getCompatibleHubContentTypes + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetCompatibleHubContentTypesGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs index 425e1a5a0e9..ab73e9bcad2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.ContentTypes.GetCompatibleHubContentTypes { - public class GetCompatibleHubContentTypesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getCompatibleHubContentTypesGetResponse instead.")] + public class GetCompatibleHubContentTypesResponse : GetCompatibleHubContentTypesGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetCompatibleHubContentTypesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs index 60d20c5bafd..0a581ae4c19 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs @@ -28,7 +28,7 @@ public AssociateWithHubSitesRequestBuilder(Dictionary pathParame public AssociateWithHubSitesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/associateWithHubSites", rawUrl) { } /// - /// Associate a published [content type][contentType] present in a content type hub with a list of hub sites. + /// Associate a published content type][contentType] present in a content type hub with a list of hub sites. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AssociateWithHubSitesPostRequestBody body, Action - /// Associate a published [content type][contentType] present in a content type hub with a list of hub sites. + /// Associate a published content type][contentType] present in a content type hub with a list of hub sites. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs index c2ac90223b4..5c3508752a3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs @@ -42,7 +42,7 @@ public ColumnsRequestBuilder(Dictionary pathParameters, IRequest public ColumnsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [content type][contentType]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ColumnDefinitionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a column to a [content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. + /// Add a column to a content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(ColumnDefinition body, Action(requestInfo, ColumnDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [content type][contentType]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a column to a [content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. + /// Add a column to a content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ColumnsRequestBuilder WithUrl(string rawUrl) { return new ColumnsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [content type][contentType]. This API is supported in the following [national cloud deployments. /// public class ColumnsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs index 066ee5dc808..08453a2eb62 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs @@ -34,7 +34,7 @@ public ColumnDefinitionItemRequestBuilder(Dictionary pathParamet public ColumnDefinitionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Remove a [column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. + /// Remove a column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + /// Retrieve the metadata for a site][], a [list][], or a [contentType][] [column][columnDefinition]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, ColumnDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update a [site][], a [list][], or a [content type][contentType] [column][columnDefinition]. + /// Update a site][], a [list][], or a [content type][contentType] [column][columnDefinition]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(ColumnDefinition body, Action(requestInfo, ColumnDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Remove a [column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. + /// Remove a column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + /// Retrieve the metadata for a site][], a [list][], or a [contentType][] [column][columnDefinition]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update a [site][], a [list][], or a [content type][contentType] [column][columnDefinition]. + /// Update a site][], a [list][], or a [content type][contentType] [column][columnDefinition]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public ColumnDefinitionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + /// Retrieve the metadata for a site][], a [list][], or a [contentType][] [column][columnDefinition]. This API is supported in the following [national cloud deployments. /// public class ColumnDefinitionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs index 702aba7f409..68ced3b0288 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs @@ -28,7 +28,7 @@ public CopyToDefaultContentLocationRequestBuilder(Dictionary pat public CopyToDefaultContentLocationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/copyToDefaultContentLocation", rawUrl) { } /// - /// Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. + /// Copy a file to a default content location in a content type][contentType]. The file can then be added as a default file or template via a POST operation. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CopyToDefaultContentLocationPostRequestBody body, Ac await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. + /// Copy a file to a default content location in a content type][contentType]. The file can then be added as a default file or template via a POST operation. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs new file mode 100644 index 00000000000..5b352632587 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.IsPublished { + public class IsPublishedGetResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public bool? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new isPublishedGetResponse and sets the default values. + /// + public IsPublishedGetResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static IsPublishedGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new IsPublishedGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs index dbaf9603c06..bd7aa1b6668 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs @@ -33,6 +33,26 @@ public IsPublishedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsIsPublishedGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsIsPublishedGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, IsPublishedGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function isPublished + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsIsPublishedGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedResponse.cs index 0219e7172ed..b4efa34e98c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.IsPublished { - public class IsPublishedResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public bool? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new isPublishedResponse and sets the default values. - /// - public IsPublishedResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use isPublishedGetResponse instead.")] + public class IsPublishedResponse : IsPublishedGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static IsPublishedResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new IsPublishedResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new IsPublishedResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Publish/PublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Publish/PublishRequestBuilder.cs index 0599bb4d0b0..9a5c1e7cf97 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Publish/PublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Publish/PublishRequestBuilder.cs @@ -28,7 +28,7 @@ public PublishRequestBuilder(Dictionary pathParameters, IRequest public PublishRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/publish", rawUrl) { } /// - /// Publishes a [contentType][] present in the content type hub site. + /// Publishes a contentType][] present in the content type hub site. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Publishes a [contentType][] present in the content type hub site. + /// Publishes a contentType][] present in the content type hub site. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs index 237b1bae342..1d78ae1b418 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs @@ -28,7 +28,7 @@ public UnpublishRequestBuilder(Dictionary pathParameters, IReque public UnpublishRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/unpublish", rawUrl) { } /// - /// Unpublish a [contentType][] from a content type hub site. + /// Unpublish a contentType][] from a content type hub site. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Unpublish a [contentType][] from a content type hub site. + /// Unpublish a contentType][] from a content type hub site. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/CreatedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/CreatedByUserRequestBuilder.cs index 04e9c6b81d8..6c36ebb18d4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/CreatedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/CreatedByUserRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.CreatedByUser.MailboxSettings; +using Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.CreatedByUser.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class CreatedByUserRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new CreatedByUserRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..9579dc43916 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.CreatedByUser.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..382e81c1055 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.CreatedByUser.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.CreatedByUser.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\lists\{list-id}\createdByUser\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/createdByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/createdByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs index d7b63aa8100..28c70c1fa94 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Items.Item.CreatedByUser.MailboxSettings; +using Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Items.Item.CreatedByUser.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class CreatedByUserRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new CreatedByUserRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..3ddf60462d2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Items.Item.CreatedByUser.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..885293878c5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Items.Item.CreatedByUser.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Items.Item.CreatedByUser.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\lists\{list-id}\items\{listItem-id}\createdByUser\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs index 5798fbe888d..149215eb373 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs @@ -42,7 +42,7 @@ public DocumentSetVersionsRequestBuilder(Dictionary pathParamete public DocumentSetVersionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/documentSetVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the versions of a document set item in a list. + /// Get a list of the versions of a document set item in a list. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, DocumentSetVersionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new version of a document set item in a list. + /// Create a new version of a document set item in a list. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(DocumentSetVersion body, Action< return await RequestAdapter.SendAsync(requestInfo, DocumentSetVersion.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the versions of a document set item in a list. + /// Get a list of the versions of a document set item in a list. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new version of a document set item in a list. + /// Create a new version of a document set item in a list. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public DocumentSetVersionsRequestBuilder WithUrl(string rawUrl) { return new DocumentSetVersionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the versions of a document set item in a list. + /// Get a list of the versions of a document set item in a list. This API is supported in the following national cloud deployments. /// public class DocumentSetVersionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs index 34324300901..f2a61421927 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs @@ -39,7 +39,7 @@ public DocumentSetVersionItemRequestBuilder(Dictionary pathParam public DocumentSetVersionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a version of a document set in a list. + /// Delete a version of a document set in a list. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -59,7 +59,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a documentSetVersion object. + /// Read the properties and relationships of a documentSetVersion object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -100,7 +100,7 @@ public async Task PatchAsync(DocumentSetVersion body, Action return await RequestAdapter.SendAsync(requestInfo, DocumentSetVersion.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a version of a document set in a list. + /// Delete a version of a document set in a list. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -124,7 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a documentSetVersion object. + /// Read the properties and relationships of a documentSetVersion object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -201,7 +201,7 @@ public DocumentSetVersionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a documentSetVersion object. + /// Read the properties and relationships of a documentSetVersion object. This API is supported in the following national cloud deployments. /// public class DocumentSetVersionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs index 7897c29db14..07479f7e2e9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs @@ -28,7 +28,7 @@ public RestoreRequestBuilder(Dictionary pathParameters, IRequest public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%2Did}/restore", rawUrl) { } /// - /// Restore a document set version. + /// Restore a document set version. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Restore a document set version. + /// Restore a document set version. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Fields/FieldsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Fields/FieldsRequestBuilder.cs index bf4347070f9..b79d887120e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Fields/FieldsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Fields/FieldsRequestBuilder.cs @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, FieldValueSet.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties on a [listItem][]. + /// Update the properties on a listItem][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -139,7 +139,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties on a [listItem][]. + /// Update the properties on a listItem][]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs new file mode 100644 index 00000000000..b4cf91558d0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Items.Item.GetActivitiesByInterval { + public class GetActivitiesByIntervalGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetActivitiesByIntervalGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetActivitiesByIntervalGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs index ba54eb176a5..faa5041af9a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs @@ -33,6 +33,26 @@ public GetActivitiesByIntervalRequestBuilder(string rawUrl, IRequestAdapter requ /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetActivitiesByIntervalGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetActivitiesByIntervalGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetActivitiesByIntervalGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getActivitiesByInterval + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetActivitiesByIntervalGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index d4e4a42411d..fd49ac4840a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Items.Item.GetActivitiesByInterval { - public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getActivitiesByIntervalGetResponse instead.")] + public class GetActivitiesByIntervalResponse : GetActivitiesByIntervalGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs new file mode 100644 index 00000000000..fd4f922a0ec --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs index 6763425a6af..d43d6ce4e17 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs @@ -39,6 +39,26 @@ public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalReques /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getActivitiesByInterval + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index 87e2fc80032..d97bad978c0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse instead.")] + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index 097de9ee9ab..31aed8879cd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Items.Item.LastModifiedByUser.MailboxSettings; +using Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Items.Item.LastModifiedByUser.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class LastModifiedByUserRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new LastModifiedByUserRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..a1d3930541a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Items.Item.LastModifiedByUser.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..9a0ffbaf09e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Items.Item.LastModifiedByUser.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Items.Item.LastModifiedByUser.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\lists\{list-id}\items\{listItem-id}\lastModifiedByUser\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.cs index fd5f7f3eae4..bf084935eae 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.cs @@ -70,7 +70,7 @@ public ListItemItemRequestBuilder(Dictionary pathParameters, IRe public ListItemItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Removes an item from a [list][]. + /// Removes an item from a list][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -102,7 +102,7 @@ public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalReques return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(PathParameters, RequestAdapter, endDateTime, interval, startDateTime); } /// - /// Returns the metadata for an [item][] in a [list][]. + /// Returns the metadata for an item][] in a [list][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -143,7 +143,7 @@ public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalReques return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.ListItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Removes an item from a [list][]. + /// Removes an item from a list][]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -167,7 +167,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Returns the metadata for an [item][] in a [list][]. + /// Returns the metadata for an item][] in a [list][]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -244,7 +244,7 @@ public ListItemItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Returns the metadata for an [item][] in a [list][]. + /// Returns the metadata for an item][] in a [list][]. This API is supported in the following [national cloud deployments. /// public class ListItemItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs index 53ff3b8d1bb..fcfc174e2be 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs @@ -58,7 +58,7 @@ public async Task DeleteAsync(Action - /// Retrieve the metadata for a specific version of a ListItem. + /// Retrieve the metadata for a specific version of a ListItem. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -123,7 +123,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the metadata for a specific version of a ListItem. + /// Retrieve the metadata for a specific version of a ListItem. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -200,7 +200,7 @@ public ListItemVersionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the metadata for a specific version of a ListItem. + /// Retrieve the metadata for a specific version of a ListItem. This API is supported in the following national cloud deployments. /// public class ListItemVersionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs index d8761bfc474..87b37637386 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs @@ -28,7 +28,7 @@ public RestoreVersionRequestBuilder(Dictionary pathParameters, I public RestoreVersionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/versions/{listItemVersion%2Did}/restoreVersion", rawUrl) { } /// - /// Restore a previous version of a ListItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the item. + /// Restore a previous version of a ListItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the item. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Restore a previous version of a ListItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the item. + /// Restore a previous version of a ListItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the item. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/VersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/VersionsRequestBuilder.cs index e75b9407cf3..1246d91fd51 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/VersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/VersionsRequestBuilder.cs @@ -42,7 +42,7 @@ public VersionsRequestBuilder(Dictionary pathParameters, IReques public VersionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/versions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. + /// SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ListItemVersion body, Action(requestInfo, ListItemVersion.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. + /// SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public VersionsRequestBuilder WithUrl(string rawUrl) { return new VersionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. + /// SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. This API is supported in the following national cloud deployments. /// public class VersionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.cs index aae10cf7ced..6a91c93f553 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.cs @@ -37,7 +37,7 @@ public ItemsRequestBuilder(Dictionary pathParameters, IRequestAd public ItemsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items{?%24top,%24skip,%24search,%24filter,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the collection of [items][item] in a [list][]. + /// Get the collection of items][item] in a [list][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -57,7 +57,7 @@ public async Task GetAsync(Action(requestInfo, ListItemCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new [listItem][] in a [list][]. + /// Create a new listItem][] in a [list][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -79,7 +79,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.ListItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the collection of [items][item] in a [list][]. + /// Get the collection of items][item] in a [list][]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new [listItem][] in a [list][]. + /// Create a new listItem][] in a [list][]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -140,7 +140,7 @@ public ItemsRequestBuilder WithUrl(string rawUrl) { return new ItemsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the collection of [items][item] in a [list][]. + /// Get the collection of items][item] in a [list][]. This API is supported in the following [national cloud deployments. /// public class ItemsRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index 44857f0e214..378d2a2d0cf 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.LastModifiedByUser.MailboxSettings; +using Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.LastModifiedByUser.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class LastModifiedByUserRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new LastModifiedByUserRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..79a7d3e01c9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.LastModifiedByUser.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..421ef5f7fc9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.LastModifiedByUser.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.LastModifiedByUser.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\lists\{list-id}\lastModifiedByUser\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilder.cs index fa14e21b3e7..6865c9a30a4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilder.cs @@ -88,7 +88,7 @@ public async Task DeleteAsync(Action - /// Get a list of rich long-running operations associated with a list. + /// Get a list of rich long-running operations associated with a list. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -153,7 +153,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a list of rich long-running operations associated with a list. + /// Get a list of rich long-running operations associated with a list. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -230,7 +230,7 @@ public ListItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a list of rich long-running operations associated with a list. + /// Get a list of rich long-running operations associated with a list. This API is supported in the following national cloud deployments. /// public class ListItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs index aa83625fe59..272477d8e34 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs @@ -28,7 +28,7 @@ public ReauthorizeRequestBuilder(Dictionary pathParameters, IReq public ReauthorizeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/subscriptions/{subscription%2Did}/reauthorize", rawUrl) { } /// - /// Reauthorize a subscription when you receive a reauthorizationRequired challenge. + /// Reauthorize a subscription when you receive a reauthorizationRequired challenge. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Reauthorize a subscription when you receive a reauthorizationRequired challenge. + /// Reauthorize a subscription when you receive a reauthorizationRequired challenge. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/ListsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/ListsRequestBuilder.cs index 3ec58b577be..80c0827ba16 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/ListsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/ListsRequestBuilder.cs @@ -42,7 +42,7 @@ public ListsRequestBuilder(Dictionary pathParameters, IRequestAd public ListsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the collection of [lists][] for a [site][]. Lists with the [system][] facet are hidden by default.To list them, include system in your $select statement. + /// Get the collection of [lists][] for a [site][]. Lists with the [system][] facet are hidden by default.To list them, include system in your $select statement. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ListCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new [list][] in a [site][]. + /// Create a new list][] in a [site][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.List.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the collection of [lists][] for a [site][]. Lists with the [system][] facet are hidden by default.To list them, include system in your $select statement. + /// Get the collection of [lists][] for a [site][]. Lists with the [system][] facet are hidden by default.To list them, include system in your $select statement. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new [list][] in a [site][]. + /// Create a new list][] in a [site][]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ListsRequestBuilder WithUrl(string rawUrl) { return new ListsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the collection of [lists][] for a [site][]. Lists with the [system][] facet are hidden by default.To list them, include system in your $select statement. + /// Get the collection of [lists][] for a [site][]. Lists with the [system][] facet are hidden by default.To list them, include system in your $select statement. This API is supported in the following national cloud deployments. /// public class ListsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs index 2800ceb7b1a..5ddaf4e0a2b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs @@ -29,7 +29,7 @@ public GetNotebookFromWebUrlRequestBuilder(Dictionary pathParame public GetNotebookFromWebUrlRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/getNotebookFromWebUrl", rawUrl) { } /// - /// Retrieve the properties and relationships of a notebook object by using its URL path. The location can be user notebooks on Microsoft 365, group notebooks, or SharePoint site-hosted team notebooks on Microsoft 365. + /// Retrieve the properties and relationships of a notebook object by using its URL path. The location can be user notebooks on Microsoft 365, group notebooks, or SharePoint site-hosted team notebooks on Microsoft 365. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(GetNotebookFromWebUrlPostRequestB return await RequestAdapter.SendAsync(requestInfo, CopyNotebookModel.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the properties and relationships of a notebook object by using its URL path. The location can be user notebooks on Microsoft 365, group notebooks, or SharePoint site-hosted team notebooks on Microsoft 365. + /// Retrieve the properties and relationships of a notebook object by using its URL path. The location can be user notebooks on Microsoft 365, group notebooks, or SharePoint site-hosted team notebooks on Microsoft 365. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs new file mode 100644 index 00000000000..9836f77b2a9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Sites.Item.Onenote.Notebooks.GetRecentNotebooksWithIncludePersonalNotebooks { + public class GetRecentNotebooksWithIncludePersonalNotebooksGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetRecentNotebooksWithIncludePersonalNotebooksGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetRecentNotebooksWithIncludePersonalNotebooksGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(RecentNotebook.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs index d6c5f1677d9..0c5396c42a8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs @@ -35,6 +35,26 @@ public GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder(string rawUr /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetRecentNotebooksWithIncludePersonalNotebooksGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetRecentNotebooksWithIncludePersonalNotebooksGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getRecentNotebooks + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetRecentNotebooksWithIncludePersonalNotebooksGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs index 4c0acf5aee4..3a87fca4a72 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Sites.Item.Onenote.Notebooks.GetRecentNotebooksWithIncludePersonalNotebooks { - public class GetRecentNotebooksWithIncludePersonalNotebooksResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getRecentNotebooksWithIncludePersonalNotebooksGetResponse instead.")] + public class GetRecentNotebooksWithIncludePersonalNotebooksResponse : GetRecentNotebooksWithIncludePersonalNotebooksGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetRecentNotebooksWithIncludePersonalNotebooksResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(RecentNotebook.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs index 71a34e9f206..fd6ba1299ee 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyNotebookRequestBuilder(Dictionary pathParameters, IRe public CopyNotebookRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/copyNotebook", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyNotebookPostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs index 679efe14bd8..3dca7cd780c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs @@ -63,7 +63,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a notebook object. + /// Retrieve the properties and relationships of a notebook object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -128,7 +128,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a notebook object. + /// Retrieve the properties and relationships of a notebook object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -205,7 +205,7 @@ public NotebookItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a notebook object. + /// Retrieve the properties and relationships of a notebook object. This API is supported in the following national cloud deployments. /// public class NotebookItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs index 99272703ac2..eaec9d650e4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionGroupsRequestBuilder(Dictionary pathParameters, IR public SectionGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sectionGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of section groups from the specified section group. + /// Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, SectionGroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of section groups from the specified section group. + /// Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public SectionGroupsRequestBuilder WithUrl(string rawUrl) { return new SectionGroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of section groups from the specified section group. + /// Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. /// public class SectionGroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index 14425c8fc7c..679f0cd3687 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToNotebookRequestBuilder(Dictionary pathParameters, I public CopyToNotebookRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToNotebook", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToNotebookPostRequestBody body return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index 6a3ae0b3fa3..3301c6cbd5a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionGroupRequestBuilder(Dictionary pathParameter public CopyToSectionGroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionGroupPostRequestBody return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index bf4a13c2dd4..14ef86a0b34 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionRequestBuilder(Dictionary pathParameters, IR public CopyToSectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", rawUrl) { } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionPostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs index 4436eb66c9c..3071e97c48c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs @@ -42,7 +42,7 @@ public PagesRequestBuilder(Dictionary pathParameters, IRequestAd public PagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenotePageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenotePage body, Action(requestInfo, OnenotePage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PagesRequestBuilder WithUrl(string rawUrl) { return new PagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// public class PagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs index 4b8ffdaf192..1f175205296 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionsRequestBuilder(Dictionary pathParameters, IReques public SectionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of onenoteSection objects from the specified section group. + /// Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenoteSectionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new onenoteSection in the specified section group. + /// Create a new onenoteSection in the specified section group. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenoteSection body, Action(requestInfo, OnenoteSection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of onenoteSection objects from the specified section group. + /// Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new onenoteSection in the specified section group. + /// Create a new onenoteSection in the specified section group. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SectionsRequestBuilder WithUrl(string rawUrl) { return new SectionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of onenoteSection objects from the specified section group. + /// Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. /// public class SectionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs index 543493a9757..d6a30d762e6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionGroupsRequestBuilder(Dictionary pathParameters, IR public SectionGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of section groups from the specified notebook. + /// Retrieve a list of section groups from the specified notebook. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, SectionGroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new section group in the specified notebook. + /// Create a new section group in the specified notebook. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(SectionGroup body, Action(requestInfo, SectionGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of section groups from the specified notebook. + /// Retrieve a list of section groups from the specified notebook. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new section group in the specified notebook. + /// Create a new section group in the specified notebook. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SectionGroupsRequestBuilder WithUrl(string rawUrl) { return new SectionGroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of section groups from the specified notebook. + /// Retrieve a list of section groups from the specified notebook. This API is supported in the following national cloud deployments. /// public class SectionGroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index 11521795230..c35d1c43caa 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToNotebookRequestBuilder(Dictionary pathParameters, I public CopyToNotebookRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/copyToNotebook", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToNotebookPostRequestBody body return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index 6dcdfc43efd..cd618fcaa36 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionGroupRequestBuilder(Dictionary pathParameter public CopyToSectionGroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionGroupPostRequestBody return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 727f4263532..8cec36d5f96 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionRequestBuilder(Dictionary pathParameters, IR public CopyToSectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", rawUrl) { } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionPostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs index 184050bee63..c3a72346800 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs @@ -42,7 +42,7 @@ public PagesRequestBuilder(Dictionary pathParameters, IRequestAd public PagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenotePageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenotePage body, Action(requestInfo, OnenotePage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PagesRequestBuilder WithUrl(string rawUrl) { return new PagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// public class PagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs index 63582fe7413..efd91415ad2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionsRequestBuilder(Dictionary pathParameters, IReques public SectionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of onenoteSection objects from the specified notebook. + /// Retrieve a list of onenoteSection objects from the specified notebook. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenoteSectionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new onenoteSection in the specified notebook. + /// Create a new onenoteSection in the specified notebook. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenoteSection body, Action(requestInfo, OnenoteSection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of onenoteSection objects from the specified notebook. + /// Retrieve a list of onenoteSection objects from the specified notebook. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new onenoteSection in the specified notebook. + /// Create a new onenoteSection in the specified notebook. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SectionsRequestBuilder WithUrl(string rawUrl) { return new SectionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of onenoteSection objects from the specified notebook. + /// Retrieve a list of onenoteSection objects from the specified notebook. This API is supported in the following national cloud deployments. /// public class SectionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs index 3871eac8379..1f2b3ee458c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs @@ -48,7 +48,7 @@ public NotebooksRequestBuilder(Dictionary pathParameters, IReque public NotebooksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of notebook objects. + /// Retrieve a list of notebook objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -76,7 +76,7 @@ public GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder GetRecentNot return new GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder(PathParameters, RequestAdapter, includePersonalNotebooks); } /// - /// Create a new OneNote notebook. + /// Create a new OneNote notebook. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -98,7 +98,7 @@ public async Task PostAsync(Notebook body, Action(requestInfo, Notebook.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of notebook objects. + /// Retrieve a list of notebook objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -124,7 +124,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new OneNote notebook. + /// Create a new OneNote notebook. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -159,7 +159,7 @@ public NotebooksRequestBuilder WithUrl(string rawUrl) { return new NotebooksRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of notebook objects. + /// Retrieve a list of notebook objects. This API is supported in the following national cloud deployments. /// public class NotebooksRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs index b105475869f..4ae867809fc 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public OnenoteOperationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. /// public class OnenoteOperationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Operations/OperationsRequestBuilder.cs index f95072b2dc8..ef929c59ab2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Operations/OperationsRequestBuilder.cs @@ -42,7 +42,7 @@ public OperationsRequestBuilder(Dictionary pathParameters, IRequ public OperationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/operations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(OnenoteOperation body, Action(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public OperationsRequestBuilder WithUrl(string rawUrl) { return new OperationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. /// public class OperationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index ef20163c4aa..d95ddb991fd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionRequestBuilder(Dictionary pathParameters, IR public CopyToSectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/pages/{onenotePage%2Did}/copyToSection", rawUrl) { } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionPostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs index fcf758854d3..182c935c947 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -59,7 +59,7 @@ public OnenotePageItemRequestBuilder(Dictionary pathParameters, public OnenotePageItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/pages/{onenotePage%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a OneNote page. + /// Delete a OneNote page. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -79,7 +79,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. + /// Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -120,7 +120,7 @@ public async Task PatchAsync(OnenotePage body, Action(requestInfo, OnenotePage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a OneNote page. + /// Delete a OneNote page. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. + /// Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -221,7 +221,7 @@ public OnenotePageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. + /// Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. This API is supported in the following national cloud deployments. /// public class OnenotePageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/PagesRequestBuilder.cs index b32785c6429..07f2b94c69b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/PagesRequestBuilder.cs @@ -42,7 +42,7 @@ public PagesRequestBuilder(Dictionary pathParameters, IRequestAd public PagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/pages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of page objects. + /// Retrieve a list of page objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenotePageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new OneNote page in the default section of the default notebook. To create a page in a different section in the default notebook, you can use the sectionName query parameter. Example: ../onenote/pages?sectionName=My%20section The POST /onenote/pages operation is used only to create pages in the current user's default notebook. If you're targeting other notebooks, you can create pages in a specified section. + /// Create a new OneNote page in the default section of the default notebook. To create a page in a different section in the default notebook, you can use the sectionName query parameter. Example: ../onenote/pages?sectionName=My%20section The POST /onenote/pages operation is used only to create pages in the current user's default notebook. If you're targeting other notebooks, you can create pages in a specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenotePage body, Action(requestInfo, OnenotePage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of page objects. + /// Retrieve a list of page objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new OneNote page in the default section of the default notebook. To create a page in a different section in the default notebook, you can use the sectionName query parameter. Example: ../onenote/pages?sectionName=My%20section The POST /onenote/pages operation is used only to create pages in the current user's default notebook. If you're targeting other notebooks, you can create pages in a specified section. + /// Create a new OneNote page in the default section of the default notebook. To create a page in a different section in the default notebook, you can use the sectionName query parameter. Example: ../onenote/pages?sectionName=My%20section The POST /onenote/pages operation is used only to create pages in the current user's default notebook. If you're targeting other notebooks, you can create pages in a specified section. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PagesRequestBuilder WithUrl(string rawUrl) { return new PagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of page objects. + /// Retrieve a list of page objects. This API is supported in the following national cloud deployments. /// public class PagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs index 8af21c9ea74..893fece68e9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + /// The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -117,7 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + /// The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -194,7 +194,7 @@ public OnenoteResourceItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + /// The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. /// public class OnenoteResourceItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Resources/ResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Resources/ResourcesRequestBuilder.cs index 72add0d9c29..8a9276c3468 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Resources/ResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Resources/ResourcesRequestBuilder.cs @@ -42,7 +42,7 @@ public ResourcesRequestBuilder(Dictionary pathParameters, IReque public ResourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/resources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + /// The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(OnenoteResource body, Action(requestInfo, OnenoteResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + /// The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public ResourcesRequestBuilder WithUrl(string rawUrl) { return new ResourcesRequestBuilder(rawUrl, RequestAdapter); } /// - /// The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + /// The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. /// public class ResourcesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs index 5aa7cc7ee88..fc5cbf02031 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs @@ -68,7 +68,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a sectionGroup object. + /// Retrieve the properties and relationships of a sectionGroup object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -133,7 +133,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a sectionGroup object. + /// Retrieve the properties and relationships of a sectionGroup object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -210,7 +210,7 @@ public SectionGroupItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a sectionGroup object. + /// Retrieve the properties and relationships of a sectionGroup object. This API is supported in the following national cloud deployments. /// public class SectionGroupItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs index 6d6d5dc90c5..67505e2eb0e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionGroupsRequestBuilder(Dictionary pathParameters, IR public SectionGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sectionGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of section groups from the specified section group. + /// Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, SectionGroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of section groups from the specified section group. + /// Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public SectionGroupsRequestBuilder WithUrl(string rawUrl) { return new SectionGroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of section groups from the specified section group. + /// Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. /// public class SectionGroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index 102c4fb1e91..3d62c6956f3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToNotebookRequestBuilder(Dictionary pathParameters, I public CopyToNotebookRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToNotebook", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToNotebookPostRequestBody body return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index 2518ca46891..5711a819a2d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionGroupRequestBuilder(Dictionary pathParameter public CopyToSectionGroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionGroupPostRequestBody return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 8569b65f3b6..f0eb6f4d756 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionRequestBuilder(Dictionary pathParameters, IR public CopyToSectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", rawUrl) { } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionPostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs index 7aaf9e04f54..c5b32105ded 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs @@ -42,7 +42,7 @@ public PagesRequestBuilder(Dictionary pathParameters, IRequestAd public PagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenotePageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenotePage body, Action(requestInfo, OnenotePage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PagesRequestBuilder WithUrl(string rawUrl) { return new PagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// public class PagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs index d1ea7386629..bdeadb319aa 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionsRequestBuilder(Dictionary pathParameters, IReques public SectionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of onenoteSection objects from the specified section group. + /// Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenoteSectionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new onenoteSection in the specified section group. + /// Create a new onenoteSection in the specified section group. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenoteSection body, Action(requestInfo, OnenoteSection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of onenoteSection objects from the specified section group. + /// Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new onenoteSection in the specified section group. + /// Create a new onenoteSection in the specified section group. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SectionsRequestBuilder WithUrl(string rawUrl) { return new SectionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of onenoteSection objects from the specified section group. + /// Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. /// public class SectionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs index d3d9801ff5b..30f1e782b3f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionGroupsRequestBuilder(Dictionary pathParameters, IR public SectionGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of sectionGroup objects. + /// Retrieve a list of sectionGroup objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(SectionGroup body, Action(requestInfo, SectionGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of sectionGroup objects. + /// Retrieve a list of sectionGroup objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SectionGroupsRequestBuilder WithUrl(string rawUrl) { return new SectionGroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of sectionGroup objects. + /// Retrieve a list of sectionGroup objects. This API is supported in the following national cloud deployments. /// public class SectionGroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index 88cbeea970b..135216b6223 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToNotebookRequestBuilder(Dictionary pathParameters, I public CopyToNotebookRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/copyToNotebook", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToNotebookPostRequestBody body return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index 5faa64d5b40..ce5c3e07cce 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionGroupRequestBuilder(Dictionary pathParameter public CopyToSectionGroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/copyToSectionGroup", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionGroupPostRequestBody return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs index f6b39d6e0cf..4a64a8755c7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs @@ -73,7 +73,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a onenoteSection object. + /// Retrieve the properties and relationships of a onenoteSection object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -138,7 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a onenoteSection object. + /// Retrieve the properties and relationships of a onenoteSection object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -215,7 +215,7 @@ public OnenoteSectionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a onenoteSection object. + /// Retrieve the properties and relationships of a onenoteSection object. This API is supported in the following national cloud deployments. /// public class OnenoteSectionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 778cf82a34b..0ebcb5e647a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionRequestBuilder(Dictionary pathParameters, IR public CopyToSectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", rawUrl) { } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionPostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs index dff17698264..d8935bffe4c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs @@ -42,7 +42,7 @@ public PagesRequestBuilder(Dictionary pathParameters, IRequestAd public PagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/pages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenotePageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenotePage body, Action(requestInfo, OnenotePage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PagesRequestBuilder WithUrl(string rawUrl) { return new PagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// public class PagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/SectionsRequestBuilder.cs index 981cc05e916..a47fe78297c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/SectionsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionsRequestBuilder(Dictionary pathParameters, IReques public SectionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of onenoteSection objects. + /// Retrieve a list of onenoteSection objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(OnenoteSection body, Action(requestInfo, OnenoteSection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of onenoteSection objects. + /// Retrieve a list of onenoteSection objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SectionsRequestBuilder WithUrl(string rawUrl) { return new SectionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of onenoteSection objects. + /// Retrieve a list of onenoteSection objects. This API is supported in the following national cloud deployments. /// public class SectionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs index d04e4408abd..de592bb1be1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get the status of a rich long-running operation on a site or a list. + /// Get the status of a rich long-running operation on a site or a list. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the status of a rich long-running operation on a site or a list. + /// Get the status of a rich long-running operation on a site or a list. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public RichLongRunningOperationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the status of a rich long-running operation on a site or a list. + /// Get the status of a rich long-running operation on a site or a list. This API is supported in the following national cloud deployments. /// public class RichLongRunningOperationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Operations/OperationsRequestBuilder.cs index e7d791c2d7c..cc263879877 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Operations/OperationsRequestBuilder.cs @@ -42,7 +42,7 @@ public OperationsRequestBuilder(Dictionary pathParameters, IRequ public OperationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/operations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of rich long-running operations associated with a site. + /// Get a list of rich long-running operations associated with a site. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(RichLongRunningOperation b return await RequestAdapter.SendAsync(requestInfo, RichLongRunningOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of rich long-running operations associated with a site. + /// Get a list of rich long-running operations associated with a site. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public OperationsRequestBuilder WithUrl(string rawUrl) { return new OperationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of rich long-running operations associated with a site. + /// Get a list of rich long-running operations associated with a site. This API is supported in the following national cloud deployments. /// public class OperationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantPostResponse.cs new file mode 100644 index 00000000000..5e11c7df987 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Sites.Item.Permissions.Item.Grant { + public class GrantPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GrantPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GrantPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantRequestBuilder.cs index d807da2e9e8..a1527a6c2f7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantRequestBuilder.cs @@ -28,13 +28,36 @@ public GrantRequestBuilder(Dictionary pathParameters, IRequestAd public GrantRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/permissions/{permission%2Did}/grant", rawUrl) { } /// - /// Grant users access to a link represented by a [permission][]. + /// Grant users access to a link represented by a permission][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGrantPostResponseAsync(GrantPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGrantPostResponseAsync(GrantPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GrantPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Grant users access to a link represented by a permission][]. This API is supported in the following [national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGrantPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GrantPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GrantPostRequestBody body, Action(requestInfo, GrantResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Grant users access to a link represented by a [permission][]. + /// Grant users access to a link represented by a permission][]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantResponse.cs index 7c9faebe0b7..2418d7cc972 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Sites.Item.Permissions.Item.Grant { - public class GrantResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use grantPostResponse instead.")] + public class GrantResponse : GrantPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GrantResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/PermissionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/PermissionItemRequestBuilder.cs index b4d633479e9..e7a6b6fbbe6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/PermissionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/PermissionItemRequestBuilder.cs @@ -34,7 +34,7 @@ public PermissionItemRequestBuilder(Dictionary pathParameters, I public PermissionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/permissions/{permission%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a permission object on a site. + /// Delete a permission object on a site. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a permission object on a site. + /// Retrieve the properties and relationships of a permission object on a site. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update an application permission object on a site. + /// Update an application permission object on a site. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a permission object on a site. + /// Delete a permission object on a site. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a permission object on a site. + /// Retrieve the properties and relationships of a permission object on a site. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update an application permission object on a site. + /// Update an application permission object on a site. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public PermissionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a permission object on a site. + /// Retrieve the properties and relationships of a permission object on a site. This API is supported in the following national cloud deployments. /// public class PermissionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/PermissionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/PermissionsRequestBuilder.cs index 7ca686beca1..49517000996 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/PermissionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/PermissionsRequestBuilder.cs @@ -42,7 +42,7 @@ public PermissionsRequestBuilder(Dictionary pathParameters, IReq public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/permissions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the permission resources from the permissions navigation property on a site. + /// Get the permission resources from the permissions navigation property on a site. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, PermissionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new permission object on a site. + /// Create a new permission object on a site. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the permission resources from the permissions navigation property on a site. + /// Get the permission resources from the permissions navigation property on a site. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new permission object on a site. + /// Create a new permission object on a site. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PermissionsRequestBuilder WithUrl(string rawUrl) { return new PermissionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the permission resources from the permissions navigation property on a site. + /// Get the permission resources from the permissions navigation property on a site. This API is supported in the following national cloud deployments. /// public class PermissionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Sites/SitesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Sites/SitesRequestBuilder.cs index 4543d91cea0..edbbd5392b7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Sites/SitesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Sites/SitesRequestBuilder.cs @@ -42,7 +42,7 @@ public SitesRequestBuilder(Dictionary pathParameters, IRequestAd public SitesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/sites{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a collection of subsites defined for a [site][]. + /// Get a collection of subsites defined for a site][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, SiteCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a collection of subsites defined for a [site][]. + /// Get a collection of subsites defined for a site][]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public SitesRequestBuilder WithUrl(string rawUrl) { return new SitesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a collection of subsites defined for a [site][]. + /// Get a collection of subsites defined for a site][]. This API is supported in the following [national cloud deployments. /// public class SitesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/GroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/GroupsRequestBuilder.cs index 7d53b03d061..7b39591ec91 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/GroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/GroupsRequestBuilder.cs @@ -42,7 +42,7 @@ public GroupsRequestBuilder(Dictionary pathParameters, IRequestA public GroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of group objects in a term store. + /// Get a list of group objects in a term store. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, GroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new group object in a term store. + /// Create a new group object in a term store. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.TermStore.Group.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of group objects in a term store. + /// Get a list of group objects in a term store. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new group object in a term store. + /// Create a new group object in a term store. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public GroupsRequestBuilder WithUrl(string rawUrl) { return new GroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of group objects in a term store. + /// Get a list of group objects in a term store. This API is supported in the following national cloud deployments. /// public class GroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/GroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/GroupItemRequestBuilder.cs index 5f10672c8d9..98d66d1a4f7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/GroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/GroupItemRequestBuilder.cs @@ -34,7 +34,7 @@ public GroupItemRequestBuilder(Dictionary pathParameters, IReque public GroupItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a group object in a term [store]. + /// Delete a group object in a term store]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a term store group object. + /// Read the properties and relationships of a term store group object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -95,7 +95,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.TermStore.Group.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a group object in a term [store]. + /// Delete a group object in a term store]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -119,7 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a term store group object. + /// Read the properties and relationships of a term store group object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -196,7 +196,7 @@ public GroupItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a term store group object. + /// Read the properties and relationships of a term store group object. This API is supported in the following national cloud deployments. /// public class GroupItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs index 1585b96e71f..e407b7918c7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs @@ -42,7 +42,7 @@ public ChildrenRequestBuilder(Dictionary pathParameters, IReques public ChildrenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TermCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new term object. + /// Create a new term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new term object. + /// Create a new term object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ChildrenRequestBuilder WithUrl(string rawUrl) { return new ChildrenRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// public class ChildrenRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs index a23efb2f640..8d04901b73e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs @@ -42,7 +42,7 @@ public RelationsRequestBuilder(Dictionary pathParameters, IReque public RelationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(Relation body, Action(requestInfo, Relation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public RelationsRequestBuilder WithUrl(string rawUrl) { return new RelationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// public class RelationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs index cfec37a03d4..214548fd0de 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs @@ -44,7 +44,7 @@ public TermItemRequestBuilder(Dictionary pathParameters, IReques public TermItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a term object. + /// Delete a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -64,7 +64,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a term object. + /// Update the properties of a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -106,7 +106,7 @@ public async Task PatchAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a term object. + /// Delete a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -156,7 +156,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a term object. + /// Update the properties of a term object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -207,7 +207,7 @@ public TermItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// public class TermItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs index 3693bc16a83..d5129a709fd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs @@ -42,7 +42,7 @@ public TermsRequestBuilder(Dictionary pathParameters, IRequestAd public TermsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public TermsRequestBuilder WithUrl(string rawUrl) { return new TermsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// public class TermsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/SetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/SetsRequestBuilder.cs index 14c10f82e2b..be6350be940 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/SetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/SetsRequestBuilder.cs @@ -42,7 +42,7 @@ public SetsRequestBuilder(Dictionary pathParameters, IRequestAda public SetsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the set objects and their properties. + /// Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.TermStore.Set.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the set objects and their properties. + /// Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SetsRequestBuilder WithUrl(string rawUrl) { return new SetsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the set objects and their properties. + /// Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. /// public class SetsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/ChildrenRequestBuilder.cs index 321efad107a..482b9c65641 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/ChildrenRequestBuilder.cs @@ -42,7 +42,7 @@ public ChildrenRequestBuilder(Dictionary pathParameters, IReques public ChildrenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TermCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new term object. + /// Create a new term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new term object. + /// Create a new term object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ChildrenRequestBuilder WithUrl(string rawUrl) { return new ChildrenRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// public class ChildrenRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs index 89c8185c8f3..1863c71ebc2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs @@ -42,7 +42,7 @@ public ChildrenRequestBuilder(Dictionary pathParameters, IReques public ChildrenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TermCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new term object. + /// Create a new term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new term object. + /// Create a new term object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ChildrenRequestBuilder WithUrl(string rawUrl) { return new ChildrenRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// public class ChildrenRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs index 9d07a3e3303..2d25a5ce412 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs @@ -42,7 +42,7 @@ public RelationsRequestBuilder(Dictionary pathParameters, IReque public RelationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(Relation body, Action(requestInfo, Relation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public RelationsRequestBuilder WithUrl(string rawUrl) { return new RelationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// public class RelationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs index 8eb2ad09d45..64d9da78d34 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs @@ -44,7 +44,7 @@ public TermItemRequestBuilder(Dictionary pathParameters, IReques public TermItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a term object. + /// Delete a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -64,7 +64,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a term object. + /// Update the properties of a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -106,7 +106,7 @@ public async Task PatchAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a term object. + /// Delete a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -156,7 +156,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a term object. + /// Update the properties of a term object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -207,7 +207,7 @@ public TermItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// public class TermItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs index 5fc0b4c484d..bb9bb46c080 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs @@ -42,7 +42,7 @@ public TermsRequestBuilder(Dictionary pathParameters, IRequestAd public TermsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public TermsRequestBuilder WithUrl(string rawUrl) { return new TermsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// public class TermsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs index e5bb389df1b..3f3472f2ac7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs @@ -42,7 +42,7 @@ public SetsRequestBuilder(Dictionary pathParameters, IRequestAda public SetsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the set objects and their properties. + /// Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.TermStore.Set.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the set objects and their properties. + /// Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SetsRequestBuilder WithUrl(string rawUrl) { return new SetsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the set objects and their properties. + /// Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. /// public class SetsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/RelationsRequestBuilder.cs index b66b52e3fff..25b2cd7ae00 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/RelationsRequestBuilder.cs @@ -42,7 +42,7 @@ public RelationsRequestBuilder(Dictionary pathParameters, IReque public RelationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(Relation body, Action(requestInfo, Relation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public RelationsRequestBuilder WithUrl(string rawUrl) { return new RelationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// public class RelationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/SetItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/SetItemRequestBuilder.cs index eb1ebd681e5..debe30582a3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/SetItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/SetItemRequestBuilder.cs @@ -49,7 +49,7 @@ public SetItemRequestBuilder(Dictionary pathParameters, IRequest public SetItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a set object. + /// Delete a set object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a set object. + /// Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.TermStore.Set.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a set object. + /// Update the properties of a set object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -111,7 +111,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.TermStore.Set.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a set object. + /// Delete a set object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -135,7 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a set object. + /// Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -161,7 +161,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a set object. + /// Update the properties of a set object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -212,7 +212,7 @@ public SetItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a set object. + /// Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. /// public class SetItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/TermItemRequestBuilder.cs index 7a9598de0d2..8328daf8bc4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/TermItemRequestBuilder.cs @@ -44,7 +44,7 @@ public TermItemRequestBuilder(Dictionary pathParameters, IReques public TermItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a term object. + /// Delete a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -64,7 +64,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a term object. + /// Update the properties of a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -106,7 +106,7 @@ public async Task PatchAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a term object. + /// Delete a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -156,7 +156,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a term object. + /// Update the properties of a term object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -207,7 +207,7 @@ public TermItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// public class TermItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/TermsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/TermsRequestBuilder.cs index 595ebc288d0..3d63f5996ff 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/TermsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/TermsRequestBuilder.cs @@ -42,7 +42,7 @@ public TermsRequestBuilder(Dictionary pathParameters, IRequestAd public TermsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public TermsRequestBuilder WithUrl(string rawUrl) { return new TermsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// public class TermsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/SetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/SetsRequestBuilder.cs index aaef738828a..d8ddf46d564 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/SetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/SetsRequestBuilder.cs @@ -42,7 +42,7 @@ public SetsRequestBuilder(Dictionary pathParameters, IRequestAda public SetsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of a set object. + /// Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, SetCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new set object. + /// Create a new set object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.TermStore.Set.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of a set object. + /// Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new set object. + /// Create a new set object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public SetsRequestBuilder WithUrl(string rawUrl) { return new SetsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of a set object. + /// Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. /// public class SetsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/TermStoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/TermStoreRequestBuilder.cs index 38781e91961..cd778ab40e1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/TermStoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/TermStoreRequestBuilder.cs @@ -58,7 +58,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a store object. + /// Read the properties and relationships of a store object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -78,7 +78,7 @@ public async Task GetAsync(Action(requestInfo, Store.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a store object. + /// Update the properties of a store object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -124,7 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a store object. + /// Read the properties and relationships of a store object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -150,7 +150,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a store object. + /// Update the properties of a store object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -201,7 +201,7 @@ public TermStoreRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a store object. + /// Read the properties and relationships of a store object. This API is supported in the following national cloud deployments. /// public class TermStoreRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/GroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/GroupsRequestBuilder.cs index 28047e663cb..c156cf68062 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/GroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/GroupsRequestBuilder.cs @@ -42,7 +42,7 @@ public GroupsRequestBuilder(Dictionary pathParameters, IRequestA public GroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of group objects in a term store. + /// Get a list of group objects in a term store. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, GroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new group object in a term store. + /// Create a new group object in a term store. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.TermStore.Group.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of group objects in a term store. + /// Get a list of group objects in a term store. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new group object in a term store. + /// Create a new group object in a term store. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public GroupsRequestBuilder WithUrl(string rawUrl) { return new GroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of group objects in a term store. + /// Get a list of group objects in a term store. This API is supported in the following national cloud deployments. /// public class GroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/GroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/GroupItemRequestBuilder.cs index 660eb2f3f21..de78db38aa7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/GroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/GroupItemRequestBuilder.cs @@ -34,7 +34,7 @@ public GroupItemRequestBuilder(Dictionary pathParameters, IReque public GroupItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a group object in a term [store]. + /// Delete a group object in a term store]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a term store group object. + /// Read the properties and relationships of a term store group object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -95,7 +95,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.TermStore.Group.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a group object in a term [store]. + /// Delete a group object in a term store]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -119,7 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a term store group object. + /// Read the properties and relationships of a term store group object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -196,7 +196,7 @@ public GroupItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a term store group object. + /// Read the properties and relationships of a term store group object. This API is supported in the following national cloud deployments. /// public class GroupItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs index 1ca24a97f8d..c6607583a32 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs @@ -42,7 +42,7 @@ public ChildrenRequestBuilder(Dictionary pathParameters, IReques public ChildrenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TermCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new term object. + /// Create a new term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new term object. + /// Create a new term object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ChildrenRequestBuilder WithUrl(string rawUrl) { return new ChildrenRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// public class ChildrenRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs index deea67033b0..2fdbc04ee74 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs @@ -42,7 +42,7 @@ public RelationsRequestBuilder(Dictionary pathParameters, IReque public RelationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(Relation body, Action(requestInfo, Relation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public RelationsRequestBuilder WithUrl(string rawUrl) { return new RelationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// public class RelationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs index af4e5e690db..2d039b86f69 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs @@ -44,7 +44,7 @@ public TermItemRequestBuilder(Dictionary pathParameters, IReques public TermItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a term object. + /// Delete a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -64,7 +64,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a term object. + /// Update the properties of a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -106,7 +106,7 @@ public async Task PatchAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a term object. + /// Delete a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -156,7 +156,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a term object. + /// Update the properties of a term object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -207,7 +207,7 @@ public TermItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// public class TermItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs index f125017de2b..69c8af45628 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs @@ -42,7 +42,7 @@ public TermsRequestBuilder(Dictionary pathParameters, IRequestAd public TermsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public TermsRequestBuilder WithUrl(string rawUrl) { return new TermsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// public class TermsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/SetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/SetsRequestBuilder.cs index 0cecccf873c..50f2861ff8c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/SetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/SetsRequestBuilder.cs @@ -42,7 +42,7 @@ public SetsRequestBuilder(Dictionary pathParameters, IRequestAda public SetsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the set objects and their properties. + /// Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.TermStore.Set.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the set objects and their properties. + /// Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SetsRequestBuilder WithUrl(string rawUrl) { return new SetsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the set objects and their properties. + /// Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. /// public class SetsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/ChildrenRequestBuilder.cs index 31a4977fd55..c1c00067e8d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/ChildrenRequestBuilder.cs @@ -42,7 +42,7 @@ public ChildrenRequestBuilder(Dictionary pathParameters, IReques public ChildrenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TermCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new term object. + /// Create a new term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new term object. + /// Create a new term object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ChildrenRequestBuilder WithUrl(string rawUrl) { return new ChildrenRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// public class ChildrenRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs index 81245e76494..5117ebfe390 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs @@ -42,7 +42,7 @@ public ChildrenRequestBuilder(Dictionary pathParameters, IReques public ChildrenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TermCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new term object. + /// Create a new term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new term object. + /// Create a new term object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ChildrenRequestBuilder WithUrl(string rawUrl) { return new ChildrenRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// public class ChildrenRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs index ce3bc392f4e..339857982a8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs @@ -42,7 +42,7 @@ public RelationsRequestBuilder(Dictionary pathParameters, IReque public RelationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(Relation body, Action(requestInfo, Relation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public RelationsRequestBuilder WithUrl(string rawUrl) { return new RelationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// public class RelationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs index 9bb647a1701..7f43e254093 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs @@ -44,7 +44,7 @@ public TermItemRequestBuilder(Dictionary pathParameters, IReques public TermItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a term object. + /// Delete a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -64,7 +64,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a term object. + /// Update the properties of a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -106,7 +106,7 @@ public async Task PatchAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a term object. + /// Delete a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -156,7 +156,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a term object. + /// Update the properties of a term object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -207,7 +207,7 @@ public TermItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// public class TermItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs index 3499b61e1ba..6b6175645ef 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs @@ -42,7 +42,7 @@ public TermsRequestBuilder(Dictionary pathParameters, IRequestAd public TermsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public TermsRequestBuilder WithUrl(string rawUrl) { return new TermsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// public class TermsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs index 6a8ca5a6bf7..8c3c1266a7b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs @@ -42,7 +42,7 @@ public SetsRequestBuilder(Dictionary pathParameters, IRequestAda public SetsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the set objects and their properties. + /// Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.TermStore.Set.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the set objects and their properties. + /// Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SetsRequestBuilder WithUrl(string rawUrl) { return new SetsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the set objects and their properties. + /// Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. /// public class SetsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/RelationsRequestBuilder.cs index b7d86fa5d2d..4450bde5f42 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/RelationsRequestBuilder.cs @@ -42,7 +42,7 @@ public RelationsRequestBuilder(Dictionary pathParameters, IReque public RelationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(Relation body, Action(requestInfo, Relation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public RelationsRequestBuilder WithUrl(string rawUrl) { return new RelationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// public class RelationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/SetItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/SetItemRequestBuilder.cs index b6265f02a75..a3d49f1c9c8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/SetItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/SetItemRequestBuilder.cs @@ -49,7 +49,7 @@ public SetItemRequestBuilder(Dictionary pathParameters, IRequest public SetItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a set object. + /// Delete a set object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a set object. + /// Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.TermStore.Set.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a set object. + /// Update the properties of a set object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -111,7 +111,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.TermStore.Set.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a set object. + /// Delete a set object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -135,7 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a set object. + /// Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -161,7 +161,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a set object. + /// Update the properties of a set object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -212,7 +212,7 @@ public SetItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a set object. + /// Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. /// public class SetItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs index f3958aaa24f..ae9fabcd8ca 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs @@ -44,7 +44,7 @@ public TermItemRequestBuilder(Dictionary pathParameters, IReques public TermItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a term object. + /// Delete a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -64,7 +64,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a term object. + /// Update the properties of a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -106,7 +106,7 @@ public async Task PatchAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a term object. + /// Delete a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -156,7 +156,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a term object. + /// Update the properties of a term object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -207,7 +207,7 @@ public TermItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// public class TermItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/TermsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/TermsRequestBuilder.cs index 994af757c2b..94e8fef65d1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/TermsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/TermsRequestBuilder.cs @@ -42,7 +42,7 @@ public TermsRequestBuilder(Dictionary pathParameters, IRequestAd public TermsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public TermsRequestBuilder WithUrl(string rawUrl) { return new TermsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// public class TermsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/SetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/SetsRequestBuilder.cs index b0798062dc4..96a23465306 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/SetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/SetsRequestBuilder.cs @@ -42,7 +42,7 @@ public SetsRequestBuilder(Dictionary pathParameters, IRequestAda public SetsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of a set object. + /// Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, SetCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new set object. + /// Create a new set object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.TermStore.Set.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of a set object. + /// Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new set object. + /// Create a new set object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public SetsRequestBuilder WithUrl(string rawUrl) { return new SetsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of a set object. + /// Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. /// public class SetsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Remove/RemovePostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Remove/RemovePostResponse.cs new file mode 100644 index 00000000000..7e449743898 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Remove/RemovePostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Sites.Remove { + public class RemovePostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new RemovePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new RemovePostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Site.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Remove/RemoveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Remove/RemoveRequestBuilder.cs index a4806a6cab3..cb44ee6e49e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Remove/RemoveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Remove/RemoveRequestBuilder.cs @@ -35,6 +35,29 @@ public RemoveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsRemovePostResponseAsync(RemovePostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsRemovePostResponseAsync(RemovePostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, RemovePostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Unfollow a user's site or multiple sites. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsRemovePostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(RemovePostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Remove/RemoveResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Remove/RemoveResponse.cs index e85a35ca035..cf71bac4e75 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Remove/RemoveResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Remove/RemoveResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Sites.Remove { - public class RemoveResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use removePostResponse instead.")] + public class RemoveResponse : RemovePostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RemoveResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Site.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/SubscribeByMail/SubscribeByMailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/SubscribeByMail/SubscribeByMailRequestBuilder.cs index 5887cdfea58..c6e8f4a3abc 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/SubscribeByMail/SubscribeByMailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/SubscribeByMail/SubscribeByMailRequestBuilder.cs @@ -28,7 +28,7 @@ public SubscribeByMailRequestBuilder(Dictionary pathParameters, public SubscribeByMailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/subscribeByMail", rawUrl) { } /// - /// Calling this method will enable the current user to receive email notifications for this group, about new posts, events, and files in that group. Supported for Microsoft 365 groups only. + /// Calling this method will enable the current user to receive email notifications for this group, about new posts, events, and files in that group. Supported for Microsoft 365 groups only. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Calling this method will enable the current user to receive email notifications for this group, about new posts, events, and files in that group. Supported for Microsoft 365 groups only. + /// Calling this method will enable the current user to receive email notifications for this group, about new posts, events, and files in that group. Supported for Microsoft 365 groups only. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/AllChannels/AllChannelsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/AllChannels/AllChannelsRequestBuilder.cs index 0e69f6c718f..70e62303f44 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/AllChannels/AllChannelsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/AllChannels/AllChannelsRequestBuilder.cs @@ -42,7 +42,7 @@ public AllChannelsRequestBuilder(Dictionary pathParameters, IReq public AllChannelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/allChannels{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of channels either in this team or shared with this team (incoming channels). + /// Get the list of channels either in this team or shared with this team (incoming channels). This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ChannelCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of channels either in this team or shared with this team (incoming channels). + /// Get the list of channels either in this team or shared with this team (incoming channels). This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public AllChannelsRequestBuilder WithUrl(string rawUrl) { return new AllChannelsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of channels either in this team or shared with this team (incoming channels). + /// Get the list of channels either in this team or shared with this team (incoming channels). This API is supported in the following national cloud deployments. /// public class AllChannelsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Archive/ArchiveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Archive/ArchiveRequestBuilder.cs index e1d60b760f7..ccb1046cb27 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Archive/ArchiveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Archive/ArchiveRequestBuilder.cs @@ -28,7 +28,7 @@ public ArchiveRequestBuilder(Dictionary pathParameters, IRequest public ArchiveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/archive", rawUrl) { } /// - /// Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. + /// Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ArchivePostRequestBody body, Action - /// Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. + /// Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/ChannelsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/ChannelsRequestBuilder.cs index f482efbcb43..671f61fd09a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/ChannelsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/ChannelsRequestBuilder.cs @@ -47,7 +47,7 @@ public ChannelsRequestBuilder(Dictionary pathParameters, IReques public ChannelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of channels in this team. + /// Retrieve the list of channels in this team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ChannelCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This is the name that appears to the user in Microsoft Teams. If you're creating a private channel, you can add a maximum of 200 members. + /// Create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This is the name that appears to the user in Microsoft Teams. If you're creating a private channel, you can add a maximum of 200 members. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Channel body, Action(requestInfo, Channel.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of channels in this team. + /// Retrieve the list of channels in this team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This is the name that appears to the user in Microsoft Teams. If you're creating a private channel, you can add a maximum of 200 members. + /// Create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This is the name that appears to the user in Microsoft Teams. If you're creating a private channel, you can add a maximum of 200 members. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public ChannelsRequestBuilder WithUrl(string rawUrl) { return new ChannelsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of channels in this team. + /// Retrieve the list of channels in this team. This API is supported in the following national cloud deployments. /// public class ChannelsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesGetResponse.cs new file mode 100644 index 00000000000..d1874f84aed --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Team.Channels.GetAllMessages { + public class GetAllMessagesGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAllMessagesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAllMessagesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs index 0cb718f89bf..9f5871f966f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs @@ -33,6 +33,26 @@ public GetAllMessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetAllMessagesGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetAllMessagesGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAllMessagesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getAllMessages + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetAllMessagesGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesResponse.cs index 46e0e00468e..ff715476236 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Team.Channels.GetAllMessages { - public class GetAllMessagesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAllMessagesGetResponse instead.")] + public class GetAllMessagesResponse : GetAllMessagesGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAllMessagesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/ChannelItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/ChannelItemRequestBuilder.cs index 855f99b1ba9..2f16c4b7258 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/ChannelItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/ChannelItemRequestBuilder.cs @@ -74,7 +74,7 @@ public ChannelItemRequestBuilder(Dictionary pathParameters, IReq public ChannelItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete the channel. + /// Delete the channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -94,7 +94,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information. + /// Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public async Task GetAsync(Action(requestInfo, Channel.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of the specified channel. + /// Update the properties of the specified channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -136,7 +136,7 @@ public async Task PatchAsync(Channel body, Action(requestInfo, Channel.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete the channel. + /// Delete the channel. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -160,7 +160,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information. + /// Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -186,7 +186,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of the specified channel. + /// Update the properties of the specified channel. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -237,7 +237,7 @@ public ChannelItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information. + /// Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information. This API is supported in the following national cloud deployments. /// public class ChannelItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs index 17b48c6bfef..01850c735cf 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs @@ -28,7 +28,7 @@ public CompleteMigrationRequestBuilder(Dictionary pathParameters public CompleteMigrationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/completeMigration", rawUrl) { } /// - /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs new file mode 100644 index 00000000000..9cd18f20907 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Team.Channels.Item.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName { + public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public bool? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse and sets the default values. + /// + public DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs index 21994f56c23..ba7a9adf4a4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs @@ -33,6 +33,26 @@ public DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrinci /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function doesUserHaveAccess + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs index ca18205b5fb..1af12eb761a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Team.Channels.Item.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName { - public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public bool? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse and sets the default values. - /// - public DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse instead.")] + public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse : DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs index 4de31ce8f6b..7c9b6de6e39 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs @@ -34,7 +34,7 @@ public FilesFolderRequestBuilder(Dictionary pathParameters, IReq public FilesFolderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/filesFolder{?%24select,%24expand}", rawUrl) { } /// - /// Get the metadata for the location where the files of a channel are stored. + /// Get the metadata for the location where the files of a channel are stored. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public FilesFolderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the metadata for the location where the files of a channel are stored. + /// Get the metadata for the location where the files of a channel are stored. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,7 +87,7 @@ public FilesFolderRequestBuilder WithUrl(string rawUrl) { return new FilesFolderRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the metadata for the location where the files of a channel are stored. + /// Get the metadata for the location where the files of a channel are stored. This API is supported in the following national cloud deployments. /// public class FilesFolderRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Add/AddPostResponse.cs new file mode 100644 index 00000000000..b5ed38d9f11 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Add/AddPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Team.Channels.Item.Members.Add { + public class AddPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AddPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AddPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Add/AddRequestBuilder.cs index ca84a7e832b..b90759d39b3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Add/AddRequestBuilder.cs @@ -28,13 +28,36 @@ public AddRequestBuilder(Dictionary pathParameters, IRequestAdap public AddRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/members/add", rawUrl) { } /// - /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AddPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsAddPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(AddPostRequestBody body, Action(requestInfo, AddResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Add/AddResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Add/AddResponse.cs index 4c5d9521ef4..4bb42482d13 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Add/AddResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Add/AddResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Team.Channels.Item.Members.Add { - public class AddResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use addPostResponse instead.")] + public class AddResponse : AddPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index 538948daf9e..7b7d1330470 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -29,8 +29,8 @@ public ConversationMemberItemRequestBuilder(Dictionary pathParam public ConversationMemberItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/members/{conversationMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. - /// Find more info here + /// Delete a conversationMember from a channel. This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get a conversationMember from a channel. + /// Get a conversationMember from a channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a team or channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(ConversationMember body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Delete a conversationMember from a channel. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a conversationMember from a channel. + /// Get a conversationMember from a channel. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a team or channel. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public ConversationMemberItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a conversationMember from a channel. + /// Get a conversationMember from a channel. This API is supported in the following national cloud deployments. /// public class ConversationMemberItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/MembersRequestBuilder.cs index 34b0aca95d5..afda30a8465 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/MembersRequestBuilder.cs @@ -47,7 +47,7 @@ public MembersRequestBuilder(Dictionary pathParameters, IRequest public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/members{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a conversationMember to a channel. + /// Add a conversationMember to a channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(ConversationMember body, Action< return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a conversationMember to a channel. + /// Add a conversationMember to a channel. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public MembersRequestBuilder WithUrl(string rawUrl) { return new MembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. This API is supported in the following national cloud deployments. /// public class MembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..53211ebd933 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Team.Channels.Item.Messages.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs index 72a8b6a9a22..b406e3c2380 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaResponse.cs index bccc9be228c..cc7ccc30103 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Team.Channels.Item.Messages.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs index 9d74197d8e0..3c693e1f91c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs @@ -78,7 +78,7 @@ public async Task DeleteAsync(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -98,7 +98,7 @@ public async Task GetAsync(Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. + /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -144,7 +144,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,7 +170,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. + /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -221,7 +221,7 @@ public ChatMessageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// public class ChatMessageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs index 1aefa67ac90..1d85221b7a5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -42,7 +42,7 @@ public HostedContentsRequestBuilder(Dictionary pathParameters, I public HostedContentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ChatMessageHostedContent b return await RequestAdapter.SendAsync(requestInfo, ChatMessageHostedContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public HostedContentsRequestBuilder WithUrl(string rawUrl) { return new HostedContentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// public class HostedContentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 12e7e2561da..3abeb047944 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public ChatMessageHostedContentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..9f70f05965c --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs index edf4a1c2b57..a4c191730a8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs index 48e3ea24dbc..a882b3af7bf 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs index 60be6bf1428..9341b77a07e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs @@ -73,7 +73,7 @@ public async Task DeleteAsync(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -138,7 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -215,7 +215,7 @@ public ChatMessageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// public class ChatMessageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs index 257e296c8bc..0f8386dae5a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -42,7 +42,7 @@ public HostedContentsRequestBuilder(Dictionary pathParameters, I public HostedContentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ChatMessageHostedContent b return await RequestAdapter.SendAsync(requestInfo, ChatMessageHostedContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public HostedContentsRequestBuilder WithUrl(string rawUrl) { return new HostedContentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// public class HostedContentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index fbe2fe613c1..1c8d1a910ab 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public ChatMessageHostedContentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs index 32b7c278c8b..82ec93cf968 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public SoftDeleteRequestBuilder(Dictionary pathParameters, IRequ public SoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/softDelete", rawUrl) { } /// - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index a686eaef741..c1dd152c2e9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public UndoSoftDeleteRequestBuilder(Dictionary pathParameters, I public UndoSoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/undoSoftDelete", rawUrl) { } /// - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs index 5b896d415dd..63bc0a3b70c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -47,7 +47,7 @@ public RepliesRequestBuilder(Dictionary pathParameters, IRequest public RepliesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public RepliesRequestBuilder WithUrl(string rawUrl) { return new RepliesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// public class RepliesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs index 445a037f5f7..b8dfbf180cb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public SoftDeleteRequestBuilder(Dictionary pathParameters, IRequ public SoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/softDelete", rawUrl) { } /// - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index 682772206e4..ed689ce7a4a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public UndoSoftDeleteRequestBuilder(Dictionary pathParameters, I public UndoSoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/undoSoftDelete", rawUrl) { } /// - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.cs index 8bd6451909c..3999e4171c8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.cs @@ -47,7 +47,7 @@ public MessagesRequestBuilder(Dictionary pathParameters, IReques public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified channel. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public MessagesRequestBuilder WithUrl(string rawUrl) { return new MessagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// public class MessagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs index 26c433742c9..cd53b4b8413 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs @@ -29,7 +29,7 @@ public ProvisionEmailRequestBuilder(Dictionary pathParameters, I public ProvisionEmailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/provisionEmail", rawUrl) { } /// - /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. + /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, ProvisionChannelEmailResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. + /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs index ad39dcaed33..d05833ee654 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs @@ -28,7 +28,7 @@ public RemoveEmailRequestBuilder(Dictionary pathParameters, IReq public RemoveEmailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/removeEmail", rawUrl) { } /// - /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. + /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. + /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs index 4ee5d710330..93f8896eb19 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs @@ -42,7 +42,7 @@ public AllowedMembersRequestBuilder(Dictionary pathParameters, I public AllowedMembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public AllowedMembersRequestBuilder WithUrl(string rawUrl) { return new AllowedMembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant This API is supported in the following national cloud deployments. /// public class AllowedMembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs index 0534d3c6b7b..db133f199e8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs @@ -39,7 +39,7 @@ public SharedWithChannelTeamInfoItemRequestBuilder(Dictionary pa public SharedWithChannelTeamInfoItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. + /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -59,7 +59,7 @@ public async Task DeleteAsync(Action - /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -100,7 +100,7 @@ public async Task PatchAsync(SharedWithChannelTeamInf return await RequestAdapter.SendAsync(requestInfo, SharedWithChannelTeamInfo.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. + /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -124,7 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -201,7 +201,7 @@ public SharedWithChannelTeamInfoItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// public class SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs index 721599de3e4..fd510c8d223 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs @@ -42,7 +42,7 @@ public SharedWithTeamsRequestBuilder(Dictionary pathParameters, public SharedWithTeamsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/sharedWithTeams{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(SharedWithChannelTeamInfo return await RequestAdapter.SendAsync(requestInfo, SharedWithChannelTeamInfo.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SharedWithTeamsRequestBuilder WithUrl(string rawUrl) { return new SharedWithTeamsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// public class SharedWithTeamsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs index 5827dc5cd9c..6654e06bb1a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs @@ -29,7 +29,7 @@ public TeamsAppRequestBuilder(Dictionary pathParameters, IReques public TeamsAppRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/tabs/{teamsTab%2Did}/teamsApp{?%24select,%24expand}", rawUrl) { } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -48,7 +48,7 @@ public TeamsAppRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.TeamsApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +81,7 @@ public TeamsAppRequestBuilder WithUrl(string rawUrl) { return new TeamsAppRequestBuilder(rawUrl, RequestAdapter); } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// public class TeamsAppRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs index 969a7e361c6..e90895f3150 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs @@ -34,7 +34,7 @@ public TeamsTabItemRequestBuilder(Dictionary pathParameters, IRe public TeamsTabItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/tabs/{teamsTab%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Removes (unpins) a tab from the specified channel within a team. + /// Removes (unpins) a tab from the specified channel within a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of the specified tab in a channel within a team. + /// Retrieve the properties and relationships of the specified tab in a channel within a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of the specified tab.This can be used to configure the content of the tab. + /// Update the properties of the specified tab.This can be used to configure the content of the tab. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(TeamsTab body, Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Removes (unpins) a tab from the specified channel within a team. + /// Removes (unpins) a tab from the specified channel within a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of the specified tab in a channel within a team. + /// Retrieve the properties and relationships of the specified tab in a channel within a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of the specified tab.This can be used to configure the content of the tab. + /// Update the properties of the specified tab.This can be used to configure the content of the tab. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public TeamsTabItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of the specified tab in a channel within a team. + /// Retrieve the properties and relationships of the specified tab in a channel within a team. This API is supported in the following national cloud deployments. /// public class TeamsTabItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Tabs/TabsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Tabs/TabsRequestBuilder.cs index 556bfc9eef9..5aba088a930 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Tabs/TabsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Tabs/TabsRequestBuilder.cs @@ -42,7 +42,7 @@ public TabsRequestBuilder(Dictionary pathParameters, IRequestAda public TabsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/tabs{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of tabs in the specified channel within a team. + /// Retrieve the list of tabs in the specified channel within a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TeamsTabCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TeamsTab body, Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of tabs in the specified channel within a team. + /// Retrieve the list of tabs in the specified channel within a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public TabsRequestBuilder WithUrl(string rawUrl) { return new TabsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of tabs in the specified channel within a team. + /// Retrieve the list of tabs in the specified channel within a team. This API is supported in the following national cloud deployments. /// public class TabsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Clone/CloneRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Clone/CloneRequestBuilder.cs index c1a8a359630..315b43d0145 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Clone/CloneRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Clone/CloneRequestBuilder.cs @@ -28,7 +28,7 @@ public CloneRequestBuilder(Dictionary pathParameters, IRequestAd public CloneRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/clone", rawUrl) { } /// - /// Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they aren't configured. The tabs are displayed on the tab bar in Microsoft Teams, and the first time a user opens them, they must go through the configuration screen. If the user who opens the tab doesn't have permission to configure apps, they'll see a message that says that the tab isn't configured. Cloning is a long-running operation. After the POST clone returns, you need to GET the operation returned by the Location: header to see if it's running, succeeded, or failed. You should continue to GET until the status isn't running. The recommended delay between GETs is 5 seconds. + /// Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they aren't configured. The tabs are displayed on the tab bar in Microsoft Teams, and the first time a user opens them, they must go through the configuration screen. If the user who opens the tab doesn't have permission to configure apps, they'll see a message that says that the tab isn't configured. Cloning is a long-running operation. After the POST clone returns, you need to GET the operation returned by the Location: header to see if it's running, succeeded, or failed. You should continue to GET until the status isn't running. The recommended delay between GETs is 5 seconds. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ClonePostRequestBody body, Action - /// Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they aren't configured. The tabs are displayed on the tab bar in Microsoft Teams, and the first time a user opens them, they must go through the configuration screen. If the user who opens the tab doesn't have permission to configure apps, they'll see a message that says that the tab isn't configured. Cloning is a long-running operation. After the POST clone returns, you need to GET the operation returned by the Location: header to see if it's running, succeeded, or failed. You should continue to GET until the status isn't running. The recommended delay between GETs is 5 seconds. + /// Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they aren't configured. The tabs are displayed on the tab bar in Microsoft Teams, and the first time a user opens them, they must go through the configuration screen. If the user who opens the tab doesn't have permission to configure apps, they'll see a message that says that the tab isn't configured. Cloning is a long-running operation. After the POST clone returns, you need to GET the operation returned by the Location: header to see if it's running, succeeded, or failed. You should continue to GET until the status isn't running. The recommended delay between GETs is 5 seconds. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/CompleteMigration/CompleteMigrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/CompleteMigration/CompleteMigrationRequestBuilder.cs index 117f080b578..944f4e32985 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/CompleteMigration/CompleteMigrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/CompleteMigration/CompleteMigrationRequestBuilder.cs @@ -28,7 +28,7 @@ public CompleteMigrationRequestBuilder(Dictionary pathParameters public CompleteMigrationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/completeMigration", rawUrl) { } /// - /// Complete the message migration process by removing migration mode from a team. Migration mode is a special state where certain operations are barred, like message POST and membership operations during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + /// Complete the message migration process by removing migration mode from a team. Migration mode is a special state where certain operations are barred, like message POST and membership operations during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Complete the message migration process by removing migration mode from a team. Migration mode is a special state where certain operations are barred, like message POST and membership operations during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + /// Complete the message migration process by removing migration mode from a team. Migration mode is a special state where certain operations are barred, like message POST and membership operations during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Group/GroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Group/GroupRequestBuilder.cs index 6dc2d670e71..b36dfa4222d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Group/GroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Group/GroupRequestBuilder.cs @@ -1,4 +1,5 @@ // +using Microsoft.Graph.Groups.Item.Team.Group.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -14,6 +15,10 @@ namespace Microsoft.Graph.Groups.Item.Team.Group { /// Provides operations to manage the group property of the microsoft.graph.team entity. /// public class GroupRequestBuilder : BaseRequestBuilder { + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new GroupRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..b69a3e75f69 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Groups.Item.Team.Group.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/group/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/group/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..a25c6ece0ff --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Groups.Item.Team.Group.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Groups.Item.Team.Group.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \groups\{group-id}\team\group\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/group/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/group/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/IncomingChannels/IncomingChannelsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/IncomingChannels/IncomingChannelsRequestBuilder.cs index a5b46846055..54bb975b87c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/IncomingChannels/IncomingChannelsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/IncomingChannels/IncomingChannelsRequestBuilder.cs @@ -42,7 +42,7 @@ public IncomingChannelsRequestBuilder(Dictionary pathParameters, public IncomingChannelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/incomingChannels{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of incoming channels (channels shared with a team). + /// Get the list of incoming channels (channels shared with a team). This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ChannelCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of incoming channels (channels shared with a team). + /// Get the list of incoming channels (channels shared with a team). This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public IncomingChannelsRequestBuilder WithUrl(string rawUrl) { return new IncomingChannelsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of incoming channels (channels shared with a team). + /// Get the list of incoming channels (channels shared with a team). This API is supported in the following national cloud deployments. /// public class IncomingChannelsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/InstalledAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/InstalledAppsRequestBuilder.cs index 9438b474885..b4e8fcf4b18 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/InstalledAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/InstalledAppsRequestBuilder.cs @@ -42,7 +42,7 @@ public InstalledAppsRequestBuilder(Dictionary pathParameters, IR public InstalledAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/installedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of apps installed in the specified team. + /// Retrieve a list of apps installed in the specified team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TeamsAppInstallationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Install an app to the specified team. + /// Install an app to the specified team. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TeamsAppInstallation body, Act return await RequestAdapter.SendAsync(requestInfo, TeamsAppInstallation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of apps installed in the specified team. + /// Retrieve a list of apps installed in the specified team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Install an app to the specified team. + /// Install an app to the specified team. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public InstalledAppsRequestBuilder WithUrl(string rawUrl) { return new InstalledAppsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of apps installed in the specified team. + /// Retrieve a list of apps installed in the specified team. This API is supported in the following national cloud deployments. /// public class InstalledAppsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs index 9b93967c909..589f25de9e3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs @@ -44,7 +44,7 @@ public TeamsAppInstallationItemRequestBuilder(Dictionary pathPar public TeamsAppInstallationItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/installedApps/{teamsAppInstallation%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Uninstalls an app from the specified team. + /// Uninstalls an app from the specified team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -64,7 +64,7 @@ public async Task DeleteAsync(Action - /// Retrieve the app installed in the specified team. + /// Retrieve the app installed in the specified team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -105,7 +105,7 @@ public async Task PatchAsync(TeamsAppInstallation body, Ac return await RequestAdapter.SendAsync(requestInfo, TeamsAppInstallation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Uninstalls an app from the specified team. + /// Uninstalls an app from the specified team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,7 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the app installed in the specified team. + /// Retrieve the app installed in the specified team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -206,7 +206,7 @@ public TeamsAppInstallationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the app installed in the specified team. + /// Retrieve the app installed in the specified team. This API is supported in the following national cloud deployments. /// public class TeamsAppInstallationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs index d420efa720f..da9be4f00b0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs @@ -28,7 +28,7 @@ public UpgradeRequestBuilder(Dictionary pathParameters, IRequest public UpgradeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/installedApps/{teamsAppInstallation%2Did}/upgrade", rawUrl) { } /// - /// Upgrade an app installation within a chat. + /// Upgrade an app installation within a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(UpgradePostRequestBody body, Action - /// Upgrade an app installation within a chat. + /// Upgrade an app installation within a chat. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Add/AddPostResponse.cs new file mode 100644 index 00000000000..da2f8b14c1b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Add/AddPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Team.Members.Add { + public class AddPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AddPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AddPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Add/AddRequestBuilder.cs index a58d09515d6..65c0dad1412 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Add/AddRequestBuilder.cs @@ -28,13 +28,36 @@ public AddRequestBuilder(Dictionary pathParameters, IRequestAdap public AddRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/members/add", rawUrl) { } /// - /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AddPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsAddPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(AddPostRequestBody body, Action(requestInfo, AddResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Add/AddResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Add/AddResponse.cs index da71a432899..aaef081a15f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Add/AddResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Add/AddResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Team.Members.Add { - public class AddResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use addPostResponse instead.")] + public class AddResponse : AddPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Item/ConversationMemberItemRequestBuilder.cs index 690c113bcb6..83bd1a7787f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -29,7 +29,7 @@ public ConversationMemberItemRequestBuilder(Dictionary pathParam public ConversationMemberItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/members/{conversationMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Remove a conversationMember from a team. + /// Remove a conversationMember from a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get a conversationMember from a team. + /// Get a conversationMember from a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team. + /// Update the role of a conversationMember in a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(ConversationMember body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Remove a conversationMember from a team. + /// Remove a conversationMember from a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a conversationMember from a team. + /// Get a conversationMember from a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team. + /// Update the role of a conversationMember in a team. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public ConversationMemberItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a conversationMember from a team. + /// Get a conversationMember from a team. This API is supported in the following national cloud deployments. /// public class ConversationMemberItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/MembersRequestBuilder.cs index 4e0742e563c..5c4a91cdf6c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/MembersRequestBuilder.cs @@ -47,7 +47,7 @@ public MembersRequestBuilder(Dictionary pathParameters, IRequest public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/members{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the conversationMember collection of a team. + /// Get the conversationMember collection of a team. The membership IDs returned by the server must be treated as opaque strings. The client should not try to parse or make assumptions about these resource IDs. In the future, membership results may include users from various tenants, as indicated in the response. Clients should avoid assuming that all members exclusively belong to the current tenant. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a new conversationMember to a team. + /// Add a new conversationMember to a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(ConversationMember body, Action< return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the conversationMember collection of a team. + /// Get the conversationMember collection of a team. The membership IDs returned by the server must be treated as opaque strings. The client should not try to parse or make assumptions about these resource IDs. In the future, membership results may include users from various tenants, as indicated in the response. Clients should avoid assuming that all members exclusively belong to the current tenant. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a new conversationMember to a team. + /// Add a new conversationMember to a team. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public MembersRequestBuilder WithUrl(string rawUrl) { return new MembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the conversationMember collection of a team. + /// Get the conversationMember collection of a team. The membership IDs returned by the server must be treated as opaque strings. The client should not try to parse or make assumptions about these resource IDs. In the future, membership results may include users from various tenants, as indicated in the response. Clients should avoid assuming that all members exclusively belong to the current tenant. This API is supported in the following national cloud deployments. /// public class MembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..575cec37198 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Team.PermissionGrants.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Delta/DeltaRequestBuilder.cs index 11659239448..62eeda42c42 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Delta/DeltaResponse.cs index 73f9868996c..df30285a739 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Team.PermissionGrants.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs new file mode 100644 index 00000000000..10c476dd981 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Team.PermissionGrants.GetAvailableExtensionProperties { + public class GetAvailableExtensionPropertiesPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAvailableExtensionPropertiesPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index be577d1459d..9998824dea4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -28,13 +28,36 @@ public GetAvailableExtensionPropertiesRequestBuilder(Dictionary public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/permissionGrants/getAvailableExtensionProperties", rawUrl) { } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetAvailableExtensionPropertiesPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetAvailabl return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index 6a1c4095bfa..3435290c001 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Team.PermissionGrants.GetAvailableExtensionProperties { - public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAvailableExtensionPropertiesPostResponse instead.")] + public class GetAvailableExtensionPropertiesResponse : GetAvailableExtensionPropertiesPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/GetByIds/GetByIdsPostResponse.cs new file mode 100644 index 00000000000..85c47174fd3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/GetByIds/GetByIdsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Team.PermissionGrants.GetByIds { + public class GetByIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetByIdsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs index b75cbb318b9..917a617f618 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetByIdsRequestBuilder(Dictionary pathParameters, IReques public GetByIdsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/permissionGrants/getByIds", rawUrl) { } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetByIdsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetByIdsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetByIdsPostRequestBody body, Acti return await RequestAdapter.SendAsync(requestInfo, GetByIdsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/GetByIds/GetByIdsResponse.cs index b63ae0cc1ed..c1d69d02004 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/GetByIds/GetByIdsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Team.PermissionGrants.GetByIds { - public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getByIdsPostResponse instead.")] + public class GetByIdsResponse : GetByIdsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..1c5ba051b49 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Team.PermissionGrants.Item.CheckMemberGroups { + public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index 2de2c75e80f..cae226fa879 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/permissionGrants/{resourceSpecificPermissionGrant%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index fa0f1b56d67..6f3c0120bfe 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Team.PermissionGrants.Item.CheckMemberGroups { - public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberGroupsPostResponse instead.")] + public class CheckMemberGroupsResponse : CheckMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..b942bbe1db3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Team.PermissionGrants.Item.CheckMemberObjects { + public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index 41174f4dbc1..ee4f93bca1d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -34,6 +34,28 @@ public CheckMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAd /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action checkMemberObjects + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index ac49e13c4a8..a3426149ade 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Team.PermissionGrants.Item.CheckMemberObjects { - public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberObjectsPostResponse instead.")] + public class CheckMemberObjectsResponse : CheckMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..4a4c9e32682 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Team.PermissionGrants.Item.GetMemberGroups { + public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index 7d60a867061..bc0ae28cef4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberGroupsRequestBuilder(Dictionary pathParameters, public GetMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/permissionGrants/{resourceSpecificPermissionGrant%2Did}/getMemberGroups", rawUrl) { } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberGroupsPostRequestB return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs index fd7e629b8d7..0e0284b086e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Team.PermissionGrants.Item.GetMemberGroups { - public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberGroupsPostResponse instead.")] + public class GetMemberGroupsResponse : GetMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..d242758b87a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Team.PermissionGrants.Item.GetMemberObjects { + public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index c6943b61c03..24460bc2be6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberObjectsRequestBuilder(Dictionary pathParameters, public GetMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/permissionGrants/{resourceSpecificPermissionGrant%2Did}/getMemberObjects", rawUrl) { } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberObjectsPostReques return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs index 8558708965a..b0c40fe7d9b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Team.PermissionGrants.Item.GetMemberObjects { - public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberObjectsPostResponse instead.")] + public class GetMemberObjectsResponse : GetMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs index 6461cddef6f..dac64e07fbe 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs @@ -29,7 +29,7 @@ public RestoreRequestBuilder(Dictionary pathParameters, IRequest public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/permissionGrants/{resourceSpecificPermissionGrant%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/PermissionGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/PermissionGrantsRequestBuilder.cs index ca141456ce9..5d400ddd2d1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/PermissionGrantsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/PermissionGrantsRequestBuilder.cs @@ -62,7 +62,7 @@ public PermissionGrantsRequestBuilder(Dictionary pathParameters, public PermissionGrantsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/permissionGrants{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. + /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -103,7 +103,7 @@ public async Task PostAsync(ResourceSpecificPer return await RequestAdapter.SendAsync(requestInfo, ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. + /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,7 +164,7 @@ public PermissionGrantsRequestBuilder WithUrl(string rawUrl) { return new PermissionGrantsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. + /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is supported in the following national cloud deployments. /// public class PermissionGrantsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs index 75ab28677b5..262bae123e6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -28,7 +28,7 @@ public ValidatePropertiesRequestBuilder(Dictionary pathParameter public ValidatePropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/permissionGrants/validateProperties", rawUrl) { } /// - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ValidatePropertiesPostRequestBody body, Action - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Photo/PhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Photo/PhotoRequestBuilder.cs index 72413dc82a0..bae98cb7137 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Photo/PhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Photo/PhotoRequestBuilder.cs @@ -34,7 +34,7 @@ public PhotoRequestBuilder(Dictionary pathParameters, IRequestAd public PhotoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/photo{?%24select,%24expand}", rawUrl) { } /// - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -75,7 +75,7 @@ public async Task PatchAsync(ProfilePhoto body, Action(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -136,7 +136,7 @@ public PhotoRequestBuilder WithUrl(string rawUrl) { return new PhotoRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is supported in the following national cloud deployments. /// public class PhotoRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.cs index d95dbdf3819..fa26b1992ea 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.cs @@ -28,7 +28,7 @@ public CompleteMigrationRequestBuilder(Dictionary pathParameters public CompleteMigrationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/completeMigration", rawUrl) { } /// - /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs new file mode 100644 index 00000000000..c3009488ca9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Team.PrimaryChannel.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName { + public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public bool? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse and sets the default values. + /// + public DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs index a1156c57b2f..a7ae3ac7be1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs @@ -33,6 +33,26 @@ public DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrinci /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function doesUserHaveAccess + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs index ffc6c2cbff3..ce90202689f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Team.PrimaryChannel.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName { - public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public bool? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse and sets the default values. - /// - public DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse instead.")] + public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse : DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs index d43ce77cd6e..45a877dc94d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs @@ -34,7 +34,7 @@ public FilesFolderRequestBuilder(Dictionary pathParameters, IReq public FilesFolderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/filesFolder{?%24select,%24expand}", rawUrl) { } /// - /// Get the metadata for the location where the files of a channel are stored. + /// Get the metadata for the location where the files of a channel are stored. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public FilesFolderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the metadata for the location where the files of a channel are stored. + /// Get the metadata for the location where the files of a channel are stored. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,7 +87,7 @@ public FilesFolderRequestBuilder WithUrl(string rawUrl) { return new FilesFolderRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the metadata for the location where the files of a channel are stored. + /// Get the metadata for the location where the files of a channel are stored. This API is supported in the following national cloud deployments. /// public class FilesFolderRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddPostResponse.cs new file mode 100644 index 00000000000..d73376b3a9e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Team.PrimaryChannel.Members.Add { + public class AddPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AddPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AddPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddRequestBuilder.cs index 78e2b37cddd..ed6d8c8fc8b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddRequestBuilder.cs @@ -28,13 +28,36 @@ public AddRequestBuilder(Dictionary pathParameters, IRequestAdap public AddRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/members/add", rawUrl) { } /// - /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AddPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsAddPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(AddPostRequestBody body, Action(requestInfo, AddResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddResponse.cs index 26b789c85fb..650b68bd5a5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Team.PrimaryChannel.Members.Add { - public class AddResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use addPostResponse instead.")] + public class AddResponse : AddPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs index 8fed5d62528..0b3a79c9fa2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -29,8 +29,8 @@ public ConversationMemberItemRequestBuilder(Dictionary pathParam public ConversationMemberItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/members/{conversationMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. - /// Find more info here + /// Delete a conversationMember from a channel. This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get a conversationMember from a channel. + /// Get a conversationMember from a channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a team or channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(ConversationMember body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Delete a conversationMember from a channel. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a conversationMember from a channel. + /// Get a conversationMember from a channel. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a team or channel. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public ConversationMemberItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a conversationMember from a channel. + /// Get a conversationMember from a channel. This API is supported in the following national cloud deployments. /// public class ConversationMemberItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilder.cs index 9254e60accf..41977fd68fd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilder.cs @@ -47,7 +47,7 @@ public MembersRequestBuilder(Dictionary pathParameters, IRequest public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/members{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a conversationMember to a channel. + /// Add a conversationMember to a channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(ConversationMember body, Action< return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a conversationMember to a channel. + /// Add a conversationMember to a channel. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public MembersRequestBuilder WithUrl(string rawUrl) { return new MembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. This API is supported in the following national cloud deployments. /// public class MembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..e596e1ead36 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Team.PrimaryChannel.Messages.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.cs index fd11a36c16a..cc2f314e710 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaResponse.cs index 5823f1df1d1..bd947ce1538 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Team.PrimaryChannel.Messages.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs index 25d2dd7cd96..c32f0f11053 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs @@ -78,7 +78,7 @@ public async Task DeleteAsync(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -98,7 +98,7 @@ public async Task GetAsync(Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. + /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -144,7 +144,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,7 +170,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. + /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -221,7 +221,7 @@ public ChatMessageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// public class ChatMessageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs index c2d0ee24995..e70c96439d0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -42,7 +42,7 @@ public HostedContentsRequestBuilder(Dictionary pathParameters, I public HostedContentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/hostedContents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ChatMessageHostedContent b return await RequestAdapter.SendAsync(requestInfo, ChatMessageHostedContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public HostedContentsRequestBuilder WithUrl(string rawUrl) { return new HostedContentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// public class HostedContentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index a38b0800d30..a4f2010615e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public ChatMessageHostedContentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..cf1d17422c7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs index 7dce9d80b31..7ec22be3dec 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaResponse.cs index 563be73c96e..02267e28ce7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs index adff1110931..eaa9a7edd12 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs @@ -73,7 +73,7 @@ public async Task DeleteAsync(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -138,7 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -215,7 +215,7 @@ public ChatMessageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// public class ChatMessageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs index 1c0686ece61..a0b75c8c855 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -42,7 +42,7 @@ public HostedContentsRequestBuilder(Dictionary pathParameters, I public HostedContentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ChatMessageHostedContent b return await RequestAdapter.SendAsync(requestInfo, ChatMessageHostedContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public HostedContentsRequestBuilder WithUrl(string rawUrl) { return new HostedContentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// public class HostedContentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index cf1fd6f2191..5c3da5d41a4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public ChatMessageHostedContentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs index ea48898e357..213a45ef226 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public SoftDeleteRequestBuilder(Dictionary pathParameters, IRequ public SoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/softDelete", rawUrl) { } /// - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index bf14c5844c2..e13d88ec7e9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public UndoSoftDeleteRequestBuilder(Dictionary pathParameters, I public UndoSoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/undoSoftDelete", rawUrl) { } /// - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs index 70c4cf984ff..13587cefdb2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -47,7 +47,7 @@ public RepliesRequestBuilder(Dictionary pathParameters, IRequest public RepliesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public RepliesRequestBuilder WithUrl(string rawUrl) { return new RepliesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// public class RepliesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs index 69644a9ec95..1563df978ee 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public SoftDeleteRequestBuilder(Dictionary pathParameters, IRequ public SoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/softDelete", rawUrl) { } /// - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index ab4e7ecd6c9..3636a63abf3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public UndoSoftDeleteRequestBuilder(Dictionary pathParameters, I public UndoSoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/undoSoftDelete", rawUrl) { } /// - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.cs index aa38d96beb5..86da37bd288 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.cs @@ -47,7 +47,7 @@ public MessagesRequestBuilder(Dictionary pathParameters, IReques public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified channel. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public MessagesRequestBuilder WithUrl(string rawUrl) { return new MessagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// public class MessagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/PrimaryChannelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/PrimaryChannelRequestBuilder.cs index 2de3946cd96..df0cb99cdad 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/PrimaryChannelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/PrimaryChannelRequestBuilder.cs @@ -93,7 +93,7 @@ public async Task DeleteAsync(Action - /// Get the default channel, General, of a team. + /// Get the default channel, General, of a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -158,7 +158,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the default channel, General, of a team. + /// Get the default channel, General, of a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -235,7 +235,7 @@ public PrimaryChannelRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the default channel, General, of a team. + /// Get the default channel, General, of a team. This API is supported in the following national cloud deployments. /// public class PrimaryChannelRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.cs index ff2677352b2..3593a22b892 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.cs @@ -29,7 +29,7 @@ public ProvisionEmailRequestBuilder(Dictionary pathParameters, I public ProvisionEmailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/provisionEmail", rawUrl) { } /// - /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. + /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, ProvisionChannelEmailResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. + /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.cs index 2cba510c3c4..82c939ae0c7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.cs @@ -28,7 +28,7 @@ public RemoveEmailRequestBuilder(Dictionary pathParameters, IReq public RemoveEmailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/removeEmail", rawUrl) { } /// - /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. + /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. + /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs index e7209363f5f..9e5ca0f5ac9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs @@ -42,7 +42,7 @@ public AllowedMembersRequestBuilder(Dictionary pathParameters, I public AllowedMembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public AllowedMembersRequestBuilder WithUrl(string rawUrl) { return new AllowedMembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant This API is supported in the following national cloud deployments. /// public class AllowedMembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs index ce4d2097b97..57293c04f25 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs @@ -39,7 +39,7 @@ public SharedWithChannelTeamInfoItemRequestBuilder(Dictionary pa public SharedWithChannelTeamInfoItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. + /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -59,7 +59,7 @@ public async Task DeleteAsync(Action - /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -100,7 +100,7 @@ public async Task PatchAsync(SharedWithChannelTeamInf return await RequestAdapter.SendAsync(requestInfo, SharedWithChannelTeamInfo.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. + /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -124,7 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -201,7 +201,7 @@ public SharedWithChannelTeamInfoItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// public class SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs index fca98f0c0ff..3733663d157 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs @@ -42,7 +42,7 @@ public SharedWithTeamsRequestBuilder(Dictionary pathParameters, public SharedWithTeamsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/sharedWithTeams{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(SharedWithChannelTeamInfo return await RequestAdapter.SendAsync(requestInfo, SharedWithChannelTeamInfo.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SharedWithTeamsRequestBuilder WithUrl(string rawUrl) { return new SharedWithTeamsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// public class SharedWithTeamsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs index 84ea1f87757..279d8c5928f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs @@ -29,7 +29,7 @@ public TeamsAppRequestBuilder(Dictionary pathParameters, IReques public TeamsAppRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/tabs/{teamsTab%2Did}/teamsApp{?%24select,%24expand}", rawUrl) { } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -48,7 +48,7 @@ public TeamsAppRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.TeamsApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +81,7 @@ public TeamsAppRequestBuilder WithUrl(string rawUrl) { return new TeamsAppRequestBuilder(rawUrl, RequestAdapter); } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// public class TeamsAppRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs index f470729204f..a30767504c1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs @@ -34,7 +34,7 @@ public TeamsTabItemRequestBuilder(Dictionary pathParameters, IRe public TeamsTabItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/tabs/{teamsTab%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Removes (unpins) a tab from the specified channel within a team. + /// Removes (unpins) a tab from the specified channel within a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of the specified tab in a channel within a team. + /// Retrieve the properties and relationships of the specified tab in a channel within a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of the specified tab.This can be used to configure the content of the tab. + /// Update the properties of the specified tab.This can be used to configure the content of the tab. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(TeamsTab body, Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Removes (unpins) a tab from the specified channel within a team. + /// Removes (unpins) a tab from the specified channel within a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of the specified tab in a channel within a team. + /// Retrieve the properties and relationships of the specified tab in a channel within a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of the specified tab.This can be used to configure the content of the tab. + /// Update the properties of the specified tab.This can be used to configure the content of the tab. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public TeamsTabItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of the specified tab in a channel within a team. + /// Retrieve the properties and relationships of the specified tab in a channel within a team. This API is supported in the following national cloud deployments. /// public class TeamsTabItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Tabs/TabsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Tabs/TabsRequestBuilder.cs index 243ca663a32..4c4ffb8b9ec 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Tabs/TabsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Tabs/TabsRequestBuilder.cs @@ -42,7 +42,7 @@ public TabsRequestBuilder(Dictionary pathParameters, IRequestAda public TabsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/tabs{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of tabs in the specified channel within a team. + /// Retrieve the list of tabs in the specified channel within a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TeamsTabCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TeamsTab body, Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of tabs in the specified channel within a team. + /// Retrieve the list of tabs in the specified channel within a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public TabsRequestBuilder WithUrl(string rawUrl) { return new TabsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of tabs in the specified channel within a team. + /// Retrieve the list of tabs in the specified channel within a team. This API is supported in the following national cloud deployments. /// public class TabsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.cs index ce44571ab5c..ae6a474b2cd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of an offerShiftRequest object. + /// Retrieve the properties and relationships of an offerShiftRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of an offerShiftRequest object. + /// Retrieve the properties and relationships of an offerShiftRequest object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public OfferShiftRequestItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of an offerShiftRequest object. + /// Retrieve the properties and relationships of an offerShiftRequest object. This API is supported in the following national cloud deployments. /// public class OfferShiftRequestItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs index 149e428c5b2..310b0ff03e5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs @@ -42,7 +42,7 @@ public OfferShiftRequestsRequestBuilder(Dictionary pathParameter public OfferShiftRequestsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/schedule/offerShiftRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the properties and relationships of all offerShiftRequest objects in a team. + /// Retrieve the properties and relationships of all offerShiftRequest objects in a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OfferShiftRequestCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an instance of an offerShiftRequest. + /// Create an instance of an offerShiftRequest. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OfferShiftRequest body, Action(requestInfo, OfferShiftRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the properties and relationships of all offerShiftRequest objects in a team. + /// Retrieve the properties and relationships of all offerShiftRequest objects in a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an instance of an offerShiftRequest. + /// Create an instance of an offerShiftRequest. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public OfferShiftRequestsRequestBuilder WithUrl(string rawUrl) { return new OfferShiftRequestsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the properties and relationships of all offerShiftRequest objects in a team. + /// Retrieve the properties and relationships of all offerShiftRequest objects in a team. This API is supported in the following national cloud deployments. /// public class OfferShiftRequestsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs index 8848c0cdccc..6a55433f956 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of an openShiftChangeRequest object. + /// Retrieve the properties and relationships of an openShiftChangeRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of an openShiftChangeRequest object. + /// Retrieve the properties and relationships of an openShiftChangeRequest object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public OpenShiftChangeRequestItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of an openShiftChangeRequest object. + /// Retrieve the properties and relationships of an openShiftChangeRequest object. This API is supported in the following national cloud deployments. /// public class OpenShiftChangeRequestItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs index 5c341bdb5fc..9476c41a595 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs @@ -42,7 +42,7 @@ public OpenShiftChangeRequestsRequestBuilder(Dictionary pathPara public OpenShiftChangeRequestsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/schedule/openShiftChangeRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of openShiftChangeRequest objects in a team. + /// Retrieve a list of openShiftChangeRequest objects in a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OpenShiftChangeRequestCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create instance of an openShiftChangeRequest object. + /// Create instance of an openShiftChangeRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OpenShiftChangeRequest body, return await RequestAdapter.SendAsync(requestInfo, OpenShiftChangeRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of openShiftChangeRequest objects in a team. + /// Retrieve a list of openShiftChangeRequest objects in a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create instance of an openShiftChangeRequest object. + /// Create instance of an openShiftChangeRequest object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public OpenShiftChangeRequestsRequestBuilder WithUrl(string rawUrl) { return new OpenShiftChangeRequestsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of openShiftChangeRequest objects in a team. + /// Retrieve a list of openShiftChangeRequest objects in a team. This API is supported in the following national cloud deployments. /// public class OpenShiftChangeRequestsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs index e8bf6fb622c..ec63f8f03c8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs @@ -29,7 +29,7 @@ public OpenShiftItemRequestBuilder(Dictionary pathParameters, IR public OpenShiftItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/schedule/openShifts/{openShift%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an openShift object. + /// Delete an openShift object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of an openshift object. + /// Retrieve the properties and relationships of an openshift object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -91,7 +91,7 @@ public async Task PatchAsync(OpenShift body, Action(requestInfo, OpenShift.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an openShift object. + /// Delete an openShift object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of an openshift object. + /// Retrieve the properties and relationships of an openshift object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -192,7 +192,7 @@ public OpenShiftItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of an openshift object. + /// Retrieve the properties and relationships of an openshift object. This API is supported in the following national cloud deployments. /// public class OpenShiftItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs index 3159cc59828..fe2ea14a5b3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs @@ -42,7 +42,7 @@ public OpenShiftsRequestBuilder(Dictionary pathParameters, IRequ public OpenShiftsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/schedule/openShifts{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List openShift objects in a team. + /// List openShift objects in a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OpenShiftCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an instance of an openShift object. + /// Create an instance of an openShift object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OpenShift body, Action(requestInfo, OpenShift.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List openShift objects in a team. + /// List openShift objects in a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an instance of an openShift object. + /// Create an instance of an openShift object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public OpenShiftsRequestBuilder WithUrl(string rawUrl) { return new OpenShiftsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List openShift objects in a team. + /// List openShift objects in a team. This API is supported in the following national cloud deployments. /// public class OpenShiftsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/ScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/ScheduleRequestBuilder.cs index 304ccdf1596..6379a28c2c5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/ScheduleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/ScheduleRequestBuilder.cs @@ -98,7 +98,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule. + /// Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -163,7 +163,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule. + /// Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -240,7 +240,7 @@ public ScheduleRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule. + /// Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule. This API is supported in the following national cloud deployments. /// public class ScheduleRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.cs index 5d23e35de25..396ba02463c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.cs @@ -29,7 +29,7 @@ public SchedulingGroupItemRequestBuilder(Dictionary pathParamete public SchedulingGroupItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/schedule/schedulingGroups/{schedulingGroup%2Did}{?%24select}", rawUrl) { } /// - /// Mark a schedulingGroup as inactive by setting its isActive property.This method does not remove the schedulingGroup from the schedule. Existing shift instances assigned to the scheduling group remain part of the group. + /// Mark a schedulingGroup as inactive by setting its isActive property.This method does not remove the schedulingGroup from the schedule. Existing shift instances assigned to the scheduling group remain part of the group. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a schedulingGroup by ID. + /// Retrieve the properties and relationships of a schedulingGroup by ID. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -91,7 +91,7 @@ public async Task PatchAsync(SchedulingGroup body, Action(requestInfo, SchedulingGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Mark a schedulingGroup as inactive by setting its isActive property.This method does not remove the schedulingGroup from the schedule. Existing shift instances assigned to the scheduling group remain part of the group. + /// Mark a schedulingGroup as inactive by setting its isActive property.This method does not remove the schedulingGroup from the schedule. Existing shift instances assigned to the scheduling group remain part of the group. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a schedulingGroup by ID. + /// Retrieve the properties and relationships of a schedulingGroup by ID. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -192,7 +192,7 @@ public SchedulingGroupItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a schedulingGroup by ID. + /// Retrieve the properties and relationships of a schedulingGroup by ID. This API is supported in the following national cloud deployments. /// public class SchedulingGroupItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs index bcbee7cb386..4f05e38b941 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs @@ -42,7 +42,7 @@ public SchedulingGroupsRequestBuilder(Dictionary pathParameters, public SchedulingGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/schedule/schedulingGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get the list of schedulingGroups in this schedule. + /// Get the list of schedulingGroups in this schedule. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, SchedulingGroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new schedulingGroup. + /// Create a new schedulingGroup. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(SchedulingGroup body, Action(requestInfo, SchedulingGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of schedulingGroups in this schedule. + /// Get the list of schedulingGroups in this schedule. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new schedulingGroup. + /// Create a new schedulingGroup. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SchedulingGroupsRequestBuilder WithUrl(string rawUrl) { return new SchedulingGroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of schedulingGroups in this schedule. + /// Get the list of schedulingGroups in this schedule. This API is supported in the following national cloud deployments. /// public class SchedulingGroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/Share/ShareRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/Share/ShareRequestBuilder.cs index a38f57dad59..1a21e0e704e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/Share/ShareRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/Share/ShareRequestBuilder.cs @@ -28,7 +28,7 @@ public ShareRequestBuilder(Dictionary pathParameters, IRequestAd public ShareRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/schedule/share", rawUrl) { } /// - /// Share a schedule time range with schedule members.Make the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers.Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. + /// Share a schedule time range with schedule members.Make the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers.Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SharePostRequestBody body, Action - /// Share a schedule time range with schedule members.Make the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers.Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. + /// Share a schedule time range with schedule members.Make the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers.Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs index 7714e9f476e..4594907aadb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs @@ -29,7 +29,7 @@ public ShiftItemRequestBuilder(Dictionary pathParameters, IReque public ShiftItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/schedule/shifts/{shift%2Did}{?%24select}", rawUrl) { } /// - /// Delete a shift from the schedule. + /// Delete a shift from the schedule. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a shift object by ID. + /// Retrieve the properties and relationships of a shift object by ID. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -91,7 +91,7 @@ public async Task PatchAsync(Shift body, Action(requestInfo, Shift.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a shift from the schedule. + /// Delete a shift from the schedule. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a shift object by ID. + /// Retrieve the properties and relationships of a shift object by ID. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -192,7 +192,7 @@ public ShiftItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a shift object by ID. + /// Retrieve the properties and relationships of a shift object by ID. This API is supported in the following national cloud deployments. /// public class ShiftItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/Shifts/ShiftsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/Shifts/ShiftsRequestBuilder.cs index ceb9b0074a6..835c2d51f23 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/Shifts/ShiftsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/Shifts/ShiftsRequestBuilder.cs @@ -42,7 +42,7 @@ public ShiftsRequestBuilder(Dictionary pathParameters, IRequestA public ShiftsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/schedule/shifts{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get the list of shift instances in a schedule. + /// Get the list of shift instances in a schedule. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ShiftCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new shift instance in a schedule. The duration of a shift cannot be less than 1 minute or longer than 24 hours. + /// Create a new shift instance in a schedule. The duration of a shift cannot be less than 1 minute or longer than 24 hours. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(Shift body, Action(requestInfo, Shift.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of shift instances in a schedule. + /// Get the list of shift instances in a schedule. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new shift instance in a schedule. The duration of a shift cannot be less than 1 minute or longer than 24 hours. + /// Create a new shift instance in a schedule. The duration of a shift cannot be less than 1 minute or longer than 24 hours. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ShiftsRequestBuilder WithUrl(string rawUrl) { return new ShiftsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of shift instances in a schedule. + /// Get the list of shift instances in a schedule. This API is supported in the following national cloud deployments. /// public class ShiftsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.cs index fe0e43d4f2b..2a83758f500 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a swapShiftsChangeRequest object. + /// Retrieve the properties and relationships of a swapShiftsChangeRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a swapShiftsChangeRequest object. + /// Retrieve the properties and relationships of a swapShiftsChangeRequest object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public SwapShiftsChangeRequestItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a swapShiftsChangeRequest object. + /// Retrieve the properties and relationships of a swapShiftsChangeRequest object. This API is supported in the following national cloud deployments. /// public class SwapShiftsChangeRequestItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs index 19178efcab7..5ec9403c742 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs @@ -42,7 +42,7 @@ public SwapShiftsChangeRequestsRequestBuilder(Dictionary pathPar public SwapShiftsChangeRequestsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/schedule/swapShiftsChangeRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of swapShiftsChangeRequest objects in the team. + /// Retrieve a list of swapShiftsChangeRequest objects in the team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, SwapShiftsChangeRequestCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an instance of a swapShiftsChangeRequest object. + /// Create an instance of a swapShiftsChangeRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(SwapShiftsChangeRequest bod return await RequestAdapter.SendAsync(requestInfo, SwapShiftsChangeRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of swapShiftsChangeRequest objects in the team. + /// Retrieve a list of swapShiftsChangeRequest objects in the team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an instance of a swapShiftsChangeRequest object. + /// Create an instance of a swapShiftsChangeRequest object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SwapShiftsChangeRequestsRequestBuilder WithUrl(string rawUrl) { return new SwapShiftsChangeRequestsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of swapShiftsChangeRequest objects in the team. + /// Retrieve a list of swapShiftsChangeRequest objects in the team. This API is supported in the following national cloud deployments. /// public class SwapShiftsChangeRequestsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.cs index f82785b8b2e..58eb2876670 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.cs @@ -29,7 +29,7 @@ public TimeOffReasonItemRequestBuilder(Dictionary pathParameters public TimeOffReasonItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timeOffReasons/{timeOffReason%2Did}{?%24select}", rawUrl) { } /// - /// Mark a timeOffReason as inactive by setting the isActive property. Every team must include at least one timeoff reason. This method does not remove the specified timeOffReason instance. timeOffItem instances that have been assigned this reason remain assigned to this reason. + /// Mark a timeOffReason as inactive by setting the isActive property. Every team must include at least one timeoff reason. This method doesn't remove the specified timeOffReason instance. timeOffItem instances that have been assigned this reason remain assigned to this reason. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a timeOffReason object by ID. + /// Retrieve the properties and relationships of a timeOffReason object by ID. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -91,7 +91,7 @@ public async Task PatchAsync(TimeOffReason body, Action(requestInfo, TimeOffReason.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Mark a timeOffReason as inactive by setting the isActive property. Every team must include at least one timeoff reason. This method does not remove the specified timeOffReason instance. timeOffItem instances that have been assigned this reason remain assigned to this reason. + /// Mark a timeOffReason as inactive by setting the isActive property. Every team must include at least one timeoff reason. This method doesn't remove the specified timeOffReason instance. timeOffItem instances that have been assigned this reason remain assigned to this reason. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a timeOffReason object by ID. + /// Retrieve the properties and relationships of a timeOffReason object by ID. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -192,7 +192,7 @@ public TimeOffReasonItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a timeOffReason object by ID. + /// Retrieve the properties and relationships of a timeOffReason object by ID. This API is supported in the following national cloud deployments. /// public class TimeOffReasonItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs index 4366c19d9b9..f96221b3588 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs @@ -42,7 +42,7 @@ public TimeOffReasonsRequestBuilder(Dictionary pathParameters, I public TimeOffReasonsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timeOffReasons{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get the list of timeOffReasons in a schedule. + /// Get the list of timeOffReasons in a schedule. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TimeOffReasonCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new timeOffReason. + /// Create a new timeOffReason. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TimeOffReason body, Action(requestInfo, TimeOffReason.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of timeOffReasons in a schedule. + /// Get the list of timeOffReasons in a schedule. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new timeOffReason. + /// Create a new timeOffReason. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public TimeOffReasonsRequestBuilder WithUrl(string rawUrl) { return new TimeOffReasonsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of timeOffReasons in a schedule. + /// Get the list of timeOffReasons in a schedule. This API is supported in the following national cloud deployments. /// public class TimeOffReasonsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.cs index 00731a53ff2..439a34da718 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.cs @@ -29,7 +29,7 @@ public TimeOffRequestItemRequestBuilder(Dictionary pathParameter public TimeOffRequestItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timeOffRequests/{timeOffRequest%2Did}{?%24select}", rawUrl) { } /// - /// Delete a timeOffRequest object. + /// Delete a timeOffRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a timeoffrequest object. + /// Retrieve the properties and relationships of a timeoffrequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(TimeOffRequest body, Action(requestInfo, TimeOffRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a timeOffRequest object. + /// Delete a timeOffRequest object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a timeoffrequest object. + /// Retrieve the properties and relationships of a timeoffrequest object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public TimeOffRequestItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a timeoffrequest object. + /// Retrieve the properties and relationships of a timeoffrequest object. This API is supported in the following national cloud deployments. /// public class TimeOffRequestItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs index d4f3f80000a..da099478d96 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs @@ -42,7 +42,7 @@ public TimeOffRequestsRequestBuilder(Dictionary pathParameters, public TimeOffRequestsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timeOffRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Retrieve a list of timeOffRequest objects in the team. + /// Retrieve a list of timeOffRequest objects in the team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(TimeOffRequest body, Action(requestInfo, TimeOffRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of timeOffRequest objects in the team. + /// Retrieve a list of timeOffRequest objects in the team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public TimeOffRequestsRequestBuilder WithUrl(string rawUrl) { return new TimeOffRequestsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of timeOffRequest objects in the team. + /// Retrieve a list of timeOffRequest objects in the team. This API is supported in the following national cloud deployments. /// public class TimeOffRequestsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.cs index dd3650781ae..3ef8f07dcf6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.cs @@ -29,7 +29,7 @@ public TimeOffItemRequestBuilder(Dictionary pathParameters, IReq public TimeOffItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timesOff/{timeOff%2Did}{?%24select}", rawUrl) { } /// - /// Delete a timeOff instance from a schedule. + /// Delete a timeOff instance from a schedule. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a timeOff object by ID. + /// Retrieve the properties and relationships of a timeOff object by ID. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -91,7 +91,7 @@ public async Task PatchAsync(TimeOff body, Action(requestInfo, TimeOff.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a timeOff instance from a schedule. + /// Delete a timeOff instance from a schedule. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a timeOff object by ID. + /// Retrieve the properties and relationships of a timeOff object by ID. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -192,7 +192,7 @@ public TimeOffItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a timeOff object by ID. + /// Retrieve the properties and relationships of a timeOff object by ID. This API is supported in the following national cloud deployments. /// public class TimeOffItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimesOff/TimesOffRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimesOff/TimesOffRequestBuilder.cs index 6f73aa8310f..2e1cbe7d625 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimesOff/TimesOffRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimesOff/TimesOffRequestBuilder.cs @@ -42,7 +42,7 @@ public TimesOffRequestBuilder(Dictionary pathParameters, IReques public TimesOffRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timesOff{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get the list of timeOff instances in a schedule. + /// Get the list of timeOff instances in a schedule. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TimeOffCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new timeOff instance in a schedule. + /// Create a new timeOff instance in a schedule. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TimeOff body, Action(requestInfo, TimeOff.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of timeOff instances in a schedule. + /// Get the list of timeOff instances in a schedule. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new timeOff instance in a schedule. + /// Create a new timeOff instance in a schedule. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public TimesOffRequestBuilder WithUrl(string rawUrl) { return new TimesOffRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of timeOff instances in a schedule. + /// Get the list of timeOff instances in a schedule. This API is supported in the following national cloud deployments. /// public class TimesOffRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/SendActivityNotification/SendActivityNotificationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/SendActivityNotification/SendActivityNotificationRequestBuilder.cs index 7580ec9334a..96c8f902c8b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/SendActivityNotification/SendActivityNotificationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/SendActivityNotification/SendActivityNotificationRequestBuilder.cs @@ -28,7 +28,7 @@ public SendActivityNotificationRequestBuilder(Dictionary pathPar public SendActivityNotificationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/sendActivityNotification", rawUrl) { } /// - /// Send an activity feed notification in the scope of a team. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. + /// Send an activity feed notification in the scope of a team. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SendActivityNotificationPostRequestBody body, Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send an activity feed notification in the scope of a team. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. + /// Send an activity feed notification in the scope of a team. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs index 6ff390eda66..14fc3756cfc 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs @@ -29,7 +29,7 @@ public TeamworkTagMemberItemRequestBuilder(Dictionary pathParame public TeamworkTagMemberItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/tags/{teamworkTag%2Did}/members/{teamworkTagMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a member from a standard tag in a team. + /// Delete a member from a standard tag in a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get the properties and relationships of a member of a standard tag in a team. + /// Get the properties and relationships of a member of a standard tag in a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(TeamworkTagMember body, Action(requestInfo, TeamworkTagMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a member from a standard tag in a team. + /// Delete a member from a standard tag in a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties and relationships of a member of a standard tag in a team. + /// Get the properties and relationships of a member of a standard tag in a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public TeamworkTagMemberItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the properties and relationships of a member of a standard tag in a team. + /// Get the properties and relationships of a member of a standard tag in a team. This API is supported in the following national cloud deployments. /// public class TeamworkTagMemberItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/Members/MembersRequestBuilder.cs index d17c4aba48c..f885af64c5f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/Members/MembersRequestBuilder.cs @@ -42,7 +42,7 @@ public MembersRequestBuilder(Dictionary pathParameters, IRequest public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/tags/{teamworkTag%2Did}/members{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the members of a standard tag in a team and their properties. + /// Get a list of the members of a standard tag in a team and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TeamworkTagMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new teamworkTagMember object in a team. + /// Create a new teamworkTagMember object in a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TeamworkTagMember body, Action(requestInfo, TeamworkTagMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the members of a standard tag in a team and their properties. + /// Get a list of the members of a standard tag in a team and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new teamworkTagMember object in a team. + /// Create a new teamworkTagMember object in a team. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public MembersRequestBuilder WithUrl(string rawUrl) { return new MembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the members of a standard tag in a team and their properties. + /// Get a list of the members of a standard tag in a team and their properties. This API is supported in the following national cloud deployments. /// public class MembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/TeamworkTagItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/TeamworkTagItemRequestBuilder.cs index f072cccbdae..8b9e36fb0e5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/TeamworkTagItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/TeamworkTagItemRequestBuilder.cs @@ -34,7 +34,7 @@ public TeamworkTagItemRequestBuilder(Dictionary pathParameters, public TeamworkTagItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/tags/{teamworkTag%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a tag object permanently. + /// Delete a tag object permanently. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a tag object. + /// Read the properties and relationships of a tag object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, TeamworkTag.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a tag object. + /// Update the properties of a tag object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(TeamworkTag body, Action(requestInfo, TeamworkTag.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a tag object permanently. + /// Delete a tag object permanently. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a tag object. + /// Read the properties and relationships of a tag object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a tag object. + /// Update the properties of a tag object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public TeamworkTagItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a tag object. + /// Read the properties and relationships of a tag object. This API is supported in the following national cloud deployments. /// public class TeamworkTagItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/TagsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/TagsRequestBuilder.cs index 6df99a2f783..2d94856a550 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/TagsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/TagsRequestBuilder.cs @@ -42,7 +42,7 @@ public TagsRequestBuilder(Dictionary pathParameters, IRequestAda public TagsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/tags{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the tag objects and their properties. + /// Get a list of the tag objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TeamworkTagCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a standard tag for members in a team. + /// Create a standard tag for members in a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TeamworkTag body, Action(requestInfo, TeamworkTag.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the tag objects and their properties. + /// Get a list of the tag objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a standard tag for members in a team. + /// Create a standard tag for members in a team. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public TagsRequestBuilder WithUrl(string rawUrl) { return new TagsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the tag objects and their properties. + /// Get a list of the tag objects and their properties. This API is supported in the following national cloud deployments. /// public class TagsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Unarchive/UnarchiveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Unarchive/UnarchiveRequestBuilder.cs index 11ca74231ab..55631c0d57c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Unarchive/UnarchiveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Unarchive/UnarchiveRequestBuilder.cs @@ -28,7 +28,7 @@ public UnarchiveRequestBuilder(Dictionary pathParameters, IReque public UnarchiveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/unarchive", rawUrl) { } /// - /// Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. + /// Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. + /// Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs index c0dda7aa226..3d9f6326d1b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs @@ -39,8 +39,8 @@ public ConversationThreadItemRequestBuilder(Dictionary pathParam public ConversationThreadItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}{?%24select}", rawUrl) { } /// - /// Delete conversationThread. - /// Find more info here + /// Delete conversationThread. This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -59,8 +59,8 @@ public async Task DeleteAsync(Action - /// Get a thread object. - /// Find more info here + /// Get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -79,7 +79,7 @@ public async Task GetAsync(Action(requestInfo, ConversationThread.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update conversation thread + /// This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -101,7 +101,7 @@ public async Task PatchAsync(ConversationThread body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationThread.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete conversationThread. + /// Delete conversationThread. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -125,7 +125,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a thread object. + /// Get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -151,7 +151,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update conversation thread + /// This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -202,7 +202,7 @@ public ConversationThreadItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a thread object. + /// Get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. This API is supported in the following national cloud deployments. /// public class ConversationThreadItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilder.cs index d6d9d151ed3..5656125b2d8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to a post. + /// Retrieve a list of attachment objects attached to a post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -88,7 +88,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to a post. + /// Retrieve a list of attachment objects attached to a post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -149,7 +149,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to a post. + /// Retrieve a list of attachment objects attached to a post. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 570be1499d0..119e5ff50f8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilder.cs index c6bc0b020ab..bdebf5d7b96 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index d5e44379628..596bbc6d411 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + /// Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + /// Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -191,7 +191,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Forward/ForwardRequestBuilder.cs index de83844b47f..1630c0759f1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/forward", rawUrl) { } /// - /// Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + /// Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + /// Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilder.cs index b0a0162dfe9..f6160103552 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to a post. + /// Retrieve a list of attachment objects attached to a post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -88,7 +88,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to a post. + /// Retrieve a list of attachment objects attached to a post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -149,7 +149,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to a post. + /// Retrieve a list of attachment objects attached to a post. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 35bb3281f4a..bc210f7f836 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilder.cs index 9e445a644a6..e4c5ea0607b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilder.cs index e12a0e7d432..cae76b9b9f2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + /// Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + /// Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -191,7 +191,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardRequestBuilder.cs index 8690ae37cb1..0559d505cde 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/forward", rawUrl) { } /// - /// Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + /// Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + /// Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs index 2c469e0c75a..def26f1b34a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs @@ -28,8 +28,8 @@ public ReplyRequestBuilder(Dictionary pathParameters, IRequestAd public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/reply", rawUrl) { } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. - /// Find more info here + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -50,7 +50,7 @@ public async Task PostAsync(ReplyPostRequestBody body, Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs index 322cc3e01df..e5dd2aeabe5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs @@ -28,8 +28,8 @@ public ReplyRequestBuilder(Dictionary pathParameters, IRequestAd public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/reply", rawUrl) { } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. - /// Find more info here + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -50,7 +50,7 @@ public async Task PostAsync(ReplyPostRequestBody body, Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.cs index 94ca99b4447..cb929f6de36 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.cs @@ -42,8 +42,8 @@ public PostsRequestBuilder(Dictionary pathParameters, IRequestAd public PostsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. - /// Find more info here + /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, PostCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public PostsRequestBuilder WithUrl(string rawUrl) { return new PostsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. This API is supported in the following national cloud deployments. /// public class PostsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.cs index 62a5217536a..c9135de6be1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.cs @@ -28,8 +28,8 @@ public ReplyRequestBuilder(Dictionary pathParameters, IRequestAd public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/reply", rawUrl) { } /// - /// Add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -50,7 +50,7 @@ public async Task PostAsync(ReplyPostRequestBody body, Action - /// Add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/ThreadsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/ThreadsRequestBuilder.cs index 2011a92f5b2..e18452181af 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/ThreadsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/ThreadsRequestBuilder.cs @@ -42,7 +42,7 @@ public ThreadsRequestBuilder(Dictionary pathParameters, IRequest public ThreadsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/threads{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get all the threads of a group. + /// Get all the threads of a group. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ConversationThreadCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Start a new group conversation by first creating a thread. A new conversation, conversation thread, and post are created in the group.Use reply thread or reply post to further post to that thread. Note: You can also start a new thread in an existing conversation. + /// Start a new group conversation by first creating a thread. A new conversation, conversation thread, and post are created in the group.Use reply thread or reply post to further post to that thread. Note: You can also start a new thread in an existing conversation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(ConversationThread body, Action< return await RequestAdapter.SendAsync(requestInfo, ConversationThread.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get all the threads of a group. + /// Get all the threads of a group. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Start a new group conversation by first creating a thread. A new conversation, conversation thread, and post are created in the group.Use reply thread or reply post to further post to that thread. Note: You can also start a new thread in an existing conversation. + /// Start a new group conversation by first creating a thread. A new conversation, conversation thread, and post are created in the group.Use reply thread or reply post to further post to that thread. Note: You can also start a new thread in an existing conversation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ThreadsRequestBuilder WithUrl(string rawUrl) { return new ThreadsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get all the threads of a group. + /// Get all the threads of a group. This API is supported in the following national cloud deployments. /// public class ThreadsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/UnsubscribeByMail/UnsubscribeByMailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/UnsubscribeByMail/UnsubscribeByMailRequestBuilder.cs index 97fdd58a0d8..7d1c525c760 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/UnsubscribeByMail/UnsubscribeByMailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/UnsubscribeByMail/UnsubscribeByMailRequestBuilder.cs @@ -28,7 +28,7 @@ public UnsubscribeByMailRequestBuilder(Dictionary pathParameters public UnsubscribeByMailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/unsubscribeByMail", rawUrl) { } /// - /// Calling this method will prevent the current user from receiving email notifications for this group about new posts, events, and files in that group. Supported for Microsoft 365 groups only. + /// Calling this method prevents the current user from receiving email notifications for this group about new posts, events, and files in that group. Supported for Microsoft 365 groups only. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Calling this method will prevent the current user from receiving email notifications for this group about new posts, events, and files in that group. Supported for Microsoft 365 groups only. + /// Calling this method prevents the current user from receiving email notifications for this group about new posts, events, and files in that group. Supported for Microsoft 365 groups only. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Groups/Item/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/ValidateProperties/ValidatePropertiesRequestBuilder.cs index 2f2021e9e28..d215e9e8a03 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -28,7 +28,7 @@ public ValidatePropertiesRequestBuilder(Dictionary pathParameter public ValidatePropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/validateProperties", rawUrl) { } /// - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to update a Microsoft 365 group. To validate the properties before creating a group, use the directoryobject:validateProperties function. The following policy validations are performed for the display name and mail nickname properties: This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to update a Microsoft 365 group. To validate the properties before creating a group, use the directoryobject:validateProperties function. The following policy validations are performed for the display name and mail nickname properties: This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ValidatePropertiesPostRequestBody body, Action - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to update a Microsoft 365 group. To validate the properties before creating a group, use the directoryobject:validateProperties function. The following policy validations are performed for the display name and mail nickname properties: This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to update a Microsoft 365 group. To validate the properties before creating a group, use the directoryobject:validateProperties function. The following policy validations are performed for the display name and mail nickname properties: This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/ValidateProperties/ValidatePropertiesRequestBuilder.cs index 7e7a804d4f5..bc55113e4f4 100644 --- a/src/Microsoft.Graph/Generated/Groups/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -28,7 +28,7 @@ public ValidatePropertiesRequestBuilder(Dictionary pathParameter public ValidatePropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/validateProperties", rawUrl) { } /// - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ValidatePropertiesPostRequestBody body, Action - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Identity/ApiConnectors/ApiConnectorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ApiConnectors/ApiConnectorsRequestBuilder.cs index 5dbca7903f3..d652a401ed3 100644 --- a/src/Microsoft.Graph/Generated/Identity/ApiConnectors/ApiConnectorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ApiConnectors/ApiConnectorsRequestBuilder.cs @@ -42,7 +42,7 @@ public ApiConnectorsRequestBuilder(Dictionary pathParameters, IR public ApiConnectorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/apiConnectors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read the properties of an identityApiConnector object. + /// Read the properties of an identityApiConnector object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, IdentityApiConnectorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new identityApiConnector object. + /// Create a new identityApiConnector object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(IdentityApiConnector body, Act return await RequestAdapter.SendAsync(requestInfo, IdentityApiConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties of an identityApiConnector object. + /// Read the properties of an identityApiConnector object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new identityApiConnector object. + /// Create a new identityApiConnector object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ApiConnectorsRequestBuilder WithUrl(string rawUrl) { return new ApiConnectorsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties of an identityApiConnector object. + /// Read the properties of an identityApiConnector object. This API is supported in the following national cloud deployments. /// public class ApiConnectorsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Identity/ApiConnectors/Item/IdentityApiConnectorItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ApiConnectors/Item/IdentityApiConnectorItemRequestBuilder.cs index ea1709f12e6..a870bc5ceea 100644 --- a/src/Microsoft.Graph/Generated/Identity/ApiConnectors/Item/IdentityApiConnectorItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ApiConnectors/Item/IdentityApiConnectorItemRequestBuilder.cs @@ -34,7 +34,7 @@ public IdentityApiConnectorItemRequestBuilder(Dictionary pathPar public IdentityApiConnectorItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/apiConnectors/{identityApiConnector%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an identityApiConnector object. + /// Delete an identityApiConnector object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Read the properties of an identityApiConnector object. + /// Read the properties of an identityApiConnector object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, IdentityApiConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an identityApiConnector object. + /// Update the properties of an identityApiConnector object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(IdentityApiConnector body, Ac return await RequestAdapter.SendAsync(requestInfo, IdentityApiConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an identityApiConnector object. + /// Delete an identityApiConnector object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties of an identityApiConnector object. + /// Read the properties of an identityApiConnector object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an identityApiConnector object. + /// Update the properties of an identityApiConnector object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public IdentityApiConnectorItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties of an identityApiConnector object. + /// Read the properties of an identityApiConnector object. This API is supported in the following national cloud deployments. /// public class IdentityApiConnectorItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Identity/ApiConnectors/Item/UploadClientCertificate/UploadClientCertificateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ApiConnectors/Item/UploadClientCertificate/UploadClientCertificateRequestBuilder.cs index 3d829a56b18..af6e3c6a447 100644 --- a/src/Microsoft.Graph/Generated/Identity/ApiConnectors/Item/UploadClientCertificate/UploadClientCertificateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ApiConnectors/Item/UploadClientCertificate/UploadClientCertificateRequestBuilder.cs @@ -29,7 +29,7 @@ public UploadClientCertificateRequestBuilder(Dictionary pathPara public UploadClientCertificateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/apiConnectors/{identityApiConnector%2Did}/uploadClientCertificate", rawUrl) { } /// - /// Upload a PKCS 12 format key (.pfx) to an API connector's authentication configuration. The input is a base-64 encoded value of the PKCS 12 certificate contents. This method returns an apiConnector. + /// Upload a PKCS 12 format key (.pfx) to an API connector's authentication configuration. The input is a base-64 encoded value of the PKCS 12 certificate contents. This method returns an apiConnector. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(UploadClientCertificatePostReq return await RequestAdapter.SendAsync(requestInfo, IdentityApiConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Upload a PKCS 12 format key (.pfx) to an API connector's authentication configuration. The input is a base-64 encoded value of the PKCS 12 certificate contents. This method returns an apiConnector. + /// Upload a PKCS 12 format key (.pfx) to an API connector's authentication configuration. The input is a base-64 encoded value of the PKCS 12 certificate contents. This method returns an apiConnector. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/B2xUserFlowsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/B2xUserFlowsRequestBuilder.cs index af3d1514869..c53ef662bfd 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/B2xUserFlowsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/B2xUserFlowsRequestBuilder.cs @@ -42,7 +42,7 @@ public B2xUserFlowsRequestBuilder(Dictionary pathParameters, IRe public B2xUserFlowsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/b2xUserFlows{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of b2xIdentityUserFlow objects. + /// Retrieve a list of b2xIdentityUserFlow objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, B2xIdentityUserFlowCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new b2xIdentityUserFlow object. + /// Create a new b2xIdentityUserFlow object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(B2xIdentityUserFlow body, Actio return await RequestAdapter.SendAsync(requestInfo, B2xIdentityUserFlow.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of b2xIdentityUserFlow objects. + /// Retrieve a list of b2xIdentityUserFlow objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new b2xIdentityUserFlow object. + /// Create a new b2xIdentityUserFlow object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public B2xUserFlowsRequestBuilder WithUrl(string rawUrl) { return new B2xUserFlowsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of b2xIdentityUserFlow objects. + /// Retrieve a list of b2xIdentityUserFlow objects. This API is supported in the following national cloud deployments. /// public class B2xUserFlowsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostAttributeCollection/UploadClientCertificate/UploadClientCertificateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostAttributeCollection/UploadClientCertificate/UploadClientCertificateRequestBuilder.cs index 56f48d498a3..e41b734ee48 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostAttributeCollection/UploadClientCertificate/UploadClientCertificateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostAttributeCollection/UploadClientCertificate/UploadClientCertificateRequestBuilder.cs @@ -29,7 +29,7 @@ public UploadClientCertificateRequestBuilder(Dictionary pathPara public UploadClientCertificateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/apiConnectorConfiguration/postAttributeCollection/uploadClientCertificate", rawUrl) { } /// - /// Upload a PKCS 12 format key (.pfx) to an API connector's authentication configuration. The input is a base-64 encoded value of the PKCS 12 certificate contents. This method returns an apiConnector. + /// Upload a PKCS 12 format key (.pfx) to an API connector's authentication configuration. The input is a base-64 encoded value of the PKCS 12 certificate contents. This method returns an apiConnector. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(UploadClientCertificatePostReq return await RequestAdapter.SendAsync(requestInfo, IdentityApiConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Upload a PKCS 12 format key (.pfx) to an API connector's authentication configuration. The input is a base-64 encoded value of the PKCS 12 certificate contents. This method returns an apiConnector. + /// Upload a PKCS 12 format key (.pfx) to an API connector's authentication configuration. The input is a base-64 encoded value of the PKCS 12 certificate contents. This method returns an apiConnector. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostFederationSignup/UploadClientCertificate/UploadClientCertificateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostFederationSignup/UploadClientCertificate/UploadClientCertificateRequestBuilder.cs index a066826f725..fbf1d92f61b 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostFederationSignup/UploadClientCertificate/UploadClientCertificateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostFederationSignup/UploadClientCertificate/UploadClientCertificateRequestBuilder.cs @@ -29,7 +29,7 @@ public UploadClientCertificateRequestBuilder(Dictionary pathPara public UploadClientCertificateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/apiConnectorConfiguration/postFederationSignup/uploadClientCertificate", rawUrl) { } /// - /// Upload a PKCS 12 format key (.pfx) to an API connector's authentication configuration. The input is a base-64 encoded value of the PKCS 12 certificate contents. This method returns an apiConnector. + /// Upload a PKCS 12 format key (.pfx) to an API connector's authentication configuration. The input is a base-64 encoded value of the PKCS 12 certificate contents. This method returns an apiConnector. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(UploadClientCertificatePostReq return await RequestAdapter.SendAsync(requestInfo, IdentityApiConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Upload a PKCS 12 format key (.pfx) to an API connector's authentication configuration. The input is a base-64 encoded value of the PKCS 12 certificate contents. This method returns an apiConnector. + /// Upload a PKCS 12 format key (.pfx) to an API connector's authentication configuration. The input is a base-64 encoded value of the PKCS 12 certificate contents. This method returns an apiConnector. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/B2xIdentityUserFlowItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/B2xIdentityUserFlowItemRequestBuilder.cs index aa6d73e167e..360bb425eb9 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/B2xIdentityUserFlowItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/B2xIdentityUserFlowItemRequestBuilder.cs @@ -54,7 +54,7 @@ public B2xIdentityUserFlowItemRequestBuilder(Dictionary pathPara public B2xIdentityUserFlowItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a b2xIdentityUserFlow object. + /// Delete a b2xIdentityUserFlow object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a b2xIdentityUserFlow object. + /// Retrieve the properties and relationships of a b2xIdentityUserFlow object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -115,7 +115,7 @@ public async Task PatchAsync(B2xIdentityUserFlow body, Acti return await RequestAdapter.SendAsync(requestInfo, B2xIdentityUserFlow.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a b2xIdentityUserFlow object. + /// Delete a b2xIdentityUserFlow object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -139,7 +139,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a b2xIdentityUserFlow object. + /// Retrieve the properties and relationships of a b2xIdentityUserFlow object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -216,7 +216,7 @@ public B2xIdentityUserFlowItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a b2xIdentityUserFlow object. + /// Retrieve the properties and relationships of a b2xIdentityUserFlow object. This API is supported in the following national cloud deployments. /// public class B2xIdentityUserFlowItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/IdentityProviders/IdentityProvidersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/IdentityProviders/IdentityProvidersRequestBuilder.cs index c82226aaf88..40d819d95c2 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/IdentityProviders/IdentityProvidersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/IdentityProviders/IdentityProvidersRequestBuilder.cs @@ -44,7 +44,7 @@ public IdentityProvidersRequestBuilder(Dictionary pathParameters public IdentityProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/identityProviders{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the identity providers in a b2xIdentityUserFlow object. + /// Get the identity providers in a b2xIdentityUserFlow object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -65,7 +65,7 @@ public async Task GetAsync(Action(requestInfo, IdentityProviderCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the identity providers in a b2xIdentityUserFlow object. + /// Get the identity providers in a b2xIdentityUserFlow object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. [Obsolete("The identityProvider API is deprecated and will stop returning data on March 2023. Please use the new identityProviderBase API. as of 2021-05/identityProvider on 2021-08-24 and will be removed 2023-03-15")] @@ -100,7 +100,7 @@ public IdentityProvidersRequestBuilder WithUrl(string rawUrl) { return new IdentityProvidersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the identity providers in a b2xIdentityUserFlow object. + /// Get the identity providers in a b2xIdentityUserFlow object. This API is supported in the following national cloud deployments. /// public class IdentityProvidersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/DefaultPagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/DefaultPagesRequestBuilder.cs index 8c5ad65061b..957ba71ccb9 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/DefaultPagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/DefaultPagesRequestBuilder.cs @@ -42,7 +42,7 @@ public DefaultPagesRequestBuilder(Dictionary pathParameters, IRe public DefaultPagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/languages/{userFlowLanguageConfiguration%2Did}/defaultPages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Collection of pages with the default content to display in a user flow for a specified language. This collection does not allow any kind of modification. + /// Collection of pages with the default content to display in a user flow for a specified language. This collection doesn't allow any kind of modification. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(UserFlowLanguagePage body, Act return await RequestAdapter.SendAsync(requestInfo, UserFlowLanguagePage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Collection of pages with the default content to display in a user flow for a specified language. This collection does not allow any kind of modification. + /// Collection of pages with the default content to display in a user flow for a specified language. This collection doesn't allow any kind of modification. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public DefaultPagesRequestBuilder WithUrl(string rawUrl) { return new DefaultPagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Collection of pages with the default content to display in a user flow for a specified language. This collection does not allow any kind of modification. + /// Collection of pages with the default content to display in a user flow for a specified language. This collection doesn't allow any kind of modification. /// public class DefaultPagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/Item/UserFlowLanguagePageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/Item/UserFlowLanguagePageItemRequestBuilder.cs index ce1394fbeac..1bfb6f402d8 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/Item/UserFlowLanguagePageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/Item/UserFlowLanguagePageItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Collection of pages with the default content to display in a user flow for a specified language. This collection does not allow any kind of modification. + /// Collection of pages with the default content to display in a user flow for a specified language. This collection doesn't allow any kind of modification. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -117,7 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Collection of pages with the default content to display in a user flow for a specified language. This collection does not allow any kind of modification. + /// Collection of pages with the default content to display in a user flow for a specified language. This collection doesn't allow any kind of modification. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -194,7 +194,7 @@ public UserFlowLanguagePageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Collection of pages with the default content to display in a user flow for a specified language. This collection does not allow any kind of modification. + /// Collection of pages with the default content to display in a user flow for a specified language. This collection doesn't allow any kind of modification. /// public class UserFlowLanguagePageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/Item/UserFlowLanguagePageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/Item/UserFlowLanguagePageItemRequestBuilder.cs index 4aed7f68d0c..81f27f56089 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/Item/UserFlowLanguagePageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/Item/UserFlowLanguagePageItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Collection of pages with the overrides messages to display in a user flow for a specified language. This collection only allows to modify the content of the page, any other modification is not allowed (creation or deletion of pages). + /// Collection of pages with the overrides messages to display in a user flow for a specified language. This collection only allows you to modify the content of the page, any other modification isn't allowed (creation or deletion of pages). /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -117,7 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Collection of pages with the overrides messages to display in a user flow for a specified language. This collection only allows to modify the content of the page, any other modification is not allowed (creation or deletion of pages). + /// Collection of pages with the overrides messages to display in a user flow for a specified language. This collection only allows you to modify the content of the page, any other modification isn't allowed (creation or deletion of pages). /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -194,7 +194,7 @@ public UserFlowLanguagePageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Collection of pages with the overrides messages to display in a user flow for a specified language. This collection only allows to modify the content of the page, any other modification is not allowed (creation or deletion of pages). + /// Collection of pages with the overrides messages to display in a user flow for a specified language. This collection only allows you to modify the content of the page, any other modification isn't allowed (creation or deletion of pages). /// public class UserFlowLanguagePageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/OverridesPagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/OverridesPagesRequestBuilder.cs index 7ca507166f1..599a821e961 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/OverridesPagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/OverridesPagesRequestBuilder.cs @@ -42,7 +42,7 @@ public OverridesPagesRequestBuilder(Dictionary pathParameters, I public OverridesPagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/languages/{userFlowLanguageConfiguration%2Did}/overridesPages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the userFlowLanguagePage resources from the overridesPages navigation property. These pages are used to customize the values shown to the user during a user journey in a user flow. + /// Get the userFlowLanguagePage resources from the overridesPages navigation property. These pages are used to customize the values shown to the user during a user journey in a user flow. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(UserFlowLanguagePage body, Act return await RequestAdapter.SendAsync(requestInfo, UserFlowLanguagePage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the userFlowLanguagePage resources from the overridesPages navigation property. These pages are used to customize the values shown to the user during a user journey in a user flow. + /// Get the userFlowLanguagePage resources from the overridesPages navigation property. These pages are used to customize the values shown to the user during a user journey in a user flow. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public OverridesPagesRequestBuilder WithUrl(string rawUrl) { return new OverridesPagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the userFlowLanguagePage resources from the overridesPages navigation property. These pages are used to customize the values shown to the user during a user journey in a user flow. + /// Get the userFlowLanguagePage resources from the overridesPages navigation property. These pages are used to customize the values shown to the user during a user journey in a user flow. This API is supported in the following national cloud deployments. /// public class OverridesPagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/UserFlowLanguageConfigurationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/UserFlowLanguageConfigurationItemRequestBuilder.cs index 04a42c91d1b..3ae21ace890 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/UserFlowLanguageConfigurationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/UserFlowLanguageConfigurationItemRequestBuilder.cs @@ -58,7 +58,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a userFlowLanguageConfiguration object. These objects represent a language available in a user flow. Note: Language customization is enabled by default in Azure Active Directory user flows. + /// Read the properties and relationships of a userFlowLanguageConfiguration object. These objects represent a language available in a user flow. Note: Language customization is enabled by default in Azure Active Directory user flows. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -123,7 +123,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a userFlowLanguageConfiguration object. These objects represent a language available in a user flow. Note: Language customization is enabled by default in Azure Active Directory user flows. + /// Read the properties and relationships of a userFlowLanguageConfiguration object. These objects represent a language available in a user flow. Note: Language customization is enabled by default in Azure Active Directory user flows. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -200,7 +200,7 @@ public UserFlowLanguageConfigurationItemRequestBuilderDeleteRequestConfiguration } } /// - /// Read the properties and relationships of a userFlowLanguageConfiguration object. These objects represent a language available in a user flow. Note: Language customization is enabled by default in Azure Active Directory user flows. + /// Read the properties and relationships of a userFlowLanguageConfiguration object. These objects represent a language available in a user flow. Note: Language customization is enabled by default in Azure Active Directory user flows. This API is supported in the following national cloud deployments. /// public class UserFlowLanguageConfigurationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/LanguagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/LanguagesRequestBuilder.cs index 463e433e1ee..f2e4f233633 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/LanguagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/LanguagesRequestBuilder.cs @@ -42,7 +42,7 @@ public LanguagesRequestBuilder(Dictionary pathParameters, IReque public LanguagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/languages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of languages supported for customization in a B2X user flow. + /// Retrieve a list of languages supported for customization in a B2X user flow. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(UserFlowLanguageConfi return await RequestAdapter.SendAsync(requestInfo, UserFlowLanguageConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of languages supported for customization in a B2X user flow. + /// Retrieve a list of languages supported for customization in a B2X user flow. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public LanguagesRequestBuilder WithUrl(string rawUrl) { return new LanguagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of languages supported for customization in a B2X user flow. + /// Retrieve a list of languages supported for customization in a B2X user flow. This API is supported in the following national cloud deployments. /// public class LanguagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Item/IdentityUserFlowAttributeAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Item/IdentityUserFlowAttributeAssignmentItemRequestBuilder.cs index 704aec5104c..75e1d54d319 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Item/IdentityUserFlowAttributeAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Item/IdentityUserFlowAttributeAssignmentItemRequestBuilder.cs @@ -34,7 +34,7 @@ public IdentityUserFlowAttributeAssignmentItemRequestBuilder(Dictionary - /// Delete an identityUserFlowAttributeAssignment object. + /// Delete an identityUserFlowAttributeAssignment object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an identityUserFlowAttributeAssignment object. + /// Read the properties and relationships of an identityUserFlowAttributeAssignment object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, IdentityUserFlowAttributeAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a identityUserFlowAttributeAssignment object. + /// Update the properties of a identityUserFlowAttributeAssignment object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(IdentityUserFl return await RequestAdapter.SendAsync(requestInfo, IdentityUserFlowAttributeAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an identityUserFlowAttributeAssignment object. + /// Delete an identityUserFlowAttributeAssignment object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an identityUserFlowAttributeAssignment object. + /// Read the properties and relationships of an identityUserFlowAttributeAssignment object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a identityUserFlowAttributeAssignment object. + /// Update the properties of a identityUserFlowAttributeAssignment object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public IdentityUserFlowAttributeAssignmentItemRequestBuilderDeleteRequestConfigu } } /// - /// Read the properties and relationships of an identityUserFlowAttributeAssignment object. + /// Read the properties and relationships of an identityUserFlowAttributeAssignment object. This API is supported in the following national cloud deployments. /// public class IdentityUserFlowAttributeAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/SetOrder/SetOrderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/SetOrder/SetOrderRequestBuilder.cs index c93ea101eb2..a327ff0c252 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/SetOrder/SetOrderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/SetOrder/SetOrderRequestBuilder.cs @@ -28,7 +28,7 @@ public SetOrderRequestBuilder(Dictionary pathParameters, IReques public SetOrderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userAttributeAssignments/setOrder", rawUrl) { } /// - /// Set the order of identityUserFlowAttributeAssignments being collected within a user flow. + /// Set the order of identityUserFlowAttributeAssignments being collected within a user flow. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SetOrderPostRequestBody body, Action - /// Set the order of identityUserFlowAttributeAssignments being collected within a user flow. + /// Set the order of identityUserFlowAttributeAssignments being collected within a user flow. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/UserAttributeAssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/UserAttributeAssignmentsRequestBuilder.cs index 153837a57ed..0d5ac5d21b1 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/UserAttributeAssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/UserAttributeAssignmentsRequestBuilder.cs @@ -52,7 +52,7 @@ public UserAttributeAssignmentsRequestBuilder(Dictionary pathPar public UserAttributeAssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userAttributeAssignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the identityUserFlowAttributeAssignment resources from the userAttributeAssignments navigation property in a b2xIdentityUserFlow. + /// Get the identityUserFlowAttributeAssignment resources from the userAttributeAssignments navigation property in a b2xIdentityUserFlow. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -72,7 +72,7 @@ public async Task GetAsyn return await RequestAdapter.SendAsync(requestInfo, IdentityUserFlowAttributeAssignmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new identityUserFlowAttributeAssignment object in a b2xIdentityUserFlow. + /// Create a new identityUserFlowAttributeAssignment object in a b2xIdentityUserFlow. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -94,7 +94,7 @@ public async Task PostAsync(IdentityUserFlo return await RequestAdapter.SendAsync(requestInfo, IdentityUserFlowAttributeAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the identityUserFlowAttributeAssignment resources from the userAttributeAssignments navigation property in a b2xIdentityUserFlow. + /// Get the identityUserFlowAttributeAssignment resources from the userAttributeAssignments navigation property in a b2xIdentityUserFlow. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new identityUserFlowAttributeAssignment object in a b2xIdentityUserFlow. + /// Create a new identityUserFlowAttributeAssignment object in a b2xIdentityUserFlow. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -155,7 +155,7 @@ public UserAttributeAssignmentsRequestBuilder WithUrl(string rawUrl) { return new UserAttributeAssignmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the identityUserFlowAttributeAssignment resources from the userAttributeAssignments navigation property in a b2xIdentityUserFlow. + /// Get the identityUserFlowAttributeAssignment resources from the userAttributeAssignments navigation property in a b2xIdentityUserFlow. This API is supported in the following national cloud deployments. /// public class UserAttributeAssignmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/AuthenticationContextClassReferencesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/AuthenticationContextClassReferencesRequestBuilder.cs index cc7fc2295ef..80a367064f1 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/AuthenticationContextClassReferencesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/AuthenticationContextClassReferencesRequestBuilder.cs @@ -42,7 +42,7 @@ public AuthenticationContextClassReferencesRequestBuilder(Dictionary - /// Retrieve a list of authenticationContextClassReference objects. + /// Retrieve a list of authenticationContextClassReference objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(AuthenticationC return await RequestAdapter.SendAsync(requestInfo, AuthenticationContextClassReference.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of authenticationContextClassReference objects. + /// Retrieve a list of authenticationContextClassReference objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public AuthenticationContextClassReferencesRequestBuilder WithUrl(string rawUrl) return new AuthenticationContextClassReferencesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of authenticationContextClassReference objects. + /// Retrieve a list of authenticationContextClassReference objects. This API is supported in the following national cloud deployments. /// public class AuthenticationContextClassReferencesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/Item/AuthenticationContextClassReferenceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/Item/AuthenticationContextClassReferenceItemRequestBuilder.cs index 01ee4287a66..54b801ffe1f 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/Item/AuthenticationContextClassReferenceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/Item/AuthenticationContextClassReferenceItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AuthenticationContextClassReferenceItemRequestBuilder(Dictionary - /// Delete an authenticationContextClassReference object that's not published or used by a conditional access policy. + /// Delete an authenticationContextClassReference object that's not published or used by a conditional access policy. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a authenticationContextClassReference object. + /// Retrieve the properties and relationships of a authenticationContextClassReference object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, AuthenticationContextClassReference.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an authenticationContextClassReference object, if the ID has not been used. If ID has been used, this call updates the authenticationContextClassReference object. + /// Create an authenticationContextClassReference object, if the ID has not been used. If ID has been used, this call updates the authenticationContextClassReference object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(Authentication return await RequestAdapter.SendAsync(requestInfo, AuthenticationContextClassReference.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an authenticationContextClassReference object that's not published or used by a conditional access policy. + /// Delete an authenticationContextClassReference object that's not published or used by a conditional access policy. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a authenticationContextClassReference object. + /// Retrieve the properties and relationships of a authenticationContextClassReference object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an authenticationContextClassReference object, if the ID has not been used. If ID has been used, this call updates the authenticationContextClassReference object. + /// Create an authenticationContextClassReference object, if the ID has not been used. If ID has been used, this call updates the authenticationContextClassReference object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public AuthenticationContextClassReferenceItemRequestBuilderDeleteRequestConfigu } } /// - /// Retrieve the properties and relationships of a authenticationContextClassReference object. + /// Retrieve the properties and relationships of a authenticationContextClassReference object. This API is supported in the following national cloud deployments. /// public class AuthenticationContextClassReferenceItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/AuthenticationMethodModesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/AuthenticationMethodModesRequestBuilder.cs index eaf3c7c7a8b..f57b1c9a988 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/AuthenticationMethodModesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/AuthenticationMethodModesRequestBuilder.cs @@ -42,7 +42,7 @@ public AuthenticationMethodModesRequestBuilder(Dictionary pathPa public AuthenticationMethodModesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/authenticationMethodModes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of all supported authentication methods, or all supported authentication method combinations as a list of authenticationMethodModes objects and their properties. + /// Get a list of all supported authentication methods, or all supported authentication method combinations as a list of authenticationMethodModes objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(AuthenticationMethod return await RequestAdapter.SendAsync(requestInfo, AuthenticationMethodModeDetail.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of all supported authentication methods, or all supported authentication method combinations as a list of authenticationMethodModes objects and their properties. + /// Get a list of all supported authentication methods, or all supported authentication method combinations as a list of authenticationMethodModes objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public AuthenticationMethodModesRequestBuilder WithUrl(string rawUrl) { return new AuthenticationMethodModesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of all supported authentication methods, or all supported authentication method combinations as a list of authenticationMethodModes objects and their properties. + /// Get a list of all supported authentication methods, or all supported authentication method combinations as a list of authenticationMethodModes objects and their properties. This API is supported in the following national cloud deployments. /// public class AuthenticationMethodModesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.cs index b82878f83aa..0ddc74fd047 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.cs @@ -42,7 +42,7 @@ public CombinationConfigurationsRequestBuilder(Dictionary pathPa public CombinationConfigurationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/policies/{authenticationStrengthPolicy%2Did}/combinationConfigurations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the authenticationCombinationConfiguration objects for an authentication strength policy. authenticationCombinationConfiguration represents requirements placed on specific authentication method combinations that require specified variants of those authentication methods to be used when authenticating. Currently, only fido2combinationConfigurations objects are supported. authenticationCombinationConfiguration objects are supported only for custom authentication strengths. + /// Get the authenticationCombinationConfiguration objects for an authentication strength policy. authenticationCombinationConfiguration represents requirements placed on specific authentication method combinations that require specified variants of those authentication methods to be used when authenticating. Currently, only fido2combinationConfigurations objects are supported. authenticationCombinationConfiguration objects are supported only for custom authentication strengths. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetA return await RequestAdapter.SendAsync(requestInfo, AuthenticationCombinationConfigurationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be created, and these may only be created for custom authentication strength policies. + /// Create a new authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be created, and these may only be created for custom authentication strength policies. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(Authenticati return await RequestAdapter.SendAsync(requestInfo, AuthenticationCombinationConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the authenticationCombinationConfiguration objects for an authentication strength policy. authenticationCombinationConfiguration represents requirements placed on specific authentication method combinations that require specified variants of those authentication methods to be used when authenticating. Currently, only fido2combinationConfigurations objects are supported. authenticationCombinationConfiguration objects are supported only for custom authentication strengths. + /// Get the authenticationCombinationConfiguration objects for an authentication strength policy. authenticationCombinationConfiguration represents requirements placed on specific authentication method combinations that require specified variants of those authentication methods to be used when authenticating. Currently, only fido2combinationConfigurations objects are supported. authenticationCombinationConfiguration objects are supported only for custom authentication strengths. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be created, and these may only be created for custom authentication strength policies. + /// Create a new authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be created, and these may only be created for custom authentication strength policies. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public CombinationConfigurationsRequestBuilder WithUrl(string rawUrl) { return new CombinationConfigurationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the authenticationCombinationConfiguration objects for an authentication strength policy. authenticationCombinationConfiguration represents requirements placed on specific authentication method combinations that require specified variants of those authentication methods to be used when authenticating. Currently, only fido2combinationConfigurations objects are supported. authenticationCombinationConfiguration objects are supported only for custom authentication strengths. + /// Get the authenticationCombinationConfiguration objects for an authentication strength policy. authenticationCombinationConfiguration represents requirements placed on specific authentication method combinations that require specified variants of those authentication methods to be used when authenticating. Currently, only fido2combinationConfigurations objects are supported. authenticationCombinationConfiguration objects are supported only for custom authentication strengths. This API is supported in the following national cloud deployments. /// public class CombinationConfigurationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.cs index ce952f5326e..39e76145c09 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AuthenticationCombinationConfigurationItemRequestBuilder(Dictionary - /// Delete an authenticationCombinationConfiguration for a custom authenticationStrengthPolicy object. + /// Delete an authenticationCombinationConfiguration for a custom authenticationStrengthPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an authenticationCombinationConfiguration object. + /// Read the properties and relationships of an authenticationCombinationConfiguration object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, AuthenticationCombinationConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be updated as they are the only type of authenticationCombinationConfiguration that may be created. + /// Update the properties of an authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be updated as they're the only type of authenticationCombinationConfiguration that may be created. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(Authenticat return await RequestAdapter.SendAsync(requestInfo, AuthenticationCombinationConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an authenticationCombinationConfiguration for a custom authenticationStrengthPolicy object. + /// Delete an authenticationCombinationConfiguration for a custom authenticationStrengthPolicy object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an authenticationCombinationConfiguration object. + /// Read the properties and relationships of an authenticationCombinationConfiguration object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be updated as they are the only type of authenticationCombinationConfiguration that may be created. + /// Update the properties of an authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be updated as they're the only type of authenticationCombinationConfiguration that may be created. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public AuthenticationCombinationConfigurationItemRequestBuilderDeleteRequestConf } } /// - /// Read the properties and relationships of an authenticationCombinationConfiguration object. + /// Read the properties and relationships of an authenticationCombinationConfiguration object. This API is supported in the following national cloud deployments. /// public class AuthenticationCombinationConfigurationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsRequestBuilder.cs index 04e27bfa622..e6d327fcca5 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsRequestBuilder.cs @@ -29,7 +29,7 @@ public UpdateAllowedCombinationsRequestBuilder(Dictionary pathPa public UpdateAllowedCombinationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/policies/{authenticationStrengthPolicy%2Did}/updateAllowedCombinations", rawUrl) { } /// - /// Update the allowedCombinations property of an authenticationStrengthPolicy object. To update other properties of an authenticationStrengthPolicy object, use the Update authenticationStrengthPolicy method. + /// Update the allowedCombinations property of an authenticationStrengthPolicy object. To update other properties of an authenticationStrengthPolicy object, use the Update authenticationStrengthPolicy method. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(UpdateAllowedCombin return await RequestAdapter.SendAsync(requestInfo, UpdateAllowedCombinationsResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the allowedCombinations property of an authenticationStrengthPolicy object. To update other properties of an authenticationStrengthPolicy object, use the Update authenticationStrengthPolicy method. + /// Update the allowedCombinations property of an authenticationStrengthPolicy object. To update other properties of an authenticationStrengthPolicy object, use the Update authenticationStrengthPolicy method. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs index 0f515a5c398..8fac5af50c3 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs @@ -29,7 +29,7 @@ public NamedLocationItemRequestBuilder(Dictionary pathParameters public NamedLocationItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/namedLocations/{namedLocation%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a countryNamedLocation object. + /// Delete a countryNamedLocation object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,8 +49,8 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a countryNamedLocation object. - /// Find more info here + /// Retrieve the properties and relationships of an ipNamedLocation object. This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, NamedLocation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a countryNamedLocation object. + /// Update the properties of a countryNamedLocation object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(NamedLocation body, Action(requestInfo, NamedLocation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a countryNamedLocation object. + /// Delete a countryNamedLocation object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a countryNamedLocation object. + /// Retrieve the properties and relationships of an ipNamedLocation object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a countryNamedLocation object. + /// Update the properties of a countryNamedLocation object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public NamedLocationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a countryNamedLocation object. + /// Retrieve the properties and relationships of an ipNamedLocation object. This API is supported in the following national cloud deployments. /// public class NamedLocationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/NamedLocationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/NamedLocationsRequestBuilder.cs index d6b6c80080a..63d1237ecb7 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/NamedLocationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/NamedLocationsRequestBuilder.cs @@ -42,7 +42,7 @@ public NamedLocationsRequestBuilder(Dictionary pathParameters, I public NamedLocationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/namedLocations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of namedLocation objects. + /// Get a list of namedLocation objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, NamedLocationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new namedLocation object. Named locations can be either ipNamedLocation or countryNamedLocation objects. + /// Create a new namedLocation object. Named locations can be either ipNamedLocation or countryNamedLocation objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(NamedLocation body, Action(requestInfo, NamedLocation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of namedLocation objects. + /// Get a list of namedLocation objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new namedLocation object. Named locations can be either ipNamedLocation or countryNamedLocation objects. + /// Create a new namedLocation object. Named locations can be either ipNamedLocation or countryNamedLocation objects. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public NamedLocationsRequestBuilder WithUrl(string rawUrl) { return new NamedLocationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of namedLocation objects. + /// Get a list of namedLocation objects. This API is supported in the following national cloud deployments. /// public class NamedLocationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Policies/Item/ConditionalAccessPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Policies/Item/ConditionalAccessPolicyItemRequestBuilder.cs index 50e268e0bf0..a1863cb69b5 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Policies/Item/ConditionalAccessPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Policies/Item/ConditionalAccessPolicyItemRequestBuilder.cs @@ -29,7 +29,7 @@ public ConditionalAccessPolicyItemRequestBuilder(Dictionary path public ConditionalAccessPolicyItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/policies/{conditionalAccessPolicy%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a conditionalAccessPolicy object. + /// Delete a conditionalAccessPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a conditionalAccessPolicy object. + /// Retrieve the properties and relationships of a conditionalAccessPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, ConditionalAccessPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a conditionalAccessPolicy object. + /// Update the properties of a conditionalAccessPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(ConditionalAccessPolicy bo return await RequestAdapter.SendAsync(requestInfo, ConditionalAccessPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a conditionalAccessPolicy object. + /// Delete a conditionalAccessPolicy object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a conditionalAccessPolicy object. + /// Retrieve the properties and relationships of a conditionalAccessPolicy object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a conditionalAccessPolicy object. + /// Update the properties of a conditionalAccessPolicy object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public ConditionalAccessPolicyItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a conditionalAccessPolicy object. + /// Retrieve the properties and relationships of a conditionalAccessPolicy object. This API is supported in the following national cloud deployments. /// public class ConditionalAccessPolicyItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Policies/PoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Policies/PoliciesRequestBuilder.cs index 00e93954480..f0dddf6e75c 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Policies/PoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Policies/PoliciesRequestBuilder.cs @@ -42,7 +42,7 @@ public PoliciesRequestBuilder(Dictionary pathParameters, IReques public PoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/policies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of conditionalAccessPolicy objects. + /// Retrieve a list of conditionalAccessPolicy objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ConditionalAccessPolicyCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new conditionalAccessPolicy. + /// Create a new conditionalAccessPolicy. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(ConditionalAccessPolicy bod return await RequestAdapter.SendAsync(requestInfo, ConditionalAccessPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of conditionalAccessPolicy objects. + /// Retrieve a list of conditionalAccessPolicy objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new conditionalAccessPolicy. + /// Create a new conditionalAccessPolicy. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PoliciesRequestBuilder WithUrl(string rawUrl) { return new PoliciesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of conditionalAccessPolicy objects. + /// Retrieve a list of conditionalAccessPolicy objects. This API is supported in the following national cloud deployments. /// public class PoliciesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Templates/Item/ConditionalAccessTemplateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Templates/Item/ConditionalAccessTemplateItemRequestBuilder.cs index cc4a71f4158..37c2c085558 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Templates/Item/ConditionalAccessTemplateItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Templates/Item/ConditionalAccessTemplateItemRequestBuilder.cs @@ -29,7 +29,7 @@ public ConditionalAccessTemplateItemRequestBuilder(Dictionary pa public ConditionalAccessTemplateItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/templates/{conditionalAccessTemplate%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of a conditionalAccessTemplate object. + /// Read the properties and relationships of a conditionalAccessTemplate object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, ConditionalAccessTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of a conditionalAccessTemplate object. + /// Read the properties and relationships of a conditionalAccessTemplate object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -82,7 +82,7 @@ public ConditionalAccessTemplateItemRequestBuilder WithUrl(string rawUrl) { return new ConditionalAccessTemplateItemRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of a conditionalAccessTemplate object. + /// Read the properties and relationships of a conditionalAccessTemplate object. This API is supported in the following national cloud deployments. /// public class ConditionalAccessTemplateItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Templates/TemplatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Templates/TemplatesRequestBuilder.cs index 3d556206bb2..1e9b442f648 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Templates/TemplatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Templates/TemplatesRequestBuilder.cs @@ -42,7 +42,7 @@ public TemplatesRequestBuilder(Dictionary pathParameters, IReque public TemplatesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/templates{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the conditionalAccessTemplate objects and their properties. + /// Get a list of the conditionalAccessTemplate objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ConditionalAccessTemplateCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the conditionalAccessTemplate objects and their properties. + /// Get a list of the conditionalAccessTemplate objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public TemplatesRequestBuilder WithUrl(string rawUrl) { return new TemplatesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the conditionalAccessTemplate objects and their properties. + /// Get a list of the conditionalAccessTemplate objects and their properties. This API is supported in the following national cloud deployments. /// public class TemplatesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesGetResponse.cs b/src/Microsoft.Graph/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesGetResponse.cs new file mode 100644 index 00000000000..6f989bfd2ba --- /dev/null +++ b/src/Microsoft.Graph/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Identity.IdentityProviders.AvailableProviderTypes { + public class AvailableProviderTypesGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AvailableProviderTypesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AvailableProviderTypesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.cs index bc4d8334b2c..e3d5b72b739 100644 --- a/src/Microsoft.Graph/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.cs @@ -33,6 +33,26 @@ public AvailableProviderTypesRequestBuilder(string rawUrl, IRequestAdapter reque /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsAvailableProviderTypesGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsAvailableProviderTypesGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AvailableProviderTypesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function availableProviderTypes + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsAvailableProviderTypesGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesResponse.cs b/src/Microsoft.Graph/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesResponse.cs index afcd145d89e..81e0d0d8591 100644 --- a/src/Microsoft.Graph/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesResponse.cs +++ b/src/Microsoft.Graph/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Identity.IdentityProviders.AvailableProviderTypes { - public class AvailableProviderTypesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use availableProviderTypesGetResponse instead.")] + public class AvailableProviderTypesResponse : AvailableProviderTypesGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AvailableProviderTypesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Identity/IdentityProviders/IdentityProvidersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/IdentityProviders/IdentityProvidersRequestBuilder.cs index cbc98d9f25d..a131f9f7743 100644 --- a/src/Microsoft.Graph/Generated/Identity/IdentityProviders/IdentityProvidersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/IdentityProviders/IdentityProvidersRequestBuilder.cs @@ -47,7 +47,7 @@ public IdentityProvidersRequestBuilder(Dictionary pathParameters public IdentityProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/identityProviders{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a collection of identity provider resources that are configured for a tenant, and that are derived from identityProviderBase. For an Azure AD tenant, the providers can be socialIdentityProviders or builtinIdentityProviders objects. For an Azure AD B2C, the providers can be socialIdentityProvider, or appleManagedIdentityProvider objects. + /// Get a collection of identity provider resources that are configured for a tenant, and that are derived from identityProviderBase. For an Azure AD tenant, the providers can be socialIdentityProviders or builtinIdentityProviders objects. For an Azure AD B2C, the providers can be socialIdentityProvider, or appleManagedIdentityProvider objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, IdentityProviderBaseCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an identity provider object that is of the type specified in the request body. Among the types of providers derived from identityProviderBase, you can currently create a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently create a socialIdentityProvider, or an appleManagedIdentityProvider resource. + /// Create an identity provider object that is of the type specified in the request body. Among the types of providers derived from identityProviderBase, you can currently create a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently create a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(IdentityProviderBase body, Act return await RequestAdapter.SendAsync(requestInfo, IdentityProviderBase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a collection of identity provider resources that are configured for a tenant, and that are derived from identityProviderBase. For an Azure AD tenant, the providers can be socialIdentityProviders or builtinIdentityProviders objects. For an Azure AD B2C, the providers can be socialIdentityProvider, or appleManagedIdentityProvider objects. + /// Get a collection of identity provider resources that are configured for a tenant, and that are derived from identityProviderBase. For an Azure AD tenant, the providers can be socialIdentityProviders or builtinIdentityProviders objects. For an Azure AD B2C, the providers can be socialIdentityProvider, or appleManagedIdentityProvider objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an identity provider object that is of the type specified in the request body. Among the types of providers derived from identityProviderBase, you can currently create a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently create a socialIdentityProvider, or an appleManagedIdentityProvider resource. + /// Create an identity provider object that is of the type specified in the request body. Among the types of providers derived from identityProviderBase, you can currently create a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently create a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public IdentityProvidersRequestBuilder WithUrl(string rawUrl) { return new IdentityProvidersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a collection of identity provider resources that are configured for a tenant, and that are derived from identityProviderBase. For an Azure AD tenant, the providers can be socialIdentityProviders or builtinIdentityProviders objects. For an Azure AD B2C, the providers can be socialIdentityProvider, or appleManagedIdentityProvider objects. + /// Get a collection of identity provider resources that are configured for a tenant, and that are derived from identityProviderBase. For an Azure AD tenant, the providers can be socialIdentityProviders or builtinIdentityProviders objects. For an Azure AD B2C, the providers can be socialIdentityProvider, or appleManagedIdentityProvider objects. This API is supported in the following national cloud deployments. /// public class IdentityProvidersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Identity/IdentityProviders/Item/IdentityProviderBaseItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/IdentityProviders/Item/IdentityProviderBaseItemRequestBuilder.cs index 67641667b85..8581c45b750 100644 --- a/src/Microsoft.Graph/Generated/Identity/IdentityProviders/Item/IdentityProviderBaseItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/IdentityProviders/Item/IdentityProviderBaseItemRequestBuilder.cs @@ -29,7 +29,7 @@ public IdentityProviderBaseItemRequestBuilder(Dictionary pathPar public IdentityProviderBaseItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/identityProviders/{identityProviderBase%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an identity provider resource that is of the type specified by the id in the request. Among the types of providers derived from identityProviderBase, you can currently delete a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently delete a socialIdentityProvider, or an appleManagedIdentityProvider resource. + /// Delete an identity provider resource that is of the type specified by the id in the request. Among the types of providers derived from identityProviderBase, you can currently delete a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently delete a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get the properties and relationships of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently get a socialIdentityProvider or a builtinIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently get a socialIdentityProvider, or an appleManagedIdentityProvider resource. + /// Get the properties and relationships of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently get a socialIdentityProvider or a builtinIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently get a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, IdentityProviderBase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently update a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently update a socialIdentityProvider, or an appleManagedIdentityProvider resource. + /// Update the properties of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently update a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently update a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(IdentityProviderBase body, Ac return await RequestAdapter.SendAsync(requestInfo, IdentityProviderBase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an identity provider resource that is of the type specified by the id in the request. Among the types of providers derived from identityProviderBase, you can currently delete a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently delete a socialIdentityProvider, or an appleManagedIdentityProvider resource. + /// Delete an identity provider resource that is of the type specified by the id in the request. Among the types of providers derived from identityProviderBase, you can currently delete a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently delete a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties and relationships of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently get a socialIdentityProvider or a builtinIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently get a socialIdentityProvider, or an appleManagedIdentityProvider resource. + /// Get the properties and relationships of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently get a socialIdentityProvider or a builtinIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently get a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently update a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently update a socialIdentityProvider, or an appleManagedIdentityProvider resource. + /// Update the properties of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently update a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently update a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public IdentityProviderBaseItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the properties and relationships of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently get a socialIdentityProvider or a builtinIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently get a socialIdentityProvider, or an appleManagedIdentityProvider resource. + /// Get the properties and relationships of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently get a socialIdentityProvider or a builtinIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently get a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is supported in the following national cloud deployments. /// public class IdentityProviderBaseItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Identity/UserFlowAttributes/Item/IdentityUserFlowAttributeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/UserFlowAttributes/Item/IdentityUserFlowAttributeItemRequestBuilder.cs index 49b9a5db5e8..f00a3da7b0d 100644 --- a/src/Microsoft.Graph/Generated/Identity/UserFlowAttributes/Item/IdentityUserFlowAttributeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/UserFlowAttributes/Item/IdentityUserFlowAttributeItemRequestBuilder.cs @@ -29,7 +29,7 @@ public IdentityUserFlowAttributeItemRequestBuilder(Dictionary pa public IdentityUserFlowAttributeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/userFlowAttributes/{identityUserFlowAttribute%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an identityUserFlowAttribute. Only custom user flow attributes can be deleted. + /// Delete a custom identityUserFlowAttribute. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a identityUserFlowAttribute object. + /// Retrieve the properties and relationships of a identityUserFlowAttribute object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, IdentityUserFlowAttribute.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a identityUserFlowAttribute object. Only custom user flow attributes can be updated. + /// Update the properties of a custom identityUserFlowAttribute object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(IdentityUserFlowAttribut return await RequestAdapter.SendAsync(requestInfo, IdentityUserFlowAttribute.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an identityUserFlowAttribute. Only custom user flow attributes can be deleted. + /// Delete a custom identityUserFlowAttribute. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a identityUserFlowAttribute object. + /// Retrieve the properties and relationships of a identityUserFlowAttribute object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a identityUserFlowAttribute object. Only custom user flow attributes can be updated. + /// Update the properties of a custom identityUserFlowAttribute object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public IdentityUserFlowAttributeItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a identityUserFlowAttribute object. + /// Retrieve the properties and relationships of a identityUserFlowAttribute object. This API is supported in the following national cloud deployments. /// public class IdentityUserFlowAttributeItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Identity/UserFlowAttributes/UserFlowAttributesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/UserFlowAttributes/UserFlowAttributesRequestBuilder.cs index 6c91a88058e..232942f6025 100644 --- a/src/Microsoft.Graph/Generated/Identity/UserFlowAttributes/UserFlowAttributesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/UserFlowAttributes/UserFlowAttributesRequestBuilder.cs @@ -42,7 +42,7 @@ public UserFlowAttributesRequestBuilder(Dictionary pathParameter public UserFlowAttributesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/userFlowAttributes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of identityUserFlowAttribute objects. + /// Retrieve a list of identityUserFlowAttribute objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, IdentityUserFlowAttributeCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new identityUserFlowAttribute object. + /// Create a new custom identityUserFlowAttribute object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(IdentityUserFlowAttribute return await RequestAdapter.SendAsync(requestInfo, IdentityUserFlowAttribute.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of identityUserFlowAttribute objects. + /// Retrieve a list of identityUserFlowAttribute objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new identityUserFlowAttribute object. + /// Create a new custom identityUserFlowAttribute object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public UserFlowAttributesRequestBuilder WithUrl(string rawUrl) { return new UserFlowAttributesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of identityUserFlowAttribute objects. + /// Retrieve a list of identityUserFlowAttribute objects. This API is supported in the following national cloud deployments. /// public class UserFlowAttributesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/DefinitionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/DefinitionsRequestBuilder.cs index 36f7ef6a6a7..31b6de02331 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/DefinitionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/DefinitionsRequestBuilder.cs @@ -51,7 +51,7 @@ public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); } /// - /// Get a list of the accessReviewScheduleDefinition objects and their properties. + /// Get a list of the accessReviewScheduleDefinition objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -71,7 +71,7 @@ public async Task GetAsync(Act return await RequestAdapter.SendAsync(requestInfo, AccessReviewScheduleDefinitionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new accessReviewScheduleDefinition object. + /// Create a new accessReviewScheduleDefinition object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -93,7 +93,7 @@ public async Task PostAsync(AccessReviewSchedule return await RequestAdapter.SendAsync(requestInfo, AccessReviewScheduleDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the accessReviewScheduleDefinition objects and their properties. + /// Get a list of the accessReviewScheduleDefinition objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -119,7 +119,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new accessReviewScheduleDefinition object. + /// Create a new accessReviewScheduleDefinition object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -154,7 +154,7 @@ public DefinitionsRequestBuilder WithUrl(string rawUrl) { return new DefinitionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the accessReviewScheduleDefinition objects and their properties. + /// Get a list of the accessReviewScheduleDefinition objects and their properties. This API is supported in the following national cloud deployments. /// public class DefinitionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..e0a46970e9a --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.IdentityGovernance.AccessReviews.Definitions.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(AccessReviewScheduleDefinition.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index 5f23522f25b..4c7f61b6350 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -35,6 +35,26 @@ public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter re /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index d71c4157356..c74ed2a8fae 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.IdentityGovernance.AccessReviews.Definitions.FilterByCurrentUserWithOn { - public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use filterByCurrentUserWithOnGetResponse instead.")] + public class FilterByCurrentUserWithOnResponse : FilterByCurrentUserWithOnGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(AccessReviewScheduleDefinition.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/AccessReviewScheduleDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/AccessReviewScheduleDefinitionItemRequestBuilder.cs index 2b5d98f9a27..1bfd9038708 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/AccessReviewScheduleDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/AccessReviewScheduleDefinitionItemRequestBuilder.cs @@ -39,7 +39,7 @@ public AccessReviewScheduleDefinitionItemRequestBuilder(Dictionary - /// Deletes an accessReviewScheduleDefinition object. + /// Deletes an accessReviewScheduleDefinition object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -59,7 +59,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an accessReviewScheduleDefinition object. To retrieve the instances of the access review series, use the list accessReviewInstance API. + /// Read the properties and relationships of an accessReviewScheduleDefinition object. To retrieve the instances of the access review series, use the list accessReviewInstance API. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -101,7 +101,7 @@ public async Task PatchAsync(AccessReviewSchedul return await RequestAdapter.SendAsync(requestInfo, AccessReviewScheduleDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes an accessReviewScheduleDefinition object. + /// Deletes an accessReviewScheduleDefinition object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -125,7 +125,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an accessReviewScheduleDefinition object. To retrieve the instances of the access review series, use the list accessReviewInstance API. + /// Read the properties and relationships of an accessReviewScheduleDefinition object. To retrieve the instances of the access review series, use the list accessReviewInstance API. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -202,7 +202,7 @@ public AccessReviewScheduleDefinitionItemRequestBuilderDeleteRequestConfiguratio } } /// - /// Read the properties and relationships of an accessReviewScheduleDefinition object. To retrieve the instances of the access review series, use the list accessReviewInstance API. + /// Read the properties and relationships of an accessReviewScheduleDefinition object. To retrieve the instances of the access review series, use the list accessReviewInstance API. This API is supported in the following national cloud deployments. /// public class AccessReviewScheduleDefinitionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..5a63bc407a6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.IdentityGovernance.AccessReviews.Definitions.Item.Instances.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(AccessReviewInstance.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index b775f360ceb..d17906a33da 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -35,6 +35,26 @@ public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter re /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index dac55083bca..6abe650332c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.IdentityGovernance.AccessReviews.Definitions.Item.Instances.FilterByCurrentUserWithOn { - public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use filterByCurrentUserWithOnGetResponse instead.")] + public class FilterByCurrentUserWithOnResponse : FilterByCurrentUserWithOnGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(AccessReviewInstance.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/InstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/InstancesRequestBuilder.cs index af639848607..8f066bd4733 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/InstancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/InstancesRequestBuilder.cs @@ -51,7 +51,7 @@ public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); } /// - /// Get a list of the accessReviewInstance objects and their properties. + /// Get a list of the accessReviewInstance objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public async Task PostAsync(AccessReviewInstance body, Act return await RequestAdapter.SendAsync(requestInfo, AccessReviewInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the accessReviewInstance objects and their properties. + /// Get a list of the accessReviewInstance objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -153,7 +153,7 @@ public InstancesRequestBuilder WithUrl(string rawUrl) { return new InstancesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the accessReviewInstance objects and their properties. + /// Get a list of the accessReviewInstance objects and their properties. This API is supported in the following national cloud deployments. /// public class InstancesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.cs index 6c1eb370331..6a1396bfc3c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRecommendationsRequestBuilder(Dictionary pathParame public AcceptRecommendationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/acceptRecommendations", rawUrl) { } /// - /// Allows the acceptance of recommendations on all accessReviewInstanceDecisionItem objects that have not been reviewed on an accessReviewInstance object for which the calling user is a reviewer. + /// Allows the acceptance of recommendations on all accessReviewInstanceDecisionItem objects that haven't been reviewed on an accessReviewInstance object for which the calling user is a reviewer. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Allows the acceptance of recommendations on all accessReviewInstanceDecisionItem objects that have not been reviewed on an accessReviewInstance object for which the calling user is a reviewer. + /// Allows the acceptance of recommendations on all accessReviewInstanceDecisionItem objects that haven't been reviewed on an accessReviewInstance object for which the calling user is a reviewer. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/AccessReviewInstanceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/AccessReviewInstanceItemRequestBuilder.cs index b49c0eedef9..aeeb25a74aa 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/AccessReviewInstanceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/AccessReviewInstanceItemRequestBuilder.cs @@ -93,7 +93,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an accessReviewInstance object. + /// Read the properties and relationships of an accessReviewInstance object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -159,7 +159,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an accessReviewInstance object. + /// Read the properties and relationships of an accessReviewInstance object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -236,7 +236,7 @@ public AccessReviewInstanceItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of an accessReviewInstance object. + /// Read the properties and relationships of an accessReviewInstance object. This API is supported in the following national cloud deployments. /// public class AccessReviewInstanceItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ApplyDecisions/ApplyDecisionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ApplyDecisions/ApplyDecisionsRequestBuilder.cs index 9da57f539db..8ebe720b10b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ApplyDecisions/ApplyDecisionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ApplyDecisions/ApplyDecisionsRequestBuilder.cs @@ -28,7 +28,7 @@ public ApplyDecisionsRequestBuilder(Dictionary pathParameters, I public ApplyDecisionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/applyDecisions", rawUrl) { } /// - /// Apply review decisions on an accessReviewInstance if the decisions were not applied automatically because the autoApplyDecisionsEnabled property is false in the review's accessReviewScheduleSettings. The status of the accessReviewInstance must be Completed to call this method. + /// Apply review decisions on an accessReviewInstance if the decisions were not applied automatically because the autoApplyDecisionsEnabled property is false in the review's accessReviewScheduleSettings. The status of the accessReviewInstance must be Completed to call this method. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Apply review decisions on an accessReviewInstance if the decisions were not applied automatically because the autoApplyDecisionsEnabled property is false in the review's accessReviewScheduleSettings. The status of the accessReviewInstance must be Completed to call this method. + /// Apply review decisions on an accessReviewInstance if the decisions were not applied automatically because the autoApplyDecisionsEnabled property is false in the review's accessReviewScheduleSettings. The status of the accessReviewInstance must be Completed to call this method. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.cs index 774037e46bd..3da917c6feb 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.cs @@ -28,7 +28,7 @@ public BatchRecordDecisionsRequestBuilder(Dictionary pathParamet public BatchRecordDecisionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/batchRecordDecisions", rawUrl) { } /// - /// Enables reviewers to review all accessReviewInstanceDecisionItem objects in batches by using principalId, resourceId, or neither. + /// Enables reviewers to review all accessReviewInstanceDecisionItem objects in batches by using principalId, resourceId, or neither. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(BatchRecordDecisionsPostRequestBody body, Action - /// Enables reviewers to review all accessReviewInstanceDecisionItem objects in batches by using principalId, resourceId, or neither. + /// Enables reviewers to review all accessReviewInstanceDecisionItem objects in batches by using principalId, resourceId, or neither. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ContactedReviewers/ContactedReviewersRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ContactedReviewers/ContactedReviewersRequestBuilder.cs index c3d8d957ae7..c44d744dfe3 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ContactedReviewers/ContactedReviewersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ContactedReviewers/ContactedReviewersRequestBuilder.cs @@ -42,7 +42,7 @@ public ContactedReviewersRequestBuilder(Dictionary pathParameter public ContactedReviewersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/contactedReviewers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the reviewers for an access review instance, irrespective of whether or not they have received a notification. The reviewers are represented by an accessReviewReviewer object. A list of zero or more objects are returned, including all of their nested properties. + /// Get the reviewers for an access review instance, irrespective of whether or not they have received a notification. The reviewers are represented by an accessReviewReviewer object. A list of zero or more objects are returned, including all of their nested properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(AccessReviewReviewer body, Act return await RequestAdapter.SendAsync(requestInfo, AccessReviewReviewer.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the reviewers for an access review instance, irrespective of whether or not they have received a notification. The reviewers are represented by an accessReviewReviewer object. A list of zero or more objects are returned, including all of their nested properties. + /// Get the reviewers for an access review instance, irrespective of whether or not they have received a notification. The reviewers are represented by an accessReviewReviewer object. A list of zero or more objects are returned, including all of their nested properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public ContactedReviewersRequestBuilder WithUrl(string rawUrl) { return new ContactedReviewersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the reviewers for an access review instance, irrespective of whether or not they have received a notification. The reviewers are represented by an accessReviewReviewer object. A list of zero or more objects are returned, including all of their nested properties. + /// Get the reviewers for an access review instance, irrespective of whether or not they have received a notification. The reviewers are represented by an accessReviewReviewer object. A list of zero or more objects are returned, including all of their nested properties. This API is supported in the following national cloud deployments. /// public class ContactedReviewersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/DecisionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/DecisionsRequestBuilder.cs index 4f159b7d940..c05585e1112 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/DecisionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/DecisionsRequestBuilder.cs @@ -51,7 +51,7 @@ public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); } /// - /// Retrieve the accessReviewInstanceDecisionItem objects for a specific accessReviewInstance. A list of zero or more accessReviewInstanceDecisionItem objects are returned, including all of their nested properties. + /// Retrieve the accessReviewInstanceDecisionItem objects for a specific accessReviewInstance. A list of zero or more accessReviewInstanceDecisionItem objects are returned, including all of their nested properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public async Task PostAsync(AccessReviewInstan return await RequestAdapter.SendAsync(requestInfo, AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the accessReviewInstanceDecisionItem objects for a specific accessReviewInstance. A list of zero or more accessReviewInstanceDecisionItem objects are returned, including all of their nested properties. + /// Retrieve the accessReviewInstanceDecisionItem objects for a specific accessReviewInstance. A list of zero or more accessReviewInstanceDecisionItem objects are returned, including all of their nested properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -153,7 +153,7 @@ public DecisionsRequestBuilder WithUrl(string rawUrl) { return new DecisionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the accessReviewInstanceDecisionItem objects for a specific accessReviewInstance. A list of zero or more accessReviewInstanceDecisionItem objects are returned, including all of their nested properties. + /// Retrieve the accessReviewInstanceDecisionItem objects for a specific accessReviewInstance. A list of zero or more accessReviewInstanceDecisionItem objects are returned, including all of their nested properties. This API is supported in the following national cloud deployments. /// public class DecisionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..99dc8bb8910 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Decisions.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index c63df46870c..fea20c0f02d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -35,6 +35,26 @@ public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter re /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index 16f58d885ac..c5674a1b491 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Decisions.FilterByCurrentUserWithOn { - public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use filterByCurrentUserWithOnGetResponse instead.")] + public class FilterByCurrentUserWithOnResponse : FilterByCurrentUserWithOnGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.cs index 603cf697e39..257993f3518 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an accessReviewInstanceDecisionItem object. + /// Read the properties and relationships of an accessReviewInstanceDecisionItem object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an accessReviewInstanceDecisionItem object. + /// Read the properties and relationships of an accessReviewInstanceDecisionItem object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public AccessReviewInstanceDecisionItemItemRequestBuilderDeleteRequestConfigurat } } /// - /// Read the properties and relationships of an accessReviewInstanceDecisionItem object. + /// Read the properties and relationships of an accessReviewInstanceDecisionItem object. This API is supported in the following national cloud deployments. /// public class AccessReviewInstanceDecisionItemItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ResetDecisions/ResetDecisionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ResetDecisions/ResetDecisionsRequestBuilder.cs index 013ba660960..584851e0c24 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ResetDecisions/ResetDecisionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ResetDecisions/ResetDecisionsRequestBuilder.cs @@ -28,7 +28,7 @@ public ResetDecisionsRequestBuilder(Dictionary pathParameters, I public ResetDecisionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/resetDecisions", rawUrl) { } /// - /// Resets all accessReviewInstanceDecisionItem objects on an accessReviewInstance to notReviewed. + /// Resets all accessReviewInstanceDecisionItem objects on an accessReviewInstance to notReviewed. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Resets all accessReviewInstanceDecisionItem objects on an accessReviewInstance to notReviewed. + /// Resets all accessReviewInstanceDecisionItem objects on an accessReviewInstance to notReviewed. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/SendReminder/SendReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/SendReminder/SendReminderRequestBuilder.cs index 3715119949f..f34c67940ba 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/SendReminder/SendReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/SendReminder/SendReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SendReminderRequestBuilder(Dictionary pathParameters, IRe public SendReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/sendReminder", rawUrl) { } /// - /// Send a reminder to the reviewers of an active accessReviewInstance. + /// Send a reminder to the reviewers of an active accessReviewInstance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Send a reminder to the reviewers of an active accessReviewInstance. + /// Send a reminder to the reviewers of an active accessReviewInstance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..f885c171887 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(AccessReviewStage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index d35f1c36415..7346c90ed54 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -35,6 +35,26 @@ public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter re /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index 645dbbd338e..07917da1bf5 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.FilterByCurrentUserWithOn { - public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use filterByCurrentUserWithOnGetResponse instead.")] + public class FilterByCurrentUserWithOnResponse : FilterByCurrentUserWithOnGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(AccessReviewStage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/AccessReviewStageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/AccessReviewStageItemRequestBuilder.cs index 850fd5581f8..d26dd5eb333 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/AccessReviewStageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/AccessReviewStageItemRequestBuilder.cs @@ -58,7 +58,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of an accessReviewStage object. + /// Retrieve the properties and relationships of an accessReviewStage object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -78,7 +78,7 @@ public async Task GetAsync(Action(requestInfo, AccessReviewStage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an accessReviewStage object. Only the reviewers and fallbackReviewers properties can be updated. You can only add reviewers to the fallbackReviewers property but can't remove existing fallbackReviewers. To update an accessReviewStage, its status must be NotStarted, Initializing, or InProgress. + /// Update the properties of an accessReviewStage object. Only the reviewers and fallbackReviewers properties can be updated. You can only add reviewers to the fallbackReviewers property but can't remove existing fallbackReviewers. To update an accessReviewStage, its status must be NotStarted, Initializing, or InProgress. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -124,7 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of an accessReviewStage object. + /// Retrieve the properties and relationships of an accessReviewStage object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -150,7 +150,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an accessReviewStage object. Only the reviewers and fallbackReviewers properties can be updated. You can only add reviewers to the fallbackReviewers property but can't remove existing fallbackReviewers. To update an accessReviewStage, its status must be NotStarted, Initializing, or InProgress. + /// Update the properties of an accessReviewStage object. Only the reviewers and fallbackReviewers properties can be updated. You can only add reviewers to the fallbackReviewers property but can't remove existing fallbackReviewers. To update an accessReviewStage, its status must be NotStarted, Initializing, or InProgress. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -201,7 +201,7 @@ public AccessReviewStageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of an accessReviewStage object. + /// Retrieve the properties and relationships of an accessReviewStage object. This API is supported in the following national cloud deployments. /// public class AccessReviewStageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/DecisionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/DecisionsRequestBuilder.cs index 65c408db7a6..f37e04f036f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/DecisionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/DecisionsRequestBuilder.cs @@ -51,7 +51,7 @@ public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); } /// - /// Get the decisions from a stage in a multi-stage access review. The decisions in an accessReviewStage object are represented by an accessReviewInstanceDecisionItem object. + /// Get the decisions from a stage in a multi-stage access review. The decisions in an accessReviewStage object are represented by an accessReviewInstanceDecisionItem object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public async Task PostAsync(AccessReviewInstan return await RequestAdapter.SendAsync(requestInfo, AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the decisions from a stage in a multi-stage access review. The decisions in an accessReviewStage object are represented by an accessReviewInstanceDecisionItem object. + /// Get the decisions from a stage in a multi-stage access review. The decisions in an accessReviewStage object are represented by an accessReviewInstanceDecisionItem object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -153,7 +153,7 @@ public DecisionsRequestBuilder WithUrl(string rawUrl) { return new DecisionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the decisions from a stage in a multi-stage access review. The decisions in an accessReviewStage object are represented by an accessReviewInstanceDecisionItem object. + /// Get the decisions from a stage in a multi-stage access review. The decisions in an accessReviewStage object are represented by an accessReviewInstanceDecisionItem object. This API is supported in the following national cloud deployments. /// public class DecisionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..c3636a6ef4b --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index e2b031047cd..902682a37ce 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -35,6 +35,26 @@ public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter re /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index f477a54aa39..fc508253d33 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn { - public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use filterByCurrentUserWithOnGetResponse instead.")] + public class FilterByCurrentUserWithOnResponse : FilterByCurrentUserWithOnGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.cs index 4ed8e7e3dd4..52f0505e7a7 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an accessReviewInstanceDecisionItem object. + /// Read the properties and relationships of an accessReviewInstanceDecisionItem object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -73,7 +73,7 @@ public async Task GetAsync(Action(requestInfo, AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update access decisions, known as accessReviewInstanceDecisionItems, for which the user is the reviewer. + /// Update access decisions, known as accessReviewInstanceDecisionItems, for which the user is the reviewer. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -119,7 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an accessReviewInstanceDecisionItem object. + /// Read the properties and relationships of an accessReviewInstanceDecisionItem object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -145,7 +145,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update access decisions, known as accessReviewInstanceDecisionItems, for which the user is the reviewer. + /// Update access decisions, known as accessReviewInstanceDecisionItems, for which the user is the reviewer. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -196,7 +196,7 @@ public AccessReviewInstanceDecisionItemItemRequestBuilderDeleteRequestConfigurat } } /// - /// Read the properties and relationships of an accessReviewInstanceDecisionItem object. + /// Read the properties and relationships of an accessReviewInstanceDecisionItem object. This API is supported in the following national cloud deployments. /// public class AccessReviewInstanceDecisionItemItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Stop/StopRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Stop/StopRequestBuilder.cs index 62db590a362..68d78b471e4 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Stop/StopRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Stop/StopRequestBuilder.cs @@ -28,7 +28,7 @@ public StopRequestBuilder(Dictionary pathParameters, IRequestAda public StopRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/stop", rawUrl) { } /// - /// Stop an access review stage that is inProgress. After the access review stage stops, the stage status will be Completed and the reviewers can no longer give input. If there are subsequent stages that depend on the completed stage, the next stage will be created. The accessReviewInstanceDecisionItem objects will always reflect the last decisions recorded across all stages at that given time, regardless of the status of the stages. + /// Stop an access review stage that is inProgress. After the access review stage stops, the stage status will be Completed and the reviewers can no longer give input. If there are subsequent stages that depend on the completed stage, the next stage will be created. The accessReviewInstanceDecisionItem objects will always reflect the last decisions recorded across all stages at that given time, regardless of the status of the stages. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action r await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Stop an access review stage that is inProgress. After the access review stage stops, the stage status will be Completed and the reviewers can no longer give input. If there are subsequent stages that depend on the completed stage, the next stage will be created. The accessReviewInstanceDecisionItem objects will always reflect the last decisions recorded across all stages at that given time, regardless of the status of the stages. + /// Stop an access review stage that is inProgress. After the access review stage stops, the stage status will be Completed and the reviewers can no longer give input. If there are subsequent stages that depend on the completed stage, the next stage will be created. The accessReviewInstanceDecisionItem objects will always reflect the last decisions recorded across all stages at that given time, regardless of the status of the stages. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/StagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/StagesRequestBuilder.cs index 58737b6fae6..556126ad651 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/StagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/StagesRequestBuilder.cs @@ -51,7 +51,7 @@ public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); } /// - /// Retrieve the stages in a multi-stage access review instance. + /// Retrieve the stages in a multi-stage access review instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public async Task PostAsync(AccessReviewStage body, Action(requestInfo, AccessReviewStage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the stages in a multi-stage access review instance. + /// Retrieve the stages in a multi-stage access review instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -153,7 +153,7 @@ public StagesRequestBuilder WithUrl(string rawUrl) { return new StagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the stages in a multi-stage access review instance. + /// Retrieve the stages in a multi-stage access review instance. This API is supported in the following national cloud deployments. /// public class StagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stop/StopRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stop/StopRequestBuilder.cs index 1d91f60a27c..e39c018636d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stop/StopRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stop/StopRequestBuilder.cs @@ -28,7 +28,7 @@ public StopRequestBuilder(Dictionary pathParameters, IRequestAda public StopRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stop", rawUrl) { } /// - /// Stop a currently active accessReviewInstance. After the access review instance stops, the instance status is marked as Completed, the reviewers can no longer give input, and the access review decisions are applied. Stopping an instance will not stop future instances. To prevent a recurring access review from starting future instances, update the schedule definition to change its scheduled end date. + /// Stop a currently active accessReviewInstance. After the access review instance stops, the instance status is marked as Completed, the reviewers can no longer give input, and the access review decisions are applied. Stopping an instance will not stop future instances. To prevent a recurring access review from starting future instances, update the schedule definition to change its scheduled end date. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action r await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Stop a currently active accessReviewInstance. After the access review instance stops, the instance status is marked as Completed, the reviewers can no longer give input, and the access review decisions are applied. Stopping an instance will not stop future instances. To prevent a recurring access review from starting future instances, update the schedule definition to change its scheduled end date. + /// Stop a currently active accessReviewInstance. After the access review instance stops, the instance status is marked as Completed, the reviewers can no longer give input, and the access review decisions are applied. Stopping an instance will not stop future instances. To prevent a recurring access review from starting future instances, update the schedule definition to change its scheduled end date. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/HistoryDefinitionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/HistoryDefinitionsRequestBuilder.cs index 76bf399a5e5..5329451356d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/HistoryDefinitionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/HistoryDefinitionsRequestBuilder.cs @@ -42,7 +42,7 @@ public HistoryDefinitionsRequestBuilder(Dictionary pathParameter public HistoryDefinitionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/historyDefinitions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the accessReviewHistoryDefinition objects created in the last 30 days, including all nested properties. + /// Retrieve the accessReviewHistoryDefinition objects created in the last 30 days, including all nested properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Acti return await RequestAdapter.SendAsync(requestInfo, AccessReviewHistoryDefinitionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new accessReviewHistoryDefinition object. + /// Create a new accessReviewHistoryDefinition object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(AccessReviewHistoryDe return await RequestAdapter.SendAsync(requestInfo, AccessReviewHistoryDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the accessReviewHistoryDefinition objects created in the last 30 days, including all nested properties. + /// Retrieve the accessReviewHistoryDefinition objects created in the last 30 days, including all nested properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new accessReviewHistoryDefinition object. + /// Create a new accessReviewHistoryDefinition object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public HistoryDefinitionsRequestBuilder WithUrl(string rawUrl) { return new HistoryDefinitionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the accessReviewHistoryDefinition objects created in the last 30 days, including all nested properties. + /// Retrieve the accessReviewHistoryDefinition objects created in the last 30 days, including all nested properties. This API is supported in the following national cloud deployments. /// public class HistoryDefinitionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/AccessReviewHistoryDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/AccessReviewHistoryDefinitionItemRequestBuilder.cs index 1cbc10a82ea..aa8548a1010 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/AccessReviewHistoryDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/AccessReviewHistoryDefinitionItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve an accessReviewHistoryDefinition object by its identifier. All the properties of the access review history definition object are returned. If the definition is 30 days or older, a 404 Not Found error is returned. + /// Retrieve an accessReviewHistoryDefinition object by its identifier. All the properties of the access review history definition object are returned. If the definition is 30 days or older, a 404 Not Found error is returned. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve an accessReviewHistoryDefinition object by its identifier. All the properties of the access review history definition object are returned. If the definition is 30 days or older, a 404 Not Found error is returned. + /// Retrieve an accessReviewHistoryDefinition object by its identifier. All the properties of the access review history definition object are returned. If the definition is 30 days or older, a 404 Not Found error is returned. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public AccessReviewHistoryDefinitionItemRequestBuilderDeleteRequestConfiguration } } /// - /// Retrieve an accessReviewHistoryDefinition object by its identifier. All the properties of the access review history definition object are returned. If the definition is 30 days or older, a 404 Not Found error is returned. + /// Retrieve an accessReviewHistoryDefinition object by its identifier. All the properties of the access review history definition object are returned. If the definition is 30 days or older, a 404 Not Found error is returned. This API is supported in the following national cloud deployments. /// public class AccessReviewHistoryDefinitionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/InstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/InstancesRequestBuilder.cs index 588020238c6..fdc97f58189 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/InstancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/InstancesRequestBuilder.cs @@ -42,7 +42,7 @@ public InstancesRequestBuilder(Dictionary pathParameters, IReque public InstancesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/historyDefinitions/{accessReviewHistoryDefinition%2Did}/instances{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the instances of an access review history definition created in the last 30 days. + /// Retrieve the instances of an access review history definition created in the last 30 days. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(AccessReviewHistoryInst return await RequestAdapter.SendAsync(requestInfo, AccessReviewHistoryInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the instances of an access review history definition created in the last 30 days. + /// Retrieve the instances of an access review history definition created in the last 30 days. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public InstancesRequestBuilder WithUrl(string rawUrl) { return new InstancesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the instances of an access review history definition created in the last 30 days. + /// Retrieve the instances of an access review history definition created in the last 30 days. This API is supported in the following national cloud deployments. /// public class InstancesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/Item/GenerateDownloadUri/GenerateDownloadUriRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/Item/GenerateDownloadUri/GenerateDownloadUriRequestBuilder.cs index e2b399b1986..3dc4bf99b58 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/Item/GenerateDownloadUri/GenerateDownloadUriRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/Item/GenerateDownloadUri/GenerateDownloadUriRequestBuilder.cs @@ -29,7 +29,7 @@ public GenerateDownloadUriRequestBuilder(Dictionary pathParamete public GenerateDownloadUriRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/historyDefinitions/{accessReviewHistoryDefinition%2Did}/instances/{accessReviewHistoryInstance%2Did}/generateDownloadUri", rawUrl) { } /// - /// Generates a URI for an accessReviewHistoryInstance object the status for which is done. Each URI can be used to retrieve the instance's review history data. Each URI is valid for 24 hours and can be retrieved by fetching the downloadUri property from the accessReviewHistoryInstance object. + /// Generates a URI for an accessReviewHistoryInstance object the status for which is done. Each URI can be used to retrieve the instance's review history data. Each URI is valid for 24 hours and can be retrieved by fetching the downloadUri property from the accessReviewHistoryInstance object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, AccessReviewHistoryInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Generates a URI for an accessReviewHistoryInstance object the status for which is done. Each URI can be used to retrieve the instance's review history data. Each URI is valid for 24 hours and can be retrieved by fetching the downloadUri property from the accessReviewHistoryInstance object. + /// Generates a URI for an accessReviewHistoryInstance object the status for which is done. Each URI can be used to retrieve the instance's review history data. Each URI is valid for 24 hours and can be retrieved by fetching the downloadUri property from the accessReviewHistoryInstance object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/AppConsentRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/AppConsentRequestsRequestBuilder.cs index a3e5eb01932..d3bd45886e2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/AppConsentRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/AppConsentRequestsRequestBuilder.cs @@ -51,7 +51,7 @@ public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); } /// - /// Retrieve appConsentRequest objects and their properties. + /// Retrieve appConsentRequest objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public async Task PostAsync(AppConsentRequest body, Action(requestInfo, AppConsentRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve appConsentRequest objects and their properties. + /// Retrieve appConsentRequest objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -153,7 +153,7 @@ public AppConsentRequestsRequestBuilder WithUrl(string rawUrl) { return new AppConsentRequestsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve appConsentRequest objects and their properties. + /// Retrieve appConsentRequest objects and their properties. This API is supported in the following national cloud deployments. /// public class AppConsentRequestsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..f5071dbc84b --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.IdentityGovernance.AppConsent.AppConsentRequests.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(AppConsentRequest.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index ceb538a7704..44113c70f44 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -35,6 +35,26 @@ public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter re /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index 61e9835366c..00c60efc974 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.IdentityGovernance.AppConsent.AppConsentRequests.FilterByCurrentUserWithOn { - public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use filterByCurrentUserWithOnGetResponse instead.")] + public class FilterByCurrentUserWithOnResponse : FilterByCurrentUserWithOnGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(AppConsentRequest.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/AppConsentRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/AppConsentRequestItemRequestBuilder.cs index 1dcf57914ed..257960e900f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/AppConsentRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/AppConsentRequestItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an appConsentRequest object. + /// Read the properties and relationships of an appConsentRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an appConsentRequest object. + /// Read the properties and relationships of an appConsentRequest object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public AppConsentRequestItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of an appConsentRequest object. + /// Read the properties and relationships of an appConsentRequest object. This API is supported in the following national cloud deployments. /// public class AppConsentRequestItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..611bdecd76f --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.IdentityGovernance.AppConsent.AppConsentRequests.Item.UserConsentRequests.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(UserConsentRequest.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index 60b23d8fef2..6fcb70930ff 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -35,6 +35,26 @@ public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter re /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index 768211071bc..04a2767598e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.IdentityGovernance.AppConsent.AppConsentRequests.Item.UserConsentRequests.FilterByCurrentUserWithOn { - public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use filterByCurrentUserWithOnGetResponse instead.")] + public class FilterByCurrentUserWithOnResponse : FilterByCurrentUserWithOnGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(UserConsentRequest.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/Item/ApprovalStageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/Item/ApprovalStageItemRequestBuilder.cs index 828e42d5877..4e5d0b48882 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/Item/ApprovalStageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/Item/ApprovalStageItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// In Azure AD entitlement management, retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. + /// In Azure AD entitlement management, retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, ApprovalStage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// In Azure AD entitlement management, approve or deny an approvalStage object in an approval. + /// In Azure AD entitlement management, approve or deny an approvalStage object in an approval. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// In Azure AD entitlement management, retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. + /// In Azure AD entitlement management, retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// In Azure AD entitlement management, approve or deny an approvalStage object in an approval. + /// In Azure AD entitlement management, approve or deny an approvalStage object in an approval. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -191,7 +191,7 @@ public ApprovalStageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// In Azure AD entitlement management, retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. + /// In Azure AD entitlement management, retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. This API is supported in the following national cloud deployments. /// public class ApprovalStageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/StagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/StagesRequestBuilder.cs index 280041abe77..bb59e3235b5 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/StagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/StagesRequestBuilder.cs @@ -42,7 +42,7 @@ public StagesRequestBuilder(Dictionary pathParameters, IRequestA public StagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/appConsent/appConsentRequests/{appConsentRequest%2Did}/userConsentRequests/{userConsentRequest%2Did}/approval/stages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// In Azure AD entitlement management, list the approvalStage objects associated with an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + /// In Azure AD entitlement management, list the approvalStage objects associated with an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ApprovalStage body, Action(requestInfo, ApprovalStage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// In Azure AD entitlement management, list the approvalStage objects associated with an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + /// In Azure AD entitlement management, list the approvalStage objects associated with an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public StagesRequestBuilder WithUrl(string rawUrl) { return new StagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// In Azure AD entitlement management, list the approvalStage objects associated with an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + /// In Azure AD entitlement management, list the approvalStage objects associated with an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. This API is supported in the following national cloud deployments. /// public class StagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/UserConsentRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/UserConsentRequestItemRequestBuilder.cs index 250136fe569..0710e7ccaaf 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/UserConsentRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/UserConsentRequestItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a userConsentRequest object. + /// Read the properties and relationships of a userConsentRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a userConsentRequest object. + /// Read the properties and relationships of a userConsentRequest object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public UserConsentRequestItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a userConsentRequest object. + /// Read the properties and relationships of a userConsentRequest object. This API is supported in the following national cloud deployments. /// public class UserConsentRequestItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/UserConsentRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/UserConsentRequestsRequestBuilder.cs index d0383de666f..96b78b67751 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/UserConsentRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/UserConsentRequestsRequestBuilder.cs @@ -51,7 +51,7 @@ public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); } /// - /// Retrieve a collection of userConsentRequest objects and their properties. + /// Retrieve a collection of userConsentRequest objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public async Task PostAsync(UserConsentRequest body, Action< return await RequestAdapter.SendAsync(requestInfo, UserConsentRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a collection of userConsentRequest objects and their properties. + /// Retrieve a collection of userConsentRequest objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -153,7 +153,7 @@ public UserConsentRequestsRequestBuilder WithUrl(string rawUrl) { return new UserConsentRequestsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a collection of userConsentRequest objects and their properties. + /// Retrieve a collection of userConsentRequest objects and their properties. This API is supported in the following national cloud deployments. /// public class UserConsentRequestsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/AccessPackageAssignmentApprovalsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/AccessPackageAssignmentApprovalsRequestBuilder.cs index bccee37760b..fe23a8de099 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/AccessPackageAssignmentApprovalsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/AccessPackageAssignmentApprovalsRequestBuilder.cs @@ -51,7 +51,7 @@ public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); } /// - /// In Azure AD entitlement management, retrieve the properties of an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + /// In Azure AD entitlement management, retrieve the properties of an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -91,7 +91,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Approval.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// In Azure AD entitlement management, retrieve the properties of an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + /// In Azure AD entitlement management, retrieve the properties of an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,7 +152,7 @@ public AccessPackageAssignmentApprovalsRequestBuilder WithUrl(string rawUrl) { return new AccessPackageAssignmentApprovalsRequestBuilder(rawUrl, RequestAdapter); } /// - /// In Azure AD entitlement management, retrieve the properties of an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + /// In Azure AD entitlement management, retrieve the properties of an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. This API is supported in the following national cloud deployments. /// public class AccessPackageAssignmentApprovalsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..881053cb8a8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.AccessPackageAssignmentApprovals.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Approval.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index e5ac237ea7e..1a1ce1b8528 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -35,6 +35,26 @@ public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter re /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index 62b7b2201b8..acc0e0f420b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.AccessPackageAssignmentApprovals.FilterByCurrentUserWithOn { - public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use filterByCurrentUserWithOnGetResponse instead.")] + public class FilterByCurrentUserWithOnResponse : FilterByCurrentUserWithOnGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Approval.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/ApprovalItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/ApprovalItemRequestBuilder.cs index ff0a161259b..7c93667726a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/ApprovalItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/ApprovalItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// In Azure AD entitlement management, retrieve the properties of an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + /// In Azure AD entitlement management, retrieve the properties of an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// In Azure AD entitlement management, retrieve the properties of an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + /// In Azure AD entitlement management, retrieve the properties of an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public ApprovalItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// In Azure AD entitlement management, retrieve the properties of an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + /// In Azure AD entitlement management, retrieve the properties of an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. This API is supported in the following national cloud deployments. /// public class ApprovalItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilder.cs index d89b9c426ae..4d7c04bc72a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// In Azure AD entitlement management, retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. + /// In Azure AD entitlement management, retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, ApprovalStage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// In Azure AD entitlement management, approve or deny an approvalStage object in an approval. + /// In Azure AD entitlement management, approve or deny an approvalStage object in an approval. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// In Azure AD entitlement management, retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. + /// In Azure AD entitlement management, retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// In Azure AD entitlement management, approve or deny an approvalStage object in an approval. + /// In Azure AD entitlement management, approve or deny an approvalStage object in an approval. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -191,7 +191,7 @@ public ApprovalStageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// In Azure AD entitlement management, retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. + /// In Azure AD entitlement management, retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. This API is supported in the following national cloud deployments. /// public class ApprovalStageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/StagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/StagesRequestBuilder.cs index 2ada119e18d..e733741c72c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/StagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/StagesRequestBuilder.cs @@ -42,7 +42,7 @@ public StagesRequestBuilder(Dictionary pathParameters, IRequestA public StagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/{approval%2Did}/stages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// In Azure AD entitlement management, list the approvalStage objects associated with an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + /// In Azure AD entitlement management, list the approvalStage objects associated with an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ApprovalStage body, Action(requestInfo, ApprovalStage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// In Azure AD entitlement management, list the approvalStage objects associated with an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + /// In Azure AD entitlement management, list the approvalStage objects associated with an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public StagesRequestBuilder WithUrl(string rawUrl) { return new StagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// In Azure AD entitlement management, list the approvalStage objects associated with an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. + /// In Azure AD entitlement management, list the approvalStage objects associated with an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. This API is supported in the following national cloud deployments. /// public class StagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/AccessPackagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/AccessPackagesRequestBuilder.cs index 4d2588e28e8..52e599b00d3 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/AccessPackagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/AccessPackagesRequestBuilder.cs @@ -51,7 +51,7 @@ public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); } /// - /// Retrieve a list of accessPackage objects. The resulting list includes all the access packages that the caller has access to read, across all catalogs. + /// Retrieve a list of accessPackage objects. The resulting list includes all the access packages that the caller has access to read, across all catalogs. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -71,7 +71,7 @@ public async Task GetAsync(Action(requestInfo, AccessPackageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new accessPackage object. The access package will be added to an existing accessPackageCatalog. + /// Create a new accessPackage object. The access package will be added to an existing accessPackageCatalog. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -93,7 +93,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.AccessPackage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of accessPackage objects. The resulting list includes all the access packages that the caller has access to read, across all catalogs. + /// Retrieve a list of accessPackage objects. The resulting list includes all the access packages that the caller has access to read, across all catalogs. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -119,7 +119,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new accessPackage object. The access package will be added to an existing accessPackageCatalog. + /// Create a new accessPackage object. The access package will be added to an existing accessPackageCatalog. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -154,7 +154,7 @@ public AccessPackagesRequestBuilder WithUrl(string rawUrl) { return new AccessPackagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of accessPackage objects. The resulting list includes all the access packages that the caller has access to read, across all catalogs. + /// Retrieve a list of accessPackage objects. The resulting list includes all the access packages that the caller has access to read, across all catalogs. This API is supported in the following national cloud deployments. /// public class AccessPackagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..4aa1515e5c2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.AccessPackages.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.AccessPackage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index 49f690f086c..d8989777335 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -35,6 +35,26 @@ public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter re /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index 0429e880b60..c5c5b1ae317 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.AccessPackages.FilterByCurrentUserWithOn { - public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use filterByCurrentUserWithOnGetResponse instead.")] + public class FilterByCurrentUserWithOnResponse : FilterByCurrentUserWithOnGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.AccessPackage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.cs index ed5d068bba3..6f8ee671620 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.cs @@ -64,7 +64,7 @@ public AccessPackageItemRequestBuilder(Dictionary pathParameters public AccessPackageItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an accessPackage object. You cannot delete an access package if it has any accessPackageAssignment. + /// Delete an accessPackage object. You cannot delete an access package if it has any accessPackageAssignment. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task DeleteAsync(Action - /// Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. + /// Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -104,7 +104,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.AccessPackage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update an existing accessPackage object to change one or more of its properties, such as the display name or description. + /// Update an existing accessPackage object to change one or more of its properties, such as the display name or description. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -126,7 +126,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.AccessPackage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an accessPackage object. You cannot delete an access package if it has any accessPackageAssignment. + /// Delete an accessPackage object. You cannot delete an access package if it has any accessPackageAssignment. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -150,7 +150,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. + /// Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -176,7 +176,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update an existing accessPackage object to change one or more of its properties, such as the display name or description. + /// Update an existing accessPackage object to change one or more of its properties, such as the display name or description. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -227,7 +227,7 @@ public AccessPackageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. + /// Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. This API is supported in the following national cloud deployments. /// public class AccessPackageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/AccessPackagesIncompatibleWithRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/AccessPackagesIncompatibleWithRequestBuilder.cs index 90466732942..93addf1b56f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/AccessPackagesIncompatibleWithRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/AccessPackagesIncompatibleWithRequestBuilder.cs @@ -42,7 +42,7 @@ public AccessPackagesIncompatibleWithRequestBuilder(Dictionary p public AccessPackagesIncompatibleWithRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/accessPackagesIncompatibleWith{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of the accessPackage objects that have marked a specified accessPackage as incompatible. + /// Retrieve a list of the accessPackage objects that have marked a specified accessPackage as incompatible. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, AccessPackageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of the accessPackage objects that have marked a specified accessPackage as incompatible. + /// Retrieve a list of the accessPackage objects that have marked a specified accessPackage as incompatible. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public AccessPackagesIncompatibleWithRequestBuilder WithUrl(string rawUrl) { return new AccessPackagesIncompatibleWithRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of the accessPackage objects that have marked a specified accessPackage as incompatible. + /// Retrieve a list of the accessPackage objects that have marked a specified accessPackage as incompatible. This API is supported in the following national cloud deployments. /// public class AccessPackagesIncompatibleWithRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsPostResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsPostResponse.cs new file mode 100644 index 00000000000..4a10f63a499 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.AccessPackages.Item.GetApplicablePolicyRequirements { + public class GetApplicablePolicyRequirementsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetApplicablePolicyRequirementsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetApplicablePolicyRequirementsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(AccessPackageAssignmentRequestRequirements.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsRequestBuilder.cs index e8744a9458f..7dae5b0a40e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsRequestBuilder.cs @@ -28,12 +28,33 @@ public GetApplicablePolicyRequirementsRequestBuilder(Dictionary public GetApplicablePolicyRequirementsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/getApplicablePolicyRequirements", rawUrl) { } /// - /// In Azure AD entitlement management, this action retrieves a list of accessPackageAssignmentRequestRequirements objects that the currently signed-in user can use to create an accessPackageAssignmentRequest. Each requirement object corresponds to an access package assignment policy that the currently signed-in user is allowed to request an assignment for. + /// In Azure AD entitlement management, this action retrieves a list of accessPackageAssignmentRequestRequirements objects that the currently signed-in user can use to create an accessPackageAssignmentRequest. Each requirement object corresponds to an access package assignment policy that the currently signed-in user is allowed to request an assignment for. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetApplicablePolicyRequirementsPostResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetApplicablePolicyRequirementsPostResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetApplicablePolicyRequirementsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// In Azure AD entitlement management, this action retrieves a list of accessPackageAssignmentRequestRequirements objects that the currently signed-in user can use to create an accessPackageAssignmentRequest. Each requirement object corresponds to an access package assignment policy that the currently signed-in user is allowed to request an assignment for. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetApplicablePolicyRequirementsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task PostAsync(Action(requestInfo, GetApplicablePolicyRequirementsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// In Azure AD entitlement management, this action retrieves a list of accessPackageAssignmentRequestRequirements objects that the currently signed-in user can use to create an accessPackageAssignmentRequest. Each requirement object corresponds to an access package assignment policy that the currently signed-in user is allowed to request an assignment for. + /// In Azure AD entitlement management, this action retrieves a list of accessPackageAssignmentRequestRequirements objects that the currently signed-in user can use to create an accessPackageAssignmentRequest. Each requirement object corresponds to an access package assignment policy that the currently signed-in user is allowed to request an assignment for. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsResponse.cs index 17e442b4e26..20f5c296fff 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.AccessPackages.Item.GetApplicablePolicyRequirements { - public class GetApplicablePolicyRequirementsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getApplicablePolicyRequirementsPostResponse instead.")] + public class GetApplicablePolicyRequirementsResponse : GetApplicablePolicyRequirementsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetApplicablePolicyRequirementsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(AccessPackageAssignmentRequestRequirements.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/IncompatibleAccessPackagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/IncompatibleAccessPackagesRequestBuilder.cs index 90f50822ee2..22631fe7d91 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/IncompatibleAccessPackagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/IncompatibleAccessPackagesRequestBuilder.cs @@ -47,7 +47,7 @@ public IncompatibleAccessPackagesRequestBuilder(Dictionary pathP public IncompatibleAccessPackagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. + /// Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AccessPackageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. + /// Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -100,7 +100,7 @@ public IncompatibleAccessPackagesRequestBuilder WithUrl(string rawUrl) { return new IncompatibleAccessPackagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. + /// Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. /// public class IncompatibleAccessPackagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Item/Ref/RefRequestBuilder.cs index 46e3c032df7..61c242df7da 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Item/Ref/RefRequestBuilder.cs @@ -28,7 +28,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages/{accessPackage%2Did1}/$ref{?%40id*}", rawUrl) { } /// - /// Remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. + /// Remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. + /// Remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -80,7 +80,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. + /// Remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderDeleteQueryParameters { /// Delete Uri diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Ref/RefRequestBuilder.cs index 6493ce2aa56..c01e7abde8c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Ref/RefRequestBuilder.cs @@ -29,7 +29,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { } /// - /// Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. + /// Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, StringCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add an accessPackage to the list of access packages that have been marked as incompatible on an accessPackage. + /// Add an accessPackage to the list of access packages that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -71,7 +71,7 @@ public async Task PostAsync(ReferenceCreate body, Action - /// Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. + /// Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -97,7 +97,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add an accessPackage to the list of access packages that have been marked as incompatible on an accessPackage. + /// Add an accessPackage to the list of access packages that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -131,7 +131,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. + /// Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/IncompatibleGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/IncompatibleGroupsRequestBuilder.cs index 75aef0e7f0c..be13fb5845e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/IncompatibleGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/IncompatibleGroupsRequestBuilder.cs @@ -47,7 +47,7 @@ public IncompatibleGroupsRequestBuilder(Dictionary pathParameter public IncompatibleGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. + /// Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, GroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. + /// Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -100,7 +100,7 @@ public IncompatibleGroupsRequestBuilder WithUrl(string rawUrl) { return new IncompatibleGroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. + /// Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. /// public class IncompatibleGroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/GroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/GroupItemRequestBuilder.cs index 49bf9e6d467..92e961bd20f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/GroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/GroupItemRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.IdentityGovernance.EntitlementManagement.AccessPackages.Item.IncompatibleGroups.Item.Ref; +using Microsoft.Graph.IdentityGovernance.EntitlementManagement.AccessPackages.Item.IncompatibleGroups.Item.ServiceProvisioningErrors; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; @@ -15,6 +16,10 @@ public class GroupItemRequestBuilder : BaseRequestBuilder { public RefRequestBuilder Ref { get => new RefRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new GroupItemRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/Ref/RefRequestBuilder.cs index 98778d90004..71897eee8a9 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/Ref/RefRequestBuilder.cs @@ -28,7 +28,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/{group%2Did}/$ref{?%40id*}", rawUrl) { } /// - /// Remove a group from the list of groups that have been marked as incompatible on an accessPackage. + /// Remove a group from the list of groups that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Remove a group from the list of groups that have been marked as incompatible on an accessPackage. + /// Remove a group from the list of groups that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -80,7 +80,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a group from the list of groups that have been marked as incompatible on an accessPackage. + /// Remove a group from the list of groups that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderDeleteQueryParameters { /// Delete Uri diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..01a50dd1a37 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.AccessPackages.Item.IncompatibleGroups.Item.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/{group%2Did}/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/{group%2Did}/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..a46e80821a5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.IdentityGovernance.EntitlementManagement.AccessPackages.Item.IncompatibleGroups.Item.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.AccessPackages.Item.IncompatibleGroups.Item.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\incompatibleGroups\{group-id}\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/{group%2Did}/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/{group%2Did}/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Ref/RefRequestBuilder.cs index 6aad830098c..932d1731d07 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Ref/RefRequestBuilder.cs @@ -29,7 +29,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { } /// - /// Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. + /// Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, StringCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a group to the list of groups that have been marked as incompatible on an accessPackage. + /// Add a group to the list of groups that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -71,7 +71,7 @@ public async Task PostAsync(ReferenceCreate body, Action - /// Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. + /// Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -97,7 +97,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a group to the list of groups that have been marked as incompatible on an accessPackage. + /// Add a group to the list of groups that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -131,7 +131,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. + /// Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/AccessPackageResourceRoleScopeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/AccessPackageResourceRoleScopeItemRequestBuilder.cs index 6b790e6c591..3d1d44a1a22 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/AccessPackageResourceRoleScopeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/AccessPackageResourceRoleScopeItemRequestBuilder.cs @@ -39,7 +39,7 @@ public AccessPackageResourceRoleScopeItemRequestBuilder(Dictionary - /// Remove a accessPackageResourceRoleScope from an accessPackage list of resource role scopes. + /// Remove a accessPackageResourceRoleScope from an accessPackage list of resource role scopes. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -99,7 +99,7 @@ public async Task PatchAsync(AccessPackageResour return await RequestAdapter.SendAsync(requestInfo, AccessPackageResourceRoleScope.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Remove a accessPackageResourceRoleScope from an accessPackage list of resource role scopes. + /// Remove a accessPackageResourceRoleScope from an accessPackage list of resource role scopes. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/ResourceRoleScopesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/ResourceRoleScopesRequestBuilder.cs index dbd7dadc641..dd56d54dd92 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/ResourceRoleScopesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/ResourceRoleScopesRequestBuilder.cs @@ -61,7 +61,7 @@ public async Task GetAsync(Act return await RequestAdapter.SendAsync(requestInfo, AccessPackageResourceRoleScopeCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new accessPackageResourceRoleScope for adding a resource role to an access package. The access package resource, for a group, an app, or a SharePoint Online site, must already exist in the access package catalog, and the originId for the resource role retrieved from the list of the resource roles. Once you add the resource role scope to the access package, the user will receive this resource role through any current and future access package assignments. + /// Create a new accessPackageResourceRoleScope for adding a resource role to an access package. The access package resource, for a group, an app, or a SharePoint Online site, must already exist in the access package catalog, and the originId for the resource role retrieved from the list of the resource roles. Once you add the resource role scope to the access package, the user will receive this resource role through any current and future access package assignments. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new accessPackageResourceRoleScope for adding a resource role to an access package. The access package resource, for a group, an app, or a SharePoint Online site, must already exist in the access package catalog, and the originId for the resource role retrieved from the list of the resource roles. Once you add the resource role scope to the access package, the user will receive this resource role through any current and future access package assignments. + /// Create a new accessPackageResourceRoleScope for adding a resource role to an access package. The access package resource, for a group, an app, or a SharePoint Online site, must already exist in the access package catalog, and the originId for the resource role retrieved from the list of the resource roles. Once you add the resource role scope to the access package, the user will receive this resource role through any current and future access package assignments. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/AssignmentPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/AssignmentPoliciesRequestBuilder.cs index a7f4e583695..862ddec1ad3 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/AssignmentPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/AssignmentPoliciesRequestBuilder.cs @@ -42,7 +42,7 @@ public AssignmentPoliciesRequestBuilder(Dictionary pathParameter public AssignmentPoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentPolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// In Azure AD entitlement management, retrieve a list of accessPackageAssignmentPolicy objects. If the delegated user is in a directory role, the resulting list includes all the assignment policies that the caller has access to read, across all catalogs and access packages. If the delegated user is an access package manager or catalog owner, they should instead retrieve the policies for the access packages they can read with list accessPackages by including $expand=accessPackageAssignmentPolicies as a query parameter. + /// In Azure AD entitlement management, retrieve a list of accessPackageAssignmentPolicy objects. If the delegated user is in a directory role, the resulting list includes all the assignment policies that the caller has access to read, across all catalogs and access packages. If the delegated user is an access package manager or catalog owner, they should instead retrieve the policies for the access packages they can read with list accessPackages by including $expand=accessPackageAssignmentPolicies as a query parameter. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Acti return await RequestAdapter.SendAsync(requestInfo, AccessPackageAssignmentPolicyCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// In Azure AD entitlement management, create a new accessPackageAssignmentPolicy object. The request will include a reference to the accessPackage that will contain this policy, which must already exist. + /// In Azure AD entitlement management, create a new accessPackageAssignmentPolicy object. The request will include a reference to the accessPackage that will contain this policy, which must already exist. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(AccessPackageAssignme return await RequestAdapter.SendAsync(requestInfo, AccessPackageAssignmentPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// In Azure AD entitlement management, retrieve a list of accessPackageAssignmentPolicy objects. If the delegated user is in a directory role, the resulting list includes all the assignment policies that the caller has access to read, across all catalogs and access packages. If the delegated user is an access package manager or catalog owner, they should instead retrieve the policies for the access packages they can read with list accessPackages by including $expand=accessPackageAssignmentPolicies as a query parameter. + /// In Azure AD entitlement management, retrieve a list of accessPackageAssignmentPolicy objects. If the delegated user is in a directory role, the resulting list includes all the assignment policies that the caller has access to read, across all catalogs and access packages. If the delegated user is an access package manager or catalog owner, they should instead retrieve the policies for the access packages they can read with list accessPackages by including $expand=accessPackageAssignmentPolicies as a query parameter. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// In Azure AD entitlement management, create a new accessPackageAssignmentPolicy object. The request will include a reference to the accessPackage that will contain this policy, which must already exist. + /// In Azure AD entitlement management, create a new accessPackageAssignmentPolicy object. The request will include a reference to the accessPackage that will contain this policy, which must already exist. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public AssignmentPoliciesRequestBuilder WithUrl(string rawUrl) { return new AssignmentPoliciesRequestBuilder(rawUrl, RequestAdapter); } /// - /// In Azure AD entitlement management, retrieve a list of accessPackageAssignmentPolicy objects. If the delegated user is in a directory role, the resulting list includes all the assignment policies that the caller has access to read, across all catalogs and access packages. If the delegated user is an access package manager or catalog owner, they should instead retrieve the policies for the access packages they can read with list accessPackages by including $expand=accessPackageAssignmentPolicies as a query parameter. + /// In Azure AD entitlement management, retrieve a list of accessPackageAssignmentPolicy objects. If the delegated user is in a directory role, the resulting list includes all the assignment policies that the caller has access to read, across all catalogs and access packages. If the delegated user is an access package manager or catalog owner, they should instead retrieve the policies for the access packages they can read with list accessPackages by including $expand=accessPackageAssignmentPolicies as a query parameter. This API is supported in the following national cloud deployments. /// public class AssignmentPoliciesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackageAssignmentPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackageAssignmentPolicyItemRequestBuilder.cs index 33ca4fcb87c..e5e87decf81 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackageAssignmentPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackageAssignmentPolicyItemRequestBuilder.cs @@ -49,7 +49,7 @@ public AccessPackageAssignmentPolicyItemRequestBuilder(Dictionary - /// In Azure AD entitlement management, delete an accessPackageAssignmentPolicy. + /// In Azure AD entitlement management, delete an accessPackageAssignmentPolicy. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task DeleteAsync(Action - /// In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentPolicy object. + /// In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -110,7 +110,7 @@ public async Task PutAsync(AccessPackageAssignmen return await RequestAdapter.SendAsync(requestInfo, AccessPackageAssignmentPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// In Azure AD entitlement management, delete an accessPackageAssignmentPolicy. + /// In Azure AD entitlement management, delete an accessPackageAssignmentPolicy. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -134,7 +134,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentPolicy object. + /// In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentPolicy object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -211,7 +211,7 @@ public AccessPackageAssignmentPolicyItemRequestBuilderDeleteRequestConfiguration } } /// - /// In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentPolicy object. + /// In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentPolicy object. This API is supported in the following national cloud deployments. /// public class AccessPackageAssignmentPolicyItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/AssignmentRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/AssignmentRequestsRequestBuilder.cs index 3dc6c32ad2c..a70daf8c5d8 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/AssignmentRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/AssignmentRequestsRequestBuilder.cs @@ -51,7 +51,7 @@ public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); } /// - /// In Azure AD entitlement management, retrieve a list of accessPackageAssignmentRequest objects. The resulting list includes all the assignment requests, current and well as expired, that the caller has access to read, across all catalogs and access packages. + /// In Azure AD entitlement management, retrieve a list of accessPackageAssignmentRequest objects. The resulting list includes all the assignment requests, current and well as expired, that the caller has access to read, across all catalogs and access packages. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -71,7 +71,7 @@ public async Task GetAsync(Act return await RequestAdapter.SendAsync(requestInfo, AccessPackageAssignmentRequestCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// In Azure AD Entitlement Management, create a new accessPackageAssignmentRequest object. This operation is used to assign a user to an access package, update the assignment, or to remove an access package assignment. + /// In Azure AD Entitlement Management, create a new accessPackageAssignmentRequest object. This operation is used to assign a user to an access package, update the assignment, or to remove an access package assignment. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -93,7 +93,7 @@ public async Task PostAsync(AccessPackageAssignm return await RequestAdapter.SendAsync(requestInfo, AccessPackageAssignmentRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// In Azure AD entitlement management, retrieve a list of accessPackageAssignmentRequest objects. The resulting list includes all the assignment requests, current and well as expired, that the caller has access to read, across all catalogs and access packages. + /// In Azure AD entitlement management, retrieve a list of accessPackageAssignmentRequest objects. The resulting list includes all the assignment requests, current and well as expired, that the caller has access to read, across all catalogs and access packages. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -119,7 +119,7 @@ public RequestInformation ToGetRequestInformation(Action - /// In Azure AD Entitlement Management, create a new accessPackageAssignmentRequest object. This operation is used to assign a user to an access package, update the assignment, or to remove an access package assignment. + /// In Azure AD Entitlement Management, create a new accessPackageAssignmentRequest object. This operation is used to assign a user to an access package, update the assignment, or to remove an access package assignment. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -154,7 +154,7 @@ public AssignmentRequestsRequestBuilder WithUrl(string rawUrl) { return new AssignmentRequestsRequestBuilder(rawUrl, RequestAdapter); } /// - /// In Azure AD entitlement management, retrieve a list of accessPackageAssignmentRequest objects. The resulting list includes all the assignment requests, current and well as expired, that the caller has access to read, across all catalogs and access packages. + /// In Azure AD entitlement management, retrieve a list of accessPackageAssignmentRequest objects. The resulting list includes all the assignment requests, current and well as expired, that the caller has access to read, across all catalogs and access packages. This API is supported in the following national cloud deployments. /// public class AssignmentRequestsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..fee30e04f5a --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.AssignmentRequests.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(AccessPackageAssignmentRequest.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index c4326079490..b53014afd0c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -35,6 +35,26 @@ public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter re /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index d0fd8246f1b..ceb05c8c563 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.AssignmentRequests.FilterByCurrentUserWithOn { - public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use filterByCurrentUserWithOnGetResponse instead.")] + public class FilterByCurrentUserWithOnResponse : FilterByCurrentUserWithOnGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(AccessPackageAssignmentRequest.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackageAssignmentRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackageAssignmentRequestItemRequestBuilder.cs index 1ad727f5415..dd4d4d88309 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackageAssignmentRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackageAssignmentRequestItemRequestBuilder.cs @@ -59,7 +59,7 @@ public AccessPackageAssignmentRequestItemRequestBuilder(Dictionary - /// Delete an accessPackageAssignmentRequest object. This request can be made to remove a denied or completed request. You cannot delete an access package assignment request if it has any accessPackageAssignment objects. + /// Delete an accessPackageAssignmentRequest object. This request can be made to remove a denied or completed request. You cannot delete an access package assignment request if it has any accessPackageAssignment objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -79,7 +79,7 @@ public async Task DeleteAsync(Action - /// In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentRequest object. + /// In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -120,7 +120,7 @@ public async Task PatchAsync(AccessPackageAssign return await RequestAdapter.SendAsync(requestInfo, AccessPackageAssignmentRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an accessPackageAssignmentRequest object. This request can be made to remove a denied or completed request. You cannot delete an access package assignment request if it has any accessPackageAssignment objects. + /// Delete an accessPackageAssignmentRequest object. This request can be made to remove a denied or completed request. You cannot delete an access package assignment request if it has any accessPackageAssignment objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentRequest object. + /// In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentRequest object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -221,7 +221,7 @@ public AccessPackageAssignmentRequestItemRequestBuilderDeleteRequestConfiguratio } } /// - /// In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentRequest object. + /// In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentRequest object. This API is supported in the following national cloud deployments. /// public class AccessPackageAssignmentRequestItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Cancel/CancelRequestBuilder.cs index cf92b764465..338db7b44ea 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/{accessPackageAssignmentRequest%2Did}/cancel", rawUrl) { } /// - /// In Azure AD Entitlement Management, cancel accessPackageAssignmentRequest objects that are in a cancellable state: accepted, pendingApproval, pendingNotBefore, pendingApprovalEscalated. + /// In Azure AD Entitlement Management, cancel accessPackageAssignmentRequest objects that are in a cancellable state: accepted, pendingApproval, pendingNotBefore, pendingApprovalEscalated. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// In Azure AD Entitlement Management, cancel accessPackageAssignmentRequest objects that are in a cancellable state: accepted, pendingApproval, pendingNotBefore, pendingApprovalEscalated. + /// In Azure AD Entitlement Management, cancel accessPackageAssignmentRequest objects that are in a cancellable state: accepted, pendingApproval, pendingNotBefore, pendingApprovalEscalated. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Reprocess/ReprocessRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Reprocess/ReprocessRequestBuilder.cs index ae1d564ad58..0c848d5ef96 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Reprocess/ReprocessRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Reprocess/ReprocessRequestBuilder.cs @@ -28,7 +28,7 @@ public ReprocessRequestBuilder(Dictionary pathParameters, IReque public ReprocessRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/{accessPackageAssignmentRequest%2Did}/reprocess", rawUrl) { } /// - /// In Azure AD entitlement management, callers can automatically retry a user's request for access to an access package. It is performed on an accessPackageAssignmentRequest object whose requestState is in a DeliveryFailed or PartiallyDelivered state. You can only reprocess a request within 14 days from the time the original request was completed. For requests completed more than 14 days, you will need to ask the users to cancel the request(s) and make a new request in the MyAccess portal. + /// In Azure AD entitlement management, callers can automatically retry a user's request for access to an access package. It's performed on an accessPackageAssignmentRequest object whose requestState is in a DeliveryFailed or PartiallyDelivered state. You can only reprocess a request within 14 days from the time the original request was completed. For requests completed more than 14 days, you will need to ask the users to cancel the request(s) and make a new request in the MyAccess portal. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// In Azure AD entitlement management, callers can automatically retry a user's request for access to an access package. It is performed on an accessPackageAssignmentRequest object whose requestState is in a DeliveryFailed or PartiallyDelivered state. You can only reprocess a request within 14 days from the time the original request was completed. For requests completed more than 14 days, you will need to ask the users to cancel the request(s) and make a new request in the MyAccess portal. + /// In Azure AD entitlement management, callers can automatically retry a user's request for access to an access package. It's performed on an accessPackageAssignmentRequest object whose requestState is in a DeliveryFailed or PartiallyDelivered state. You can only reprocess a request within 14 days from the time the original request was completed. For requests completed more than 14 days, you will need to ask the users to cancel the request(s) and make a new request in the MyAccess portal. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Resume/ResumeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Resume/ResumeRequestBuilder.cs index b2337aa9df7..c924f9c26e8 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Resume/ResumeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Resume/ResumeRequestBuilder.cs @@ -28,7 +28,8 @@ public ResumeRequestBuilder(Dictionary pathParameters, IRequestA public ResumeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/{accessPackageAssignmentRequest%2Did}/resume", rawUrl) { } /// - /// Invoke action resume + /// In Azure AD entitlement management, when an access package policy has been enabled to call out a custom extension and the request processing is waiting for the callback from the customer, the customer can initiate a resume action. It is performed on an accessPackageAssignmentRequest object whose requestStatus is in a WaitingForCallback state. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -49,7 +50,7 @@ public async Task PostAsync(ResumePostRequestBody body, Action - /// Invoke action resume + /// In Azure AD entitlement management, when an access package policy has been enabled to call out a custom extension and the request processing is waiting for the callback from the customer, the customer can initiate a resume action. It is performed on an accessPackageAssignmentRequest object whose requestStatus is in a WaitingForCallback state. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessGetResponse.cs new file mode 100644 index 00000000000..965f09cf8b5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.Assignments.AdditionalAccess { + public class AdditionalAccessGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AdditionalAccessGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AdditionalAccessGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(AccessPackageAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessRequestBuilder.cs index de6d3acf9d2..82b0b06f9c4 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessRequestBuilder.cs @@ -33,6 +33,26 @@ public AdditionalAccessRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsAdditionalAccessGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsAdditionalAccessGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AdditionalAccessGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function additionalAccess + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsAdditionalAccessGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessResponse.cs index 5ac5ea04dd5..a48d2823351 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.Assignments.AdditionalAccess { - public class AdditionalAccessResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use additionalAccessGetResponse instead.")] + public class AdditionalAccessResponse : AdditionalAccessGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AdditionalAccessResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(AccessPackageAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse.cs new file mode 100644 index 00000000000..e79c4a68d79 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.Assignments.AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId { + public class AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(AccessPackageAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilder.cs index 8b2683d954d..5cc155a21f4 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilder.cs @@ -37,6 +37,26 @@ public AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequest /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsAdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsAdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function additionalAccess + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsAdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse.cs index 7a883bddcb8..0ccadf1f5a1 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.Assignments.AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId { - public class AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use additionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse instead.")] + public class AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse : AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(AccessPackageAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AssignmentsRequestBuilder.cs index 05158511c60..d190659a7c6 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AssignmentsRequestBuilder.cs @@ -67,7 +67,7 @@ public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); } /// - /// In Azure AD entitlement management, retrieve a list of accessPackageAssignment objects. For directory-wide administrators, the resulting list includes all the assignments, current and well as expired, that the caller has access to read, across all catalogs and access packages. If the caller is on behalf of a delegated user who is assigned only to catalog-specific delegated administrative roles, the request must supply a filter to indicate a specific access package, such as: $filter=accessPackage/id eq 'a914b616-e04e-476b-aa37-91038f0b165b'. + /// In Azure AD entitlement management, retrieve a list of accessPackageAssignment objects. For directory-wide administrators, the resulting list includes all the assignments, current and well as expired, that the caller has access to read, across all catalogs and access packages. If the caller is on behalf of a delegated user who is assigned only to catalog-specific delegated administrative roles, the request must supply a filter to indicate a specific access package, such as: $filter=accessPackage/id eq 'a914b616-e04e-476b-aa37-91038f0b165b'. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -108,7 +108,7 @@ public async Task PostAsync(AccessPackageAssignment bod return await RequestAdapter.SendAsync(requestInfo, AccessPackageAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// In Azure AD entitlement management, retrieve a list of accessPackageAssignment objects. For directory-wide administrators, the resulting list includes all the assignments, current and well as expired, that the caller has access to read, across all catalogs and access packages. If the caller is on behalf of a delegated user who is assigned only to catalog-specific delegated administrative roles, the request must supply a filter to indicate a specific access package, such as: $filter=accessPackage/id eq 'a914b616-e04e-476b-aa37-91038f0b165b'. + /// In Azure AD entitlement management, retrieve a list of accessPackageAssignment objects. For directory-wide administrators, the resulting list includes all the assignments, current and well as expired, that the caller has access to read, across all catalogs and access packages. If the caller is on behalf of a delegated user who is assigned only to catalog-specific delegated administrative roles, the request must supply a filter to indicate a specific access package, such as: $filter=accessPackage/id eq 'a914b616-e04e-476b-aa37-91038f0b165b'. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -169,7 +169,7 @@ public AssignmentsRequestBuilder WithUrl(string rawUrl) { return new AssignmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// In Azure AD entitlement management, retrieve a list of accessPackageAssignment objects. For directory-wide administrators, the resulting list includes all the assignments, current and well as expired, that the caller has access to read, across all catalogs and access packages. If the caller is on behalf of a delegated user who is assigned only to catalog-specific delegated administrative roles, the request must supply a filter to indicate a specific access package, such as: $filter=accessPackage/id eq 'a914b616-e04e-476b-aa37-91038f0b165b'. + /// In Azure AD entitlement management, retrieve a list of accessPackageAssignment objects. For directory-wide administrators, the resulting list includes all the assignments, current and well as expired, that the caller has access to read, across all catalogs and access packages. If the caller is on behalf of a delegated user who is assigned only to catalog-specific delegated administrative roles, the request must supply a filter to indicate a specific access package, such as: $filter=accessPackage/id eq 'a914b616-e04e-476b-aa37-91038f0b165b'. This API is supported in the following national cloud deployments. /// public class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..c673a6e392b --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.Assignments.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(AccessPackageAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index ea211e6904f..8efad2499c3 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -35,6 +35,26 @@ public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter re /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index 4c6c18c1a22..eced147fb3f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.Assignments.FilterByCurrentUserWithOn { - public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use filterByCurrentUserWithOnGetResponse instead.")] + public class FilterByCurrentUserWithOnResponse : FilterByCurrentUserWithOnGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(AccessPackageAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/AccessPackageAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/AccessPackageAssignmentItemRequestBuilder.cs index ee98c9a3c51..f251283a12b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/AccessPackageAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/AccessPackageAssignmentItemRequestBuilder.cs @@ -68,7 +68,7 @@ public async Task DeleteAsync(Action - /// In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignment object. + /// In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignment object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -133,7 +133,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignment object. + /// In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignment object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -210,7 +210,7 @@ public AccessPackageAssignmentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignment object. + /// In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignment object. This API is supported in the following national cloud deployments. /// public class AccessPackageAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/Reprocess/ReprocessRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/Reprocess/ReprocessRequestBuilder.cs index 43ece560ada..dd1446448f3 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/Reprocess/ReprocessRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/Reprocess/ReprocessRequestBuilder.cs @@ -28,7 +28,7 @@ public ReprocessRequestBuilder(Dictionary pathParameters, IReque public ReprocessRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/assignments/{accessPackageAssignment%2Did}/reprocess", rawUrl) { } /// - /// In Azure AD entitlement management, callers can automatically reevaluate and enforce an accessPackageAssignment object of a user’s assignments for a specific access package. The state of the access package assignment must be Delivered for the administrator to reprocess the user's assignment. Only admins with the Access Package Assignment Manager role, or higher, in Azure AD entitlement management can perform this action. + /// In Azure AD entitlement management, callers can automatically reevaluate and enforce an accessPackageAssignment object of a user’s assignments for a specific access package. The state of the access package assignment must be Delivered for the administrator to reprocess the user's assignment. Only admins with the Access Package Assignment Manager role, or higher, in Azure AD entitlement management can perform this action. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// In Azure AD entitlement management, callers can automatically reevaluate and enforce an accessPackageAssignment object of a user’s assignments for a specific access package. The state of the access package assignment must be Delivered for the administrator to reprocess the user's assignment. Only admins with the Access Package Assignment Manager role, or higher, in Azure AD entitlement management can perform this action. + /// In Azure AD entitlement management, callers can automatically reevaluate and enforce an accessPackageAssignment object of a user’s assignments for a specific access package. The state of the access package assignment must be Delivered for the administrator to reprocess the user's assignment. Only admins with the Access Package Assignment Manager role, or higher, in Azure AD entitlement management can perform this action. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/CatalogsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/CatalogsRequestBuilder.cs index dad842de9b6..611aa5330a2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/CatalogsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/CatalogsRequestBuilder.cs @@ -42,7 +42,7 @@ public CatalogsRequestBuilder(Dictionary pathParameters, IReques public CatalogsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of accessPackageCatalog objects. + /// Retrieve a list of accessPackageCatalog objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, AccessPackageCatalogCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new accessPackageCatalog object. + /// Create a new accessPackageCatalog object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(AccessPackageCatalog body, Act return await RequestAdapter.SendAsync(requestInfo, AccessPackageCatalog.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of accessPackageCatalog objects. + /// Retrieve a list of accessPackageCatalog objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new accessPackageCatalog object. + /// Create a new accessPackageCatalog object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public CatalogsRequestBuilder WithUrl(string rawUrl) { return new CatalogsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of accessPackageCatalog objects. + /// Retrieve a list of accessPackageCatalog objects. This API is supported in the following national cloud deployments. /// public class CatalogsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackageCatalogItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackageCatalogItemRequestBuilder.cs index aeb3adf3165..849b0978b35 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackageCatalogItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackageCatalogItemRequestBuilder.cs @@ -54,7 +54,7 @@ public AccessPackageCatalogItemRequestBuilder(Dictionary pathPar public AccessPackageCatalogItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an accessPackageCatalog. + /// Delete an accessPackageCatalog. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of an accessPackageCatalog object. + /// Retrieve the properties and relationships of an accessPackageCatalog object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -94,7 +94,7 @@ public async Task GetAsync(Action(requestInfo, AccessPackageCatalog.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update an existing accessPackageCatalog object to change one or more of its properties, such as the display name or description. + /// Update an existing accessPackageCatalog object to change one or more of its properties, such as the display name or description. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -116,7 +116,7 @@ public async Task PatchAsync(AccessPackageCatalog body, Ac return await RequestAdapter.SendAsync(requestInfo, AccessPackageCatalog.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an accessPackageCatalog. + /// Delete an accessPackageCatalog. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of an accessPackageCatalog object. + /// Retrieve the properties and relationships of an accessPackageCatalog object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -166,7 +166,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update an existing accessPackageCatalog object to change one or more of its properties, such as the display name or description. + /// Update an existing accessPackageCatalog object to change one or more of its properties, such as the display name or description. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -217,7 +217,7 @@ public AccessPackageCatalogItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of an accessPackageCatalog object. + /// Retrieve the properties and relationships of an accessPackageCatalog object. This API is supported in the following national cloud deployments. /// public class AccessPackageCatalogItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.cs index 5dbe65a0e66..178cca06909 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.cs @@ -42,7 +42,8 @@ public CustomWorkflowExtensionsRequestBuilder(Dictionary pathPar public CustomWorkflowExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/customWorkflowExtensions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get customWorkflowExtensions from identityGovernance + /// Get a list of the accessPackageAssignmentRequestWorkflowExtension and accessPackageAssignmentWorkflowExtension objects and their properties. The resulting list includes all the customAccessPackageWorkflowExtension objects for the catalog that the caller has access to read. Each object includes an @odata.type property that indicates whether the object is an accessPackageAssignmentRequestWorkflowExtension or an accessPackageAssignmentWorkflowExtension. This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +62,8 @@ public async Task GetAsync(Action(requestInfo, CustomCalloutExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create new navigation property to customWorkflowExtensions for identityGovernance + /// Create a new accessPackageAssignmentRequestWorkflowExtension or accessPackageAssignmentWorkflowExtension object and add it to an existing accessPackageCatalog object. You must explicitly provide an @odata.type property that indicates whether the object is an accessPackageAssignmentRequestWorkflowExtension or an accessPackageAssignmentWorkflowExtension. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -82,7 +84,7 @@ public async Task PostAsync(CustomCalloutExtension body, return await RequestAdapter.SendAsync(requestInfo, CustomCalloutExtension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get customWorkflowExtensions from identityGovernance + /// Get a list of the accessPackageAssignmentRequestWorkflowExtension and accessPackageAssignmentWorkflowExtension objects and their properties. The resulting list includes all the customAccessPackageWorkflowExtension objects for the catalog that the caller has access to read. Each object includes an @odata.type property that indicates whether the object is an accessPackageAssignmentRequestWorkflowExtension or an accessPackageAssignmentWorkflowExtension. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -108,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to customWorkflowExtensions for identityGovernance + /// Create a new accessPackageAssignmentRequestWorkflowExtension or accessPackageAssignmentWorkflowExtension object and add it to an existing accessPackageCatalog object. You must explicitly provide an @odata.type property that indicates whether the object is an accessPackageAssignmentRequestWorkflowExtension or an accessPackageAssignmentWorkflowExtension. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -143,7 +145,7 @@ public CustomWorkflowExtensionsRequestBuilder WithUrl(string rawUrl) { return new CustomWorkflowExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get customWorkflowExtensions from identityGovernance + /// Get a list of the accessPackageAssignmentRequestWorkflowExtension and accessPackageAssignmentWorkflowExtension objects and their properties. The resulting list includes all the customAccessPackageWorkflowExtension objects for the catalog that the caller has access to read. Each object includes an @odata.type property that indicates whether the object is an accessPackageAssignmentRequestWorkflowExtension or an accessPackageAssignmentWorkflowExtension. This API is supported in the following national cloud deployments. /// public class CustomWorkflowExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs index 2d30e58031e..778491ca175 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs @@ -29,7 +29,8 @@ public CustomCalloutExtensionItemRequestBuilder(Dictionary pathP public CustomCalloutExtensionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/customWorkflowExtensions/{customCalloutExtension%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete navigation property customWorkflowExtensions for identityGovernance + /// Delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -48,7 +49,8 @@ public async Task DeleteAsync(Action - /// Get customWorkflowExtensions from identityGovernance + /// Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -67,7 +69,8 @@ public async Task GetAsync(Action(requestInfo, CustomCalloutExtension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the navigation property customWorkflowExtensions in identityGovernance + /// Update the properties of an accessPackageAssignmentWorkflowExtension object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -88,7 +91,7 @@ public async Task PatchAsync(CustomCalloutExtension body return await RequestAdapter.SendAsync(requestInfo, CustomCalloutExtension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete navigation property customWorkflowExtensions for identityGovernance + /// Delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -112,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get customWorkflowExtensions from identityGovernance + /// Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -138,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property customWorkflowExtensions in identityGovernance + /// Update the properties of an accessPackageAssignmentWorkflowExtension object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -189,7 +192,7 @@ public CustomCalloutExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get customWorkflowExtensions from identityGovernance + /// Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. This API is supported in the following national cloud deployments. /// public class CustomCalloutExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/ResourceRolesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/ResourceRolesRequestBuilder.cs index 8284cc9159e..22b9fa3363e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/ResourceRolesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/ResourceRolesRequestBuilder.cs @@ -42,7 +42,7 @@ public ResourceRolesRequestBuilder(Dictionary pathParameters, IR public ResourceRolesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of accessPackageResourceRole objects of an accessPackageResource in an accessPackageCatalog. The resource should have been added to the catalog by creating an accessPackageResourceRequest. This list of roles can then be used by the caller to select a role, which is needed when subsequently creating an accessPackageResourceRoleScope. + /// Retrieve a list of accessPackageResourceRole objects of an accessPackageResource in an accessPackageCatalog. The resource should have been added to the catalog by creating an accessPackageResourceRequest. This list of roles can then be used by the caller to select a role, which is needed when subsequently creating an accessPackageResourceRoleScope. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(AccessPackageResourceRole return await RequestAdapter.SendAsync(requestInfo, AccessPackageResourceRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of accessPackageResourceRole objects of an accessPackageResource in an accessPackageCatalog. The resource should have been added to the catalog by creating an accessPackageResourceRequest. This list of roles can then be used by the caller to select a role, which is needed when subsequently creating an accessPackageResourceRoleScope. + /// Retrieve a list of accessPackageResourceRole objects of an accessPackageResource in an accessPackageCatalog. The resource should have been added to the catalog by creating an accessPackageResourceRequest. This list of roles can then be used by the caller to select a role, which is needed when subsequently creating an accessPackageResourceRoleScope. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public ResourceRolesRequestBuilder WithUrl(string rawUrl) { return new ResourceRolesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of accessPackageResourceRole objects of an accessPackageResource in an accessPackageCatalog. The resource should have been added to the catalog by creating an accessPackageResourceRequest. This list of roles can then be used by the caller to select a role, which is needed when subsequently creating an accessPackageResourceRoleScope. + /// Retrieve a list of accessPackageResourceRole objects of an accessPackageResource in an accessPackageCatalog. The resource should have been added to the catalog by creating an accessPackageResourceRequest. This list of roles can then be used by the caller to select a role, which is needed when subsequently creating an accessPackageResourceRoleScope. This API is supported in the following national cloud deployments. /// public class ResourceRolesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/ResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/ResourcesRequestBuilder.cs index 5bfaeb12a8b..df02febfe93 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/ResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/ResourcesRequestBuilder.cs @@ -42,7 +42,7 @@ public ResourcesRequestBuilder(Dictionary pathParameters, IReque public ResourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of accessPackageResource objects in an accessPackageCatalog. + /// Retrieve a list of accessPackageResource objects in an accessPackageCatalog. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(AccessPackageResource body, A return await RequestAdapter.SendAsync(requestInfo, AccessPackageResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of accessPackageResource objects in an accessPackageCatalog. + /// Retrieve a list of accessPackageResource objects in an accessPackageCatalog. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public ResourcesRequestBuilder WithUrl(string rawUrl) { return new ResourcesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of accessPackageResource objects in an accessPackageCatalog. + /// Retrieve a list of accessPackageResource objects in an accessPackageCatalog. This API is supported in the following national cloud deployments. /// public class ResourcesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/ConnectedOrganizationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/ConnectedOrganizationsRequestBuilder.cs index 05430951557..2d78a9f0e43 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/ConnectedOrganizationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/ConnectedOrganizationsRequestBuilder.cs @@ -42,7 +42,7 @@ public ConnectedOrganizationsRequestBuilder(Dictionary pathParam public ConnectedOrganizationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of connectedOrganization objects. + /// Retrieve a list of connectedOrganization objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ConnectedOrganizationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new connectedOrganization object. + /// Create a new connectedOrganization object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(ConnectedOrganization body, A return await RequestAdapter.SendAsync(requestInfo, ConnectedOrganization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of connectedOrganization objects. + /// Retrieve a list of connectedOrganization objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new connectedOrganization object. + /// Create a new connectedOrganization object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ConnectedOrganizationsRequestBuilder WithUrl(string rawUrl) { return new ConnectedOrganizationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of connectedOrganization objects. + /// Retrieve a list of connectedOrganization objects. This API is supported in the following national cloud deployments. /// public class ConnectedOrganizationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ConnectedOrganizationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ConnectedOrganizationItemRequestBuilder.cs index a38ad937efe..462d6e3a6ed 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ConnectedOrganizationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ConnectedOrganizationItemRequestBuilder.cs @@ -39,7 +39,7 @@ public ConnectedOrganizationItemRequestBuilder(Dictionary pathPa public ConnectedOrganizationItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a connectedOrganization object. + /// Delete a connectedOrganization object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -59,7 +59,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a connectedOrganization object. + /// Retrieve the properties and relationships of a connectedOrganization object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -79,7 +79,7 @@ public async Task GetAsync(Action(requestInfo, ConnectedOrganization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update a connectedOrganization object to change one or more of its properties. + /// Update a connectedOrganization object to change one or more of its properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -101,7 +101,7 @@ public async Task PatchAsync(ConnectedOrganization body, return await RequestAdapter.SendAsync(requestInfo, ConnectedOrganization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a connectedOrganization object. + /// Delete a connectedOrganization object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -125,7 +125,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a connectedOrganization object. + /// Retrieve the properties and relationships of a connectedOrganization object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -151,7 +151,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update a connectedOrganization object to change one or more of its properties. + /// Update a connectedOrganization object to change one or more of its properties. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -202,7 +202,7 @@ public ConnectedOrganizationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a connectedOrganization object. + /// Retrieve the properties and relationships of a connectedOrganization object. This API is supported in the following national cloud deployments. /// public class ConnectedOrganizationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..bb5a485e9f2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.ConnectedOrganizations.Item.ExternalSponsors.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Delta/DeltaRequestBuilder.cs index e0aaf9d65e8..48021a0d3fc 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Delta/DeltaResponse.cs index 133692b0dcb..351c7759d75 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.ConnectedOrganizations.Item.ExternalSponsors.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/ExternalSponsorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/ExternalSponsorsRequestBuilder.cs index bf3086bf0fc..870c78594fb 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/ExternalSponsorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/ExternalSponsorsRequestBuilder.cs @@ -67,7 +67,7 @@ public ExternalSponsorsRequestBuilder(Dictionary pathParameters, public ExternalSponsorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -87,7 +87,7 @@ public async Task GetAsync(Action(requestInfo, DirectoryObjectCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a user or a group to the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// Add a user or a group to the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -109,7 +109,7 @@ public async Task PostAsync(DirectoryObject body, Action(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -135,7 +135,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a user or a group to the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// Add a user or a group to the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -170,7 +170,7 @@ public ExternalSponsorsRequestBuilder WithUrl(string rawUrl) { return new ExternalSponsorsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. /// public class ExternalSponsorsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs new file mode 100644 index 00000000000..ee045a68dcc --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.ConnectedOrganizations.Item.ExternalSponsors.GetAvailableExtensionProperties { + public class GetAvailableExtensionPropertiesPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAvailableExtensionPropertiesPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index 5dad62e1263..a3a8c990974 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -28,13 +28,36 @@ public GetAvailableExtensionPropertiesRequestBuilder(Dictionary public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/getAvailableExtensionProperties", rawUrl) { } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetAvailableExtensionPropertiesPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetAvailabl return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index 6e8327e886b..a128e7e7e04 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.ConnectedOrganizations.Item.ExternalSponsors.GetAvailableExtensionProperties { - public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAvailableExtensionPropertiesPostResponse instead.")] + public class GetAvailableExtensionPropertiesResponse : GetAvailableExtensionPropertiesPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetByIds/GetByIdsPostResponse.cs new file mode 100644 index 00000000000..a1908896d7e --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetByIds/GetByIdsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.ConnectedOrganizations.Item.ExternalSponsors.GetByIds { + public class GetByIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetByIdsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetByIds/GetByIdsRequestBuilder.cs index eee54b612bc..992c75e75eb 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetByIds/GetByIdsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetByIdsRequestBuilder(Dictionary pathParameters, IReques public GetByIdsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/getByIds", rawUrl) { } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetByIdsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetByIdsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetByIdsPostRequestBody body, Acti return await RequestAdapter.SendAsync(requestInfo, GetByIdsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetByIds/GetByIdsResponse.cs index 5ac86b5321d..82197cd16af 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/GetByIds/GetByIdsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.ConnectedOrganizations.Item.ExternalSponsors.GetByIds { - public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getByIdsPostResponse instead.")] + public class GetByIdsResponse : GetByIdsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Item/Ref/RefRequestBuilder.cs index 6978cd6d097..8f08f415f6b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Item/Ref/RefRequestBuilder.cs @@ -28,7 +28,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { } /// - /// Remove a user or a group from the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// Remove a user or a group from the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Remove a user or a group from the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// Remove a user or a group from the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -80,7 +80,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a user or a group from the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// Remove a user or a group from the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderDeleteQueryParameters { /// Delete Uri diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Ref/RefRequestBuilder.cs index 649d681def7..0ccdc300133 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Ref/RefRequestBuilder.cs @@ -29,7 +29,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { } /// - /// Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, StringCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a user or a group to the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// Add a user or a group to the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -71,7 +71,7 @@ public async Task PostAsync(ReferenceCreate body, Action - /// Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -97,7 +97,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a user or a group to the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// Add a user or a group to the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -131,7 +131,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/ValidateProperties/ValidatePropertiesRequestBuilder.cs index 21abac7c028..43ebb659905 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -28,7 +28,7 @@ public ValidatePropertiesRequestBuilder(Dictionary pathParameter public ValidatePropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/validateProperties", rawUrl) { } /// - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ValidatePropertiesPostRequestBody body, Action - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..bf36b419cd6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.ConnectedOrganizations.Item.InternalSponsors.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Delta/DeltaRequestBuilder.cs index 0324e97f429..6621cc33616 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Delta/DeltaResponse.cs index 64313389c6e..aa33afedb89 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.ConnectedOrganizations.Item.InternalSponsors.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs new file mode 100644 index 00000000000..2dea40c8e21 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.ConnectedOrganizations.Item.InternalSponsors.GetAvailableExtensionProperties { + public class GetAvailableExtensionPropertiesPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAvailableExtensionPropertiesPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index 94e9b7263a0..b818efdaefa 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -28,13 +28,36 @@ public GetAvailableExtensionPropertiesRequestBuilder(Dictionary public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/getAvailableExtensionProperties", rawUrl) { } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetAvailableExtensionPropertiesPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetAvailabl return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index e00dfd97e67..8576ffc18c5 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.ConnectedOrganizations.Item.InternalSponsors.GetAvailableExtensionProperties { - public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAvailableExtensionPropertiesPostResponse instead.")] + public class GetAvailableExtensionPropertiesResponse : GetAvailableExtensionPropertiesPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetByIds/GetByIdsPostResponse.cs new file mode 100644 index 00000000000..7d8f9c56393 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetByIds/GetByIdsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.ConnectedOrganizations.Item.InternalSponsors.GetByIds { + public class GetByIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetByIdsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetByIds/GetByIdsRequestBuilder.cs index 472a7de732a..b2ac4aaed88 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetByIds/GetByIdsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetByIdsRequestBuilder(Dictionary pathParameters, IReques public GetByIdsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/getByIds", rawUrl) { } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetByIdsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetByIdsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetByIdsPostRequestBody body, Acti return await RequestAdapter.SendAsync(requestInfo, GetByIdsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetByIds/GetByIdsResponse.cs index 47f1b854689..1e0e974fec5 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/GetByIds/GetByIdsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.ConnectedOrganizations.Item.InternalSponsors.GetByIds { - public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getByIdsPostResponse instead.")] + public class GetByIdsResponse : GetByIdsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/InternalSponsorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/InternalSponsorsRequestBuilder.cs index b333175d9c5..0467e67bab9 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/InternalSponsorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/InternalSponsorsRequestBuilder.cs @@ -67,7 +67,7 @@ public InternalSponsorsRequestBuilder(Dictionary pathParameters, public InternalSponsorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -87,7 +87,7 @@ public async Task GetAsync(Action(requestInfo, DirectoryObjectCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a user or a group to the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// Add a user or a group to the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -109,7 +109,7 @@ public async Task PostAsync(DirectoryObject body, Action(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -135,7 +135,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a user or a group to the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// Add a user or a group to the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -170,7 +170,7 @@ public InternalSponsorsRequestBuilder WithUrl(string rawUrl) { return new InternalSponsorsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. /// public class InternalSponsorsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Item/Ref/RefRequestBuilder.cs index 8a988374f2d..e6fb5298951 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Item/Ref/RefRequestBuilder.cs @@ -28,7 +28,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { } /// - /// Remove a user or a group from the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// Remove a user or a group from the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Remove a user or a group from the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// Remove a user or a group from the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -80,7 +80,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a user or a group from the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// Remove a user or a group from the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderDeleteQueryParameters { /// Delete Uri diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Ref/RefRequestBuilder.cs index b3e7835b499..8285004af12 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Ref/RefRequestBuilder.cs @@ -29,7 +29,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { } /// - /// Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, StringCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a user or a group to the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// Add a user or a group to the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -71,7 +71,7 @@ public async Task PostAsync(ReferenceCreate body, Action - /// Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -97,7 +97,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a user or a group to the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// Add a user or a group to the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -131,7 +131,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/ValidateProperties/ValidatePropertiesRequestBuilder.cs index 8498bf3811b..169fffb5afc 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -28,7 +28,7 @@ public ValidatePropertiesRequestBuilder(Dictionary pathParameter public ValidatePropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/validateProperties", rawUrl) { } /// - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ValidatePropertiesPostRequestBody body, Action - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/ResourceEnvironmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/ResourceEnvironmentsRequestBuilder.cs index 5dcf8a7e4f0..1c1a7dc12aa 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/ResourceEnvironmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/ResourceEnvironmentsRequestBuilder.cs @@ -42,7 +42,7 @@ public ResourceEnvironmentsRequestBuilder(Dictionary pathParamet public ResourceEnvironmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of accessPackageResourceEnvironment objects and their properties. + /// Retrieve a list of accessPackageResourceEnvironment objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(AccessPackageResou return await RequestAdapter.SendAsync(requestInfo, AccessPackageResourceEnvironment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of accessPackageResourceEnvironment objects and their properties. + /// Retrieve a list of accessPackageResourceEnvironment objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public ResourceEnvironmentsRequestBuilder WithUrl(string rawUrl) { return new ResourceEnvironmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of accessPackageResourceEnvironment objects and their properties. + /// Retrieve a list of accessPackageResourceEnvironment objects and their properties. This API is supported in the following national cloud deployments. /// public class ResourceEnvironmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.cs index f66bccd5093..1aeeebddd67 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.cs @@ -42,7 +42,8 @@ public CustomWorkflowExtensionsRequestBuilder(Dictionary pathPar public CustomWorkflowExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/customWorkflowExtensions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get customWorkflowExtensions from identityGovernance + /// Get a list of the accessPackageAssignmentRequestWorkflowExtension and accessPackageAssignmentWorkflowExtension objects and their properties. The resulting list includes all the customAccessPackageWorkflowExtension objects for the catalog that the caller has access to read. Each object includes an @odata.type property that indicates whether the object is an accessPackageAssignmentRequestWorkflowExtension or an accessPackageAssignmentWorkflowExtension. This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +62,8 @@ public async Task GetAsync(Action(requestInfo, CustomCalloutExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create new navigation property to customWorkflowExtensions for identityGovernance + /// Create a new accessPackageAssignmentRequestWorkflowExtension or accessPackageAssignmentWorkflowExtension object and add it to an existing accessPackageCatalog object. You must explicitly provide an @odata.type property that indicates whether the object is an accessPackageAssignmentRequestWorkflowExtension or an accessPackageAssignmentWorkflowExtension. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -82,7 +84,7 @@ public async Task PostAsync(CustomCalloutExtension body, return await RequestAdapter.SendAsync(requestInfo, CustomCalloutExtension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get customWorkflowExtensions from identityGovernance + /// Get a list of the accessPackageAssignmentRequestWorkflowExtension and accessPackageAssignmentWorkflowExtension objects and their properties. The resulting list includes all the customAccessPackageWorkflowExtension objects for the catalog that the caller has access to read. Each object includes an @odata.type property that indicates whether the object is an accessPackageAssignmentRequestWorkflowExtension or an accessPackageAssignmentWorkflowExtension. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -108,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to customWorkflowExtensions for identityGovernance + /// Create a new accessPackageAssignmentRequestWorkflowExtension or accessPackageAssignmentWorkflowExtension object and add it to an existing accessPackageCatalog object. You must explicitly provide an @odata.type property that indicates whether the object is an accessPackageAssignmentRequestWorkflowExtension or an accessPackageAssignmentWorkflowExtension. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -143,7 +145,7 @@ public CustomWorkflowExtensionsRequestBuilder WithUrl(string rawUrl) { return new CustomWorkflowExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get customWorkflowExtensions from identityGovernance + /// Get a list of the accessPackageAssignmentRequestWorkflowExtension and accessPackageAssignmentWorkflowExtension objects and their properties. The resulting list includes all the customAccessPackageWorkflowExtension objects for the catalog that the caller has access to read. Each object includes an @odata.type property that indicates whether the object is an accessPackageAssignmentRequestWorkflowExtension or an accessPackageAssignmentWorkflowExtension. This API is supported in the following national cloud deployments. /// public class CustomWorkflowExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs index 31eebb51e89..8080b5d1c33 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs @@ -29,7 +29,8 @@ public CustomCalloutExtensionItemRequestBuilder(Dictionary pathP public CustomCalloutExtensionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/customWorkflowExtensions/{customCalloutExtension%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete navigation property customWorkflowExtensions for identityGovernance + /// Delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -48,7 +49,8 @@ public async Task DeleteAsync(Action - /// Get customWorkflowExtensions from identityGovernance + /// Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -67,7 +69,8 @@ public async Task GetAsync(Action(requestInfo, CustomCalloutExtension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the navigation property customWorkflowExtensions in identityGovernance + /// Update the properties of an accessPackageAssignmentWorkflowExtension object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -88,7 +91,7 @@ public async Task PatchAsync(CustomCalloutExtension body return await RequestAdapter.SendAsync(requestInfo, CustomCalloutExtension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete navigation property customWorkflowExtensions for identityGovernance + /// Delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -112,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get customWorkflowExtensions from identityGovernance + /// Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -138,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property customWorkflowExtensions in identityGovernance + /// Update the properties of an accessPackageAssignmentWorkflowExtension object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -189,7 +192,7 @@ public CustomCalloutExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get customWorkflowExtensions from identityGovernance + /// Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. This API is supported in the following national cloud deployments. /// public class CustomCalloutExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/ResourceRolesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/ResourceRolesRequestBuilder.cs index 78793c06da2..8512502fd84 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/ResourceRolesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/ResourceRolesRequestBuilder.cs @@ -42,7 +42,7 @@ public ResourceRolesRequestBuilder(Dictionary pathParameters, IR public ResourceRolesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of accessPackageResourceRole objects of an accessPackageResource in an accessPackageCatalog. The resource should have been added to the catalog by creating an accessPackageResourceRequest. This list of roles can then be used by the caller to select a role, which is needed when subsequently creating an accessPackageResourceRoleScope. + /// Retrieve a list of accessPackageResourceRole objects of an accessPackageResource in an accessPackageCatalog. The resource should have been added to the catalog by creating an accessPackageResourceRequest. This list of roles can then be used by the caller to select a role, which is needed when subsequently creating an accessPackageResourceRoleScope. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(AccessPackageResourceRole return await RequestAdapter.SendAsync(requestInfo, AccessPackageResourceRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of accessPackageResourceRole objects of an accessPackageResource in an accessPackageCatalog. The resource should have been added to the catalog by creating an accessPackageResourceRequest. This list of roles can then be used by the caller to select a role, which is needed when subsequently creating an accessPackageResourceRoleScope. + /// Retrieve a list of accessPackageResourceRole objects of an accessPackageResource in an accessPackageCatalog. The resource should have been added to the catalog by creating an accessPackageResourceRequest. This list of roles can then be used by the caller to select a role, which is needed when subsequently creating an accessPackageResourceRoleScope. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public ResourceRolesRequestBuilder WithUrl(string rawUrl) { return new ResourceRolesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of accessPackageResourceRole objects of an accessPackageResource in an accessPackageCatalog. The resource should have been added to the catalog by creating an accessPackageResourceRequest. This list of roles can then be used by the caller to select a role, which is needed when subsequently creating an accessPackageResourceRoleScope. + /// Retrieve a list of accessPackageResourceRole objects of an accessPackageResource in an accessPackageCatalog. The resource should have been added to the catalog by creating an accessPackageResourceRequest. This list of roles can then be used by the caller to select a role, which is needed when subsequently creating an accessPackageResourceRoleScope. This API is supported in the following national cloud deployments. /// public class ResourceRolesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/ResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/ResourcesRequestBuilder.cs index 1a7da2b8a5b..191bc14dd2e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/ResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/ResourcesRequestBuilder.cs @@ -42,7 +42,7 @@ public ResourcesRequestBuilder(Dictionary pathParameters, IReque public ResourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of accessPackageResource objects in an accessPackageCatalog. + /// Retrieve a list of accessPackageResource objects in an accessPackageCatalog. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(AccessPackageResource body, A return await RequestAdapter.SendAsync(requestInfo, AccessPackageResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of accessPackageResource objects in an accessPackageCatalog. + /// Retrieve a list of accessPackageResource objects in an accessPackageCatalog. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public ResourcesRequestBuilder WithUrl(string rawUrl) { return new ResourcesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of accessPackageResource objects in an accessPackageCatalog. + /// Retrieve a list of accessPackageResource objects in an accessPackageCatalog. This API is supported in the following national cloud deployments. /// public class ResourcesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/ResourceRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/ResourceRequestsRequestBuilder.cs index 3756d2a2976..65bd7ccef03 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/ResourceRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/ResourceRequestsRequestBuilder.cs @@ -42,7 +42,7 @@ public ResourceRequestsRequestBuilder(Dictionary pathParameters, public ResourceRequestsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of accessPackageResourceRequest objects. + /// Retrieve a list of accessPackageResourceRequest objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Actio return await RequestAdapter.SendAsync(requestInfo, AccessPackageResourceRequestCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new accessPackageResourceRequest object to request the addition of a resource to an access package catalog, update of a resource, or the removal of a resource from a catalog. A resource must be included in an access package catalog before a role of that resource can be added to an access package. To add an Azure AD group as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be AadGroup and the value of the originId is the identifier of the group. To add an Azure AD application as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be AadApplication and the value of the originId is the identifier of the servicePrincipal. To add a SharePoint Online site an as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be SharePointOnline and the value of the originId is the URI of the site. To remove a resource from a catalog, set the requestType to be adminRemove, and the resource to contain the id of the resource object to be removed. The resource object can be retrieved using list resources. + /// Create a new accessPackageResourceRequest object to request the addition of a resource to an access package catalog, update of a resource, or the removal of a resource from a catalog. A resource must be included in an access package catalog before a role of that resource can be added to an access package. To add an Azure AD group as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be AadGroup and the value of the originId is the identifier of the group. To add an Azure AD application as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be AadApplication and the value of the originId is the identifier of the servicePrincipal. To add a SharePoint Online site an as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be SharePointOnline and the value of the originId is the URI of the site. To remove a resource from a catalog, set the requestType to be adminRemove, and the resource to contain the id of the resource object to be removed. The resource object can be retrieved using list resources. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(AccessPackageResourceR return await RequestAdapter.SendAsync(requestInfo, AccessPackageResourceRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of accessPackageResourceRequest objects. + /// Retrieve a list of accessPackageResourceRequest objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new accessPackageResourceRequest object to request the addition of a resource to an access package catalog, update of a resource, or the removal of a resource from a catalog. A resource must be included in an access package catalog before a role of that resource can be added to an access package. To add an Azure AD group as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be AadGroup and the value of the originId is the identifier of the group. To add an Azure AD application as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be AadApplication and the value of the originId is the identifier of the servicePrincipal. To add a SharePoint Online site an as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be SharePointOnline and the value of the originId is the URI of the site. To remove a resource from a catalog, set the requestType to be adminRemove, and the resource to contain the id of the resource object to be removed. The resource object can be retrieved using list resources. + /// Create a new accessPackageResourceRequest object to request the addition of a resource to an access package catalog, update of a resource, or the removal of a resource from a catalog. A resource must be included in an access package catalog before a role of that resource can be added to an access package. To add an Azure AD group as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be AadGroup and the value of the originId is the identifier of the group. To add an Azure AD application as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be AadApplication and the value of the originId is the identifier of the servicePrincipal. To add a SharePoint Online site an as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be SharePointOnline and the value of the originId is the URI of the site. To remove a resource from a catalog, set the requestType to be adminRemove, and the resource to contain the id of the resource object to be removed. The resource object can be retrieved using list resources. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ResourceRequestsRequestBuilder WithUrl(string rawUrl) { return new ResourceRequestsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of accessPackageResourceRequest objects. + /// Retrieve a list of accessPackageResourceRequest objects. This API is supported in the following national cloud deployments. /// public class ResourceRequestsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Settings/SettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Settings/SettingsRequestBuilder.cs index 4f0c8f4dc46..add15870533 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Settings/SettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Settings/SettingsRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties of an entitlementManagementSettings object. + /// Retrieve the properties of an entitlementManagementSettings object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, EntitlementManagementSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update an existing entitlementManagementSettings object to change one or more of its properties. + /// Update an existing entitlementManagementSettings object to change one or more of its properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties of an entitlementManagementSettings object. + /// Retrieve the properties of an entitlementManagementSettings object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update an existing entitlementManagementSettings object to change one or more of its properties. + /// Update an existing entitlementManagementSettings object to change one or more of its properties. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -191,7 +191,7 @@ public SettingsRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties of an entitlementManagementSettings object. + /// Retrieve the properties of an entitlementManagementSettings object. This API is supported in the following national cloud deployments. /// public class SettingsRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/IdentityGovernanceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/IdentityGovernanceRequestBuilder.cs index afc39b8e873..fdff5be6418 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/IdentityGovernanceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/IdentityGovernanceRequestBuilder.cs @@ -3,6 +3,7 @@ using Microsoft.Graph.IdentityGovernance.AppConsent; using Microsoft.Graph.IdentityGovernance.EntitlementManagement; using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows; +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess; using Microsoft.Graph.IdentityGovernance.TermsOfUse; using Microsoft.Graph.Models.IdentityGovernance; using Microsoft.Graph.Models.ODataErrors; @@ -35,6 +36,10 @@ public class IdentityGovernanceRequestBuilder : BaseRequestBuilder { public LifecycleWorkflowsRequestBuilder LifecycleWorkflows { get => new LifecycleWorkflowsRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the privilegedAccess property of the microsoft.graph.identityGovernance entity. + public PrivilegedAccessRequestBuilder PrivilegedAccess { get => + new PrivilegedAccessRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to manage the termsOfUse property of the microsoft.graph.identityGovernance entity. public TermsOfUseRequestBuilder TermsOfUse { get => new TermsOfUseRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/CustomTaskExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/CustomTaskExtensionsRequestBuilder.cs index 0e671ccd8ff..51a332e0c6e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/CustomTaskExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/CustomTaskExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public CustomTaskExtensionsRequestBuilder(Dictionary pathParamet public CustomTaskExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/customTaskExtensions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the customTaskExtension objects and their properties. + /// Get a list of the customTaskExtension objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, CustomTaskExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new customTaskExtension object. + /// Create a new customTaskExtension object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(CustomTaskExtension body, Actio return await RequestAdapter.SendAsync(requestInfo, CustomTaskExtension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the customTaskExtension objects and their properties. + /// Get a list of the customTaskExtension objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new customTaskExtension object. + /// Create a new customTaskExtension object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public CustomTaskExtensionsRequestBuilder WithUrl(string rawUrl) { return new CustomTaskExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the customTaskExtension objects and their properties. + /// Get a list of the customTaskExtension objects and their properties. This API is supported in the following national cloud deployments. /// public class CustomTaskExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/CreatedByRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/CreatedByRequestBuilder.cs index 5f5e19ba2a1..d4ecc9798e1 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/CreatedByRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/CreatedByRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.CustomTaskExtensions.Item.CreatedBy.MailboxSettings; +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.CustomTaskExtensions.Item.CreatedBy.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class CreatedByRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new CreatedByRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..32bcfbcae4d --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.CustomTaskExtensions.Item.CreatedBy.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/customTaskExtensions/{customTaskExtension%2Did}/createdBy/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/customTaskExtensions/{customTaskExtension%2Did}/createdBy/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..50945e2be51 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.CustomTaskExtensions.Item.CreatedBy.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.CustomTaskExtensions.Item.CreatedBy.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\customTaskExtensions\{customTaskExtension-id}\createdBy\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/customTaskExtensions/{customTaskExtension%2Did}/createdBy/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/customTaskExtensions/{customTaskExtension%2Did}/createdBy/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CustomTaskExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CustomTaskExtensionItemRequestBuilder.cs index e724716633d..6680c9febca 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CustomTaskExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CustomTaskExtensionItemRequestBuilder.cs @@ -39,7 +39,7 @@ public CustomTaskExtensionItemRequestBuilder(Dictionary pathPara public CustomTaskExtensionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/customTaskExtensions/{customTaskExtension%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a customTaskExtension object. A custom task extension can only be deleted if it is not referenced in any task objects in a lifecycle workflow. + /// Delete a customTaskExtension object. A custom task extension can only be deleted if it is not referenced in any task objects in a lifecycle workflow. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -59,7 +59,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a customTaskExtension object. + /// Read the properties and relationships of a customTaskExtension object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -79,7 +79,7 @@ public async Task GetAsync(Action(requestInfo, CustomTaskExtension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a customTaskExtension object. + /// Update the properties of a customTaskExtension object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -101,7 +101,7 @@ public async Task PatchAsync(CustomTaskExtension body, Acti return await RequestAdapter.SendAsync(requestInfo, CustomTaskExtension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a customTaskExtension object. A custom task extension can only be deleted if it is not referenced in any task objects in a lifecycle workflow. + /// Delete a customTaskExtension object. A custom task extension can only be deleted if it is not referenced in any task objects in a lifecycle workflow. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -125,7 +125,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a customTaskExtension object. + /// Read the properties and relationships of a customTaskExtension object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -151,7 +151,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a customTaskExtension object. + /// Update the properties of a customTaskExtension object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -202,7 +202,7 @@ public CustomTaskExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a customTaskExtension object. + /// Read the properties and relationships of a customTaskExtension object. This API is supported in the following national cloud deployments. /// public class CustomTaskExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs index ca22d9a2c82..11797370f9f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.CustomTaskExtensions.Item.LastModifiedBy.MailboxSettings; +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.CustomTaskExtensions.Item.LastModifiedBy.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class LastModifiedByRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new LastModifiedByRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..4b89264cb1a --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.CustomTaskExtensions.Item.LastModifiedBy.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/customTaskExtensions/{customTaskExtension%2Did}/lastModifiedBy/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/customTaskExtensions/{customTaskExtension%2Did}/lastModifiedBy/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..c914ddd6cdc --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.CustomTaskExtensions.Item.LastModifiedBy.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.CustomTaskExtensions.Item.LastModifiedBy.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\customTaskExtensions\{customTaskExtension-id}\lastModifiedBy\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/customTaskExtensions/{customTaskExtension%2Did}/lastModifiedBy/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/customTaskExtensions/{customTaskExtension%2Did}/lastModifiedBy/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/CreatedByRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/CreatedByRequestBuilder.cs index 3c1c86db523..934ea464a8e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/CreatedByRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/CreatedByRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.CreatedBy.MailboxSettings; +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.CreatedBy.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class CreatedByRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new CreatedByRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..49e21ba0e77 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.CreatedBy.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/createdBy/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/createdBy/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..441f7ecf452 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.CreatedBy.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.CreatedBy.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\createdBy\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/createdBy/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/createdBy/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs index c2e2c6af3fe..b1e157a03ab 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.LastModifiedBy.MailboxSettings; +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.LastModifiedBy.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class LastModifiedByRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new LastModifiedByRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..2531e028127 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.LastModifiedBy.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/lastModifiedBy/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/lastModifiedBy/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..71d7b3acc62 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.LastModifiedBy.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.LastModifiedBy.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\lastModifiedBy\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/lastModifiedBy/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/lastModifiedBy/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/MicrosoftGraphIdentityGovernanceActivateRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/MicrosoftGraphIdentityGovernanceActivateRequestBuilder.cs index 0436f13591c..1a717a4a390 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/MicrosoftGraphIdentityGovernanceActivateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/MicrosoftGraphIdentityGovernanceActivateRequestBuilder.cs @@ -28,7 +28,7 @@ public MicrosoftGraphIdentityGovernanceActivateRequestBuilder(Dictionary - /// Run a workflow object on-demand. You can run any workflow on-demand, including scheduled workflows. Workflows created from the 'Real-time employee termination' template are run on-demand only. When you run a workflow on demand, the tasks are executed regardless of whether the user state matches the scope and trigger execution conditions. + /// Run a workflow object on-demand. You can run any workflow on-demand, including scheduled workflows. Workflows created from the 'Real-time employee termination' template are run on-demand only. When you run a workflow on demand, the tasks are executed regardless of whether the user state matches the scope and trigger execution conditions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ActivatePostRequestBody body, Action - /// Run a workflow object on-demand. You can run any workflow on-demand, including scheduled workflows. Workflows created from the 'Real-time employee termination' template are run on-demand only. When you run a workflow on demand, the tasks are executed regardless of whether the user state matches the scope and trigger execution conditions. + /// Run a workflow object on-demand. You can run any workflow on-demand, including scheduled workflows. Workflows created from the 'Real-time employee termination' template are run on-demand only. When you run a workflow on demand, the tasks are executed regardless of whether the user state matches the scope and trigger execution conditions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder.cs index 0b6a22b12e3..70a95ebf8e4 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder.cs @@ -29,7 +29,7 @@ public MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder(Dictionary public MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/microsoft.graph.identityGovernance.createNewVersion", rawUrl) { } /// - /// Create a new version of the workflow object. + /// Create a new version of the workflow object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateNewVersionPostRequestBody body, Acti return await RequestAdapter.SendAsync(requestInfo, Workflow.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new version of the workflow object. + /// Create a new version of the workflow object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceRestore/MicrosoftGraphIdentityGovernanceRestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceRestore/MicrosoftGraphIdentityGovernanceRestoreRequestBuilder.cs index d770a889d4f..cec6cfa594b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceRestore/MicrosoftGraphIdentityGovernanceRestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceRestore/MicrosoftGraphIdentityGovernanceRestoreRequestBuilder.cs @@ -29,7 +29,7 @@ public MicrosoftGraphIdentityGovernanceRestoreRequestBuilder(Dictionary - /// Restore a workflow that has been deleted. You can only restore a workflow that was deleted within the last 30 days before Azure AD automatically permanently deletes it. + /// Restore a workflow that has been deleted. You can only restore a workflow that was deleted within the last 30 days before Azure AD automatically permanently deletes it. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, Workflow.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Restore a workflow that has been deleted. You can only restore a workflow that was deleted within the last 30 days before Azure AD automatically permanently deletes it. + /// Restore a workflow that has been deleted. You can only restore a workflow that was deleted within the last 30 days before Azure AD automatically permanently deletes it. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/RunItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/RunItemRequestBuilder.cs index 8b978470f33..f091469cfb4 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/RunItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/RunItemRequestBuilder.cs @@ -39,7 +39,7 @@ public RunItemRequestBuilder(Dictionary pathParameters, IRequest public RunItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of a run object. + /// Read the properties and relationships of a run object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -59,7 +59,7 @@ public async Task GetAsync(Action(requestInfo, Run.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of a run object. + /// Read the properties and relationships of a run object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -92,7 +92,7 @@ public RunItemRequestBuilder WithUrl(string rawUrl) { return new RunItemRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of a run object. + /// Read the properties and relationships of a run object. This API is supported in the following national cloud deployments. /// public class RunItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs index d6d66996f12..44e2a1649ee 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs @@ -28,7 +28,7 @@ public MicrosoftGraphIdentityGovernanceResumeRequestBuilder(Dictionary - /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ResumePostRequestBody body, Action - /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..fd85a8ef25f --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..e70af4f619d --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\runs\{run-id}\taskProcessingResults\{taskProcessingResult-id}\subject\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs index 09160b49f70..2d7c8a17278 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.TaskProcessingResults.Item.Subject.MailboxSettings; +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class SubjectRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new SubjectRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs index f9e6811aada..fbfd9433249 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs @@ -42,7 +42,7 @@ public TaskProcessingResultsRequestBuilder(Dictionary pathParame public TaskProcessingResultsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/taskProcessingResults{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the taskProcessingResult resources for a run. + /// Get the taskProcessingResult resources for a run. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TaskProcessingResultCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the taskProcessingResult resources for a run. + /// Get the taskProcessingResult resources for a run. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public TaskProcessingResultsRequestBuilder WithUrl(string rawUrl) { return new TaskProcessingResultsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the taskProcessingResult resources for a run. + /// Get the taskProcessingResult resources for a run. This API is supported in the following national cloud deployments. /// public class TaskProcessingResultsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..14bde14b830 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.UserProcessingResults.Item.Subject.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/userProcessingResults/{userProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/userProcessingResults/{userProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..31c693bd62c --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.UserProcessingResults.Item.Subject.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.UserProcessingResults.Item.Subject.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\runs\{run-id}\userProcessingResults\{userProcessingResult-id}\subject\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/userProcessingResults/{userProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/userProcessingResults/{userProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.cs index bf6f0f98ef2..8acac6e6114 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.UserProcessingResults.Item.Subject.MailboxSettings; +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.UserProcessingResults.Item.Subject.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class SubjectRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new SubjectRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs index 4fe874ad702..04100192756 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs @@ -28,7 +28,7 @@ public MicrosoftGraphIdentityGovernanceResumeRequestBuilder(Dictionary - /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ResumePostRequestBody body, Action - /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..e994446a0c2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.UserProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/userProcessingResults/{userProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/userProcessingResults/{userProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..2904cd7c135 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.UserProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.UserProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\runs\{run-id}\userProcessingResults\{userProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\subject\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/userProcessingResults/{userProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/userProcessingResults/{userProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs index a7bbcf5c5ef..aa38fc26f9c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.UserProcessingResults.Item.TaskProcessingResults.Item.Subject.MailboxSettings; +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.UserProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class SubjectRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new SubjectRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs index 500c204e554..df602962fd8 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs @@ -42,7 +42,7 @@ public TaskProcessingResultsRequestBuilder(Dictionary pathParame public TaskProcessingResultsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/userProcessingResults/{userProcessingResult%2Did}/taskProcessingResults{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the task processing result from a userProcessingResult either directly or through a run. + /// Get the task processing result from a userProcessingResult either directly or through a run. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TaskProcessingResultCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the task processing result from a userProcessingResult either directly or through a run. + /// Get the task processing result from a userProcessingResult either directly or through a run. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public TaskProcessingResultsRequestBuilder WithUrl(string rawUrl) { return new TaskProcessingResultsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the task processing result from a userProcessingResult either directly or through a run. + /// Get the task processing result from a userProcessingResult either directly or through a run. This API is supported in the following national cloud deployments. /// public class TaskProcessingResultsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs index 834b4fd3d52..2dd546cb676 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs @@ -39,7 +39,7 @@ public UserProcessingResultItemRequestBuilder(Dictionary pathPar public UserProcessingResultItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/userProcessingResults/{userProcessingResult%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Get the user processing result of a user processing result of a run. + /// Get the user processing result of a user processing result of a run. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -59,7 +59,7 @@ public async Task GetAsync(Action(requestInfo, UserProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the user processing result of a user processing result of a run. + /// Get the user processing result of a user processing result of a run. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -92,7 +92,7 @@ public UserProcessingResultItemRequestBuilder WithUrl(string rawUrl) { return new UserProcessingResultItemRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the user processing result of a user processing result of a run. + /// Get the user processing result of a user processing result of a run. This API is supported in the following national cloud deployments. /// public class UserProcessingResultItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs index a747c88d774..0261ab19ea0 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs @@ -43,7 +43,7 @@ public UserProcessingResultsRequestBuilder(Dictionary pathParame public UserProcessingResultsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/userProcessingResults{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get user processing results of a workflow run object. + /// Get user processing results of a workflow run object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -73,7 +73,7 @@ public MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRe return new MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder(PathParameters, RequestAdapter, endDateTime, startDateTime); } /// - /// Get user processing results of a workflow run object. + /// Get user processing results of a workflow run object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -106,7 +106,7 @@ public UserProcessingResultsRequestBuilder WithUrl(string rawUrl) { return new UserProcessingResultsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get user processing results of a workflow run object. + /// Get user processing results of a workflow run object. This API is supported in the following national cloud deployments. /// public class UserProcessingResultsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/RunsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/RunsRequestBuilder.cs index 216e2e08939..e3dba297a3e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/RunsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/RunsRequestBuilder.cs @@ -43,7 +43,7 @@ public RunsRequestBuilder(Dictionary pathParameters, IRequestAda public RunsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the run objects and their properties for a lifecycle workflow. + /// Get a list of the run objects and their properties for a lifecycle workflow. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -73,7 +73,7 @@ public MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRe return new MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder(PathParameters, RequestAdapter, endDateTime, startDateTime); } /// - /// Get a list of the run objects and their properties for a lifecycle workflow. + /// Get a list of the run objects and their properties for a lifecycle workflow. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -106,7 +106,7 @@ public RunsRequestBuilder WithUrl(string rawUrl) { return new RunsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the run objects and their properties for a lifecycle workflow. + /// Get a list of the run objects and their properties for a lifecycle workflow. This API is supported in the following national cloud deployments. /// public class RunsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs index d5b0852e3ac..8b0c8d94d07 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs @@ -28,7 +28,7 @@ public MicrosoftGraphIdentityGovernanceResumeRequestBuilder(Dictionary - /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ResumePostRequestBody body, Action - /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..472b66fba1b --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.TaskReports.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/taskReports/{taskReport%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/taskReports/{taskReport%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..b0dab8fedff --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.TaskReports.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.TaskReports.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\taskReports\{taskReport-id}\taskProcessingResults\{taskProcessingResult-id}\subject\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/taskReports/{taskReport%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/taskReports/{taskReport%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs index 43f0fa8feab..28267314923 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.TaskReports.Item.TaskProcessingResults.Item.Subject.MailboxSettings; +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.TaskReports.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class SubjectRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new SubjectRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs index 39db27e31fa..48a35b366fd 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs @@ -42,7 +42,7 @@ public TaskProcessingResultsRequestBuilder(Dictionary pathParame public TaskProcessingResultsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/taskReports/{taskReport%2Did}/taskProcessingResults{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the task processing result resources from the taskReport. + /// Get the task processing result resources from the taskReport. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TaskProcessingResultCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the task processing result resources from the taskReport. + /// Get the task processing result resources from the taskReport. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public TaskProcessingResultsRequestBuilder WithUrl(string rawUrl) { return new TaskProcessingResultsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the task processing result resources from the taskReport. + /// Get the task processing result resources from the taskReport. This API is supported in the following national cloud deployments. /// public class TaskProcessingResultsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/TaskReportsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/TaskReportsRequestBuilder.cs index 4489b6c9559..cfe996ed752 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/TaskReportsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/TaskReportsRequestBuilder.cs @@ -43,7 +43,7 @@ public TaskReportsRequestBuilder(Dictionary pathParameters, IReq public TaskReportsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/taskReports{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the taskReport objects and their properties. + /// Get a list of the taskReport objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -73,7 +73,7 @@ public MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRe return new MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder(PathParameters, RequestAdapter, endDateTime, startDateTime); } /// - /// Get a list of the taskReport objects and their properties. + /// Get a list of the taskReport objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -106,7 +106,7 @@ public TaskReportsRequestBuilder WithUrl(string rawUrl) { return new TaskReportsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the taskReport objects and their properties. + /// Get a list of the taskReport objects and their properties. This API is supported in the following national cloud deployments. /// public class TaskReportsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs index e370a9d456c..b16210f91f9 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs @@ -28,7 +28,7 @@ public MicrosoftGraphIdentityGovernanceResumeRequestBuilder(Dictionary - /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ResumePostRequestBody body, Action - /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..be84435df93 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Tasks.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/tasks/{task%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/tasks/{task%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..21c21f92a99 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Tasks.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Tasks.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\tasks\{task-id}\taskProcessingResults\{taskProcessingResult-id}\subject\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/tasks/{task%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/tasks/{task%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs index e9cb1e7a36c..ed23a06b81d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Tasks.Item.TaskProcessingResults.Item.Subject.MailboxSettings; +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Tasks.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class SubjectRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new SubjectRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..c52469434fd --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.UserProcessingResults.Item.Subject.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/userProcessingResults/{userProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/userProcessingResults/{userProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..761dd492ab8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.UserProcessingResults.Item.Subject.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.UserProcessingResults.Item.Subject.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\userProcessingResults\{userProcessingResult-id}\subject\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/userProcessingResults/{userProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/userProcessingResults/{userProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.cs index 20e0a598d46..28724fd958a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.UserProcessingResults.Item.Subject.MailboxSettings; +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.UserProcessingResults.Item.Subject.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class SubjectRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new SubjectRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs index e6f7cec4f9d..78ec7269520 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs @@ -28,7 +28,7 @@ public MicrosoftGraphIdentityGovernanceResumeRequestBuilder(Dictionary - /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ResumePostRequestBody body, Action - /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..7d6e14f2709 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.UserProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/userProcessingResults/{userProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/userProcessingResults/{userProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..2f54b25de77 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.UserProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.UserProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\userProcessingResults\{userProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\subject\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/userProcessingResults/{userProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/userProcessingResults/{userProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs index 58c5ec2250a..52c4206e14c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.UserProcessingResults.Item.TaskProcessingResults.Item.Subject.MailboxSettings; +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.UserProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class SubjectRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new SubjectRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs index ebe4891839d..01986e5d094 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs @@ -42,7 +42,7 @@ public TaskProcessingResultsRequestBuilder(Dictionary pathParame public TaskProcessingResultsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/userProcessingResults/{userProcessingResult%2Did}/taskProcessingResults{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the task processing result from a userProcessingResult either directly or through a run. + /// Get the task processing result from a userProcessingResult either directly or through a run. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TaskProcessingResultCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the task processing result from a userProcessingResult either directly or through a run. + /// Get the task processing result from a userProcessingResult either directly or through a run. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public TaskProcessingResultsRequestBuilder WithUrl(string rawUrl) { return new TaskProcessingResultsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the task processing result from a userProcessingResult either directly or through a run. + /// Get the task processing result from a userProcessingResult either directly or through a run. This API is supported in the following national cloud deployments. /// public class TaskProcessingResultsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs index cbec4b4e7e5..32fca1dee51 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs @@ -43,7 +43,7 @@ public UserProcessingResultsRequestBuilder(Dictionary pathParame public UserProcessingResultsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/userProcessingResults{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the userProcessingResult resources for a workflow. + /// Get the userProcessingResult resources for a workflow. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -73,7 +73,7 @@ public MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRe return new MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder(PathParameters, RequestAdapter, endDateTime, startDateTime); } /// - /// Get the userProcessingResult resources for a workflow. + /// Get the userProcessingResult resources for a workflow. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -106,7 +106,7 @@ public UserProcessingResultsRequestBuilder WithUrl(string rawUrl) { return new UserProcessingResultsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the userProcessingResult resources for a workflow. + /// Get the userProcessingResult resources for a workflow. This API is supported in the following national cloud deployments. /// public class UserProcessingResultsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/CreatedByRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/CreatedByRequestBuilder.cs index fc6436f5e55..ec61199053c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/CreatedByRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/CreatedByRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Versions.Item.CreatedBy.MailboxSettings; +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Versions.Item.CreatedBy.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class CreatedByRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new CreatedByRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..b483e1f033c --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Versions.Item.CreatedBy.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/createdBy/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/createdBy/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..0dc6bd7204c --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Versions.Item.CreatedBy.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Versions.Item.CreatedBy.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\versions\{workflowVersion-versionNumber}\createdBy\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/createdBy/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/createdBy/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs index 9c723d524f9..bd261c24278 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Versions.Item.LastModifiedBy.MailboxSettings; +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Versions.Item.LastModifiedBy.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class LastModifiedByRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new LastModifiedByRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..34fa0872873 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Versions.Item.LastModifiedBy.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/lastModifiedBy/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/lastModifiedBy/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..d97884a1c8a --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Versions.Item.LastModifiedBy.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Versions.Item.LastModifiedBy.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\versions\{workflowVersion-versionNumber}\lastModifiedBy\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/lastModifiedBy/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/lastModifiedBy/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs index 1eb4b30e2ce..b89d64ce1f8 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs @@ -28,7 +28,7 @@ public MicrosoftGraphIdentityGovernanceResumeRequestBuilder(Dictionary - /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ResumePostRequestBody body, Action - /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..b97263213a8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Versions.Item.Tasks.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/tasks/{task%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/tasks/{task%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..f69ec17961c --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Versions.Item.Tasks.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Versions.Item.Tasks.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\versions\{workflowVersion-versionNumber}\tasks\{task-id}\taskProcessingResults\{taskProcessingResult-id}\subject\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/tasks/{task%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/tasks/{task%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs index 76549efeef9..54853066950 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Versions.Item.Tasks.Item.TaskProcessingResults.Item.Subject.MailboxSettings; +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Versions.Item.Tasks.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class SubjectRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new SubjectRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilder.cs index 98dd0382847..e02962d993b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilder.cs @@ -44,7 +44,7 @@ public WorkflowVersionVersionNumberItemRequestBuilder(Dictionary public WorkflowVersionVersionNumberItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}{?%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of a workflowVersion object. + /// Read the properties and relationships of a workflowVersion object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -64,7 +64,7 @@ public async Task GetAsync(Action(requestInfo, WorkflowVersion.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of a workflowVersion object. + /// Read the properties and relationships of a workflowVersion object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -97,7 +97,7 @@ public WorkflowVersionVersionNumberItemRequestBuilder WithUrl(string rawUrl) { return new WorkflowVersionVersionNumberItemRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of a workflowVersion object. + /// Read the properties and relationships of a workflowVersion object. This API is supported in the following national cloud deployments. /// public class WorkflowVersionVersionNumberItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/VersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/VersionsRequestBuilder.cs index f61db0403f6..ca516e9d6a5 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/VersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/VersionsRequestBuilder.cs @@ -50,7 +50,7 @@ public VersionsRequestBuilder(Dictionary pathParameters, IReques public VersionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/versions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the workflowVersion objects and their properties. + /// Get a list of the workflowVersion objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -70,7 +70,7 @@ public async Task GetAsync(Action(requestInfo, WorkflowVersionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the workflowVersion objects and their properties. + /// Get a list of the workflowVersion objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -103,7 +103,7 @@ public VersionsRequestBuilder WithUrl(string rawUrl) { return new VersionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the workflowVersion objects and their properties. + /// Get a list of the workflowVersion objects and their properties. This API is supported in the following national cloud deployments. /// public class VersionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/WorkflowItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/WorkflowItemRequestBuilder.cs index b7fcb61c4e7..c4c9242354d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/WorkflowItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/WorkflowItemRequestBuilder.cs @@ -84,7 +84,7 @@ public WorkflowItemRequestBuilder(Dictionary pathParameters, IRe public WorkflowItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a workflow object. + /// Delete a workflow object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -104,7 +104,7 @@ public async Task DeleteAsync(Action - /// Retrieve a deleted workflow object. + /// Retrieve a deleted workflow object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -124,7 +124,7 @@ public async Task GetAsync(Action(requestInfo, Workflow.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a workflow object. + /// Delete a workflow object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -148,7 +148,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a deleted workflow object. + /// Retrieve a deleted workflow object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -197,7 +197,7 @@ public WorkflowItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a deleted workflow object. + /// Retrieve a deleted workflow object. This API is supported in the following national cloud deployments. /// public class WorkflowItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/WorkflowsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/WorkflowsRequestBuilder.cs index 5a7c2aac2b0..1268c961dfc 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/WorkflowsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/WorkflowsRequestBuilder.cs @@ -42,7 +42,7 @@ public WorkflowsRequestBuilder(Dictionary pathParameters, IReque public WorkflowsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the deleted workflow objects and their properties. + /// Get a list of the deleted workflow objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, WorkflowCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the deleted workflow objects and their properties. + /// Get a list of the deleted workflow objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public WorkflowsRequestBuilder WithUrl(string rawUrl) { return new WorkflowsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the deleted workflow objects and their properties. + /// Get a list of the deleted workflow objects and their properties. This API is supported in the following national cloud deployments. /// public class WorkflowsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Settings/SettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Settings/SettingsRequestBuilder.cs index a2e51379e7b..8d24c7a1c60 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Settings/SettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Settings/SettingsRequestBuilder.cs @@ -29,7 +29,7 @@ public SettingsRequestBuilder(Dictionary pathParameters, IReques public SettingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/settings{?%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of a lifecycleManagementSettings object. + /// Read the properties and relationships of a lifecycleManagementSettings object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, LifecycleManagementSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a lifecycleManagementSettings object. + /// Update the properties of a lifecycleManagementSettings object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -71,7 +71,7 @@ public async Task PatchAsync(LifecycleManagementSet return await RequestAdapter.SendAsync(requestInfo, LifecycleManagementSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of a lifecycleManagementSettings object. + /// Read the properties and relationships of a lifecycleManagementSettings object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -97,7 +97,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a lifecycleManagementSettings object. + /// Update the properties of a lifecycleManagementSettings object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,7 +132,7 @@ public SettingsRequestBuilder WithUrl(string rawUrl) { return new SettingsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of a lifecycleManagementSettings object. + /// Read the properties and relationships of a lifecycleManagementSettings object. This API is supported in the following national cloud deployments. /// public class SettingsRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/Item/TaskDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/Item/TaskDefinitionItemRequestBuilder.cs index bf8f6170a0f..282cc3d91a0 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/Item/TaskDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/Item/TaskDefinitionItemRequestBuilder.cs @@ -29,7 +29,7 @@ public TaskDefinitionItemRequestBuilder(Dictionary pathParameter public TaskDefinitionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/taskDefinitions/{taskDefinition%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Read the details of a built-in workflow task. + /// Read the details of a built-in workflow task. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public TaskDefinitionItemRequestBuilder(string rawUrl, IRequestAdapter requestAd return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.IdentityGovernance.TaskDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the details of a built-in workflow task. + /// Read the details of a built-in workflow task. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -82,7 +82,7 @@ public TaskDefinitionItemRequestBuilder WithUrl(string rawUrl) { return new TaskDefinitionItemRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the details of a built-in workflow task. + /// Read the details of a built-in workflow task. This API is supported in the following national cloud deployments. /// public class TaskDefinitionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/TaskDefinitionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/TaskDefinitionsRequestBuilder.cs index 82db18ae0a4..8bb8bd2971a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/TaskDefinitionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/TaskDefinitionsRequestBuilder.cs @@ -42,7 +42,7 @@ public TaskDefinitionsRequestBuilder(Dictionary pathParameters, public TaskDefinitionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/taskDefinitions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the taskDefinition objects and their properties. + /// Get a list of the taskDefinition objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TaskDefinitionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the taskDefinition objects and their properties. + /// Get a list of the taskDefinition objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public TaskDefinitionsRequestBuilder WithUrl(string rawUrl) { return new TaskDefinitionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the taskDefinition objects and their properties. + /// Get a list of the taskDefinition objects and their properties. This API is supported in the following national cloud deployments. /// public class TaskDefinitionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs index 8510df18668..8da867b0823 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs @@ -28,7 +28,7 @@ public MicrosoftGraphIdentityGovernanceResumeRequestBuilder(Dictionary - /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ResumePostRequestBody body, Action - /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..547779c7eeb --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.WorkflowTemplates.Item.Tasks.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflowTemplates/{workflowTemplate%2Did}/tasks/{task%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflowTemplates/{workflowTemplate%2Did}/tasks/{task%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..3281df55690 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.WorkflowTemplates.Item.Tasks.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.WorkflowTemplates.Item.Tasks.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflowTemplates\{workflowTemplate-id}\tasks\{task-id}\taskProcessingResults\{taskProcessingResult-id}\subject\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflowTemplates/{workflowTemplate%2Did}/tasks/{task%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflowTemplates/{workflowTemplate%2Did}/tasks/{task%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs index df2f40bcfa6..33b7981ee0a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.WorkflowTemplates.Item.Tasks.Item.TaskProcessingResults.Item.Subject.MailboxSettings; +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.WorkflowTemplates.Item.Tasks.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class SubjectRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new SubjectRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/WorkflowTemplateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/WorkflowTemplateItemRequestBuilder.cs index 2ea8b5d7a9f..ee1a0f7ab48 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/WorkflowTemplateItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/WorkflowTemplateItemRequestBuilder.cs @@ -34,7 +34,7 @@ public WorkflowTemplateItemRequestBuilder(Dictionary pathParamet public WorkflowTemplateItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflowTemplates/{workflowTemplate%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of a workflowTemplate object. + /// Read the properties and relationships of a workflowTemplate object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task GetAsync(Action(requestInfo, WorkflowTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of a workflowTemplate object. + /// Read the properties and relationships of a workflowTemplate object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,7 +87,7 @@ public WorkflowTemplateItemRequestBuilder WithUrl(string rawUrl) { return new WorkflowTemplateItemRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of a workflowTemplate object. + /// Read the properties and relationships of a workflowTemplate object. This API is supported in the following national cloud deployments. /// public class WorkflowTemplateItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/WorkflowTemplatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/WorkflowTemplatesRequestBuilder.cs index f1829edf8d4..ed3489de162 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/WorkflowTemplatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/WorkflowTemplatesRequestBuilder.cs @@ -42,7 +42,7 @@ public WorkflowTemplatesRequestBuilder(Dictionary pathParameters public WorkflowTemplatesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflowTemplates{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the workflowTemplate objects and their properties. + /// Get a list of the workflowTemplate objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, WorkflowTemplateCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the workflowTemplate objects and their properties. + /// Get a list of the workflowTemplate objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public WorkflowTemplatesRequestBuilder WithUrl(string rawUrl) { return new WorkflowTemplatesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the workflowTemplate objects and their properties. + /// Get a list of the workflowTemplate objects and their properties. This API is supported in the following national cloud deployments. /// public class WorkflowTemplatesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/CreatedByRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/CreatedByRequestBuilder.cs index 57536cfc48b..162a94dd447 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/CreatedByRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/CreatedByRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.CreatedBy.MailboxSettings; +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.CreatedBy.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class CreatedByRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new CreatedByRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..addd31af092 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.CreatedBy.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/createdBy/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/createdBy/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..4c722b79a40 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.CreatedBy.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.CreatedBy.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\createdBy\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/createdBy/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/createdBy/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs index 3eb4ec9c4f0..b650c57ef12 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.LastModifiedBy.MailboxSettings; +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.LastModifiedBy.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class LastModifiedByRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new LastModifiedByRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..e05de09c2a5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.LastModifiedBy.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/lastModifiedBy/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/lastModifiedBy/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..c2ae0a08ade --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.LastModifiedBy.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.LastModifiedBy.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\lastModifiedBy\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/lastModifiedBy/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/lastModifiedBy/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/MicrosoftGraphIdentityGovernanceActivateRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/MicrosoftGraphIdentityGovernanceActivateRequestBuilder.cs index 4344ff90d23..7da1ca01173 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/MicrosoftGraphIdentityGovernanceActivateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/MicrosoftGraphIdentityGovernanceActivateRequestBuilder.cs @@ -28,7 +28,7 @@ public MicrosoftGraphIdentityGovernanceActivateRequestBuilder(Dictionary - /// Run a workflow object on-demand. You can run any workflow on-demand, including scheduled workflows. Workflows created from the 'Real-time employee termination' template are run on-demand only. When you run a workflow on demand, the tasks are executed regardless of whether the user state matches the scope and trigger execution conditions. + /// Run a workflow object on-demand. You can run any workflow on-demand, including scheduled workflows. Workflows created from the 'Real-time employee termination' template are run on-demand only. When you run a workflow on demand, the tasks are executed regardless of whether the user state matches the scope and trigger execution conditions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ActivatePostRequestBody body, Action - /// Run a workflow object on-demand. You can run any workflow on-demand, including scheduled workflows. Workflows created from the 'Real-time employee termination' template are run on-demand only. When you run a workflow on demand, the tasks are executed regardless of whether the user state matches the scope and trigger execution conditions. + /// Run a workflow object on-demand. You can run any workflow on-demand, including scheduled workflows. Workflows created from the 'Real-time employee termination' template are run on-demand only. When you run a workflow on demand, the tasks are executed regardless of whether the user state matches the scope and trigger execution conditions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder.cs index d46ee1d131d..2ec01135452 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder.cs @@ -29,7 +29,7 @@ public MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder(Dictionary public MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/microsoft.graph.identityGovernance.createNewVersion", rawUrl) { } /// - /// Create a new version of the workflow object. + /// Create a new version of the workflow object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateNewVersionPostRequestBody body, Acti return await RequestAdapter.SendAsync(requestInfo, Workflow.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new version of the workflow object. + /// Create a new version of the workflow object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceRestore/MicrosoftGraphIdentityGovernanceRestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceRestore/MicrosoftGraphIdentityGovernanceRestoreRequestBuilder.cs index 994d1cf8913..689e0d1c7af 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceRestore/MicrosoftGraphIdentityGovernanceRestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceRestore/MicrosoftGraphIdentityGovernanceRestoreRequestBuilder.cs @@ -29,7 +29,7 @@ public MicrosoftGraphIdentityGovernanceRestoreRequestBuilder(Dictionary - /// Restore a workflow that has been deleted. You can only restore a workflow that was deleted within the last 30 days before Azure AD automatically permanently deletes it. + /// Restore a workflow that has been deleted. You can only restore a workflow that was deleted within the last 30 days before Azure AD automatically permanently deletes it. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, Workflow.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Restore a workflow that has been deleted. You can only restore a workflow that was deleted within the last 30 days before Azure AD automatically permanently deletes it. + /// Restore a workflow that has been deleted. You can only restore a workflow that was deleted within the last 30 days before Azure AD automatically permanently deletes it. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/RunItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/RunItemRequestBuilder.cs index 0e2556e5b9c..24e8def0f7c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/RunItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/RunItemRequestBuilder.cs @@ -39,7 +39,7 @@ public RunItemRequestBuilder(Dictionary pathParameters, IRequest public RunItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of a run object. + /// Read the properties and relationships of a run object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -59,7 +59,7 @@ public async Task GetAsync(Action(requestInfo, Run.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of a run object. + /// Read the properties and relationships of a run object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -92,7 +92,7 @@ public RunItemRequestBuilder WithUrl(string rawUrl) { return new RunItemRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of a run object. + /// Read the properties and relationships of a run object. This API is supported in the following national cloud deployments. /// public class RunItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs index cd76675f7a5..d0fc9d7eb5c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs @@ -28,7 +28,7 @@ public MicrosoftGraphIdentityGovernanceResumeRequestBuilder(Dictionary - /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ResumePostRequestBody body, Action - /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..4e5db9def7e --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..94b17f9c08b --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\runs\{run-id}\taskProcessingResults\{taskProcessingResult-id}\subject\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs index d8d3040355c..54d28dd2aa1 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.TaskProcessingResults.Item.Subject.MailboxSettings; +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class SubjectRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new SubjectRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs index 68c28b7b603..955af9ac5cb 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs @@ -42,7 +42,7 @@ public TaskProcessingResultsRequestBuilder(Dictionary pathParame public TaskProcessingResultsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/taskProcessingResults{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the taskProcessingResult resources for a run. + /// Get the taskProcessingResult resources for a run. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TaskProcessingResultCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the taskProcessingResult resources for a run. + /// Get the taskProcessingResult resources for a run. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public TaskProcessingResultsRequestBuilder WithUrl(string rawUrl) { return new TaskProcessingResultsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the taskProcessingResult resources for a run. + /// Get the taskProcessingResult resources for a run. This API is supported in the following national cloud deployments. /// public class TaskProcessingResultsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..5a133c9fde0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.UserProcessingResults.Item.Subject.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/userProcessingResults/{userProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/userProcessingResults/{userProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..4b5f91014ca --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.UserProcessingResults.Item.Subject.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.UserProcessingResults.Item.Subject.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\runs\{run-id}\userProcessingResults\{userProcessingResult-id}\subject\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/userProcessingResults/{userProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/userProcessingResults/{userProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.cs index aaf261be585..d19e77dcd98 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.UserProcessingResults.Item.Subject.MailboxSettings; +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.UserProcessingResults.Item.Subject.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class SubjectRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new SubjectRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs index c46c87a2070..28a6c830932 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs @@ -28,7 +28,7 @@ public MicrosoftGraphIdentityGovernanceResumeRequestBuilder(Dictionary - /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ResumePostRequestBody body, Action - /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..6a217413fb5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.UserProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/userProcessingResults/{userProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/userProcessingResults/{userProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..b090cb1351e --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.UserProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.UserProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\runs\{run-id}\userProcessingResults\{userProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\subject\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/userProcessingResults/{userProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/userProcessingResults/{userProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs index 016d794d2f0..2bba8fe1bec 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.UserProcessingResults.Item.TaskProcessingResults.Item.Subject.MailboxSettings; +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.UserProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class SubjectRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new SubjectRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs index 2be36327b74..d7a52e164e2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs @@ -42,7 +42,7 @@ public TaskProcessingResultsRequestBuilder(Dictionary pathParame public TaskProcessingResultsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/userProcessingResults/{userProcessingResult%2Did}/taskProcessingResults{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the task processing result from a userProcessingResult either directly or through a run. + /// Get the task processing result from a userProcessingResult either directly or through a run. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TaskProcessingResultCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the task processing result from a userProcessingResult either directly or through a run. + /// Get the task processing result from a userProcessingResult either directly or through a run. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public TaskProcessingResultsRequestBuilder WithUrl(string rawUrl) { return new TaskProcessingResultsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the task processing result from a userProcessingResult either directly or through a run. + /// Get the task processing result from a userProcessingResult either directly or through a run. This API is supported in the following national cloud deployments. /// public class TaskProcessingResultsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs index 0012b0771df..2b0dbccf750 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs @@ -39,7 +39,7 @@ public UserProcessingResultItemRequestBuilder(Dictionary pathPar public UserProcessingResultItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/userProcessingResults/{userProcessingResult%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Get the user processing result of a user processing result of a run. + /// Get the user processing result of a user processing result of a run. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -59,7 +59,7 @@ public async Task GetAsync(Action(requestInfo, UserProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the user processing result of a user processing result of a run. + /// Get the user processing result of a user processing result of a run. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -92,7 +92,7 @@ public UserProcessingResultItemRequestBuilder WithUrl(string rawUrl) { return new UserProcessingResultItemRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the user processing result of a user processing result of a run. + /// Get the user processing result of a user processing result of a run. This API is supported in the following national cloud deployments. /// public class UserProcessingResultItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs index 136ec408195..174930c911e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs @@ -43,7 +43,7 @@ public UserProcessingResultsRequestBuilder(Dictionary pathParame public UserProcessingResultsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/userProcessingResults{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get user processing results of a workflow run object. + /// Get user processing results of a workflow run object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -73,7 +73,7 @@ public MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRe return new MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder(PathParameters, RequestAdapter, endDateTime, startDateTime); } /// - /// Get user processing results of a workflow run object. + /// Get user processing results of a workflow run object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -106,7 +106,7 @@ public UserProcessingResultsRequestBuilder WithUrl(string rawUrl) { return new UserProcessingResultsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get user processing results of a workflow run object. + /// Get user processing results of a workflow run object. This API is supported in the following national cloud deployments. /// public class UserProcessingResultsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/RunsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/RunsRequestBuilder.cs index 1c8ca5db2ff..deeb694f5c4 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/RunsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/RunsRequestBuilder.cs @@ -43,7 +43,7 @@ public RunsRequestBuilder(Dictionary pathParameters, IRequestAda public RunsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the run objects and their properties for a lifecycle workflow. + /// Get a list of the run objects and their properties for a lifecycle workflow. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -73,7 +73,7 @@ public MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRe return new MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder(PathParameters, RequestAdapter, endDateTime, startDateTime); } /// - /// Get a list of the run objects and their properties for a lifecycle workflow. + /// Get a list of the run objects and their properties for a lifecycle workflow. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -106,7 +106,7 @@ public RunsRequestBuilder WithUrl(string rawUrl) { return new RunsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the run objects and their properties for a lifecycle workflow. + /// Get a list of the run objects and their properties for a lifecycle workflow. This API is supported in the following national cloud deployments. /// public class RunsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs index 897a9b700af..a978a283eae 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs @@ -28,7 +28,7 @@ public MicrosoftGraphIdentityGovernanceResumeRequestBuilder(Dictionary - /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ResumePostRequestBody body, Action - /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..fa4a457c97a --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.TaskReports.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/taskReports/{taskReport%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/taskReports/{taskReport%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..afd3417d115 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.TaskReports.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.TaskReports.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\taskReports\{taskReport-id}\taskProcessingResults\{taskProcessingResult-id}\subject\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/taskReports/{taskReport%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/taskReports/{taskReport%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs index 4acbb4ba3cf..8bba0afa1ce 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.TaskReports.Item.TaskProcessingResults.Item.Subject.MailboxSettings; +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.TaskReports.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class SubjectRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new SubjectRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs index 968255e67a8..d4373b73bfb 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs @@ -42,7 +42,7 @@ public TaskProcessingResultsRequestBuilder(Dictionary pathParame public TaskProcessingResultsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/taskReports/{taskReport%2Did}/taskProcessingResults{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the task processing result resources from the taskReport. + /// Get the task processing result resources from the taskReport. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TaskProcessingResultCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the task processing result resources from the taskReport. + /// Get the task processing result resources from the taskReport. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public TaskProcessingResultsRequestBuilder WithUrl(string rawUrl) { return new TaskProcessingResultsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the task processing result resources from the taskReport. + /// Get the task processing result resources from the taskReport. This API is supported in the following national cloud deployments. /// public class TaskProcessingResultsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/TaskReportsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/TaskReportsRequestBuilder.cs index a6574459db4..a0481905ac8 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/TaskReportsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/TaskReportsRequestBuilder.cs @@ -43,7 +43,7 @@ public TaskReportsRequestBuilder(Dictionary pathParameters, IReq public TaskReportsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/taskReports{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the taskReport objects and their properties. + /// Get a list of the taskReport objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -73,7 +73,7 @@ public MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRe return new MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder(PathParameters, RequestAdapter, endDateTime, startDateTime); } /// - /// Get a list of the taskReport objects and their properties. + /// Get a list of the taskReport objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -106,7 +106,7 @@ public TaskReportsRequestBuilder WithUrl(string rawUrl) { return new TaskReportsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the taskReport objects and their properties. + /// Get a list of the taskReport objects and their properties. This API is supported in the following national cloud deployments. /// public class TaskReportsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs index c78f6baa90e..c442c507902 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs @@ -28,7 +28,7 @@ public MicrosoftGraphIdentityGovernanceResumeRequestBuilder(Dictionary - /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ResumePostRequestBody body, Action - /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..a933549936f --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Tasks.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/tasks/{task%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/tasks/{task%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..6858ddfd8b3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Tasks.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Tasks.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\tasks\{task-id}\taskProcessingResults\{taskProcessingResult-id}\subject\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/tasks/{task%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/tasks/{task%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs index 055e2bcac05..3d7c4f8d1ed 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Tasks.Item.TaskProcessingResults.Item.Subject.MailboxSettings; +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Tasks.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class SubjectRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new SubjectRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..dff881c78f3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.UserProcessingResults.Item.Subject.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/userProcessingResults/{userProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/userProcessingResults/{userProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..ff180185801 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.UserProcessingResults.Item.Subject.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.UserProcessingResults.Item.Subject.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\userProcessingResults\{userProcessingResult-id}\subject\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/userProcessingResults/{userProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/userProcessingResults/{userProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.cs index 08e1c258059..157e8274a7e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.UserProcessingResults.Item.Subject.MailboxSettings; +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.UserProcessingResults.Item.Subject.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class SubjectRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new SubjectRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs index 0e9bef5d8bd..c01a2bf439e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs @@ -28,7 +28,7 @@ public MicrosoftGraphIdentityGovernanceResumeRequestBuilder(Dictionary - /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ResumePostRequestBody body, Action - /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..acdf0639739 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.UserProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/userProcessingResults/{userProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/userProcessingResults/{userProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..ac36fc45f4f --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.UserProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.UserProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\userProcessingResults\{userProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\subject\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/userProcessingResults/{userProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/userProcessingResults/{userProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs index 118c21f6196..cf9a2a6f53e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.UserProcessingResults.Item.TaskProcessingResults.Item.Subject.MailboxSettings; +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.UserProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class SubjectRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new SubjectRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs index b98b4a97887..c1744aa9685 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs @@ -42,7 +42,7 @@ public TaskProcessingResultsRequestBuilder(Dictionary pathParame public TaskProcessingResultsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/userProcessingResults/{userProcessingResult%2Did}/taskProcessingResults{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the task processing result from a userProcessingResult either directly or through a run. + /// Get the task processing result from a userProcessingResult either directly or through a run. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TaskProcessingResultCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the task processing result from a userProcessingResult either directly or through a run. + /// Get the task processing result from a userProcessingResult either directly or through a run. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public TaskProcessingResultsRequestBuilder WithUrl(string rawUrl) { return new TaskProcessingResultsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the task processing result from a userProcessingResult either directly or through a run. + /// Get the task processing result from a userProcessingResult either directly or through a run. This API is supported in the following national cloud deployments. /// public class TaskProcessingResultsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs index 9b3d1c222e3..3f87f29af14 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs @@ -43,7 +43,7 @@ public UserProcessingResultsRequestBuilder(Dictionary pathParame public UserProcessingResultsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/userProcessingResults{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the userProcessingResult resources for a workflow. + /// Get the userProcessingResult resources for a workflow. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -73,7 +73,7 @@ public MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRe return new MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder(PathParameters, RequestAdapter, endDateTime, startDateTime); } /// - /// Get the userProcessingResult resources for a workflow. + /// Get the userProcessingResult resources for a workflow. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -106,7 +106,7 @@ public UserProcessingResultsRequestBuilder WithUrl(string rawUrl) { return new UserProcessingResultsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the userProcessingResult resources for a workflow. + /// Get the userProcessingResult resources for a workflow. This API is supported in the following national cloud deployments. /// public class UserProcessingResultsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/CreatedByRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/CreatedByRequestBuilder.cs index cc99046df93..90ceb0e8c92 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/CreatedByRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/CreatedByRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Versions.Item.CreatedBy.MailboxSettings; +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Versions.Item.CreatedBy.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class CreatedByRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new CreatedByRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..c12937c616e --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Versions.Item.CreatedBy.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/createdBy/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/createdBy/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..10f38883e15 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Versions.Item.CreatedBy.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Versions.Item.CreatedBy.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\versions\{workflowVersion-versionNumber}\createdBy\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/createdBy/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/createdBy/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs index 379a442a690..b91f303881c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Versions.Item.LastModifiedBy.MailboxSettings; +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Versions.Item.LastModifiedBy.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class LastModifiedByRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new LastModifiedByRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..5e2c899671b --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Versions.Item.LastModifiedBy.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/lastModifiedBy/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/lastModifiedBy/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..57b3a17b065 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Versions.Item.LastModifiedBy.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Versions.Item.LastModifiedBy.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\versions\{workflowVersion-versionNumber}\lastModifiedBy\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/lastModifiedBy/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/lastModifiedBy/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs index baa489dd4b0..4d6afd64b58 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs @@ -28,7 +28,7 @@ public MicrosoftGraphIdentityGovernanceResumeRequestBuilder(Dictionary - /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ResumePostRequestBody body, Action - /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. + /// Resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..1a0b2469b69 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Versions.Item.Tasks.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/tasks/{task%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/tasks/{task%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..3ffaba978ea --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Versions.Item.Tasks.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Versions.Item.Tasks.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\versions\{workflowVersion-versionNumber}\tasks\{task-id}\taskProcessingResults\{taskProcessingResult-id}\subject\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/tasks/{task%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/tasks/{task%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs index 26cf3c246a6..5d3f68bce48 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Versions.Item.Tasks.Item.TaskProcessingResults.Item.Subject.MailboxSettings; +using Microsoft.Graph.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Versions.Item.Tasks.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class SubjectRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new SubjectRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilder.cs index e936d96658f..a60b3ecca53 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilder.cs @@ -44,7 +44,7 @@ public WorkflowVersionVersionNumberItemRequestBuilder(Dictionary public WorkflowVersionVersionNumberItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}{?%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of a workflowVersion object. + /// Read the properties and relationships of a workflowVersion object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -64,7 +64,7 @@ public async Task GetAsync(Action(requestInfo, WorkflowVersion.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of a workflowVersion object. + /// Read the properties and relationships of a workflowVersion object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -97,7 +97,7 @@ public WorkflowVersionVersionNumberItemRequestBuilder WithUrl(string rawUrl) { return new WorkflowVersionVersionNumberItemRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of a workflowVersion object. + /// Read the properties and relationships of a workflowVersion object. This API is supported in the following national cloud deployments. /// public class WorkflowVersionVersionNumberItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/VersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/VersionsRequestBuilder.cs index ce8ce97c9e7..e4ef950fb11 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/VersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/VersionsRequestBuilder.cs @@ -50,7 +50,7 @@ public VersionsRequestBuilder(Dictionary pathParameters, IReques public VersionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/versions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the workflowVersion objects and their properties. + /// Get a list of the workflowVersion objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -70,7 +70,7 @@ public async Task GetAsync(Action(requestInfo, WorkflowVersionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the workflowVersion objects and their properties. + /// Get a list of the workflowVersion objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -103,7 +103,7 @@ public VersionsRequestBuilder WithUrl(string rawUrl) { return new VersionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the workflowVersion objects and their properties. + /// Get a list of the workflowVersion objects and their properties. This API is supported in the following national cloud deployments. /// public class VersionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/WorkflowItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/WorkflowItemRequestBuilder.cs index c8b8e0a200a..9c60c393370 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/WorkflowItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/WorkflowItemRequestBuilder.cs @@ -84,7 +84,7 @@ public WorkflowItemRequestBuilder(Dictionary pathParameters, IRe public WorkflowItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a workflow object and its associated tasks, taskProcessingResults and versions. You can restore a deleted workflow and its associated objects within 30 days of deletion. + /// Delete a workflow object and its associated tasks, taskProcessingResults and versions. You can restore a deleted workflow and its associated objects within 30 days of deletion. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -104,7 +104,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a workflow object. + /// Read the properties and relationships of a workflow object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -124,7 +124,7 @@ public async Task GetAsync(Action(requestInfo, Workflow.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a workflow object. Only the properties listed in the request body table can be updated. To update any other workflow properties, see workflow: createNewVersion. + /// Update the properties of a workflow object. Only the properties listed in the request body table can be updated. To update any other workflow properties, see workflow: createNewVersion. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -146,7 +146,7 @@ public async Task PatchAsync(Workflow body, Action(requestInfo, Workflow.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a workflow object and its associated tasks, taskProcessingResults and versions. You can restore a deleted workflow and its associated objects within 30 days of deletion. + /// Delete a workflow object and its associated tasks, taskProcessingResults and versions. You can restore a deleted workflow and its associated objects within 30 days of deletion. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,7 +170,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a workflow object. + /// Read the properties and relationships of a workflow object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -196,7 +196,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a workflow object. Only the properties listed in the request body table can be updated. To update any other workflow properties, see workflow: createNewVersion. + /// Update the properties of a workflow object. Only the properties listed in the request body table can be updated. To update any other workflow properties, see workflow: createNewVersion. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -247,7 +247,7 @@ public WorkflowItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a workflow object. + /// Read the properties and relationships of a workflow object. This API is supported in the following national cloud deployments. /// public class WorkflowItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/WorkflowsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/WorkflowsRequestBuilder.cs index 07af065e656..9efefe95ed3 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/WorkflowsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/WorkflowsRequestBuilder.cs @@ -42,7 +42,7 @@ public WorkflowsRequestBuilder(Dictionary pathParameters, IReque public WorkflowsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of workflow resources that are associated with lifecycle workflows. + /// Get a list of workflow resources that are associated with lifecycle workflows. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, WorkflowCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new workflow object. You can create up to 50 workflows in a tenant. + /// Create a new workflow object. You can create up to 50 workflows in a tenant. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(Workflow body, Action(requestInfo, Workflow.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of workflow resources that are associated with lifecycle workflows. + /// Get a list of workflow resources that are associated with lifecycle workflows. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new workflow object. You can create up to 50 workflows in a tenant. + /// Create a new workflow object. You can create up to 50 workflows in a tenant. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public WorkflowsRequestBuilder WithUrl(string rawUrl) { return new WorkflowsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of workflow resources that are associated with lifecycle workflows. + /// Get a list of workflow resources that are associated with lifecycle workflows. This API is supported in the following national cloud deployments. /// public class WorkflowsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/AssignmentApprovalsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/AssignmentApprovalsRequestBuilder.cs new file mode 100644 index 00000000000..a8771d6707f --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/AssignmentApprovalsRequestBuilder.cs @@ -0,0 +1,253 @@ +// +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentApprovals.Count; +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentApprovals.FilterByCurrentUserWithOn; +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentApprovals.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentApprovals { + /// + /// Provides operations to manage the assignmentApprovals property of the microsoft.graph.privilegedAccessGroup entity. + /// + public class AssignmentApprovalsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the assignmentApprovals property of the microsoft.graph.privilegedAccessGroup entity. + /// The unique identifier of approval + public ApprovalItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("approval%2Did", position); + return new ApprovalItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new AssignmentApprovalsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AssignmentApprovalsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentApprovals{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new AssignmentApprovalsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AssignmentApprovalsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentApprovals{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Provides operations to call the filterByCurrentUser method. + /// + /// Usage: on='{on}' + public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string on) { + if(string.IsNullOrEmpty(on)) throw new ArgumentNullException(nameof(on)); + return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); + } + /// + /// Get assignmentApprovals from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ApprovalCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to assignmentApprovals for identityGovernance + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Microsoft.Graph.Models.Approval body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(Microsoft.Graph.Models.Approval body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Approval.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get assignmentApprovals from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new AssignmentApprovalsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to assignmentApprovals for identityGovernance + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Approval body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Approval body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new AssignmentApprovalsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public AssignmentApprovalsRequestBuilder WithUrl(string rawUrl) { + return new AssignmentApprovalsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get assignmentApprovals from identityGovernance + /// + public class AssignmentApprovalsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentApprovalsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public AssignmentApprovalsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AssignmentApprovalsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new assignmentApprovalsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public AssignmentApprovalsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentApprovalsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new assignmentApprovalsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public AssignmentApprovalsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..55d24564619 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentApprovals.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentApprovals/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentApprovals/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..4058c2fad9a --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentApprovals.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Approval.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs new file mode 100644 index 00000000000..f6fd9230500 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -0,0 +1,177 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentApprovals.FilterByCurrentUserWithOn { + /// + /// Provides operations to call the filterByCurrentUser method. + /// + public class FilterByCurrentUserWithOnRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new FilterByCurrentUserWithOnRequestBuilder and sets the default values. + /// + /// Usage: on='{on}' + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, string on = "") : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentApprovals/filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", pathParameters) { + if (!string.IsNullOrWhiteSpace(on)) PathParameters.Add("on", on); + } + /// + /// Instantiates a new FilterByCurrentUserWithOnRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentApprovals/filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public FilterByCurrentUserWithOnRequestBuilder WithUrl(string rawUrl) { + return new FilterByCurrentUserWithOnRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Invoke function filterByCurrentUser + /// + public class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public FilterByCurrentUserWithOnRequestBuilderGetQueryParameters QueryParameters { get; set; } = new FilterByCurrentUserWithOnRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new filterByCurrentUserWithOnRequestBuilderGetRequestConfiguration and sets the default values. + /// + public FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs new file mode 100644 index 00000000000..6d61952b451 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -0,0 +1,19 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentApprovals.FilterByCurrentUserWithOn { + [Obsolete("This class is obsolete. Use filterByCurrentUserWithOnGetResponse instead.")] + public class FilterByCurrentUserWithOnResponse : FilterByCurrentUserWithOnGetResponse, IParsable { + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnResponse(); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/ApprovalItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/ApprovalItemRequestBuilder.cs new file mode 100644 index 00000000000..4282935a46a --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/ApprovalItemRequestBuilder.cs @@ -0,0 +1,256 @@ +// +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentApprovals.Item.Stages; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentApprovals.Item { + /// + /// Provides operations to manage the assignmentApprovals property of the microsoft.graph.privilegedAccessGroup entity. + /// + public class ApprovalItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the stages property of the microsoft.graph.approval entity. + public StagesRequestBuilder Stages { get => + new StagesRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ApprovalItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ApprovalItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentApprovals/{approval%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ApprovalItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ApprovalItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentApprovals/{approval%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property assignmentApprovals for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get assignmentApprovals from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Approval.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property assignmentApprovals in identityGovernance + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(Microsoft.Graph.Models.Approval body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(Microsoft.Graph.Models.Approval body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Approval.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property assignmentApprovals for identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new ApprovalItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get assignmentApprovals from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ApprovalItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property assignmentApprovals in identityGovernance + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Approval body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Approval body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new ApprovalItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ApprovalItemRequestBuilder WithUrl(string rawUrl) { + return new ApprovalItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ApprovalItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new ApprovalItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public ApprovalItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get assignmentApprovals from identityGovernance + /// + public class ApprovalItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ApprovalItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ApprovalItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ApprovalItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new ApprovalItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ApprovalItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ApprovalItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new ApprovalItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public ApprovalItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..e400c2390c5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentApprovals.Item.Stages.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentApprovals/{approval%2Did}/stages/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentApprovals/{approval%2Did}/stages/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilder.cs new file mode 100644 index 00000000000..12516c9be09 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilder.cs @@ -0,0 +1,253 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentApprovals.Item.Stages.Item { + /// + /// Provides operations to manage the stages property of the microsoft.graph.approval entity. + /// + public class ApprovalStageItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new ApprovalStageItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ApprovalStageItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentApprovals/{approval%2Did}/stages/{approvalStage%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ApprovalStageItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ApprovalStageItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentApprovals/{approval%2Did}/stages/{approvalStage%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property stages for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// In Azure AD entitlement management, retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ApprovalStage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// In Azure AD entitlement management, approve or deny an approvalStage object in an approval. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(ApprovalStage body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(ApprovalStage body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ApprovalStage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property stages for identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new ApprovalStageItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// In Azure AD entitlement management, retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. This API is supported in the following national cloud deployments. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ApprovalStageItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// In Azure AD entitlement management, approve or deny an approvalStage object in an approval. This API is supported in the following national cloud deployments. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(ApprovalStage body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(ApprovalStage body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new ApprovalStageItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ApprovalStageItemRequestBuilder WithUrl(string rawUrl) { + return new ApprovalStageItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ApprovalStageItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new ApprovalStageItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public ApprovalStageItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// In Azure AD entitlement management, retrieve the properties of an approvalStage object. An approval stage is contained within an approval object. This API is supported in the following national cloud deployments. + /// + public class ApprovalStageItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ApprovalStageItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ApprovalStageItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ApprovalStageItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new ApprovalStageItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ApprovalStageItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ApprovalStageItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new ApprovalStageItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public ApprovalStageItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/StagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/StagesRequestBuilder.cs new file mode 100644 index 00000000000..0f0a57a7bb2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/StagesRequestBuilder.cs @@ -0,0 +1,245 @@ +// +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentApprovals.Item.Stages.Count; +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentApprovals.Item.Stages.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentApprovals.Item.Stages { + /// + /// Provides operations to manage the stages property of the microsoft.graph.approval entity. + /// + public class StagesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the stages property of the microsoft.graph.approval entity. + /// The unique identifier of approvalStage + public ApprovalStageItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("approvalStage%2Did", position); + return new ApprovalStageItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new StagesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public StagesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentApprovals/{approval%2Did}/stages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new StagesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public StagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentApprovals/{approval%2Did}/stages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// In Azure AD entitlement management, list the approvalStage objects associated with an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ApprovalStageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to stages for identityGovernance + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(ApprovalStage body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(ApprovalStage body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ApprovalStage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// In Azure AD entitlement management, list the approvalStage objects associated with an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. This API is supported in the following national cloud deployments. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new StagesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to stages for identityGovernance + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(ApprovalStage body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(ApprovalStage body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new StagesRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public StagesRequestBuilder WithUrl(string rawUrl) { + return new StagesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// In Azure AD entitlement management, list the approvalStage objects associated with an approval object. This call can be made by an approver, providing the identifier of the access package assignment request. This API is supported in the following national cloud deployments. + /// + public class StagesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class StagesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public StagesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new StagesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new stagesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public StagesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class StagesRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new stagesRequestBuilderPostRequestConfiguration and sets the default values. + /// + public StagesRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/AssignmentScheduleInstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/AssignmentScheduleInstancesRequestBuilder.cs new file mode 100644 index 00000000000..a8000968a6d --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/AssignmentScheduleInstancesRequestBuilder.cs @@ -0,0 +1,253 @@ +// +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances.Count; +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances.FilterByCurrentUserWithOn; +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances { + /// + /// Provides operations to manage the assignmentScheduleInstances property of the microsoft.graph.privilegedAccessGroup entity. + /// + public class AssignmentScheduleInstancesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the assignmentScheduleInstances property of the microsoft.graph.privilegedAccessGroup entity. + /// The unique identifier of privilegedAccessGroupAssignmentScheduleInstance + public PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("privilegedAccessGroupAssignmentScheduleInstance%2Did", position); + return new PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new AssignmentScheduleInstancesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AssignmentScheduleInstancesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new AssignmentScheduleInstancesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AssignmentScheduleInstancesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Provides operations to call the filterByCurrentUser method. + /// + /// Usage: on='{on}' + public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string on) { + if(string.IsNullOrEmpty(on)) throw new ArgumentNullException(nameof(on)); + return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); + } + /// + /// Get assignmentScheduleInstances from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupAssignmentScheduleInstanceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to assignmentScheduleInstances for identityGovernance + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(PrivilegedAccessGroupAssignmentScheduleInstance body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(PrivilegedAccessGroupAssignmentScheduleInstance body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupAssignmentScheduleInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get assignmentScheduleInstances from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new AssignmentScheduleInstancesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to assignmentScheduleInstances for identityGovernance + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(PrivilegedAccessGroupAssignmentScheduleInstance body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(PrivilegedAccessGroupAssignmentScheduleInstance body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new AssignmentScheduleInstancesRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public AssignmentScheduleInstancesRequestBuilder WithUrl(string rawUrl) { + return new AssignmentScheduleInstancesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get assignmentScheduleInstances from identityGovernance + /// + public class AssignmentScheduleInstancesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentScheduleInstancesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public AssignmentScheduleInstancesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AssignmentScheduleInstancesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new assignmentScheduleInstancesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public AssignmentScheduleInstancesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentScheduleInstancesRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new assignmentScheduleInstancesRequestBuilderPostRequestConfiguration and sets the default values. + /// + public AssignmentScheduleInstancesRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..e3be9af5f9b --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..c70c917ec76 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupAssignmentScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs new file mode 100644 index 00000000000..2e160a5d41d --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -0,0 +1,177 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances.FilterByCurrentUserWithOn { + /// + /// Provides operations to call the filterByCurrentUser method. + /// + public class FilterByCurrentUserWithOnRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new FilterByCurrentUserWithOnRequestBuilder and sets the default values. + /// + /// Usage: on='{on}' + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, string on = "") : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", pathParameters) { + if (!string.IsNullOrWhiteSpace(on)) PathParameters.Add("on", on); + } + /// + /// Instantiates a new FilterByCurrentUserWithOnRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public FilterByCurrentUserWithOnRequestBuilder WithUrl(string rawUrl) { + return new FilterByCurrentUserWithOnRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Invoke function filterByCurrentUser + /// + public class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public FilterByCurrentUserWithOnRequestBuilderGetQueryParameters QueryParameters { get; set; } = new FilterByCurrentUserWithOnRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new filterByCurrentUserWithOnRequestBuilderGetRequestConfiguration and sets the default values. + /// + public FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs new file mode 100644 index 00000000000..64365d1297e --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -0,0 +1,19 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances.FilterByCurrentUserWithOn { + [Obsolete("This class is obsolete. Use filterByCurrentUserWithOnGetResponse instead.")] + public class FilterByCurrentUserWithOnResponse : FilterByCurrentUserWithOnGetResponse, IParsable { + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnResponse(); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs new file mode 100644 index 00000000000..41b4a300c87 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances.Item.ActivatedUsing { + /// + /// Provides operations to manage the activatedUsing property of the microsoft.graph.privilegedAccessGroupAssignmentScheduleInstance entity. + /// + public class ActivatedUsingRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new ActivatedUsingRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ActivatedUsingRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/{privilegedAccessGroupAssignmentScheduleInstance%2Did}/activatedUsing{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ActivatedUsingRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ActivatedUsingRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/{privilegedAccessGroupAssignmentScheduleInstance%2Did}/activatedUsing{?%24select,%24expand}", rawUrl) { + } + /// + /// Get activatedUsing from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilityScheduleInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get activatedUsing from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ActivatedUsingRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ActivatedUsingRequestBuilder WithUrl(string rawUrl) { + return new ActivatedUsingRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get activatedUsing from identityGovernance + /// + public class ActivatedUsingRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ActivatedUsingRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ActivatedUsingRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ActivatedUsingRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new activatedUsingRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ActivatedUsingRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/GroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/GroupRequestBuilder.cs new file mode 100644 index 00000000000..d68b00fe532 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/GroupRequestBuilder.cs @@ -0,0 +1,132 @@ +// +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances.Item.Group.ServiceProvisioningErrors; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances.Item.Group { + /// + /// Provides operations to manage the group property of the microsoft.graph.privilegedAccessGroupAssignmentScheduleInstance entity. + /// + public class GroupRequestBuilder : BaseRequestBuilder { + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new GroupRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GroupRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/{privilegedAccessGroupAssignmentScheduleInstance%2Did}/group{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new GroupRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/{privilegedAccessGroupAssignmentScheduleInstance%2Did}/group{?%24select,%24expand}", rawUrl) { + } + /// + /// Get group from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Group.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get group from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new GroupRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public GroupRequestBuilder WithUrl(string rawUrl) { + return new GroupRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get group from identityGovernance + /// + public class GroupRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class GroupRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public GroupRequestBuilderGetQueryParameters QueryParameters { get; set; } = new GroupRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new groupRequestBuilderGetRequestConfiguration and sets the default values. + /// + public GroupRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..eea8a762087 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances.Item.Group.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/{privilegedAccessGroupAssignmentScheduleInstance%2Did}/group/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/{privilegedAccessGroupAssignmentScheduleInstance%2Did}/group/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..d51be34acc0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances.Item.Group.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances.Item.Group.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \identityGovernance\privilegedAccess\group\assignmentScheduleInstances\{privilegedAccessGroupAssignmentScheduleInstance-id}\group\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/{privilegedAccessGroupAssignmentScheduleInstance%2Did}/group/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/{privilegedAccessGroupAssignmentScheduleInstance%2Did}/group/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs new file mode 100644 index 00000000000..833dc340a8d --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances.Item.Principal { + /// + /// Provides operations to manage the principal property of the microsoft.graph.privilegedAccessGroupAssignmentScheduleInstance entity. + /// + public class PrincipalRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new PrincipalRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PrincipalRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/{privilegedAccessGroupAssignmentScheduleInstance%2Did}/principal{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new PrincipalRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PrincipalRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/{privilegedAccessGroupAssignmentScheduleInstance%2Did}/principal{?%24select,%24expand}", rawUrl) { + } + /// + /// Get principal from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get principal from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new PrincipalRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public PrincipalRequestBuilder WithUrl(string rawUrl) { + return new PrincipalRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get principal from identityGovernance + /// + public class PrincipalRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrincipalRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public PrincipalRequestBuilderGetQueryParameters QueryParameters { get; set; } = new PrincipalRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new principalRequestBuilderGetRequestConfiguration and sets the default values. + /// + public PrincipalRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder.cs new file mode 100644 index 00000000000..cf47669a940 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder.cs @@ -0,0 +1,266 @@ +// +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances.Item.ActivatedUsing; +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances.Item.Group; +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances.Item.Principal; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances.Item { + /// + /// Provides operations to manage the assignmentScheduleInstances property of the microsoft.graph.privilegedAccessGroup entity. + /// + public class PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the activatedUsing property of the microsoft.graph.privilegedAccessGroupAssignmentScheduleInstance entity. + public ActivatedUsingRequestBuilder ActivatedUsing { get => + new ActivatedUsingRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the group property of the microsoft.graph.privilegedAccessGroupAssignmentScheduleInstance entity. + public Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances.Item.Group.GroupRequestBuilder Group { get => + new Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances.Item.Group.GroupRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the principal property of the microsoft.graph.privilegedAccessGroupAssignmentScheduleInstance entity. + public PrincipalRequestBuilder Principal { get => + new PrincipalRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/{privilegedAccessGroupAssignmentScheduleInstance%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/{privilegedAccessGroupAssignmentScheduleInstance%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property assignmentScheduleInstances for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get assignmentScheduleInstances from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupAssignmentScheduleInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property assignmentScheduleInstances in identityGovernance + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(PrivilegedAccessGroupAssignmentScheduleInstance body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(PrivilegedAccessGroupAssignmentScheduleInstance body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupAssignmentScheduleInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property assignmentScheduleInstances for identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get assignmentScheduleInstances from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property assignmentScheduleInstances in identityGovernance + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(PrivilegedAccessGroupAssignmentScheduleInstance body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(PrivilegedAccessGroupAssignmentScheduleInstance body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder WithUrl(string rawUrl) { + return new PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get assignmentScheduleInstances from identityGovernance + /// + public class PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/AssignmentScheduleRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/AssignmentScheduleRequestsRequestBuilder.cs new file mode 100644 index 00000000000..cb9b00db476 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/AssignmentScheduleRequestsRequestBuilder.cs @@ -0,0 +1,253 @@ +// +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Count; +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.FilterByCurrentUserWithOn; +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests { + /// + /// Provides operations to manage the assignmentScheduleRequests property of the microsoft.graph.privilegedAccessGroup entity. + /// + public class AssignmentScheduleRequestsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the assignmentScheduleRequests property of the microsoft.graph.privilegedAccessGroup entity. + /// The unique identifier of privilegedAccessGroupAssignmentScheduleRequest + public PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("privilegedAccessGroupAssignmentScheduleRequest%2Did", position); + return new PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new AssignmentScheduleRequestsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AssignmentScheduleRequestsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new AssignmentScheduleRequestsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AssignmentScheduleRequestsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Provides operations to call the filterByCurrentUser method. + /// + /// Usage: on='{on}' + public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string on) { + if(string.IsNullOrEmpty(on)) throw new ArgumentNullException(nameof(on)); + return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); + } + /// + /// Get assignmentScheduleRequests from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupAssignmentScheduleRequestCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to assignmentScheduleRequests for identityGovernance + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(PrivilegedAccessGroupAssignmentScheduleRequest body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(PrivilegedAccessGroupAssignmentScheduleRequest body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupAssignmentScheduleRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get assignmentScheduleRequests from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new AssignmentScheduleRequestsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to assignmentScheduleRequests for identityGovernance + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(PrivilegedAccessGroupAssignmentScheduleRequest body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(PrivilegedAccessGroupAssignmentScheduleRequest body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new AssignmentScheduleRequestsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public AssignmentScheduleRequestsRequestBuilder WithUrl(string rawUrl) { + return new AssignmentScheduleRequestsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get assignmentScheduleRequests from identityGovernance + /// + public class AssignmentScheduleRequestsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentScheduleRequestsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public AssignmentScheduleRequestsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AssignmentScheduleRequestsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new assignmentScheduleRequestsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public AssignmentScheduleRequestsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentScheduleRequestsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new assignmentScheduleRequestsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public AssignmentScheduleRequestsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..9a76bc46744 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..3ed7f818a83 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupAssignmentScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs new file mode 100644 index 00000000000..68601e79435 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -0,0 +1,177 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.FilterByCurrentUserWithOn { + /// + /// Provides operations to call the filterByCurrentUser method. + /// + public class FilterByCurrentUserWithOnRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new FilterByCurrentUserWithOnRequestBuilder and sets the default values. + /// + /// Usage: on='{on}' + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, string on = "") : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", pathParameters) { + if (!string.IsNullOrWhiteSpace(on)) PathParameters.Add("on", on); + } + /// + /// Instantiates a new FilterByCurrentUserWithOnRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public FilterByCurrentUserWithOnRequestBuilder WithUrl(string rawUrl) { + return new FilterByCurrentUserWithOnRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Invoke function filterByCurrentUser + /// + public class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public FilterByCurrentUserWithOnRequestBuilderGetQueryParameters QueryParameters { get; set; } = new FilterByCurrentUserWithOnRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new filterByCurrentUserWithOnRequestBuilderGetRequestConfiguration and sets the default values. + /// + public FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs new file mode 100644 index 00000000000..6bdfe7f8c46 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -0,0 +1,19 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.FilterByCurrentUserWithOn { + [Obsolete("This class is obsolete. Use filterByCurrentUserWithOnGetResponse instead.")] + public class FilterByCurrentUserWithOnResponse : FilterByCurrentUserWithOnGetResponse, IParsable { + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnResponse(); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs new file mode 100644 index 00000000000..9c2a5d22e72 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Item.ActivatedUsing { + /// + /// Provides operations to manage the activatedUsing property of the microsoft.graph.privilegedAccessGroupAssignmentScheduleRequest entity. + /// + public class ActivatedUsingRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new ActivatedUsingRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ActivatedUsingRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}/activatedUsing{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ActivatedUsingRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ActivatedUsingRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}/activatedUsing{?%24select,%24expand}", rawUrl) { + } + /// + /// Get activatedUsing from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilitySchedule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get activatedUsing from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ActivatedUsingRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ActivatedUsingRequestBuilder WithUrl(string rawUrl) { + return new ActivatedUsingRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get activatedUsing from identityGovernance + /// + public class ActivatedUsingRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ActivatedUsingRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ActivatedUsingRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ActivatedUsingRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new activatedUsingRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ActivatedUsingRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.cs similarity index 52% rename from src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/Restore/RestoreRequestBuilder.cs rename to src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.cs index 1210eb5c866..4376ba478f3 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.cs @@ -1,6 +1,5 @@ // using Microsoft.Graph.Models.ODataErrors; -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -9,64 +8,62 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.Restore { +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Item.Cancel { /// - /// Provides operations to call the restore method. + /// Provides operations to call the cancel method. /// - public class RestoreRequestBuilder : BaseRequestBuilder { + public class CancelRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new RestoreRequestBuilder and sets the default values. + /// Instantiates a new CancelRequestBuilder and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RestoreRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/restore", pathParameters) { + public CancelRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}/cancel", pathParameters) { } /// - /// Instantiates a new RestoreRequestBuilder and sets the default values. + /// Instantiates a new CancelRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/restore", rawUrl) { + public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}/cancel", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. - /// Find more info here + /// Invoke action cancel /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { {"4XX", ODataError.CreateFromDiscriminatorValue}, {"5XX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Invoke action cancel /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Action? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action requestConfiguration = default) { #endif var requestInfo = new RequestInformation { HttpMethod = Method.POST, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); if (requestConfiguration != null) { - var requestConfig = new RestoreRequestBuilderPostRequestConfiguration(); + var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); @@ -77,21 +74,21 @@ public RequestInformation ToPostRequestInformation(Action /// The raw URL to use for the request builder. - public RestoreRequestBuilder WithUrl(string rawUrl) { - return new RestoreRequestBuilder(rawUrl, RequestAdapter); + public CancelRequestBuilder WithUrl(string rawUrl) { + return new CancelRequestBuilder(rawUrl, RequestAdapter); } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// - public class RestoreRequestBuilderPostRequestConfiguration { + public class CancelRequestBuilderPostRequestConfiguration { /// Request headers public RequestHeaders Headers { get; set; } /// Request options public IList Options { get; set; } /// - /// Instantiates a new restoreRequestBuilderPostRequestConfiguration and sets the default values. + /// Instantiates a new cancelRequestBuilderPostRequestConfiguration and sets the default values. /// - public RestoreRequestBuilderPostRequestConfiguration() { + public CancelRequestBuilderPostRequestConfiguration() { Options = new List(); Headers = new RequestHeaders(); } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/GroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/GroupRequestBuilder.cs new file mode 100644 index 00000000000..484b0189a83 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/GroupRequestBuilder.cs @@ -0,0 +1,132 @@ +// +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Item.Group.ServiceProvisioningErrors; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Item.Group { + /// + /// Provides operations to manage the group property of the microsoft.graph.privilegedAccessGroupAssignmentScheduleRequest entity. + /// + public class GroupRequestBuilder : BaseRequestBuilder { + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new GroupRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GroupRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}/group{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new GroupRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}/group{?%24select,%24expand}", rawUrl) { + } + /// + /// Get group from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Group.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get group from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new GroupRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public GroupRequestBuilder WithUrl(string rawUrl) { + return new GroupRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get group from identityGovernance + /// + public class GroupRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class GroupRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public GroupRequestBuilderGetQueryParameters QueryParameters { get; set; } = new GroupRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new groupRequestBuilderGetRequestConfiguration and sets the default values. + /// + public GroupRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..6caec0444fa --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Item.Group.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}/group/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}/group/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..bf502eacfee --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Item.Group.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Item.Group.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \identityGovernance\privilegedAccess\group\assignmentScheduleRequests\{privilegedAccessGroupAssignmentScheduleRequest-id}\group\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}/group/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}/group/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs new file mode 100644 index 00000000000..c845a15bdcc --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Item.Principal { + /// + /// Provides operations to manage the principal property of the microsoft.graph.privilegedAccessGroupAssignmentScheduleRequest entity. + /// + public class PrincipalRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new PrincipalRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PrincipalRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}/principal{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new PrincipalRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PrincipalRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}/principal{?%24select,%24expand}", rawUrl) { + } + /// + /// Get principal from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get principal from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new PrincipalRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public PrincipalRequestBuilder WithUrl(string rawUrl) { + return new PrincipalRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get principal from identityGovernance + /// + public class PrincipalRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrincipalRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public PrincipalRequestBuilderGetQueryParameters QueryParameters { get; set; } = new PrincipalRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new principalRequestBuilderGetRequestConfiguration and sets the default values. + /// + public PrincipalRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder.cs new file mode 100644 index 00000000000..90733cb65fe --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder.cs @@ -0,0 +1,276 @@ +// +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Item.ActivatedUsing; +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Item.Cancel; +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Item.Group; +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Item.Principal; +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Item.TargetSchedule; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Item { + /// + /// Provides operations to manage the assignmentScheduleRequests property of the microsoft.graph.privilegedAccessGroup entity. + /// + public class PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the activatedUsing property of the microsoft.graph.privilegedAccessGroupAssignmentScheduleRequest entity. + public ActivatedUsingRequestBuilder ActivatedUsing { get => + new ActivatedUsingRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to call the cancel method. + public CancelRequestBuilder Cancel { get => + new CancelRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the group property of the microsoft.graph.privilegedAccessGroupAssignmentScheduleRequest entity. + public Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Item.Group.GroupRequestBuilder Group { get => + new Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Item.Group.GroupRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the principal property of the microsoft.graph.privilegedAccessGroupAssignmentScheduleRequest entity. + public PrincipalRequestBuilder Principal { get => + new PrincipalRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the targetSchedule property of the microsoft.graph.privilegedAccessGroupAssignmentScheduleRequest entity. + public TargetScheduleRequestBuilder TargetSchedule { get => + new TargetScheduleRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property assignmentScheduleRequests for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get assignmentScheduleRequests from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupAssignmentScheduleRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property assignmentScheduleRequests in identityGovernance + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(PrivilegedAccessGroupAssignmentScheduleRequest body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(PrivilegedAccessGroupAssignmentScheduleRequest body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupAssignmentScheduleRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property assignmentScheduleRequests for identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get assignmentScheduleRequests from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property assignmentScheduleRequests in identityGovernance + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(PrivilegedAccessGroupAssignmentScheduleRequest body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(PrivilegedAccessGroupAssignmentScheduleRequest body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder WithUrl(string rawUrl) { + return new PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get assignmentScheduleRequests from identityGovernance + /// + public class PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs new file mode 100644 index 00000000000..cfe2c416d72 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Item.TargetSchedule { + /// + /// Provides operations to manage the targetSchedule property of the microsoft.graph.privilegedAccessGroupAssignmentScheduleRequest entity. + /// + public class TargetScheduleRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new TargetScheduleRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public TargetScheduleRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}/targetSchedule{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new TargetScheduleRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public TargetScheduleRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}/targetSchedule{?%24select,%24expand}", rawUrl) { + } + /// + /// Get targetSchedule from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilitySchedule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get targetSchedule from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new TargetScheduleRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public TargetScheduleRequestBuilder WithUrl(string rawUrl) { + return new TargetScheduleRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get targetSchedule from identityGovernance + /// + public class TargetScheduleRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class TargetScheduleRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public TargetScheduleRequestBuilderGetQueryParameters QueryParameters { get; set; } = new TargetScheduleRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new targetScheduleRequestBuilderGetRequestConfiguration and sets the default values. + /// + public TargetScheduleRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/AssignmentSchedulesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/AssignmentSchedulesRequestBuilder.cs new file mode 100644 index 00000000000..50569adf3d8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/AssignmentSchedulesRequestBuilder.cs @@ -0,0 +1,253 @@ +// +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules.Count; +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules.FilterByCurrentUserWithOn; +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules { + /// + /// Provides operations to manage the assignmentSchedules property of the microsoft.graph.privilegedAccessGroup entity. + /// + public class AssignmentSchedulesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the assignmentSchedules property of the microsoft.graph.privilegedAccessGroup entity. + /// The unique identifier of privilegedAccessGroupAssignmentSchedule + public PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("privilegedAccessGroupAssignmentSchedule%2Did", position); + return new PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new AssignmentSchedulesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AssignmentSchedulesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new AssignmentSchedulesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AssignmentSchedulesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Provides operations to call the filterByCurrentUser method. + /// + /// Usage: on='{on}' + public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string on) { + if(string.IsNullOrEmpty(on)) throw new ArgumentNullException(nameof(on)); + return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); + } + /// + /// Get assignmentSchedules from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupAssignmentScheduleCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to assignmentSchedules for identityGovernance + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(PrivilegedAccessGroupAssignmentSchedule body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(PrivilegedAccessGroupAssignmentSchedule body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupAssignmentSchedule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get assignmentSchedules from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new AssignmentSchedulesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to assignmentSchedules for identityGovernance + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(PrivilegedAccessGroupAssignmentSchedule body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(PrivilegedAccessGroupAssignmentSchedule body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new AssignmentSchedulesRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public AssignmentSchedulesRequestBuilder WithUrl(string rawUrl) { + return new AssignmentSchedulesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get assignmentSchedules from identityGovernance + /// + public class AssignmentSchedulesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentSchedulesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public AssignmentSchedulesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AssignmentSchedulesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new assignmentSchedulesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public AssignmentSchedulesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentSchedulesRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new assignmentSchedulesRequestBuilderPostRequestConfiguration and sets the default values. + /// + public AssignmentSchedulesRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..b0e9a77f58d --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..fac8dc93e95 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupAssignmentSchedule.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs new file mode 100644 index 00000000000..6f4eb49ebf2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -0,0 +1,177 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules.FilterByCurrentUserWithOn { + /// + /// Provides operations to call the filterByCurrentUser method. + /// + public class FilterByCurrentUserWithOnRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new FilterByCurrentUserWithOnRequestBuilder and sets the default values. + /// + /// Usage: on='{on}' + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, string on = "") : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules/filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", pathParameters) { + if (!string.IsNullOrWhiteSpace(on)) PathParameters.Add("on", on); + } + /// + /// Instantiates a new FilterByCurrentUserWithOnRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules/filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public FilterByCurrentUserWithOnRequestBuilder WithUrl(string rawUrl) { + return new FilterByCurrentUserWithOnRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Invoke function filterByCurrentUser + /// + public class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public FilterByCurrentUserWithOnRequestBuilderGetQueryParameters QueryParameters { get; set; } = new FilterByCurrentUserWithOnRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new filterByCurrentUserWithOnRequestBuilderGetRequestConfiguration and sets the default values. + /// + public FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs new file mode 100644 index 00000000000..83ab56e5d19 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -0,0 +1,19 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules.FilterByCurrentUserWithOn { + [Obsolete("This class is obsolete. Use filterByCurrentUserWithOnGetResponse instead.")] + public class FilterByCurrentUserWithOnResponse : FilterByCurrentUserWithOnGetResponse, IParsable { + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnResponse(); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs new file mode 100644 index 00000000000..23e2f081c40 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules.Item.ActivatedUsing { + /// + /// Provides operations to manage the activatedUsing property of the microsoft.graph.privilegedAccessGroupAssignmentSchedule entity. + /// + public class ActivatedUsingRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new ActivatedUsingRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ActivatedUsingRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules/{privilegedAccessGroupAssignmentSchedule%2Did}/activatedUsing{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ActivatedUsingRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ActivatedUsingRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules/{privilegedAccessGroupAssignmentSchedule%2Did}/activatedUsing{?%24select,%24expand}", rawUrl) { + } + /// + /// Get activatedUsing from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilitySchedule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get activatedUsing from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ActivatedUsingRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ActivatedUsingRequestBuilder WithUrl(string rawUrl) { + return new ActivatedUsingRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get activatedUsing from identityGovernance + /// + public class ActivatedUsingRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ActivatedUsingRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ActivatedUsingRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ActivatedUsingRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new activatedUsingRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ActivatedUsingRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/GroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/GroupRequestBuilder.cs new file mode 100644 index 00000000000..9f87bb3e841 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/GroupRequestBuilder.cs @@ -0,0 +1,132 @@ +// +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules.Item.Group.ServiceProvisioningErrors; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules.Item.Group { + /// + /// Provides operations to manage the group property of the microsoft.graph.privilegedAccessGroupAssignmentSchedule entity. + /// + public class GroupRequestBuilder : BaseRequestBuilder { + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new GroupRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GroupRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules/{privilegedAccessGroupAssignmentSchedule%2Did}/group{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new GroupRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules/{privilegedAccessGroupAssignmentSchedule%2Did}/group{?%24select,%24expand}", rawUrl) { + } + /// + /// Get group from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Group.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get group from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new GroupRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public GroupRequestBuilder WithUrl(string rawUrl) { + return new GroupRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get group from identityGovernance + /// + public class GroupRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class GroupRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public GroupRequestBuilderGetQueryParameters QueryParameters { get; set; } = new GroupRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new groupRequestBuilderGetRequestConfiguration and sets the default values. + /// + public GroupRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..b846e0c4bdc --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules.Item.Group.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules/{privilegedAccessGroupAssignmentSchedule%2Did}/group/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules/{privilegedAccessGroupAssignmentSchedule%2Did}/group/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..a629d89174b --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules.Item.Group.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules.Item.Group.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \identityGovernance\privilegedAccess\group\assignmentSchedules\{privilegedAccessGroupAssignmentSchedule-id}\group\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules/{privilegedAccessGroupAssignmentSchedule%2Did}/group/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules/{privilegedAccessGroupAssignmentSchedule%2Did}/group/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Principal/PrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Principal/PrincipalRequestBuilder.cs new file mode 100644 index 00000000000..6a3c838daa6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Principal/PrincipalRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules.Item.Principal { + /// + /// Provides operations to manage the principal property of the microsoft.graph.privilegedAccessGroupAssignmentSchedule entity. + /// + public class PrincipalRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new PrincipalRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PrincipalRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules/{privilegedAccessGroupAssignmentSchedule%2Did}/principal{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new PrincipalRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PrincipalRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules/{privilegedAccessGroupAssignmentSchedule%2Did}/principal{?%24select,%24expand}", rawUrl) { + } + /// + /// Get principal from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get principal from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new PrincipalRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public PrincipalRequestBuilder WithUrl(string rawUrl) { + return new PrincipalRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get principal from identityGovernance + /// + public class PrincipalRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrincipalRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public PrincipalRequestBuilderGetQueryParameters QueryParameters { get; set; } = new PrincipalRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new principalRequestBuilderGetRequestConfiguration and sets the default values. + /// + public PrincipalRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder.cs new file mode 100644 index 00000000000..d8e66e3a472 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder.cs @@ -0,0 +1,266 @@ +// +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules.Item.ActivatedUsing; +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules.Item.Group; +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules.Item.Principal; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules.Item { + /// + /// Provides operations to manage the assignmentSchedules property of the microsoft.graph.privilegedAccessGroup entity. + /// + public class PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the activatedUsing property of the microsoft.graph.privilegedAccessGroupAssignmentSchedule entity. + public ActivatedUsingRequestBuilder ActivatedUsing { get => + new ActivatedUsingRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the group property of the microsoft.graph.privilegedAccessGroupAssignmentSchedule entity. + public Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules.Item.Group.GroupRequestBuilder Group { get => + new Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules.Item.Group.GroupRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the principal property of the microsoft.graph.privilegedAccessGroupAssignmentSchedule entity. + public PrincipalRequestBuilder Principal { get => + new PrincipalRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules/{privilegedAccessGroupAssignmentSchedule%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules/{privilegedAccessGroupAssignmentSchedule%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property assignmentSchedules for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get assignmentSchedules from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupAssignmentSchedule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property assignmentSchedules in identityGovernance + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(PrivilegedAccessGroupAssignmentSchedule body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(PrivilegedAccessGroupAssignmentSchedule body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupAssignmentSchedule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property assignmentSchedules for identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get assignmentSchedules from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property assignmentSchedules in identityGovernance + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(PrivilegedAccessGroupAssignmentSchedule body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(PrivilegedAccessGroupAssignmentSchedule body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder WithUrl(string rawUrl) { + return new PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get assignmentSchedules from identityGovernance + /// + public class PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..7fcf3108bbe --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/EligibilityScheduleInstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/EligibilityScheduleInstancesRequestBuilder.cs new file mode 100644 index 00000000000..4ceb91c0076 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/EligibilityScheduleInstancesRequestBuilder.cs @@ -0,0 +1,253 @@ +// +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances.Count; +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances.FilterByCurrentUserWithOn; +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances { + /// + /// Provides operations to manage the eligibilityScheduleInstances property of the microsoft.graph.privilegedAccessGroup entity. + /// + public class EligibilityScheduleInstancesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the eligibilityScheduleInstances property of the microsoft.graph.privilegedAccessGroup entity. + /// The unique identifier of privilegedAccessGroupEligibilityScheduleInstance + public PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("privilegedAccessGroupEligibilityScheduleInstance%2Did", position); + return new PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new EligibilityScheduleInstancesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public EligibilityScheduleInstancesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new EligibilityScheduleInstancesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public EligibilityScheduleInstancesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Provides operations to call the filterByCurrentUser method. + /// + /// Usage: on='{on}' + public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string on) { + if(string.IsNullOrEmpty(on)) throw new ArgumentNullException(nameof(on)); + return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); + } + /// + /// Get eligibilityScheduleInstances from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilityScheduleInstanceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to eligibilityScheduleInstances for identityGovernance + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(PrivilegedAccessGroupEligibilityScheduleInstance body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(PrivilegedAccessGroupEligibilityScheduleInstance body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilityScheduleInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get eligibilityScheduleInstances from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new EligibilityScheduleInstancesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to eligibilityScheduleInstances for identityGovernance + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(PrivilegedAccessGroupEligibilityScheduleInstance body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(PrivilegedAccessGroupEligibilityScheduleInstance body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new EligibilityScheduleInstancesRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public EligibilityScheduleInstancesRequestBuilder WithUrl(string rawUrl) { + return new EligibilityScheduleInstancesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get eligibilityScheduleInstances from identityGovernance + /// + public class EligibilityScheduleInstancesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class EligibilityScheduleInstancesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public EligibilityScheduleInstancesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new EligibilityScheduleInstancesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new eligibilityScheduleInstancesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public EligibilityScheduleInstancesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class EligibilityScheduleInstancesRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new eligibilityScheduleInstancesRequestBuilderPostRequestConfiguration and sets the default values. + /// + public EligibilityScheduleInstancesRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..1289243bf93 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupEligibilityScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs new file mode 100644 index 00000000000..d9c5c6ff950 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -0,0 +1,177 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances.FilterByCurrentUserWithOn { + /// + /// Provides operations to call the filterByCurrentUser method. + /// + public class FilterByCurrentUserWithOnRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new FilterByCurrentUserWithOnRequestBuilder and sets the default values. + /// + /// Usage: on='{on}' + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, string on = "") : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", pathParameters) { + if (!string.IsNullOrWhiteSpace(on)) PathParameters.Add("on", on); + } + /// + /// Instantiates a new FilterByCurrentUserWithOnRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public FilterByCurrentUserWithOnRequestBuilder WithUrl(string rawUrl) { + return new FilterByCurrentUserWithOnRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Invoke function filterByCurrentUser + /// + public class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public FilterByCurrentUserWithOnRequestBuilderGetQueryParameters QueryParameters { get; set; } = new FilterByCurrentUserWithOnRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new filterByCurrentUserWithOnRequestBuilderGetRequestConfiguration and sets the default values. + /// + public FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs new file mode 100644 index 00000000000..dec85aaa24b --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -0,0 +1,19 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances.FilterByCurrentUserWithOn { + [Obsolete("This class is obsolete. Use filterByCurrentUserWithOnGetResponse instead.")] + public class FilterByCurrentUserWithOnResponse : FilterByCurrentUserWithOnGetResponse, IParsable { + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnResponse(); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/GroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/GroupRequestBuilder.cs new file mode 100644 index 00000000000..705f12c3c3f --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/GroupRequestBuilder.cs @@ -0,0 +1,132 @@ +// +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances.Item.Group.ServiceProvisioningErrors; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances.Item.Group { + /// + /// Provides operations to manage the group property of the microsoft.graph.privilegedAccessGroupEligibilityScheduleInstance entity. + /// + public class GroupRequestBuilder : BaseRequestBuilder { + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new GroupRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GroupRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/{privilegedAccessGroupEligibilityScheduleInstance%2Did}/group{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new GroupRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/{privilegedAccessGroupEligibilityScheduleInstance%2Did}/group{?%24select,%24expand}", rawUrl) { + } + /// + /// Get group from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Group.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get group from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new GroupRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public GroupRequestBuilder WithUrl(string rawUrl) { + return new GroupRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get group from identityGovernance + /// + public class GroupRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class GroupRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public GroupRequestBuilderGetQueryParameters QueryParameters { get; set; } = new GroupRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new groupRequestBuilderGetRequestConfiguration and sets the default values. + /// + public GroupRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..fc098fbc3aa --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances.Item.Group.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/{privilegedAccessGroupEligibilityScheduleInstance%2Did}/group/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/{privilegedAccessGroupEligibilityScheduleInstance%2Did}/group/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..df1ed45861d --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances.Item.Group.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances.Item.Group.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \identityGovernance\privilegedAccess\group\eligibilityScheduleInstances\{privilegedAccessGroupEligibilityScheduleInstance-id}\group\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/{privilegedAccessGroupEligibilityScheduleInstance%2Did}/group/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/{privilegedAccessGroupEligibilityScheduleInstance%2Did}/group/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs new file mode 100644 index 00000000000..97f755d5be9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances.Item.Principal { + /// + /// Provides operations to manage the principal property of the microsoft.graph.privilegedAccessGroupEligibilityScheduleInstance entity. + /// + public class PrincipalRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new PrincipalRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PrincipalRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/{privilegedAccessGroupEligibilityScheduleInstance%2Did}/principal{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new PrincipalRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PrincipalRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/{privilegedAccessGroupEligibilityScheduleInstance%2Did}/principal{?%24select,%24expand}", rawUrl) { + } + /// + /// Get principal from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get principal from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new PrincipalRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public PrincipalRequestBuilder WithUrl(string rawUrl) { + return new PrincipalRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get principal from identityGovernance + /// + public class PrincipalRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrincipalRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public PrincipalRequestBuilderGetQueryParameters QueryParameters { get; set; } = new PrincipalRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new principalRequestBuilderGetRequestConfiguration and sets the default values. + /// + public PrincipalRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder.cs new file mode 100644 index 00000000000..e99b650cd22 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder.cs @@ -0,0 +1,261 @@ +// +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances.Item.Group; +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances.Item.Principal; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances.Item { + /// + /// Provides operations to manage the eligibilityScheduleInstances property of the microsoft.graph.privilegedAccessGroup entity. + /// + public class PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the group property of the microsoft.graph.privilegedAccessGroupEligibilityScheduleInstance entity. + public Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances.Item.Group.GroupRequestBuilder Group { get => + new Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances.Item.Group.GroupRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the principal property of the microsoft.graph.privilegedAccessGroupEligibilityScheduleInstance entity. + public PrincipalRequestBuilder Principal { get => + new PrincipalRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/{privilegedAccessGroupEligibilityScheduleInstance%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/{privilegedAccessGroupEligibilityScheduleInstance%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property eligibilityScheduleInstances for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get eligibilityScheduleInstances from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilityScheduleInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property eligibilityScheduleInstances in identityGovernance + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(PrivilegedAccessGroupEligibilityScheduleInstance body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(PrivilegedAccessGroupEligibilityScheduleInstance body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilityScheduleInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property eligibilityScheduleInstances for identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get eligibilityScheduleInstances from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property eligibilityScheduleInstances in identityGovernance + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(PrivilegedAccessGroupEligibilityScheduleInstance body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(PrivilegedAccessGroupEligibilityScheduleInstance body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder WithUrl(string rawUrl) { + return new PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get eligibilityScheduleInstances from identityGovernance + /// + public class PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..0be539f69af --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/EligibilityScheduleRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/EligibilityScheduleRequestsRequestBuilder.cs new file mode 100644 index 00000000000..d1c17e700ce --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/EligibilityScheduleRequestsRequestBuilder.cs @@ -0,0 +1,253 @@ +// +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.Count; +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.FilterByCurrentUserWithOn; +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests { + /// + /// Provides operations to manage the eligibilityScheduleRequests property of the microsoft.graph.privilegedAccessGroup entity. + /// + public class EligibilityScheduleRequestsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the eligibilityScheduleRequests property of the microsoft.graph.privilegedAccessGroup entity. + /// The unique identifier of privilegedAccessGroupEligibilityScheduleRequest + public PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("privilegedAccessGroupEligibilityScheduleRequest%2Did", position); + return new PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new EligibilityScheduleRequestsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public EligibilityScheduleRequestsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new EligibilityScheduleRequestsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public EligibilityScheduleRequestsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Provides operations to call the filterByCurrentUser method. + /// + /// Usage: on='{on}' + public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string on) { + if(string.IsNullOrEmpty(on)) throw new ArgumentNullException(nameof(on)); + return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); + } + /// + /// Get eligibilityScheduleRequests from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilityScheduleRequestCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to eligibilityScheduleRequests for identityGovernance + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(PrivilegedAccessGroupEligibilityScheduleRequest body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(PrivilegedAccessGroupEligibilityScheduleRequest body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilityScheduleRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get eligibilityScheduleRequests from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new EligibilityScheduleRequestsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to eligibilityScheduleRequests for identityGovernance + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(PrivilegedAccessGroupEligibilityScheduleRequest body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(PrivilegedAccessGroupEligibilityScheduleRequest body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new EligibilityScheduleRequestsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public EligibilityScheduleRequestsRequestBuilder WithUrl(string rawUrl) { + return new EligibilityScheduleRequestsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get eligibilityScheduleRequests from identityGovernance + /// + public class EligibilityScheduleRequestsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class EligibilityScheduleRequestsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public EligibilityScheduleRequestsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new EligibilityScheduleRequestsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new eligibilityScheduleRequestsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public EligibilityScheduleRequestsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class EligibilityScheduleRequestsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new eligibilityScheduleRequestsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public EligibilityScheduleRequestsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..a41794e6792 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupEligibilityScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs new file mode 100644 index 00000000000..6c3410db409 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -0,0 +1,177 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.FilterByCurrentUserWithOn { + /// + /// Provides operations to call the filterByCurrentUser method. + /// + public class FilterByCurrentUserWithOnRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new FilterByCurrentUserWithOnRequestBuilder and sets the default values. + /// + /// Usage: on='{on}' + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, string on = "") : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", pathParameters) { + if (!string.IsNullOrWhiteSpace(on)) PathParameters.Add("on", on); + } + /// + /// Instantiates a new FilterByCurrentUserWithOnRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public FilterByCurrentUserWithOnRequestBuilder WithUrl(string rawUrl) { + return new FilterByCurrentUserWithOnRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Invoke function filterByCurrentUser + /// + public class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public FilterByCurrentUserWithOnRequestBuilderGetQueryParameters QueryParameters { get; set; } = new FilterByCurrentUserWithOnRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new filterByCurrentUserWithOnRequestBuilderGetRequestConfiguration and sets the default values. + /// + public FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs new file mode 100644 index 00000000000..72deacc8cb5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -0,0 +1,19 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.FilterByCurrentUserWithOn { + [Obsolete("This class is obsolete. Use filterByCurrentUserWithOnGetResponse instead.")] + public class FilterByCurrentUserWithOnResponse : FilterByCurrentUserWithOnGetResponse, IParsable { + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnResponse(); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.cs new file mode 100644 index 00000000000..97deb44de75 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.cs @@ -0,0 +1,97 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.Item.Cancel { + /// + /// Provides operations to call the cancel method. + /// + public class CancelRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CancelRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CancelRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/{privilegedAccessGroupEligibilityScheduleRequest%2Did}/cancel", pathParameters) { + } + /// + /// Instantiates a new CancelRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/{privilegedAccessGroupEligibilityScheduleRequest%2Did}/cancel", rawUrl) { + } + /// + /// Invoke action cancel + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action cancel + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CancelRequestBuilder WithUrl(string rawUrl) { + return new CancelRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CancelRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new cancelRequestBuilderPostRequestConfiguration and sets the default values. + /// + public CancelRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/GroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/GroupRequestBuilder.cs new file mode 100644 index 00000000000..28d77e9842c --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/GroupRequestBuilder.cs @@ -0,0 +1,132 @@ +// +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.Item.Group.ServiceProvisioningErrors; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.Item.Group { + /// + /// Provides operations to manage the group property of the microsoft.graph.privilegedAccessGroupEligibilityScheduleRequest entity. + /// + public class GroupRequestBuilder : BaseRequestBuilder { + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new GroupRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GroupRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/{privilegedAccessGroupEligibilityScheduleRequest%2Did}/group{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new GroupRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/{privilegedAccessGroupEligibilityScheduleRequest%2Did}/group{?%24select,%24expand}", rawUrl) { + } + /// + /// Get group from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Group.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get group from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new GroupRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public GroupRequestBuilder WithUrl(string rawUrl) { + return new GroupRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get group from identityGovernance + /// + public class GroupRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class GroupRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public GroupRequestBuilderGetQueryParameters QueryParameters { get; set; } = new GroupRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new groupRequestBuilderGetRequestConfiguration and sets the default values. + /// + public GroupRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..b8ab5514691 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.Item.Group.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/{privilegedAccessGroupEligibilityScheduleRequest%2Did}/group/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/{privilegedAccessGroupEligibilityScheduleRequest%2Did}/group/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..99296644846 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.Item.Group.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.Item.Group.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \identityGovernance\privilegedAccess\group\eligibilityScheduleRequests\{privilegedAccessGroupEligibilityScheduleRequest-id}\group\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/{privilegedAccessGroupEligibilityScheduleRequest%2Did}/group/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/{privilegedAccessGroupEligibilityScheduleRequest%2Did}/group/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs new file mode 100644 index 00000000000..bbed0e958a3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.Item.Principal { + /// + /// Provides operations to manage the principal property of the microsoft.graph.privilegedAccessGroupEligibilityScheduleRequest entity. + /// + public class PrincipalRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new PrincipalRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PrincipalRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/{privilegedAccessGroupEligibilityScheduleRequest%2Did}/principal{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new PrincipalRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PrincipalRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/{privilegedAccessGroupEligibilityScheduleRequest%2Did}/principal{?%24select,%24expand}", rawUrl) { + } + /// + /// Get principal from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get principal from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new PrincipalRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public PrincipalRequestBuilder WithUrl(string rawUrl) { + return new PrincipalRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get principal from identityGovernance + /// + public class PrincipalRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrincipalRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public PrincipalRequestBuilderGetQueryParameters QueryParameters { get; set; } = new PrincipalRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new principalRequestBuilderGetRequestConfiguration and sets the default values. + /// + public PrincipalRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder.cs new file mode 100644 index 00000000000..ae38fe1bc3a --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder.cs @@ -0,0 +1,271 @@ +// +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.Item.Cancel; +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.Item.Group; +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.Item.Principal; +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.Item.TargetSchedule; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.Item { + /// + /// Provides operations to manage the eligibilityScheduleRequests property of the microsoft.graph.privilegedAccessGroup entity. + /// + public class PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to call the cancel method. + public CancelRequestBuilder Cancel { get => + new CancelRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the group property of the microsoft.graph.privilegedAccessGroupEligibilityScheduleRequest entity. + public Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.Item.Group.GroupRequestBuilder Group { get => + new Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.Item.Group.GroupRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the principal property of the microsoft.graph.privilegedAccessGroupEligibilityScheduleRequest entity. + public PrincipalRequestBuilder Principal { get => + new PrincipalRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the targetSchedule property of the microsoft.graph.privilegedAccessGroupEligibilityScheduleRequest entity. + public TargetScheduleRequestBuilder TargetSchedule { get => + new TargetScheduleRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/{privilegedAccessGroupEligibilityScheduleRequest%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/{privilegedAccessGroupEligibilityScheduleRequest%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property eligibilityScheduleRequests for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get eligibilityScheduleRequests from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilityScheduleRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property eligibilityScheduleRequests in identityGovernance + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(PrivilegedAccessGroupEligibilityScheduleRequest body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(PrivilegedAccessGroupEligibilityScheduleRequest body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilityScheduleRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property eligibilityScheduleRequests for identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get eligibilityScheduleRequests from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property eligibilityScheduleRequests in identityGovernance + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(PrivilegedAccessGroupEligibilityScheduleRequest body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(PrivilegedAccessGroupEligibilityScheduleRequest body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder WithUrl(string rawUrl) { + return new PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get eligibilityScheduleRequests from identityGovernance + /// + public class PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs new file mode 100644 index 00000000000..f1de4e90171 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.Item.TargetSchedule { + /// + /// Provides operations to manage the targetSchedule property of the microsoft.graph.privilegedAccessGroupEligibilityScheduleRequest entity. + /// + public class TargetScheduleRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new TargetScheduleRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public TargetScheduleRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/{privilegedAccessGroupEligibilityScheduleRequest%2Did}/targetSchedule{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new TargetScheduleRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public TargetScheduleRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/{privilegedAccessGroupEligibilityScheduleRequest%2Did}/targetSchedule{?%24select,%24expand}", rawUrl) { + } + /// + /// Get targetSchedule from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilitySchedule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get targetSchedule from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new TargetScheduleRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public TargetScheduleRequestBuilder WithUrl(string rawUrl) { + return new TargetScheduleRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get targetSchedule from identityGovernance + /// + public class TargetScheduleRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class TargetScheduleRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public TargetScheduleRequestBuilderGetQueryParameters QueryParameters { get; set; } = new TargetScheduleRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new targetScheduleRequestBuilderGetRequestConfiguration and sets the default values. + /// + public TargetScheduleRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..f5ecf956c53 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilitySchedules/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilitySchedules/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/EligibilitySchedulesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/EligibilitySchedulesRequestBuilder.cs new file mode 100644 index 00000000000..603159a95e9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/EligibilitySchedulesRequestBuilder.cs @@ -0,0 +1,253 @@ +// +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules.Count; +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules.FilterByCurrentUserWithOn; +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules { + /// + /// Provides operations to manage the eligibilitySchedules property of the microsoft.graph.privilegedAccessGroup entity. + /// + public class EligibilitySchedulesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the eligibilitySchedules property of the microsoft.graph.privilegedAccessGroup entity. + /// The unique identifier of privilegedAccessGroupEligibilitySchedule + public PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("privilegedAccessGroupEligibilitySchedule%2Did", position); + return new PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new EligibilitySchedulesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public EligibilitySchedulesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilitySchedules{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new EligibilitySchedulesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public EligibilitySchedulesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilitySchedules{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Provides operations to call the filterByCurrentUser method. + /// + /// Usage: on='{on}' + public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string on) { + if(string.IsNullOrEmpty(on)) throw new ArgumentNullException(nameof(on)); + return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); + } + /// + /// Get eligibilitySchedules from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilityScheduleCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to eligibilitySchedules for identityGovernance + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(PrivilegedAccessGroupEligibilitySchedule body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(PrivilegedAccessGroupEligibilitySchedule body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilitySchedule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get eligibilitySchedules from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new EligibilitySchedulesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to eligibilitySchedules for identityGovernance + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(PrivilegedAccessGroupEligibilitySchedule body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(PrivilegedAccessGroupEligibilitySchedule body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new EligibilitySchedulesRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public EligibilitySchedulesRequestBuilder WithUrl(string rawUrl) { + return new EligibilitySchedulesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get eligibilitySchedules from identityGovernance + /// + public class EligibilitySchedulesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class EligibilitySchedulesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public EligibilitySchedulesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new EligibilitySchedulesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new eligibilitySchedulesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public EligibilitySchedulesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class EligibilitySchedulesRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new eligibilitySchedulesRequestBuilderPostRequestConfiguration and sets the default values. + /// + public EligibilitySchedulesRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..a3d635f5f5b --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupEligibilitySchedule.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs new file mode 100644 index 00000000000..4983a227429 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -0,0 +1,177 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules.FilterByCurrentUserWithOn { + /// + /// Provides operations to call the filterByCurrentUser method. + /// + public class FilterByCurrentUserWithOnRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new FilterByCurrentUserWithOnRequestBuilder and sets the default values. + /// + /// Usage: on='{on}' + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, string on = "") : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilitySchedules/filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", pathParameters) { + if (!string.IsNullOrWhiteSpace(on)) PathParameters.Add("on", on); + } + /// + /// Instantiates a new FilterByCurrentUserWithOnRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilitySchedules/filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public FilterByCurrentUserWithOnRequestBuilder WithUrl(string rawUrl) { + return new FilterByCurrentUserWithOnRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Invoke function filterByCurrentUser + /// + public class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public FilterByCurrentUserWithOnRequestBuilderGetQueryParameters QueryParameters { get; set; } = new FilterByCurrentUserWithOnRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new filterByCurrentUserWithOnRequestBuilderGetRequestConfiguration and sets the default values. + /// + public FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs new file mode 100644 index 00000000000..2639320dbaf --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -0,0 +1,19 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules.FilterByCurrentUserWithOn { + [Obsolete("This class is obsolete. Use filterByCurrentUserWithOnGetResponse instead.")] + public class FilterByCurrentUserWithOnResponse : FilterByCurrentUserWithOnGetResponse, IParsable { + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnResponse(); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/GroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/GroupRequestBuilder.cs new file mode 100644 index 00000000000..660fede2e82 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/GroupRequestBuilder.cs @@ -0,0 +1,132 @@ +// +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules.Item.Group.ServiceProvisioningErrors; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules.Item.Group { + /// + /// Provides operations to manage the group property of the microsoft.graph.privilegedAccessGroupEligibilitySchedule entity. + /// + public class GroupRequestBuilder : BaseRequestBuilder { + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new GroupRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GroupRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilitySchedules/{privilegedAccessGroupEligibilitySchedule%2Did}/group{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new GroupRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilitySchedules/{privilegedAccessGroupEligibilitySchedule%2Did}/group{?%24select,%24expand}", rawUrl) { + } + /// + /// Get group from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Group.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get group from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new GroupRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public GroupRequestBuilder WithUrl(string rawUrl) { + return new GroupRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get group from identityGovernance + /// + public class GroupRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class GroupRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public GroupRequestBuilderGetQueryParameters QueryParameters { get; set; } = new GroupRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new groupRequestBuilderGetRequestConfiguration and sets the default values. + /// + public GroupRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..bb248022573 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules.Item.Group.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilitySchedules/{privilegedAccessGroupEligibilitySchedule%2Did}/group/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilitySchedules/{privilegedAccessGroupEligibilitySchedule%2Did}/group/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..166d4913f5d --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules.Item.Group.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules.Item.Group.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \identityGovernance\privilegedAccess\group\eligibilitySchedules\{privilegedAccessGroupEligibilitySchedule-id}\group\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilitySchedules/{privilegedAccessGroupEligibilitySchedule%2Did}/group/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilitySchedules/{privilegedAccessGroupEligibilitySchedule%2Did}/group/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Principal/PrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Principal/PrincipalRequestBuilder.cs new file mode 100644 index 00000000000..dcd20024cb3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Principal/PrincipalRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules.Item.Principal { + /// + /// Provides operations to manage the principal property of the microsoft.graph.privilegedAccessGroupEligibilitySchedule entity. + /// + public class PrincipalRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new PrincipalRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PrincipalRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilitySchedules/{privilegedAccessGroupEligibilitySchedule%2Did}/principal{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new PrincipalRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PrincipalRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilitySchedules/{privilegedAccessGroupEligibilitySchedule%2Did}/principal{?%24select,%24expand}", rawUrl) { + } + /// + /// Get principal from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get principal from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new PrincipalRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public PrincipalRequestBuilder WithUrl(string rawUrl) { + return new PrincipalRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get principal from identityGovernance + /// + public class PrincipalRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrincipalRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public PrincipalRequestBuilderGetQueryParameters QueryParameters { get; set; } = new PrincipalRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new principalRequestBuilderGetRequestConfiguration and sets the default values. + /// + public PrincipalRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder.cs new file mode 100644 index 00000000000..82c0a286eae --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder.cs @@ -0,0 +1,261 @@ +// +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules.Item.Group; +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules.Item.Principal; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules.Item { + /// + /// Provides operations to manage the eligibilitySchedules property of the microsoft.graph.privilegedAccessGroup entity. + /// + public class PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the group property of the microsoft.graph.privilegedAccessGroupEligibilitySchedule entity. + public Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules.Item.Group.GroupRequestBuilder Group { get => + new Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules.Item.Group.GroupRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the principal property of the microsoft.graph.privilegedAccessGroupEligibilitySchedule entity. + public PrincipalRequestBuilder Principal { get => + new PrincipalRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilitySchedules/{privilegedAccessGroupEligibilitySchedule%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilitySchedules/{privilegedAccessGroupEligibilitySchedule%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property eligibilitySchedules for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get eligibilitySchedules from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilitySchedule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property eligibilitySchedules in identityGovernance + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(PrivilegedAccessGroupEligibilitySchedule body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(PrivilegedAccessGroupEligibilitySchedule body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilitySchedule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property eligibilitySchedules for identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get eligibilitySchedules from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property eligibilitySchedules in identityGovernance + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(PrivilegedAccessGroupEligibilitySchedule body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(PrivilegedAccessGroupEligibilitySchedule body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder WithUrl(string rawUrl) { + return new PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get eligibilitySchedules from identityGovernance + /// + public class PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/GroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/GroupRequestBuilder.cs new file mode 100644 index 00000000000..ac2fead1ab3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/GroupRequestBuilder.cs @@ -0,0 +1,286 @@ +// +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentApprovals; +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances; +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests; +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules; +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances; +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests; +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group { + /// + /// Provides operations to manage the group property of the microsoft.graph.privilegedAccessRoot entity. + /// + public class GroupRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the assignmentApprovals property of the microsoft.graph.privilegedAccessGroup entity. + public AssignmentApprovalsRequestBuilder AssignmentApprovals { get => + new AssignmentApprovalsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the assignmentScheduleInstances property of the microsoft.graph.privilegedAccessGroup entity. + public AssignmentScheduleInstancesRequestBuilder AssignmentScheduleInstances { get => + new AssignmentScheduleInstancesRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the assignmentScheduleRequests property of the microsoft.graph.privilegedAccessGroup entity. + public AssignmentScheduleRequestsRequestBuilder AssignmentScheduleRequests { get => + new AssignmentScheduleRequestsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the assignmentSchedules property of the microsoft.graph.privilegedAccessGroup entity. + public AssignmentSchedulesRequestBuilder AssignmentSchedules { get => + new AssignmentSchedulesRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the eligibilityScheduleInstances property of the microsoft.graph.privilegedAccessGroup entity. + public EligibilityScheduleInstancesRequestBuilder EligibilityScheduleInstances { get => + new EligibilityScheduleInstancesRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the eligibilityScheduleRequests property of the microsoft.graph.privilegedAccessGroup entity. + public EligibilityScheduleRequestsRequestBuilder EligibilityScheduleRequests { get => + new EligibilityScheduleRequestsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the eligibilitySchedules property of the microsoft.graph.privilegedAccessGroup entity. + public EligibilitySchedulesRequestBuilder EligibilitySchedules { get => + new EligibilitySchedulesRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new GroupRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GroupRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new GroupRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property group for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get group from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property group in identityGovernance + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(PrivilegedAccessGroup body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(PrivilegedAccessGroup body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property group for identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new GroupRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get group from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new GroupRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property group in identityGovernance + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(PrivilegedAccessGroup body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(PrivilegedAccessGroup body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new GroupRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public GroupRequestBuilder WithUrl(string rawUrl) { + return new GroupRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class GroupRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new groupRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public GroupRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get group from identityGovernance + /// + public class GroupRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class GroupRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public GroupRequestBuilderGetQueryParameters QueryParameters { get; set; } = new GroupRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new groupRequestBuilderGetRequestConfiguration and sets the default values. + /// + public GroupRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class GroupRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new groupRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public GroupRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/PrivilegedAccessRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/PrivilegedAccessRequestBuilder.cs new file mode 100644 index 00000000000..f632aeb2fd8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/PrivilegedAccessRequestBuilder.cs @@ -0,0 +1,256 @@ +// +using Microsoft.Graph.IdentityGovernance.PrivilegedAccess.Group; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.IdentityGovernance.PrivilegedAccess { + /// + /// Provides operations to manage the privilegedAccess property of the microsoft.graph.identityGovernance entity. + /// + public class PrivilegedAccessRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the group property of the microsoft.graph.privilegedAccessRoot entity. + public GroupRequestBuilder Group { get => + new GroupRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new PrivilegedAccessRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PrivilegedAccessRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new PrivilegedAccessRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PrivilegedAccessRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property privilegedAccess for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get privilegedAccess from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessRoot.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property privilegedAccess in identityGovernance + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(PrivilegedAccessRoot body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(PrivilegedAccessRoot body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessRoot.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property privilegedAccess for identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get privilegedAccess from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property privilegedAccess in identityGovernance + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(PrivilegedAccessRoot body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(PrivilegedAccessRoot body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public PrivilegedAccessRequestBuilder WithUrl(string rawUrl) { + return new PrivilegedAccessRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new privilegedAccessRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public PrivilegedAccessRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get privilegedAccess from identityGovernance + /// + public class PrivilegedAccessRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public PrivilegedAccessRequestBuilderGetQueryParameters QueryParameters { get; set; } = new PrivilegedAccessRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new privilegedAccessRequestBuilderGetRequestConfiguration and sets the default values. + /// + public PrivilegedAccessRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new privilegedAccessRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public PrivilegedAccessRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/AgreementsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/AgreementsRequestBuilder.cs index 40c5b639df3..ac36afba6af 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/AgreementsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/AgreementsRequestBuilder.cs @@ -42,7 +42,7 @@ public AgreementsRequestBuilder(Dictionary pathParameters, IRequ public AgreementsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/termsOfUse/agreements{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of agreement objects. + /// Retrieve a list of agreement objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, AgreementCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new agreement object. + /// Create a new agreement object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(Agreement body, Action(requestInfo, Agreement.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of agreement objects. + /// Retrieve a list of agreement objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new agreement object. + /// Create a new agreement object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public AgreementsRequestBuilder WithUrl(string rawUrl) { return new AgreementsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of agreement objects. + /// Retrieve a list of agreement objects. This API is supported in the following national cloud deployments. /// public class AgreementsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/AcceptancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/AcceptancesRequestBuilder.cs index a77899c4952..c074a996611 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/AcceptancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/AcceptancesRequestBuilder.cs @@ -42,7 +42,7 @@ public AcceptancesRequestBuilder(Dictionary pathParameters, IReq public AcceptancesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/termsOfUse/agreements/{agreement%2Did}/acceptances{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the details about the acceptance records for a specific agreement. + /// Get the details about the acceptance records for a specific agreement. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(AgreementAcceptance body, Actio return await RequestAdapter.SendAsync(requestInfo, AgreementAcceptance.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the details about the acceptance records for a specific agreement. + /// Get the details about the acceptance records for a specific agreement. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public AcceptancesRequestBuilder WithUrl(string rawUrl) { return new AcceptancesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the details about the acceptance records for a specific agreement. + /// Get the details about the acceptance records for a specific agreement. This API is supported in the following national cloud deployments. /// public class AcceptancesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.cs index 610ae8c4ca0..436b7aa2338 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.cs @@ -44,7 +44,7 @@ public AgreementItemRequestBuilder(Dictionary pathParameters, IR public AgreementItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/termsOfUse/agreements/{agreement%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an agreement object. + /// Delete an agreement object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -64,7 +64,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of an agreement object. + /// Retrieve the properties and relationships of an agreement object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, Agreement.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an agreement object. + /// Update the properties of an agreement object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -106,7 +106,7 @@ public async Task PatchAsync(Agreement body, Action(requestInfo, Agreement.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an agreement object. + /// Delete an agreement object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of an agreement object. + /// Retrieve the properties and relationships of an agreement object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -156,7 +156,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an agreement object. + /// Update the properties of an agreement object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -207,7 +207,7 @@ public AgreementItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of an agreement object. + /// Retrieve the properties and relationships of an agreement object. This API is supported in the following national cloud deployments. /// public class AgreementItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/FileRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/FileRequestBuilder.cs index b2fd4786cc9..74fa97d49c8 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/FileRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/FileRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the details of an agreement file, including the language and version information. The default file can have multiple versions, each with its own language, that can be retrieved by specifying the Accept-Language header. + /// Retrieve the details of an agreement file, including the language and version information. The default file can have multiple versions, each with its own language, that can be retrieved by specifying the Accept-Language header. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the details of an agreement file, including the language and version information. The default file can have multiple versions, each with its own language, that can be retrieved by specifying the Accept-Language header. + /// Retrieve the details of an agreement file, including the language and version information. The default file can have multiple versions, each with its own language, that can be retrieved by specifying the Accept-Language header. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public FileRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the details of an agreement file, including the language and version information. The default file can have multiple versions, each with its own language, that can be retrieved by specifying the Accept-Language header. + /// Retrieve the details of an agreement file, including the language and version information. The default file can have multiple versions, each with its own language, that can be retrieved by specifying the Accept-Language header. This API is supported in the following national cloud deployments. /// public class FileRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/Localizations/LocalizationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/Localizations/LocalizationsRequestBuilder.cs index 82bd2a0ebac..c17a7bcf549 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/Localizations/LocalizationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/Localizations/LocalizationsRequestBuilder.cs @@ -42,7 +42,7 @@ public LocalizationsRequestBuilder(Dictionary pathParameters, IR public LocalizationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/termsOfUse/agreements/{agreement%2Did}/file/localizations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the default and localized agreement files. + /// Get a list of the default and localized agreement files. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(AgreementFileLocalization return await RequestAdapter.SendAsync(requestInfo, AgreementFileLocalization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the default and localized agreement files. + /// Get a list of the default and localized agreement files. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public LocalizationsRequestBuilder WithUrl(string rawUrl) { return new LocalizationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the default and localized agreement files. + /// Get a list of the default and localized agreement files. This API is supported in the following national cloud deployments. /// public class LocalizationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/FilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/FilesRequestBuilder.cs index 2709e8caca7..4c107d73833 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/FilesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/FilesRequestBuilder.cs @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, AgreementFileLocalizationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new localized agreement file. + /// Create a new localized agreement file. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new localized agreement file. + /// Create a new localized agreement file. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskDetections/Item/RiskDetectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskDetections/Item/RiskDetectionItemRequestBuilder.cs index 2b3a8b4cacd..e43429d4559 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskDetections/Item/RiskDetectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskDetections/Item/RiskDetectionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a riskDetection object. + /// Read the properties and relationships of a riskDetection object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a riskDetection object. + /// Read the properties and relationships of a riskDetection object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public RiskDetectionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a riskDetection object. + /// Read the properties and relationships of a riskDetection object. This API is supported in the following national cloud deployments. /// public class RiskDetectionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskDetections/RiskDetectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskDetections/RiskDetectionsRequestBuilder.cs index 2eead73b2aa..c8d7783b2f5 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskDetections/RiskDetectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskDetections/RiskDetectionsRequestBuilder.cs @@ -42,7 +42,7 @@ public RiskDetectionsRequestBuilder(Dictionary pathParameters, I public RiskDetectionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityProtection/riskDetections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the riskDetection objects and their properties. + /// Get a list of the riskDetection objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(RiskDetection body, Action(requestInfo, RiskDetection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the riskDetection objects and their properties. + /// Get a list of the riskDetection objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public RiskDetectionsRequestBuilder WithUrl(string rawUrl) { return new RiskDetectionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the riskDetection objects and their properties. + /// Get a list of the riskDetection objects and their properties. This API is supported in the following national cloud deployments. /// public class RiskDetectionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/ConfirmCompromised/ConfirmCompromisedRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/ConfirmCompromised/ConfirmCompromisedRequestBuilder.cs index 5e13acc0fb8..ed8df1e39f8 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/ConfirmCompromised/ConfirmCompromisedRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/ConfirmCompromised/ConfirmCompromisedRequestBuilder.cs @@ -28,7 +28,7 @@ public ConfirmCompromisedRequestBuilder(Dictionary pathParameter public ConfirmCompromisedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityProtection/riskyServicePrincipals/confirmCompromised", rawUrl) { } /// - /// Confirm one or more riskyServicePrincipal objects as compromised. This action sets the targeted service principal account's risk level to high. + /// Confirm one or more riskyServicePrincipal objects as compromised. This action sets the targeted service principal account's risk level to high. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ConfirmCompromisedPostRequestBody body, Action - /// Confirm one or more riskyServicePrincipal objects as compromised. This action sets the targeted service principal account's risk level to high. + /// Confirm one or more riskyServicePrincipal objects as compromised. This action sets the targeted service principal account's risk level to high. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Dismiss/DismissRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Dismiss/DismissRequestBuilder.cs index f8d3903325e..82a669b22b2 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Dismiss/DismissRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Dismiss/DismissRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissRequestBuilder(Dictionary pathParameters, IRequest public DismissRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityProtection/riskyServicePrincipals/dismiss", rawUrl) { } /// - /// Dismiss the risk of one or more riskyServicePrincipal objects. This action sets the targeted service principal account's risk level to none. You can dismiss up to 60 service principal accounts in one request. + /// Dismiss the risk of one or more riskyServicePrincipal objects. This action sets the targeted service principal account's risk level to none. You can dismiss up to 60 service principal accounts in one request. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DismissPostRequestBody body, Action - /// Dismiss the risk of one or more riskyServicePrincipal objects. This action sets the targeted service principal account's risk level to none. You can dismiss up to 60 service principal accounts in one request. + /// Dismiss the risk of one or more riskyServicePrincipal objects. This action sets the targeted service principal account's risk level to none. You can dismiss up to 60 service principal accounts in one request. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/HistoryRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/HistoryRequestBuilder.cs index a4d7dd84757..12eb6a01476 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/HistoryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/HistoryRequestBuilder.cs @@ -42,7 +42,7 @@ public HistoryRequestBuilder(Dictionary pathParameters, IRequest public HistoryRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityProtection/riskyServicePrincipals/{riskyServicePrincipal%2Did}/history{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the risk history of a riskyServicePrincipal object. + /// Get the risk history of a riskyServicePrincipal object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(RiskyServicePrinci return await RequestAdapter.SendAsync(requestInfo, RiskyServicePrincipalHistoryItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the risk history of a riskyServicePrincipal object. + /// Get the risk history of a riskyServicePrincipal object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public HistoryRequestBuilder WithUrl(string rawUrl) { return new HistoryRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the risk history of a riskyServicePrincipal object. + /// Get the risk history of a riskyServicePrincipal object. This API is supported in the following national cloud deployments. /// public class HistoryRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Item/RiskyServicePrincipalItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Item/RiskyServicePrincipalItemRequestBuilder.cs index 586f3a0abee..08f5fd44810 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Item/RiskyServicePrincipalItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Item/RiskyServicePrincipalItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a riskyServicePrincipal object. + /// Read the properties and relationships of a riskyServicePrincipal object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a riskyServicePrincipal object. + /// Read the properties and relationships of a riskyServicePrincipal object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public RiskyServicePrincipalItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a riskyServicePrincipal object. + /// Read the properties and relationships of a riskyServicePrincipal object. This API is supported in the following national cloud deployments. /// public class RiskyServicePrincipalItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/RiskyServicePrincipalsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/RiskyServicePrincipalsRequestBuilder.cs index 53792036d7d..18739689158 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/RiskyServicePrincipalsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/RiskyServicePrincipalsRequestBuilder.cs @@ -52,7 +52,7 @@ public RiskyServicePrincipalsRequestBuilder(Dictionary pathParam public RiskyServicePrincipalsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityProtection/riskyServicePrincipals{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the properties and relationships of riskyServicePrincipal objects. + /// Retrieve the properties and relationships of riskyServicePrincipal objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -93,7 +93,7 @@ public async Task PostAsync(RiskyServicePrincipal body, A return await RequestAdapter.SendAsync(requestInfo, RiskyServicePrincipal.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the properties and relationships of riskyServicePrincipal objects. + /// Retrieve the properties and relationships of riskyServicePrincipal objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -154,7 +154,7 @@ public RiskyServicePrincipalsRequestBuilder WithUrl(string rawUrl) { return new RiskyServicePrincipalsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the properties and relationships of riskyServicePrincipal objects. + /// Retrieve the properties and relationships of riskyServicePrincipal objects. This API is supported in the following national cloud deployments. /// public class RiskyServicePrincipalsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/ConfirmCompromised/ConfirmCompromisedRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/ConfirmCompromised/ConfirmCompromisedRequestBuilder.cs index 631056b4808..5e222d62dfc 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/ConfirmCompromised/ConfirmCompromisedRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/ConfirmCompromised/ConfirmCompromisedRequestBuilder.cs @@ -28,7 +28,7 @@ public ConfirmCompromisedRequestBuilder(Dictionary pathParameter public ConfirmCompromisedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityProtection/riskyUsers/confirmCompromised", rawUrl) { } /// - /// Confirm one or more riskyUser objects as compromised. This action sets the targeted user's risk level to high. + /// Confirm one or more riskyUser objects as compromised. This action sets the targeted user's risk level to high. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ConfirmCompromisedPostRequestBody body, Action - /// Confirm one or more riskyUser objects as compromised. This action sets the targeted user's risk level to high. + /// Confirm one or more riskyUser objects as compromised. This action sets the targeted user's risk level to high. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Dismiss/DismissRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Dismiss/DismissRequestBuilder.cs index 9109b576491..0f95931fd16 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Dismiss/DismissRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Dismiss/DismissRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissRequestBuilder(Dictionary pathParameters, IRequest public DismissRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityProtection/riskyUsers/dismiss", rawUrl) { } /// - /// Dismiss the risk of one or more riskyUser objects. This action sets the targeted user's risk level to none. + /// Dismiss the risk of one or more riskyUser objects. This action sets the targeted user's risk level to none. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DismissPostRequestBody body, Action - /// Dismiss the risk of one or more riskyUser objects. This action sets the targeted user's risk level to none. + /// Dismiss the risk of one or more riskyUser objects. This action sets the targeted user's risk level to none. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.cs index 09a9abeb276..e9595ae5a4d 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.cs @@ -42,7 +42,7 @@ public HistoryRequestBuilder(Dictionary pathParameters, IRequest public HistoryRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityProtection/riskyUsers/{riskyUser%2Did}/history{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the riskyUserHistoryItems from the history navigation property. + /// Get the riskyUserHistoryItems from the history navigation property. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(RiskyUserHistoryItem body, Act return await RequestAdapter.SendAsync(requestInfo, RiskyUserHistoryItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the riskyUserHistoryItems from the history navigation property. + /// Get the riskyUserHistoryItems from the history navigation property. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public HistoryRequestBuilder WithUrl(string rawUrl) { return new HistoryRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the riskyUserHistoryItems from the history navigation property. + /// Get the riskyUserHistoryItems from the history navigation property. This API is supported in the following national cloud deployments. /// public class HistoryRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/RiskyUserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/RiskyUserItemRequestBuilder.cs index 73b5b8bbc37..5aa150881bb 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/RiskyUserItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/RiskyUserItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a riskyUser object. + /// Read the properties and relationships of a riskyUser object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a riskyUser object. + /// Read the properties and relationships of a riskyUser object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public RiskyUserItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a riskyUser object. + /// Read the properties and relationships of a riskyUser object. This API is supported in the following national cloud deployments. /// public class RiskyUserItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilder.cs index 18b46444e7c..a62edb0bdc4 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilder.cs @@ -52,7 +52,7 @@ public RiskyUsersRequestBuilder(Dictionary pathParameters, IRequ public RiskyUsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityProtection/riskyUsers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the riskyUser objects and their properties. + /// Get a list of the riskyUser objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -93,7 +93,7 @@ public async Task PostAsync(RiskyUser body, Action(requestInfo, RiskyUser.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the riskyUser objects and their properties. + /// Get a list of the riskyUser objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -154,7 +154,7 @@ public RiskyUsersRequestBuilder WithUrl(string rawUrl) { return new RiskyUsersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the riskyUser objects and their properties. + /// Get a list of the riskyUser objects and their properties. This API is supported in the following national cloud deployments. /// public class RiskyUsersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/ServicePrincipalRiskDetections/Item/ServicePrincipalRiskDetectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/ServicePrincipalRiskDetections/Item/ServicePrincipalRiskDetectionItemRequestBuilder.cs index 1a2af54b642..b0f597f4fce 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/ServicePrincipalRiskDetections/Item/ServicePrincipalRiskDetectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/ServicePrincipalRiskDetections/Item/ServicePrincipalRiskDetectionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a servicePrincipalRiskDetection object. + /// Read the properties and relationships of a servicePrincipalRiskDetection object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a servicePrincipalRiskDetection object. + /// Read the properties and relationships of a servicePrincipalRiskDetection object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ServicePrincipalRiskDetectionItemRequestBuilderDeleteRequestConfiguration } } /// - /// Read the properties and relationships of a servicePrincipalRiskDetection object. + /// Read the properties and relationships of a servicePrincipalRiskDetection object. This API is supported in the following national cloud deployments. /// public class ServicePrincipalRiskDetectionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/ServicePrincipalRiskDetections/ServicePrincipalRiskDetectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/ServicePrincipalRiskDetections/ServicePrincipalRiskDetectionsRequestBuilder.cs index 57d0c9dd1a3..8cc1258e133 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/ServicePrincipalRiskDetections/ServicePrincipalRiskDetectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/ServicePrincipalRiskDetections/ServicePrincipalRiskDetectionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ServicePrincipalRiskDetectionsRequestBuilder(Dictionary p public ServicePrincipalRiskDetectionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityProtection/servicePrincipalRiskDetections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the properties of a collection of servicePrincipalRiskDetection objects. + /// Retrieve the properties of a collection of servicePrincipalRiskDetection objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ServicePrincipalRiskD return await RequestAdapter.SendAsync(requestInfo, ServicePrincipalRiskDetection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the properties of a collection of servicePrincipalRiskDetection objects. + /// Retrieve the properties of a collection of servicePrincipalRiskDetection objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public ServicePrincipalRiskDetectionsRequestBuilder WithUrl(string rawUrl) { return new ServicePrincipalRiskDetectionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the properties of a collection of servicePrincipalRiskDetection objects. + /// Retrieve the properties of a collection of servicePrincipalRiskDetection objects. This API is supported in the following national cloud deployments. /// public class ServicePrincipalRiskDetectionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesGetResponse.cs new file mode 100644 index 00000000000..0e7582adad0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.IdentityProviders.AvailableProviderTypes { + public class AvailableProviderTypesGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AvailableProviderTypesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AvailableProviderTypesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.cs index 8c4ccf0ad95..c4a8a0d2203 100644 --- a/src/Microsoft.Graph/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.cs @@ -34,6 +34,26 @@ public AvailableProviderTypesRequestBuilder(string rawUrl, IRequestAdapter reque /// Configuration for the request such as headers, query parameters, and middleware options. [Obsolete("The identityProvider API is deprecated and will stop returning data on March 2023. Please use the new identityProviderBase API. as of 2021-05/identityProvider on 2021-08-24 and will be removed 2023-03-15")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsAvailableProviderTypesGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsAvailableProviderTypesGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AvailableProviderTypesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function availableProviderTypes + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsAvailableProviderTypesGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesResponse.cs b/src/Microsoft.Graph/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesResponse.cs index 180627e2f25..3d04fb9ef58 100644 --- a/src/Microsoft.Graph/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.IdentityProviders.AvailableProviderTypes { - public class AvailableProviderTypesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use availableProviderTypesGetResponse instead.")] + public class AvailableProviderTypesResponse : AvailableProviderTypesGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AvailableProviderTypesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityProviders/IdentityProvidersRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProviders/IdentityProvidersRequestBuilder.cs index d6530daf0f1..ca92eb4c41a 100644 --- a/src/Microsoft.Graph/Generated/IdentityProviders/IdentityProvidersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProviders/IdentityProvidersRequestBuilder.cs @@ -50,7 +50,7 @@ public IdentityProvidersRequestBuilder(Dictionary pathParameters public IdentityProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityProviders{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve all identityProviders in the directory. + /// Retrieve all identityProviders in the directory. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -71,7 +71,7 @@ public async Task GetAsync(Action(requestInfo, IdentityProviderCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new identityProvider by specifying display name, identityProvider type, client ID, and client secret. + /// Create a new identityProvider by specifying display name, identityProvider type, client ID, and client secret. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -94,7 +94,7 @@ public async Task PostAsync(IdentityProvider body, Action(requestInfo, IdentityProvider.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve all identityProviders in the directory. + /// Retrieve all identityProviders in the directory. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. [Obsolete("The identityProvider API is deprecated and will stop returning data on March 2023. Please use the new identityProviderBase API. as of 2021-05/identityProvider on 2021-08-24 and will be removed 2023-03-15")] @@ -121,7 +121,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new identityProvider by specifying display name, identityProvider type, client ID, and client secret. + /// Create a new identityProvider by specifying display name, identityProvider type, client ID, and client secret. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -158,7 +158,7 @@ public IdentityProvidersRequestBuilder WithUrl(string rawUrl) { return new IdentityProvidersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve all identityProviders in the directory. + /// Retrieve all identityProviders in the directory. This API is supported in the following national cloud deployments. /// public class IdentityProvidersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityProviders/Item/IdentityProviderItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProviders/Item/IdentityProviderItemRequestBuilder.cs index 3ae026c6898..78b6a1446b9 100644 --- a/src/Microsoft.Graph/Generated/IdentityProviders/Item/IdentityProviderItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProviders/Item/IdentityProviderItemRequestBuilder.cs @@ -29,7 +29,7 @@ public IdentityProviderItemRequestBuilder(Dictionary pathParamet public IdentityProviderItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityProviders/{identityProvider%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an existing identityProvider. + /// Delete an existing identityProvider. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -50,7 +50,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties of an existing identityProvider. + /// Retrieve the properties of an existing identityProvider. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -71,7 +71,7 @@ public async Task GetAsync(Action(requestInfo, IdentityProvider.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update properties in an existing identityProvider. + /// Update properties in an existing identityProvider. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -94,7 +94,7 @@ public async Task PatchAsync(IdentityProvider body, Action(requestInfo, IdentityProvider.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an existing identityProvider. + /// Delete an existing identityProvider. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. [Obsolete("The identityProvider API is deprecated and will stop returning data on March 2023. Please use the new identityProviderBase API. as of 2021-05/identityProvider on 2021-08-24 and will be removed 2023-03-15")] @@ -119,7 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties of an existing identityProvider. + /// Retrieve the properties of an existing identityProvider. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. [Obsolete("The identityProvider API is deprecated and will stop returning data on March 2023. Please use the new identityProviderBase API. as of 2021-05/identityProvider on 2021-08-24 and will be removed 2023-03-15")] @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update properties in an existing identityProvider. + /// Update properties in an existing identityProvider. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -199,7 +199,7 @@ public IdentityProviderItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties of an existing identityProvider. + /// Retrieve the properties of an existing identityProvider. This API is supported in the following national cloud deployments. /// public class IdentityProviderItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/InformationProtection/Bitlocker/RecoveryKeys/Item/BitlockerRecoveryKeyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/InformationProtection/Bitlocker/RecoveryKeys/Item/BitlockerRecoveryKeyItemRequestBuilder.cs index 4ea7ab06582..21285efb768 100644 --- a/src/Microsoft.Graph/Generated/InformationProtection/Bitlocker/RecoveryKeys/Item/BitlockerRecoveryKeyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/InformationProtection/Bitlocker/RecoveryKeys/Item/BitlockerRecoveryKeyItemRequestBuilder.cs @@ -29,7 +29,7 @@ public BitlockerRecoveryKeyItemRequestBuilder(Dictionary pathPar public BitlockerRecoveryKeyItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/informationProtection/bitlocker/recoveryKeys/{bitlockerRecoveryKey%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Retrieve the properties and relationships of a bitlockerRecoveryKey object. By default, this operation does not return the key property that represents the actual recovery key. To include the key property in the response, use the $select OData query parameter. Including the $select query parameter triggers an Azure AD audit of the operation and generates an audit log. For more information on audit logs for bitlocker recovery keys, see the KeyManagement category filter of Azure AD audit logs. + /// Retrieve the properties and relationships of a bitlockerRecoveryKey object. By default, this operation doesn't return the key property that represents the actual recovery key. To include the key property in the response, use the $select OData query parameter. Including the $select query parameter triggers an Azure AD audit of the operation and generates an audit log. For more information on audit logs for bitlocker recovery keys, see the KeyManagement category filter of Azure AD audit logs. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, BitlockerRecoveryKey.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the properties and relationships of a bitlockerRecoveryKey object. By default, this operation does not return the key property that represents the actual recovery key. To include the key property in the response, use the $select OData query parameter. Including the $select query parameter triggers an Azure AD audit of the operation and generates an audit log. For more information on audit logs for bitlocker recovery keys, see the KeyManagement category filter of Azure AD audit logs. + /// Retrieve the properties and relationships of a bitlockerRecoveryKey object. By default, this operation doesn't return the key property that represents the actual recovery key. To include the key property in the response, use the $select OData query parameter. Including the $select query parameter triggers an Azure AD audit of the operation and generates an audit log. For more information on audit logs for bitlocker recovery keys, see the KeyManagement category filter of Azure AD audit logs. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -82,7 +82,7 @@ public BitlockerRecoveryKeyItemRequestBuilder WithUrl(string rawUrl) { return new BitlockerRecoveryKeyItemRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the properties and relationships of a bitlockerRecoveryKey object. By default, this operation does not return the key property that represents the actual recovery key. To include the key property in the response, use the $select OData query parameter. Including the $select query parameter triggers an Azure AD audit of the operation and generates an audit log. For more information on audit logs for bitlocker recovery keys, see the KeyManagement category filter of Azure AD audit logs. + /// Retrieve the properties and relationships of a bitlockerRecoveryKey object. By default, this operation doesn't return the key property that represents the actual recovery key. To include the key property in the response, use the $select OData query parameter. Including the $select query parameter triggers an Azure AD audit of the operation and generates an audit log. For more information on audit logs for bitlocker recovery keys, see the KeyManagement category filter of Azure AD audit logs. This API is supported in the following national cloud deployments. /// public class BitlockerRecoveryKeyItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/InformationProtection/Bitlocker/RecoveryKeys/RecoveryKeysRequestBuilder.cs b/src/Microsoft.Graph/Generated/InformationProtection/Bitlocker/RecoveryKeys/RecoveryKeysRequestBuilder.cs index aa4b3a36eaf..f84f1580ae3 100644 --- a/src/Microsoft.Graph/Generated/InformationProtection/Bitlocker/RecoveryKeys/RecoveryKeysRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/InformationProtection/Bitlocker/RecoveryKeys/RecoveryKeysRequestBuilder.cs @@ -42,7 +42,7 @@ public RecoveryKeysRequestBuilder(Dictionary pathParameters, IRe public RecoveryKeysRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/informationProtection/bitlocker/recoveryKeys{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the bitlockerRecoveryKey objects and their properties. This operation does not return the key property. For information about how to read the key property, see Get bitlockerRecoveryKey. + /// Get a list of the bitlockerRecoveryKey objects and their properties. This operation does not return the key property. For information about how to read the key property, see Get bitlockerRecoveryKey. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, BitlockerRecoveryKeyCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the bitlockerRecoveryKey objects and their properties. This operation does not return the key property. For information about how to read the key property, see Get bitlockerRecoveryKey. + /// Get a list of the bitlockerRecoveryKey objects and their properties. This operation does not return the key property. For information about how to read the key property, see Get bitlockerRecoveryKey. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public RecoveryKeysRequestBuilder WithUrl(string rawUrl) { return new RecoveryKeysRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the bitlockerRecoveryKey objects and their properties. This operation does not return the key property. For information about how to read the key property, see Get bitlockerRecoveryKey. + /// Get a list of the bitlockerRecoveryKey objects and their properties. This operation does not return the key property. For information about how to read the key property, see Get bitlockerRecoveryKey. This API is supported in the following national cloud deployments. /// public class RecoveryKeysRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/InformationProtection/ThreatAssessmentRequests/Item/ThreatAssessmentRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/InformationProtection/ThreatAssessmentRequests/Item/ThreatAssessmentRequestItemRequestBuilder.cs index ea3730edb68..a985aa9d07b 100644 --- a/src/Microsoft.Graph/Generated/InformationProtection/ThreatAssessmentRequests/Item/ThreatAssessmentRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/InformationProtection/ThreatAssessmentRequests/Item/ThreatAssessmentRequestItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a specified threatAssessmentRequest object. A threat assessment request can be one of the following types: + /// Retrieve the properties and relationships of a specified threatAssessmentRequest object. A threat assessment request can be one of the following types: This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a specified threatAssessmentRequest object. A threat assessment request can be one of the following types: + /// Retrieve the properties and relationships of a specified threatAssessmentRequest object. A threat assessment request can be one of the following types: This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public ThreatAssessmentRequestItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a specified threatAssessmentRequest object. A threat assessment request can be one of the following types: + /// Retrieve the properties and relationships of a specified threatAssessmentRequest object. A threat assessment request can be one of the following types: This API is supported in the following national cloud deployments. /// public class ThreatAssessmentRequestItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/InformationProtection/ThreatAssessmentRequests/ThreatAssessmentRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/InformationProtection/ThreatAssessmentRequests/ThreatAssessmentRequestsRequestBuilder.cs index 93852705408..01d6ab817d1 100644 --- a/src/Microsoft.Graph/Generated/InformationProtection/ThreatAssessmentRequests/ThreatAssessmentRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/InformationProtection/ThreatAssessmentRequests/ThreatAssessmentRequestsRequestBuilder.cs @@ -42,7 +42,7 @@ public ThreatAssessmentRequestsRequestBuilder(Dictionary pathPar public ThreatAssessmentRequestsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/informationProtection/threatAssessmentRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of threatAssessmentRequest objects. A threat assessment request can be one of the following types: + /// Retrieve a list of threatAssessmentRequest objects. A threat assessment request can be one of the following types: This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ThreatAssessmentRequestCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new threat assessment request. A threat assessment request can be one of the following types: + /// Create a new threat assessment request. A threat assessment request can be one of the following types: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(ThreatAssessmentRequest bod return await RequestAdapter.SendAsync(requestInfo, ThreatAssessmentRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of threatAssessmentRequest objects. A threat assessment request can be one of the following types: + /// Retrieve a list of threatAssessmentRequest objects. A threat assessment request can be one of the following types: This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new threat assessment request. A threat assessment request can be one of the following types: + /// Create a new threat assessment request. A threat assessment request can be one of the following types: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ThreatAssessmentRequestsRequestBuilder WithUrl(string rawUrl) { return new ThreatAssessmentRequestsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of threatAssessmentRequest objects. A threat assessment request can be one of the following types: + /// Retrieve a list of threatAssessmentRequest objects. A threat assessment request can be one of the following types: This API is supported in the following national cloud deployments. /// public class ThreatAssessmentRequestsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Invitations/InvitationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Invitations/InvitationsRequestBuilder.cs index c605149fed9..94dd237c107 100644 --- a/src/Microsoft.Graph/Generated/Invitations/InvitationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Invitations/InvitationsRequestBuilder.cs @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, InvitationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to create a new invitation. Invitation adds an external user to the organization. When creating a new invitation you have several options available: + /// Use this API to create a new invitation. Invitation adds an external user to the organization. When creating a new invitation, you have several options available: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new invitation. Invitation adds an external user to the organization. When creating a new invitation you have several options available: + /// Use this API to create a new invitation. Invitation adds an external user to the organization. When creating a new invitation, you have several options available: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUser/InvitedUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUser/InvitedUserRequestBuilder.cs index c498b367f8a..de7b04aa33e 100644 --- a/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUser/InvitedUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUser/InvitedUserRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.Invitations.Item.InvitedUser.MailboxSettings; +using Microsoft.Graph.Invitations.Item.InvitedUser.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,10 @@ public class InvitedUserRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new InvitedUserRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..5d2d3e99a67 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Invitations.Item.InvitedUser.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/invitations/{invitation%2Did}/invitedUser/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/invitations/{invitation%2Did}/invitedUser/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..b78299e0b3a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Invitations.Item.InvitedUser.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Invitations.Item.InvitedUser.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \invitations\{invitation-id}\invitedUser\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/invitations/{invitation%2Did}/invitedUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/invitations/{invitation%2Did}/invitedUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Activities/ActivitiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Activities/ActivitiesRequestBuilder.cs index 5c0178ccd1a..93948b369b1 100644 --- a/src/Microsoft.Graph/Generated/Me/Activities/ActivitiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Activities/ActivitiesRequestBuilder.cs @@ -47,7 +47,7 @@ public ActivitiesRequestBuilder(Dictionary pathParameters, IRequ public ActivitiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/activities{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get activities for a given user. Unlike the recent OData function, activities without histories will be returned. The permission UserActivity.ReadWrite.CreatedByApp will apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is particularly active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. + /// Get activities for a given user. Unlike the recent OData function, activities without histories will be returned. The permission UserActivity.ReadWrite.CreatedByApp will apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is particularly active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -88,7 +88,7 @@ public async Task PostAsync(UserActivity body, Action(requestInfo, UserActivity.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get activities for a given user. Unlike the recent OData function, activities without histories will be returned. The permission UserActivity.ReadWrite.CreatedByApp will apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is particularly active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. + /// Get activities for a given user. Unlike the recent OData function, activities without histories will be returned. The permission UserActivity.ReadWrite.CreatedByApp will apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is particularly active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -149,7 +149,7 @@ public ActivitiesRequestBuilder WithUrl(string rawUrl) { return new ActivitiesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get activities for a given user. Unlike the recent OData function, activities without histories will be returned. The permission UserActivity.ReadWrite.CreatedByApp will apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is particularly active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. + /// Get activities for a given user. Unlike the recent OData function, activities without histories will be returned. The permission UserActivity.ReadWrite.CreatedByApp will apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is particularly active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. This API is supported in the following national cloud deployments. /// public class ActivitiesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.cs index fec89015c34..729ad51f828 100644 --- a/src/Microsoft.Graph/Generated/Me/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.cs @@ -72,7 +72,7 @@ public async Task GetAsync(Action(requestInfo, ActivityHistoryItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an existing history item for an existing user activity. + /// Delete an existing history item for an existing user activity. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -144,7 +144,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Delete an existing history item for an existing user activity. + /// Delete an existing history item for an existing user activity. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Activities/Item/UserActivityItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Activities/Item/UserActivityItemRequestBuilder.cs index 96de8e80c78..f84a468f995 100644 --- a/src/Microsoft.Graph/Generated/Me/Activities/Item/UserActivityItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Activities/Item/UserActivityItemRequestBuilder.cs @@ -34,7 +34,7 @@ public UserActivityItemRequestBuilder(Dictionary pathParameters, public UserActivityItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/activities/{userActivity%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an existing user activity for your app. + /// Delete an existing user activity for your app. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -94,7 +94,7 @@ public async Task PatchAsync(UserActivity body, Action(requestInfo, UserActivity.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an existing user activity for your app. + /// Delete an existing user activity for your app. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/Activities/Recent/RecentGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Activities/Recent/RecentGetResponse.cs new file mode 100644 index 00000000000..15105e81410 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Activities/Recent/RecentGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.Activities.Recent { + public class RecentGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new RecentGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new RecentGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(UserActivity.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Activities/Recent/RecentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Activities/Recent/RecentRequestBuilder.cs index 39210f983a1..682664de69d 100644 --- a/src/Microsoft.Graph/Generated/Me/Activities/Recent/RecentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Activities/Recent/RecentRequestBuilder.cs @@ -28,12 +28,33 @@ public RecentRequestBuilder(Dictionary pathParameters, IRequestA public RecentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/activities/recent(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get recent activities for a given user. This OData function has some default behaviors included to make it operate like a 'most recently used' API. The service will query for the most recent historyItems, and then pull those related activities. Activities will be sorted according to the most recent lastModified on the historyItem. This means that activities without historyItems will not be included in the response. The UserActivity.ReadWrite.CreatedByApp permission will also apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is particularly active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. + /// Get recent activities for a given user. This OData function has some default behaviors included to make it operate like a 'most recently used' API. The service queries for the most recent historyItems, and then pull those related activities. Activities are sorted according to the most recent lastModified on the historyItem. This means that activities without historyItems won't be included in the response. The UserActivity.ReadWrite.CreatedByApp permission will also apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsRecentGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsRecentGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, RecentGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get recent activities for a given user. This OData function has some default behaviors included to make it operate like a 'most recently used' API. The service queries for the most recent historyItems, and then pull those related activities. Activities are sorted according to the most recent lastModified on the historyItem. This means that activities without historyItems won't be included in the response. The UserActivity.ReadWrite.CreatedByApp permission will also apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsRecentGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, RecentResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get recent activities for a given user. This OData function has some default behaviors included to make it operate like a 'most recently used' API. The service will query for the most recent historyItems, and then pull those related activities. Activities will be sorted according to the most recent lastModified on the historyItem. This means that activities without historyItems will not be included in the response. The UserActivity.ReadWrite.CreatedByApp permission will also apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is particularly active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. + /// Get recent activities for a given user. This OData function has some default behaviors included to make it operate like a 'most recently used' API. The service queries for the most recent historyItems, and then pull those related activities. Activities are sorted according to the most recent lastModified on the historyItem. This means that activities without historyItems won't be included in the response. The UserActivity.ReadWrite.CreatedByApp permission will also apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public RecentRequestBuilder WithUrl(string rawUrl) { return new RecentRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get recent activities for a given user. This OData function has some default behaviors included to make it operate like a 'most recently used' API. The service will query for the most recent historyItems, and then pull those related activities. Activities will be sorted according to the most recent lastModified on the historyItem. This means that activities without historyItems will not be included in the response. The UserActivity.ReadWrite.CreatedByApp permission will also apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is particularly active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. + /// Get recent activities for a given user. This OData function has some default behaviors included to make it operate like a 'most recently used' API. The service queries for the most recent historyItems, and then pull those related activities. Activities are sorted according to the most recent lastModified on the historyItem. This means that activities without historyItems won't be included in the response. The UserActivity.ReadWrite.CreatedByApp permission will also apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. This API is supported in the following national cloud deployments. /// public class RecentRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Activities/Recent/RecentResponse.cs b/src/Microsoft.Graph/Generated/Me/Activities/Recent/RecentResponse.cs index 892cd97b8f6..7029147b8f2 100644 --- a/src/Microsoft.Graph/Generated/Me/Activities/Recent/RecentResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Activities/Recent/RecentResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.Activities.Recent { - public class RecentResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use recentGetResponse instead.")] + public class RecentResponse : RecentGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RecentResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(UserActivity.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/AgreementAcceptances/AgreementAcceptancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/AgreementAcceptances/AgreementAcceptancesRequestBuilder.cs index de8f6ff6325..3433836359f 100644 --- a/src/Microsoft.Graph/Generated/Me/AgreementAcceptances/AgreementAcceptancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/AgreementAcceptances/AgreementAcceptancesRequestBuilder.cs @@ -42,7 +42,7 @@ public AgreementAcceptancesRequestBuilder(Dictionary pathParamet public AgreementAcceptancesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/agreementAcceptances{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the signed-in user's agreementAcceptance objects. + /// Retrieve the signed-in user's agreementAcceptance objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, AgreementAcceptanceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the signed-in user's agreementAcceptance objects. + /// Retrieve the signed-in user's agreementAcceptance objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public AgreementAcceptancesRequestBuilder WithUrl(string rawUrl) { return new AgreementAcceptancesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the signed-in user's agreementAcceptance objects. + /// Retrieve the signed-in user's agreementAcceptance objects. This API is supported in the following national cloud deployments. /// public class AgreementAcceptancesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.cs index f62dcb2939f..8cb7db37370 100644 --- a/src/Microsoft.Graph/Generated/Me/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.cs @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, AppRoleAssignmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to assign an app role to a user. To grant an app role assignment to a user, you need three identifiers: + /// Use this API to assign an app role to a user. To grant an app role assignment to a user, you need three identifiers: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to assign an app role to a user. To grant an app role assignment to a user, you need three identifiers: + /// Use this API to assign an app role to a user. To grant an app role assignment to a user, you need three identifiers: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.cs index 8ca1e3b7447..4a2e4e80da6 100644 --- a/src/Microsoft.Graph/Generated/Me/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AppRoleAssignmentItemRequestBuilder(Dictionary pathParame public AppRoleAssignmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/appRoleAssignments/{appRoleAssignment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an appRoleAssignment that has been granted to a user. + /// Delete an appRoleAssignment that has been granted to a user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task PatchAsync(AppRoleAssignment body, Action(requestInfo, AppRoleAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an appRoleAssignment that has been granted to a user. + /// Delete an appRoleAssignment that has been granted to a user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/AssignLicense/AssignLicenseRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/AssignLicense/AssignLicenseRequestBuilder.cs index 0aebdd99956..150a88eaa0c 100644 --- a/src/Microsoft.Graph/Generated/Me/AssignLicense/AssignLicenseRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/AssignLicense/AssignLicenseRequestBuilder.cs @@ -29,7 +29,7 @@ public AssignLicenseRequestBuilder(Dictionary pathParameters, IR public AssignLicenseRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/assignLicense", rawUrl) { } /// - /// Add or remove subscriptions for the user. You can also enable and disable specific plans associated with a subscription. + /// Add or remove subscriptions for the user. You can also enable and disable specific plans associated with a subscription. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public AssignLicenseRequestBuilder(string rawUrl, IRequestAdapter requestAdapter return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add or remove subscriptions for the user. You can also enable and disable specific plans associated with a subscription. + /// Add or remove subscriptions for the user. You can also enable and disable specific plans associated with a subscription. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/EmailMethods/EmailMethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/EmailMethods/EmailMethodsRequestBuilder.cs index c5637a0f9e7..3d89940fb3b 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/EmailMethods/EmailMethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/EmailMethods/EmailMethodsRequestBuilder.cs @@ -42,7 +42,7 @@ public EmailMethodsRequestBuilder(Dictionary pathParameters, IRe public EmailMethodsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/authentication/emailMethods{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of a user's emailAuthenticationMethod objects and their properties. This API will return only a single object in the collection as only one email method can be set for a user. + /// Retrieve a list of a user's emailAuthenticationMethod objects and their properties. This API will return only a single object in the collection as only one email method can be set for a user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, EmailAuthenticationMethodCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Set a user's emailAuthenticationMethod object. Email authentication is a self-service password reset method. A user may only have one email authentication method. + /// Set a user's emailAuthenticationMethod object. Email authentication is a self-service password reset method. A user may only have one email authentication method. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(EmailAuthenticationMethod return await RequestAdapter.SendAsync(requestInfo, EmailAuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of a user's emailAuthenticationMethod objects and their properties. This API will return only a single object in the collection as only one email method can be set for a user. + /// Retrieve a list of a user's emailAuthenticationMethod objects and their properties. This API will return only a single object in the collection as only one email method can be set for a user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Set a user's emailAuthenticationMethod object. Email authentication is a self-service password reset method. A user may only have one email authentication method. + /// Set a user's emailAuthenticationMethod object. Email authentication is a self-service password reset method. A user may only have one email authentication method. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public EmailMethodsRequestBuilder WithUrl(string rawUrl) { return new EmailMethodsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of a user's emailAuthenticationMethod objects and their properties. This API will return only a single object in the collection as only one email method can be set for a user. + /// Retrieve a list of a user's emailAuthenticationMethod objects and their properties. This API will return only a single object in the collection as only one email method can be set for a user. This API is supported in the following national cloud deployments. /// public class EmailMethodsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/EmailMethods/Item/EmailAuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/EmailMethods/Item/EmailAuthenticationMethodItemRequestBuilder.cs index 2e10b525243..e09ae79aa66 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/EmailMethods/Item/EmailAuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/EmailMethods/Item/EmailAuthenticationMethodItemRequestBuilder.cs @@ -29,7 +29,7 @@ public EmailAuthenticationMethodItemRequestBuilder(Dictionary pa public EmailAuthenticationMethodItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/authentication/emailMethods/{emailAuthenticationMethod%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a user's emailAuthenticationMethod object. + /// Deletes a user's emailAuthenticationMethod object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve a user's single email authentication method object. + /// Retrieve a user's single email authentication method object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, EmailAuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update a user's email address represented by an emailAuthenticationMethod object. + /// Update a user's email address represented by an emailAuthenticationMethod object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(EmailAuthenticationMetho return await RequestAdapter.SendAsync(requestInfo, EmailAuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a user's emailAuthenticationMethod object. + /// Deletes a user's emailAuthenticationMethod object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a user's single email authentication method object. + /// Retrieve a user's single email authentication method object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update a user's email address represented by an emailAuthenticationMethod object. + /// Update a user's email address represented by an emailAuthenticationMethod object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public EmailAuthenticationMethodItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a user's single email authentication method object. + /// Retrieve a user's single email authentication method object. This API is supported in the following national cloud deployments. /// public class EmailAuthenticationMethodItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/Fido2Methods/Fido2MethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/Fido2Methods/Fido2MethodsRequestBuilder.cs index bbbad93d6dd..7c9fb8fbffb 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/Fido2Methods/Fido2MethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/Fido2Methods/Fido2MethodsRequestBuilder.cs @@ -42,7 +42,7 @@ public Fido2MethodsRequestBuilder(Dictionary pathParameters, IRe public Fido2MethodsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/authentication/fido2Methods{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of a user's FIDO2 Security Key Authentication Method objects and their properties. + /// Retrieve a list of a user's FIDO2 Security Key Authentication Method objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, Fido2AuthenticationMethodCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of a user's FIDO2 Security Key Authentication Method objects and their properties. + /// Retrieve a list of a user's FIDO2 Security Key Authentication Method objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public Fido2MethodsRequestBuilder WithUrl(string rawUrl) { return new Fido2MethodsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of a user's FIDO2 Security Key Authentication Method objects and their properties. + /// Retrieve a list of a user's FIDO2 Security Key Authentication Method objects and their properties. This API is supported in the following national cloud deployments. /// public class Fido2MethodsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/Fido2Methods/Item/Fido2AuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/Fido2Methods/Item/Fido2AuthenticationMethodItemRequestBuilder.cs index 2d9ef07bfa7..958eca4b27d 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/Fido2Methods/Item/Fido2AuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/Fido2Methods/Item/Fido2AuthenticationMethodItemRequestBuilder.cs @@ -29,7 +29,7 @@ public Fido2AuthenticationMethodItemRequestBuilder(Dictionary pa public Fido2AuthenticationMethodItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/authentication/fido2Methods/{fido2AuthenticationMethod%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a user's FIDO2 Security Key Authentication Method object. + /// Deletes a user's FIDO2 Security Key Authentication Method object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve a user's single FIDO2 Security Key Authentication Method object. + /// Retrieve a user's single FIDO2 Security Key Authentication Method object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, Fido2AuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a user's FIDO2 Security Key Authentication Method object. + /// Deletes a user's FIDO2 Security Key Authentication Method object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -93,7 +93,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a user's single FIDO2 Security Key Authentication Method object. + /// Retrieve a user's single FIDO2 Security Key Authentication Method object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -142,7 +142,7 @@ public Fido2AuthenticationMethodItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a user's single FIDO2 Security Key Authentication Method object. + /// Retrieve a user's single FIDO2 Security Key Authentication Method object. This API is supported in the following national cloud deployments. /// public class Fido2AuthenticationMethodItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/Methods/Item/AuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/Methods/Item/AuthenticationMethodItemRequestBuilder.cs index b697b0b9cc6..418bcb6116c 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/Methods/Item/AuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/Methods/Item/AuthenticationMethodItemRequestBuilder.cs @@ -34,7 +34,7 @@ public AuthenticationMethodItemRequestBuilder(Dictionary pathPar public AuthenticationMethodItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/authentication/methods/{authenticationMethod%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Retrieve the properties and relationships of an authenticationMethod object. + /// Retrieve the properties and relationships of an authenticationMethod object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -75,7 +75,7 @@ public async Task PatchAsync(AuthenticationMethod body, Ac return await RequestAdapter.SendAsync(requestInfo, AuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the properties and relationships of an authenticationMethod object. + /// Retrieve the properties and relationships of an authenticationMethod object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -136,7 +136,7 @@ public AuthenticationMethodItemRequestBuilder WithUrl(string rawUrl) { return new AuthenticationMethodItemRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the properties and relationships of an authenticationMethod object. + /// Retrieve the properties and relationships of an authenticationMethod object. This API is supported in the following national cloud deployments. /// public class AuthenticationMethodItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/Methods/Item/ResetPassword/ResetPasswordRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/Methods/Item/ResetPassword/ResetPasswordRequestBuilder.cs index 1f3b1899ec8..2b103aa3af0 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/Methods/Item/ResetPassword/ResetPasswordRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/Methods/Item/ResetPassword/ResetPasswordRequestBuilder.cs @@ -29,7 +29,7 @@ public ResetPasswordRequestBuilder(Dictionary pathParameters, IR public ResetPasswordRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/authentication/methods/{authenticationMethod%2Did}/resetPassword", rawUrl) { } /// - /// Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and cannot be performed on a user's own account. This flow writes the new password to Azure Active Directory and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and will return a Location header with a link where the caller can periodically check for the status of the reset operation. + /// Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and cannot be performed on a user's own account. This flow writes the new password to Azure Active Directory and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and will return a Location header with a link where the caller can periodically check for the status of the reset operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(ResetPasswordPostRequestBody return await RequestAdapter.SendAsync(requestInfo, PasswordResetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and cannot be performed on a user's own account. This flow writes the new password to Azure Active Directory and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and will return a Location header with a link where the caller can periodically check for the status of the reset operation. + /// Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and cannot be performed on a user's own account. This flow writes the new password to Azure Active Directory and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and will return a Location header with a link where the caller can periodically check for the status of the reset operation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/Methods/MethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/Methods/MethodsRequestBuilder.cs index 717bf5f6e44..7b0524863ce 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/Methods/MethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/Methods/MethodsRequestBuilder.cs @@ -42,7 +42,7 @@ public MethodsRequestBuilder(Dictionary pathParameters, IRequest public MethodsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/authentication/methods{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Azure AD authentication methods API overview for a list of currently supported methods. + /// Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Azure AD authentication methods API overview for a list of currently supported methods. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(AuthenticationMethod body, Act return await RequestAdapter.SendAsync(requestInfo, AuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Azure AD authentication methods API overview for a list of currently supported methods. + /// Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Azure AD authentication methods API overview for a list of currently supported methods. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public MethodsRequestBuilder WithUrl(string rawUrl) { return new MethodsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Azure AD authentication methods API overview for a list of currently supported methods. + /// Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Azure AD authentication methods API overview for a list of currently supported methods. This API is supported in the following national cloud deployments. /// public class MethodsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Item/Device/DeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Item/Device/DeviceRequestBuilder.cs index 285dfe60899..ec65d8092d5 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Item/Device/DeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Item/Device/DeviceRequestBuilder.cs @@ -29,7 +29,7 @@ public DeviceRequestBuilder(Dictionary pathParameters, IRequestA public DeviceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/authentication/microsoftAuthenticatorMethods/{microsoftAuthenticatorAuthenticationMethod%2Did}/device{?%24select,%24expand}", rawUrl) { } /// - /// The registered device on which Microsoft Authenticator resides. This property is null if the device is not registered for passwordless Phone Sign-In. + /// The registered device on which Microsoft Authenticator resides. This property is null if the device isn't registered for passwordless Phone Sign-In. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -48,7 +48,7 @@ public DeviceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Device.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The registered device on which Microsoft Authenticator resides. This property is null if the device is not registered for passwordless Phone Sign-In. + /// The registered device on which Microsoft Authenticator resides. This property is null if the device isn't registered for passwordless Phone Sign-In. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +81,7 @@ public DeviceRequestBuilder WithUrl(string rawUrl) { return new DeviceRequestBuilder(rawUrl, RequestAdapter); } /// - /// The registered device on which Microsoft Authenticator resides. This property is null if the device is not registered for passwordless Phone Sign-In. + /// The registered device on which Microsoft Authenticator resides. This property is null if the device isn't registered for passwordless Phone Sign-In. /// public class DeviceRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Item/MicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Item/MicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder.cs index 8bea972df2f..378254e4974 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Item/MicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Item/MicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder.cs @@ -34,7 +34,7 @@ public MicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder(Dictionary - /// Deletes a microsoftAuthenticatorAuthenticationMethod object. + /// Deletes a microsoftAuthenticatorAuthenticationMethod object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a microsoftAuthenticatorAuthenticationMethod object. + /// Read the properties and relationships of a microsoftAuthenticatorAuthenticationMethod object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, MicrosoftAuthenticatorAuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a microsoftAuthenticatorAuthenticationMethod object. + /// Deletes a microsoftAuthenticatorAuthenticationMethod object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -98,7 +98,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a microsoftAuthenticatorAuthenticationMethod object. + /// Read the properties and relationships of a microsoftAuthenticatorAuthenticationMethod object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,7 +147,7 @@ public MicrosoftAuthenticatorAuthenticationMethodItemRequestBuilderDeleteRequest } } /// - /// Read the properties and relationships of a microsoftAuthenticatorAuthenticationMethod object. + /// Read the properties and relationships of a microsoftAuthenticatorAuthenticationMethod object. This API is supported in the following national cloud deployments. /// public class MicrosoftAuthenticatorAuthenticationMethodItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/MicrosoftAuthenticatorMethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/MicrosoftAuthenticatorMethodsRequestBuilder.cs index 73a503eb7ad..419c3ce0a9e 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/MicrosoftAuthenticatorMethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/MicrosoftAuthenticatorMethodsRequestBuilder.cs @@ -42,7 +42,7 @@ public MicrosoftAuthenticatorMethodsRequestBuilder(Dictionary pa public MicrosoftAuthenticatorMethodsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/authentication/microsoftAuthenticatorMethods{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the microsoftAuthenticatorAuthenticationMethod objects and their properties. + /// Get a list of the microsoftAuthenticatorAuthenticationMethod objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task return await RequestAdapter.SendAsync(requestInfo, MicrosoftAuthenticatorAuthenticationMethodCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the microsoftAuthenticatorAuthenticationMethod objects and their properties. + /// Get a list of the microsoftAuthenticatorAuthenticationMethod objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public MicrosoftAuthenticatorMethodsRequestBuilder WithUrl(string rawUrl) { return new MicrosoftAuthenticatorMethodsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the microsoftAuthenticatorAuthenticationMethod objects and their properties. + /// Get a list of the microsoftAuthenticatorAuthenticationMethod objects and their properties. This API is supported in the following national cloud deployments. /// public class MicrosoftAuthenticatorMethodsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/Operations/Item/LongRunningOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/Operations/Item/LongRunningOperationItemRequestBuilder.cs index 7b88fb3a269..085e6ae6f85 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/Operations/Item/LongRunningOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/Operations/Item/LongRunningOperationItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. + /// Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. + /// Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public LongRunningOperationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. + /// Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. This API is supported in the following national cloud deployments. /// public class LongRunningOperationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/Operations/OperationsRequestBuilder.cs index 9a62cfecafe..9be9015cc24 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/Operations/OperationsRequestBuilder.cs @@ -42,7 +42,7 @@ public OperationsRequestBuilder(Dictionary pathParameters, IRequ public OperationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/authentication/operations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. + /// Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(LongRunningOperation body, Act return await RequestAdapter.SendAsync(requestInfo, LongRunningOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. + /// Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public OperationsRequestBuilder WithUrl(string rawUrl) { return new OperationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. + /// Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. This API is supported in the following national cloud deployments. /// public class OperationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/PasswordMethods/Item/PasswordAuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/PasswordMethods/Item/PasswordAuthenticationMethodItemRequestBuilder.cs index 974fc195517..c5d40a58eff 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/PasswordMethods/Item/PasswordAuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/PasswordMethods/Item/PasswordAuthenticationMethodItemRequestBuilder.cs @@ -29,7 +29,7 @@ public PasswordAuthenticationMethodItemRequestBuilder(Dictionary public PasswordAuthenticationMethodItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/authentication/passwordMethods/{passwordAuthenticationMethod%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Retrieve a password that's registered to a user, represented by a passwordAuthenticationMethod object. For security, the password itself will never be returned in the object and the password property is always null. + /// Retrieve a password that's registered to a user, represented by a passwordAuthenticationMethod object. For security, the password itself will never be returned in the object and the password property is always null. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, PasswordAuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a password that's registered to a user, represented by a passwordAuthenticationMethod object. For security, the password itself will never be returned in the object and the password property is always null. + /// Retrieve a password that's registered to a user, represented by a passwordAuthenticationMethod object. For security, the password itself will never be returned in the object and the password property is always null. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -82,7 +82,7 @@ public PasswordAuthenticationMethodItemRequestBuilder WithUrl(string rawUrl) { return new PasswordAuthenticationMethodItemRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a password that's registered to a user, represented by a passwordAuthenticationMethod object. For security, the password itself will never be returned in the object and the password property is always null. + /// Retrieve a password that's registered to a user, represented by a passwordAuthenticationMethod object. For security, the password itself will never be returned in the object and the password property is always null. This API is supported in the following national cloud deployments. /// public class PasswordAuthenticationMethodItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/PasswordMethods/PasswordMethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/PasswordMethods/PasswordMethodsRequestBuilder.cs index d5284c43ae9..7b15d4b5c31 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/PasswordMethods/PasswordMethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/PasswordMethods/PasswordMethodsRequestBuilder.cs @@ -42,7 +42,7 @@ public PasswordMethodsRequestBuilder(Dictionary pathParameters, public PasswordMethodsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/authentication/passwordMethods{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of the passwords registered to a user, represented by a passwordAuthenticationMethod object. This will return exactly one object, as a user can have exactly one password. For security, the password itself will never be returned in the object and the password property is always null. + /// Retrieve a list of the passwords registered to a user, represented by a passwordAuthenticationMethod object. This will return exactly one object, as a user can have exactly one password. For security, the password itself will never be returned in the object and the password property is always null. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(PasswordAuthentication return await RequestAdapter.SendAsync(requestInfo, PasswordAuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of the passwords registered to a user, represented by a passwordAuthenticationMethod object. This will return exactly one object, as a user can have exactly one password. For security, the password itself will never be returned in the object and the password property is always null. + /// Retrieve a list of the passwords registered to a user, represented by a passwordAuthenticationMethod object. This will return exactly one object, as a user can have exactly one password. For security, the password itself will never be returned in the object and the password property is always null. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public PasswordMethodsRequestBuilder WithUrl(string rawUrl) { return new PasswordMethodsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of the passwords registered to a user, represented by a passwordAuthenticationMethod object. This will return exactly one object, as a user can have exactly one password. For security, the password itself will never be returned in the object and the password property is always null. + /// Retrieve a list of the passwords registered to a user, represented by a passwordAuthenticationMethod object. This will return exactly one object, as a user can have exactly one password. For security, the password itself will never be returned in the object and the password property is always null. This API is supported in the following national cloud deployments. /// public class PasswordMethodsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/Item/DisableSmsSignIn/DisableSmsSignInRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/Item/DisableSmsSignIn/DisableSmsSignInRequestBuilder.cs index 60160cd33f3..f7d1309906b 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/Item/DisableSmsSignIn/DisableSmsSignInRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/Item/DisableSmsSignIn/DisableSmsSignInRequestBuilder.cs @@ -28,7 +28,7 @@ public DisableSmsSignInRequestBuilder(Dictionary pathParameters, public DisableSmsSignInRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/authentication/phoneMethods/{phoneAuthenticationMethod%2Did}/disableSmsSignIn", rawUrl) { } /// - /// Disable SMS sign-in for an existing mobile phone number registered to a user. The number will no longer be available for SMS sign-in, which can prevent your user from signing in. + /// Disable SMS sign-in for an existing mobile phone number registered to a user. The number will no longer be available for SMS sign-in, which can prevent your user from signing in. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Disable SMS sign-in for an existing mobile phone number registered to a user. The number will no longer be available for SMS sign-in, which can prevent your user from signing in. + /// Disable SMS sign-in for an existing mobile phone number registered to a user. The number will no longer be available for SMS sign-in, which can prevent your user from signing in. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/Item/EnableSmsSignIn/EnableSmsSignInRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/Item/EnableSmsSignIn/EnableSmsSignInRequestBuilder.cs index ccf42611d9c..a10a037fbdc 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/Item/EnableSmsSignIn/EnableSmsSignInRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/Item/EnableSmsSignIn/EnableSmsSignInRequestBuilder.cs @@ -28,7 +28,7 @@ public EnableSmsSignInRequestBuilder(Dictionary pathParameters, public EnableSmsSignInRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/authentication/phoneMethods/{phoneAuthenticationMethod%2Did}/enableSmsSignIn", rawUrl) { } /// - /// Enable SMS sign-in for an existing mobile phone number registered to a user. To be successfully enabled: + /// Enable SMS sign-in for an existing mobile phone number registered to a user. To be successfully enabled: This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Enable SMS sign-in for an existing mobile phone number registered to a user. To be successfully enabled: + /// Enable SMS sign-in for an existing mobile phone number registered to a user. To be successfully enabled: This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/Item/PhoneAuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/Item/PhoneAuthenticationMethodItemRequestBuilder.cs index 8f1b46487b5..05038f69830 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/Item/PhoneAuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/Item/PhoneAuthenticationMethodItemRequestBuilder.cs @@ -39,7 +39,7 @@ public PhoneAuthenticationMethodItemRequestBuilder(Dictionary pa public PhoneAuthenticationMethodItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/authentication/phoneMethods/{phoneAuthenticationMethod%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a user's phone authentication method. This removes the phone number from the user and they will no longer be able to use the number for authentication, whether via SMS or voice calls. A user cannot have an alternateMobile number without a mobile number. If you want to remove a mobile number from a user that also has an alternateMobile number, first update the mobile number to the new number, then delete the alternateMobile number. If the phone number is the user's default Azure multi-factor authentication (MFA) authentication method, it cannot be deleted. Have the user change their default authentication method, and then delete the number. + /// Delete a user's phone authentication method. This removes the phone number from the user and they'll no longer be able to use the number for authentication, whether via SMS or voice calls. A user can't have an alternateMobile number without a mobile number. If you want to remove a mobile number from a user that also has an alternateMobile number, first update the mobile number to the new number, then delete the alternateMobile number. If the phone number is the user's default Azure multi-factor authentication (MFA) authentication method, it can't be deleted. Have the user change their default authentication method, and then delete the number. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -59,7 +59,7 @@ public async Task DeleteAsync(Action - /// Retrieve a single phoneAuthenticationMethod object for a user. This method is available only for standard Azure AD and B2B users, but not B2C users. + /// Retrieve a single phoneAuthenticationMethod object for a user. This method is available only for standard Azure AD and B2B users, but not B2C users. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -79,7 +79,7 @@ public async Task GetAsync(Action(requestInfo, PhoneAuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update a user's phone number associated with a phone authentication method object. You can't change a phone's type. To change a phone's type, add a new number of the desired type and then delete the object with the original type. If a user is enabled by policy to use SMS to sign in and the mobile number is changed, the system will attempt to register the number for use in that system. + /// Update a user's phone number associated with a phone authentication method object. You can't change a phone's type. To change a phone's type, add a new number of the desired type and then delete the object with the original type. If a user is enabled by policy to use SMS to sign in and the mobile number is changed, the system will attempt to register the number for use in that system. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -101,7 +101,7 @@ public async Task PatchAsync(PhoneAuthenticationMetho return await RequestAdapter.SendAsync(requestInfo, PhoneAuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a user's phone authentication method. This removes the phone number from the user and they will no longer be able to use the number for authentication, whether via SMS or voice calls. A user cannot have an alternateMobile number without a mobile number. If you want to remove a mobile number from a user that also has an alternateMobile number, first update the mobile number to the new number, then delete the alternateMobile number. If the phone number is the user's default Azure multi-factor authentication (MFA) authentication method, it cannot be deleted. Have the user change their default authentication method, and then delete the number. + /// Delete a user's phone authentication method. This removes the phone number from the user and they'll no longer be able to use the number for authentication, whether via SMS or voice calls. A user can't have an alternateMobile number without a mobile number. If you want to remove a mobile number from a user that also has an alternateMobile number, first update the mobile number to the new number, then delete the alternateMobile number. If the phone number is the user's default Azure multi-factor authentication (MFA) authentication method, it can't be deleted. Have the user change their default authentication method, and then delete the number. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -125,7 +125,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a single phoneAuthenticationMethod object for a user. This method is available only for standard Azure AD and B2B users, but not B2C users. + /// Retrieve a single phoneAuthenticationMethod object for a user. This method is available only for standard Azure AD and B2B users, but not B2C users. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -151,7 +151,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update a user's phone number associated with a phone authentication method object. You can't change a phone's type. To change a phone's type, add a new number of the desired type and then delete the object with the original type. If a user is enabled by policy to use SMS to sign in and the mobile number is changed, the system will attempt to register the number for use in that system. + /// Update a user's phone number associated with a phone authentication method object. You can't change a phone's type. To change a phone's type, add a new number of the desired type and then delete the object with the original type. If a user is enabled by policy to use SMS to sign in and the mobile number is changed, the system will attempt to register the number for use in that system. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -202,7 +202,7 @@ public PhoneAuthenticationMethodItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a single phoneAuthenticationMethod object for a user. This method is available only for standard Azure AD and B2B users, but not B2C users. + /// Retrieve a single phoneAuthenticationMethod object for a user. This method is available only for standard Azure AD and B2B users, but not B2C users. This API is supported in the following national cloud deployments. /// public class PhoneAuthenticationMethodItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/PhoneMethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/PhoneMethodsRequestBuilder.cs index a311854d06e..4401b2242a6 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/PhoneMethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/PhoneMethodsRequestBuilder.cs @@ -42,7 +42,7 @@ public PhoneMethodsRequestBuilder(Dictionary pathParameters, IRe public PhoneMethodsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/authentication/phoneMethods{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of phone authentication method objects for a user. This will return up to three objects, as a user can have up to three phones usable for authentication. This method is available only for standard Azure AD and B2B users, but not B2C users. + /// Retrieve a list of phone authentication method objects for a user. This will return up to three objects, as a user can have up to three phones usable for authentication. This method is available only for standard Azure AD and B2B users, but not B2C users. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action

(requestInfo, PhoneAuthenticationMethodCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } ///

- /// Add a new phone authentication method for a user. A user may only have one phone of each type, captured in the phoneType property. This means, for example, adding a mobile phone to a user with a preexisting mobile phone will fail. Additionally, a user must always have a mobile phone before adding an alternateMobile phone. Adding a phone number makes it available for use in both Azure multi-factor authentication (MFA) and self-service password reset (SSPR), if enabled. Additionally, if a user is enabled by policy to use SMS sign-in and a mobile number is added, the system will attempt to register the number for use in that system. + /// Add a new phone authentication method for a user. A user may only have one phone of each type, captured in the phoneType property. This means, for example, adding a mobile phone to a user with a pre-existing mobile phone fails. Additionally, a user must always have a mobile phone before adding an alternateMobile phone. Adding a phone number makes it available for use in both Azure multi-factor authentication (MFA) and self-service password reset (SSPR), if enabled. Additionally, if a user is enabled by policy to use SMS sign-in and a mobile number is added, the system attempts to register the number for use in that system. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(PhoneAuthenticationMethod return await RequestAdapter.SendAsync(requestInfo, PhoneAuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of phone authentication method objects for a user. This will return up to three objects, as a user can have up to three phones usable for authentication. This method is available only for standard Azure AD and B2B users, but not B2C users. + /// Retrieve a list of phone authentication method objects for a user. This will return up to three objects, as a user can have up to three phones usable for authentication. This method is available only for standard Azure AD and B2B users, but not B2C users. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a new phone authentication method for a user. A user may only have one phone of each type, captured in the phoneType property. This means, for example, adding a mobile phone to a user with a preexisting mobile phone will fail. Additionally, a user must always have a mobile phone before adding an alternateMobile phone. Adding a phone number makes it available for use in both Azure multi-factor authentication (MFA) and self-service password reset (SSPR), if enabled. Additionally, if a user is enabled by policy to use SMS sign-in and a mobile number is added, the system will attempt to register the number for use in that system. + /// Add a new phone authentication method for a user. A user may only have one phone of each type, captured in the phoneType property. This means, for example, adding a mobile phone to a user with a pre-existing mobile phone fails. Additionally, a user must always have a mobile phone before adding an alternateMobile phone. Adding a phone number makes it available for use in both Azure multi-factor authentication (MFA) and self-service password reset (SSPR), if enabled. Additionally, if a user is enabled by policy to use SMS sign-in and a mobile number is added, the system attempts to register the number for use in that system. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PhoneMethodsRequestBuilder WithUrl(string rawUrl) { return new PhoneMethodsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of phone authentication method objects for a user. This will return up to three objects, as a user can have up to three phones usable for authentication. This method is available only for standard Azure AD and B2B users, but not B2C users. + /// Retrieve a list of phone authentication method objects for a user. This will return up to three objects, as a user can have up to three phones usable for authentication. This method is available only for standard Azure AD and B2B users, but not B2C users. This API is supported in the following national cloud deployments. /// public class PhoneMethodsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/SoftwareOathMethods/Item/SoftwareOathAuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/SoftwareOathMethods/Item/SoftwareOathAuthenticationMethodItemRequestBuilder.cs index aa63e5f567c..3a172921d10 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/SoftwareOathMethods/Item/SoftwareOathAuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/SoftwareOathMethods/Item/SoftwareOathAuthenticationMethodItemRequestBuilder.cs @@ -29,7 +29,7 @@ public SoftwareOathAuthenticationMethodItemRequestBuilder(Dictionary - /// Delete a user's Software OATH token authentication method object. + /// Delete a user's Software OATH token authentication method object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve a user's single Software OATH token authentication method object and its properties. + /// Retrieve a user's single Software OATH token authentication method object and its properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, SoftwareOathAuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a user's Software OATH token authentication method object. + /// Delete a user's Software OATH token authentication method object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -93,7 +93,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a user's single Software OATH token authentication method object and its properties. + /// Retrieve a user's single Software OATH token authentication method object and its properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -142,7 +142,7 @@ public SoftwareOathAuthenticationMethodItemRequestBuilderDeleteRequestConfigurat } } /// - /// Retrieve a user's single Software OATH token authentication method object and its properties. + /// Retrieve a user's single Software OATH token authentication method object and its properties. This API is supported in the following national cloud deployments. /// public class SoftwareOathAuthenticationMethodItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/SoftwareOathMethods/SoftwareOathMethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/SoftwareOathMethods/SoftwareOathMethodsRequestBuilder.cs index ec290c5df95..fdafe3190bf 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/SoftwareOathMethods/SoftwareOathMethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/SoftwareOathMethods/SoftwareOathMethodsRequestBuilder.cs @@ -42,7 +42,7 @@ public SoftwareOathMethodsRequestBuilder(Dictionary pathParamete public SoftwareOathMethodsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/authentication/softwareOathMethods{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of a user's software OATH token authentication method objects and their properties. + /// Retrieve a list of a user's software OATH token authentication method objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(A return await RequestAdapter.SendAsync(requestInfo, SoftwareOathAuthenticationMethodCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of a user's software OATH token authentication method objects and their properties. + /// Retrieve a list of a user's software OATH token authentication method objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public SoftwareOathMethodsRequestBuilder WithUrl(string rawUrl) { return new SoftwareOathMethodsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of a user's software OATH token authentication method objects and their properties. + /// Retrieve a list of a user's software OATH token authentication method objects and their properties. This API is supported in the following national cloud deployments. /// public class SoftwareOathMethodsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/TemporaryAccessPassMethods/Item/TemporaryAccessPassAuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/TemporaryAccessPassMethods/Item/TemporaryAccessPassAuthenticationMethodItemRequestBuilder.cs index 81c04890167..e0c6b2c403b 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/TemporaryAccessPassMethods/Item/TemporaryAccessPassAuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/TemporaryAccessPassMethods/Item/TemporaryAccessPassAuthenticationMethodItemRequestBuilder.cs @@ -29,7 +29,7 @@ public TemporaryAccessPassAuthenticationMethodItemRequestBuilder(Dictionary - /// Delete a users's temporaryAccessPassAuthenticationMethod object. + /// Delete a users's temporaryAccessPassAuthenticationMethod object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve a user's single temporaryAccessPassAuthenticationMethod object. + /// Retrieve a user's single temporaryAccessPassAuthenticationMethod object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, TemporaryAccessPassAuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a users's temporaryAccessPassAuthenticationMethod object. + /// Delete a users's temporaryAccessPassAuthenticationMethod object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -93,7 +93,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a user's single temporaryAccessPassAuthenticationMethod object. + /// Retrieve a user's single temporaryAccessPassAuthenticationMethod object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -142,7 +142,7 @@ public TemporaryAccessPassAuthenticationMethodItemRequestBuilderDeleteRequestCon } } /// - /// Retrieve a user's single temporaryAccessPassAuthenticationMethod object. + /// Retrieve a user's single temporaryAccessPassAuthenticationMethod object. This API is supported in the following national cloud deployments. /// public class TemporaryAccessPassAuthenticationMethodItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/TemporaryAccessPassMethods/TemporaryAccessPassMethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/TemporaryAccessPassMethods/TemporaryAccessPassMethodsRequestBuilder.cs index 3aa26bbffca..d7bfa3f29e7 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/TemporaryAccessPassMethods/TemporaryAccessPassMethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/TemporaryAccessPassMethods/TemporaryAccessPassMethodsRequestBuilder.cs @@ -42,7 +42,7 @@ public TemporaryAccessPassMethodsRequestBuilder(Dictionary pathP public TemporaryAccessPassMethodsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/authentication/temporaryAccessPassMethods{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of a user's temporaryAccessPassAuthenticationMethod objects and their properties. This API will only return a single object in the collection as a user can have only one Temporary Access Pass method. + /// Retrieve a list of a user's temporaryAccessPassAuthenticationMethod objects and their properties. This API will only return a single object in the collection as a user can have only one Temporary Access Pass method. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task Get return await RequestAdapter.SendAsync(requestInfo, TemporaryAccessPassAuthenticationMethodCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new temporaryAccessPassAuthenticationMethod object on a user. A user can only have one Temporary Access Pass that's usable within its specified lifetime. If the user requires a new Temporary Access Pass while the current Temporary Access Pass is valid, the admin can create a new Temporary Access Pass for the user, the previous Temporary Access Pass will be deleted, and a new Temporary Access Pass will be created. + /// Create a new temporaryAccessPassAuthenticationMethod object on a user. A user can only have one Temporary Access Pass that's usable within its specified lifetime. If the user requires a new Temporary Access Pass while the current Temporary Access Pass is valid, the admin can create a new Temporary Access Pass for the user, the previous Temporary Access Pass will be deleted, and a new Temporary Access Pass will be created. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TemporaryAc return await RequestAdapter.SendAsync(requestInfo, TemporaryAccessPassAuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of a user's temporaryAccessPassAuthenticationMethod objects and their properties. This API will only return a single object in the collection as a user can have only one Temporary Access Pass method. + /// Retrieve a list of a user's temporaryAccessPassAuthenticationMethod objects and their properties. This API will only return a single object in the collection as a user can have only one Temporary Access Pass method. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new temporaryAccessPassAuthenticationMethod object on a user. A user can only have one Temporary Access Pass that's usable within its specified lifetime. If the user requires a new Temporary Access Pass while the current Temporary Access Pass is valid, the admin can create a new Temporary Access Pass for the user, the previous Temporary Access Pass will be deleted, and a new Temporary Access Pass will be created. + /// Create a new temporaryAccessPassAuthenticationMethod object on a user. A user can only have one Temporary Access Pass that's usable within its specified lifetime. If the user requires a new Temporary Access Pass while the current Temporary Access Pass is valid, the admin can create a new Temporary Access Pass for the user, the previous Temporary Access Pass will be deleted, and a new Temporary Access Pass will be created. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public TemporaryAccessPassMethodsRequestBuilder WithUrl(string rawUrl) { return new TemporaryAccessPassMethodsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of a user's temporaryAccessPassAuthenticationMethod objects and their properties. This API will only return a single object in the collection as a user can have only one Temporary Access Pass method. + /// Retrieve a list of a user's temporaryAccessPassAuthenticationMethod objects and their properties. This API will only return a single object in the collection as a user can have only one Temporary Access Pass method. This API is supported in the following national cloud deployments. /// public class TemporaryAccessPassMethodsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/Item/WindowsHelloForBusinessAuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/Item/WindowsHelloForBusinessAuthenticationMethodItemRequestBuilder.cs index 50291b9477c..a8717c51b62 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/Item/WindowsHelloForBusinessAuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/Item/WindowsHelloForBusinessAuthenticationMethodItemRequestBuilder.cs @@ -34,7 +34,7 @@ public WindowsHelloForBusinessAuthenticationMethodItemRequestBuilder(Dictionary< public WindowsHelloForBusinessAuthenticationMethodItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/authentication/windowsHelloForBusinessMethods/{windowsHelloForBusinessAuthenticationMethod%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a windowsHelloForBusinessAuthenticationMethod object. + /// Deletes a windowsHelloForBusinessAuthenticationMethod object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a windowsHelloForBusinessAuthenticationMethod object. + /// Read the properties and relationships of a windowsHelloForBusinessAuthenticationMethod object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, WindowsHelloForBusinessAuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a windowsHelloForBusinessAuthenticationMethod object. + /// Deletes a windowsHelloForBusinessAuthenticationMethod object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -98,7 +98,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a windowsHelloForBusinessAuthenticationMethod object. + /// Read the properties and relationships of a windowsHelloForBusinessAuthenticationMethod object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,7 +147,7 @@ public WindowsHelloForBusinessAuthenticationMethodItemRequestBuilderDeleteReques } } /// - /// Read the properties and relationships of a windowsHelloForBusinessAuthenticationMethod object. + /// Read the properties and relationships of a windowsHelloForBusinessAuthenticationMethod object. This API is supported in the following national cloud deployments. /// public class WindowsHelloForBusinessAuthenticationMethodItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/WindowsHelloForBusinessMethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/WindowsHelloForBusinessMethodsRequestBuilder.cs index ad1de4fa9cf..dd191aae04f 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/WindowsHelloForBusinessMethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/WindowsHelloForBusinessMethodsRequestBuilder.cs @@ -42,7 +42,7 @@ public WindowsHelloForBusinessMethodsRequestBuilder(Dictionary p public WindowsHelloForBusinessMethodsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/authentication/windowsHelloForBusinessMethods{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the windowsHelloForBusinessAuthenticationMethod objects and their properties. + /// Get a list of the windowsHelloForBusinessAuthenticationMethod objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task return await RequestAdapter.SendAsync(requestInfo, WindowsHelloForBusinessAuthenticationMethodCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the windowsHelloForBusinessAuthenticationMethod objects and their properties. + /// Get a list of the windowsHelloForBusinessAuthenticationMethod objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public WindowsHelloForBusinessMethodsRequestBuilder WithUrl(string rawUrl) { return new WindowsHelloForBusinessMethodsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the windowsHelloForBusinessAuthenticationMethod objects and their properties. + /// Get a list of the windowsHelloForBusinessAuthenticationMethod objects and their properties. This API is supported in the following national cloud deployments. /// public class WindowsHelloForBusinessMethodsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs new file mode 100644 index 00000000000..421de330789 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.Calendar.AllowedCalendarSharingRolesWithUser { + public class AllowedCalendarSharingRolesWithUserGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AllowedCalendarSharingRolesWithUserGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AllowedCalendarSharingRolesWithUserGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfEnumValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfEnumValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs index 7a03cc94871..a08ae920add 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs @@ -35,6 +35,26 @@ public AllowedCalendarSharingRolesWithUserRequestBuilder(string rawUrl, IRequest /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsAllowedCalendarSharingRolesWithUserGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsAllowedCalendarSharingRolesWithUserGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AllowedCalendarSharingRolesWithUserGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function allowedCalendarSharingRoles + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsAllowedCalendarSharingRolesWithUserGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs index 2052719226b..1a1537ee53e 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.Calendar.AllowedCalendarSharingRolesWithUser { - public class AllowedCalendarSharingRolesWithUserResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use allowedCalendarSharingRolesWithUserGetResponse instead.")] + public class AllowedCalendarSharingRolesWithUserResponse : AllowedCalendarSharingRolesWithUserGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AllowedCalendarSharingRolesWithUserResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfEnumValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfEnumValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs index 4bc8660c133..9fbe94bf56c 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs @@ -42,7 +42,7 @@ public CalendarPermissionsRequestBuilder(Dictionary pathParamete public CalendarPermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/calendarPermissions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. + /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, CalendarPermissionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. + /// Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(CalendarPermission body, Action< return await RequestAdapter.SendAsync(requestInfo, CalendarPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. + /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. + /// Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public CalendarPermissionsRequestBuilder WithUrl(string rawUrl) { return new CalendarPermissionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. + /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. This API is supported in the following national cloud deployments. /// public class CalendarPermissionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs index cfa15f941a3..265dc72730d 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs @@ -29,7 +29,7 @@ public CalendarPermissionItemRequestBuilder(Dictionary pathParam public CalendarPermissionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/calendarPermissions/{calendarPermission%2Did}{?%24select}", rawUrl) { } /// - /// Delete calendarPermission. + /// Delete calendarPermission. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get the specified permissions object of a user or group calendar that has been shared. + /// Get the specified permissions object of a user or group calendar that has been shared. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, CalendarPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the permissions assigned to an existing sharee or delegate, through the corresponding <b>calendarPermission</b> object for a calendar. + /// Update the permissions assigned to an existing share recipient or delegate, through the corresponding <b>calendarPermission</b> object for a calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(CalendarPermission body, Action return await RequestAdapter.SendAsync(requestInfo, CalendarPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete calendarPermission. + /// Delete calendarPermission. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the specified permissions object of a user or group calendar that has been shared. + /// Get the specified permissions object of a user or group calendar that has been shared. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the permissions assigned to an existing sharee or delegate, through the corresponding <b>calendarPermission</b> object for a calendar. + /// Update the permissions assigned to an existing share recipient or delegate, through the corresponding <b>calendarPermission</b> object for a calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public CalendarPermissionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the specified permissions object of a user or group calendar that has been shared. + /// Get the specified permissions object of a user or group calendar that has been shared. This API is supported in the following national cloud deployments. /// public class CalendarPermissionItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarRequestBuilder.cs index bfc9d1750f1..0a276c3a928 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarRequestBuilder.cs @@ -58,7 +58,7 @@ public CalendarRequestBuilder(Dictionary pathParameters, IReques public CalendarRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar{?%24select}", rawUrl) { } /// - /// Get the properties and relationships of a calendar object. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. There are two scenarios where an app can get another user's calendar: + /// Get the properties and relationships of a calendar object. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. There are two scenarios where an app can get another user's calendar: This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -78,7 +78,7 @@ public CalendarRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Calendar.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a calendar object. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. + /// Update the properties of a calendar object. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -100,7 +100,7 @@ public CalendarRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Calendar.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the properties and relationships of a calendar object. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. There are two scenarios where an app can get another user's calendar: + /// Get the properties and relationships of a calendar object. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. There are two scenarios where an app can get another user's calendar: This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -126,7 +126,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a calendar object. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. + /// Update the properties of a calendar object. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -161,7 +161,7 @@ public CalendarRequestBuilder WithUrl(string rawUrl) { return new CalendarRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the properties and relationships of a calendar object. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. There are two scenarios where an app can get another user's calendar: + /// Get the properties and relationships of a calendar object. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. There are two scenarios where an app can get another user's calendar: This API is supported in the following national cloud deployments. /// public class CalendarRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..a9611702835 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.Calendar.CalendarView.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Delta/DeltaRequestBuilder.cs index e044b5ed528..10424d7fa04 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/calendarView/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Delta/DeltaResponse.cs index 2a017fd5edf..3e57a091e03 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.Calendar.CalendarView.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.cs index 698db91c77e..af6aeb801a9 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/calendarView/{event%2Did}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 28a538c9a53..ed968ad325f 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/calendarView/{event%2Did}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 36a058eb588..82507167395 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/calendarView/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index a4fa85880a8..befa0cd533a 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/calendarView/{event%2Did}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.cs index f2ce9c41f58..09fa6531c3c 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/calendarView/{event%2Did}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.cs index 20e4dc6a54c..77819912347 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/calendarView/{event%2Did}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs index f9b88e9e8fc..07826928cbb 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/calendarView/{event%2Did}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs index 2d34fcec94f..197c2601263 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/calendarView/{event%2Did}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 631964bfc86..10102feaea0 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.cs index d0b384475d8..48792e5a7d9 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/calendarView/{event%2Did}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..770c3fdf230 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.Calendar.CalendarView.Item.Instances.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs index 90b993e694f..7e5da3af5ea 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/calendarView/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Delta/DeltaResponse.cs index 8524ec082d1..12c40742d34 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.Calendar.CalendarView.Item.Instances.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index 4fbb08cc9f2..d9c1af9429a 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 79ae8d71210..79420ca222a 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index b8482a62fd7..3665d199088 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 6efd0fa6259..59db487177f 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index 7b944fc28f4..83692a7dbd1 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index 028a96605cb..97f96742b76 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index 6526bdfdae6..f93ee53b2d7 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index d008a4ac43d..bb529fa6b6f 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 77916c95ba2..d5a58bc76a1 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index ed4edc7efff..1d4c87b97ab 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index cf3b668f9cb..280f4233ba0 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 988daa096a3..f53a265f55b 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index d481ff3ed9b..4518d2df7ea 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/calendarView/{event%2Did}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 05f8c9bcd77..f34c97dfd9b 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/calendarView/{event%2Did}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..56842673e03 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.Calendar.Events.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Delta/DeltaRequestBuilder.cs index 736bd518efe..e80ad46c9e7 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/events/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Delta/DeltaResponse.cs index 40a6eb4b846..5db7bbd657f 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.Calendar.Events.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/EventsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/EventsRequestBuilder.cs index c280831817b..8840a4f1558 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/EventsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/EventsRequestBuilder.cs @@ -47,7 +47,7 @@ public EventsRequestBuilder(Dictionary pathParameters, IRequestA public EventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/events{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. + /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to create a new event in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. + /// Use this API to create a new event in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Event body, Action(requestInfo, Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. + /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new event in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. + /// Use this API to create a new event in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public EventsRequestBuilder WithUrl(string rawUrl) { return new EventsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. + /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. This API is supported in the following national cloud deployments. /// public class EventsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Accept/AcceptRequestBuilder.cs index 137ba10be3c..726ac792390 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/events/{event%2Did}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs index 12dbb640e17..4c5f5c5174f 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/events/{event%2Did}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 20057e6a8f2..d13f06bd4a3 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/events/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 57974e55d0c..a55fb27ce27 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/events/{event%2Did}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Cancel/CancelRequestBuilder.cs index fdf4ea2ac0a..7d745b51796 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/events/{event%2Did}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Decline/DeclineRequestBuilder.cs index 13db05a3593..2bd61f7d68b 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/events/{event%2Did}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs index fccb334617f..3348ff281f8 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/events/{event%2Did}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/EventItemRequestBuilder.cs index 82d737d513e..d8879cb8937 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/EventItemRequestBuilder.cs @@ -122,7 +122,7 @@ public async Task GetAsync(Action(requestInfo, Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update an event object. + /// Update an event object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -194,7 +194,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update an event object. + /// Update an event object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs index 01c888c614b..11fea38abf8 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/events/{event%2Did}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 06be08f137e..96762f6bdac 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Forward/ForwardRequestBuilder.cs index 90e72d677d2..be4c8cded83 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/events/{event%2Did}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..a6dd8da6bde --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.Calendar.Events.Item.Instances.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.cs index 20a96e7af5c..568f046b246 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/events/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Delta/DeltaResponse.cs index c3d76ccd2c3..ea060f1c265 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.Calendar.Events.Item.Instances.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index 988b9092790..0a9bf7c8adb 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/events/{event%2Did}/instances/{event%2Did1}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 85b2269e535..ad5d21ffa18 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/events/{event%2Did}/instances/{event%2Did1}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 44b9f3baf1a..3462eeb105f 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/events/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 44d8546231a..e4a20ccd2d8 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/events/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index f43c290557e..ade5240aa66 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/events/{event%2Did}/instances/{event%2Did1}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index 1dac88c2e1d..f99140cb3e0 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/events/{event%2Did}/instances/{event%2Did1}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index 3c372693b0a..76f49003f37 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/events/{event%2Did}/instances/{event%2Did1}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index 23c0510f185..dfcc94b8460 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/events/{event%2Did}/instances/{event%2Did1}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 6961c4a1b60..d70a9930d04 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index 7d5862c7bd7..837f33f9ecf 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/events/{event%2Did}/instances/{event%2Did1}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 31b06bf6780..cc73ce9072a 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/events/{event%2Did}/instances/{event%2Did1}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index e61f352f21e..1dbd66cd305 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/events/{event%2Did}/instances/{event%2Did1}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 2ee28649e46..bb59d72d294 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/events/{event%2Did}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 162be58aeb5..cf616960f9a 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/events/{event%2Did}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/GetSchedule/GetSchedulePostResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendar/GetSchedule/GetSchedulePostResponse.cs new file mode 100644 index 00000000000..c3e6ec99557 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Calendar/GetSchedule/GetSchedulePostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.Calendar.GetSchedule { + public class GetSchedulePostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetSchedulePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetSchedulePostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ScheduleInformation.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/GetSchedule/GetScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/GetSchedule/GetScheduleRequestBuilder.cs index ac7ef61a98b..fc965c52917 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/GetSchedule/GetScheduleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/GetSchedule/GetScheduleRequestBuilder.cs @@ -28,13 +28,36 @@ public GetScheduleRequestBuilder(Dictionary pathParameters, IReq public GetScheduleRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/getSchedule", rawUrl) { } /// - /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. + /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetSchedulePostResponseAsync(GetSchedulePostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetSchedulePostResponseAsync(GetSchedulePostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetSchedulePostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetSchedulePostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetSchedulePostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetSchedulePostRequestBody body return await RequestAdapter.SendAsync(requestInfo, GetScheduleResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. + /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/GetSchedule/GetScheduleResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendar/GetSchedule/GetScheduleResponse.cs index 16508bfe3e7..cc2f69eec88 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/GetSchedule/GetScheduleResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/GetSchedule/GetScheduleResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.Calendar.GetSchedule { - public class GetScheduleResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getSchedulePostResponse instead.")] + public class GetScheduleResponse : GetSchedulePostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetScheduleResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ScheduleInformation.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/CalendarGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/CalendarGroupsRequestBuilder.cs index 4101f89d85a..83d59fde951 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/CalendarGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/CalendarGroupsRequestBuilder.cs @@ -42,7 +42,7 @@ public CalendarGroupsRequestBuilder(Dictionary pathParameters, I public CalendarGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get the user's calendar groups. + /// Get the user's calendar groups. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, CalendarGroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to create a new CalendarGroup. + /// Use this API to create a new CalendarGroup. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(CalendarGroup body, Action(requestInfo, CalendarGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the user's calendar groups. + /// Get the user's calendar groups. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new CalendarGroup. + /// Use this API to create a new CalendarGroup. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public CalendarGroupsRequestBuilder WithUrl(string rawUrl) { return new CalendarGroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the user's calendar groups. + /// Get the user's calendar groups. This API is supported in the following national cloud deployments. /// public class CalendarGroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/CalendarGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/CalendarGroupItemRequestBuilder.cs index 8f3631a0407..f76cfbd41ea 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/CalendarGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/CalendarGroupItemRequestBuilder.cs @@ -34,7 +34,7 @@ public CalendarGroupItemRequestBuilder(Dictionary pathParameters public CalendarGroupItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}{?%24select}", rawUrl) { } /// - /// Delete a calendar group other than the default calendar group. + /// Delete a calendar group other than the default calendar group. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a calendar group object. + /// Retrieve the properties and relationships of a calendar group object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, CalendarGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of calendargroup object. + /// Update the properties of calendargroup object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(CalendarGroup body, Action(requestInfo, CalendarGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a calendar group other than the default calendar group. + /// Delete a calendar group other than the default calendar group. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a calendar group object. + /// Retrieve the properties and relationships of a calendar group object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of calendargroup object. + /// Update the properties of calendargroup object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public CalendarGroupItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a calendar group object. + /// Retrieve the properties and relationships of a calendar group object. This API is supported in the following national cloud deployments. /// public class CalendarGroupItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/CalendarsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/CalendarsRequestBuilder.cs index 7acd7e1cc34..e003714624f 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/CalendarsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/CalendarsRequestBuilder.cs @@ -42,7 +42,7 @@ public CalendarsRequestBuilder(Dictionary pathParameters, IReque public CalendarsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Retrieve a list of calendars belonging to a calendar group. + /// Retrieve a list of calendars belonging to a calendar group. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, CalendarCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to create a new calendar in a calendar group for a user. + /// Use this API to create a new calendar in a calendar group for a user. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Calendar.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of calendars belonging to a calendar group. + /// Retrieve a list of calendars belonging to a calendar group. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new calendar in a calendar group for a user. + /// Use this API to create a new calendar in a calendar group for a user. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public CalendarsRequestBuilder WithUrl(string rawUrl) { return new CalendarsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of calendars belonging to a calendar group. + /// Retrieve a list of calendars belonging to a calendar group. This API is supported in the following national cloud deployments. /// public class CalendarsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs new file mode 100644 index 00000000000..b00a228d687 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.CalendarGroups.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser { + public class AllowedCalendarSharingRolesWithUserGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AllowedCalendarSharingRolesWithUserGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AllowedCalendarSharingRolesWithUserGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfEnumValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfEnumValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs index 8023bce4907..9ae83aa858d 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs @@ -35,6 +35,26 @@ public AllowedCalendarSharingRolesWithUserRequestBuilder(string rawUrl, IRequest /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsAllowedCalendarSharingRolesWithUserGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsAllowedCalendarSharingRolesWithUserGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AllowedCalendarSharingRolesWithUserGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function allowedCalendarSharingRoles + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsAllowedCalendarSharingRolesWithUserGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs index 01ab01428cb..446c5cc4536 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.CalendarGroups.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser { - public class AllowedCalendarSharingRolesWithUserResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use allowedCalendarSharingRolesWithUserGetResponse instead.")] + public class AllowedCalendarSharingRolesWithUserResponse : AllowedCalendarSharingRolesWithUserGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AllowedCalendarSharingRolesWithUserResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfEnumValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfEnumValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs index aeabe1a0d6b..17f19cae31c 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs @@ -42,7 +42,7 @@ public CalendarPermissionsRequestBuilder(Dictionary pathParamete public CalendarPermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarPermissions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. + /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, CalendarPermissionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. + /// Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(CalendarPermission body, Action< return await RequestAdapter.SendAsync(requestInfo, CalendarPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. + /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. + /// Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public CalendarPermissionsRequestBuilder WithUrl(string rawUrl) { return new CalendarPermissionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. + /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. This API is supported in the following national cloud deployments. /// public class CalendarPermissionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs index f7310000191..52fc14a5fd8 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs @@ -29,7 +29,7 @@ public CalendarPermissionItemRequestBuilder(Dictionary pathParam public CalendarPermissionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarPermissions/{calendarPermission%2Did}{?%24select}", rawUrl) { } /// - /// Delete calendarPermission. + /// Delete calendarPermission. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get the specified permissions object of a user or group calendar that has been shared. + /// Get the specified permissions object of a user or group calendar that has been shared. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, CalendarPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the permissions assigned to an existing sharee or delegate, through the corresponding <b>calendarPermission</b> object for a calendar. + /// Update the permissions assigned to an existing share recipient or delegate, through the corresponding <b>calendarPermission</b> object for a calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(CalendarPermission body, Action return await RequestAdapter.SendAsync(requestInfo, CalendarPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete calendarPermission. + /// Delete calendarPermission. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the specified permissions object of a user or group calendar that has been shared. + /// Get the specified permissions object of a user or group calendar that has been shared. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the permissions assigned to an existing sharee or delegate, through the corresponding <b>calendarPermission</b> object for a calendar. + /// Update the permissions assigned to an existing share recipient or delegate, through the corresponding <b>calendarPermission</b> object for a calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public CalendarPermissionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the specified permissions object of a user or group calendar that has been shared. + /// Get the specified permissions object of a user or group calendar that has been shared. This API is supported in the following national cloud deployments. /// public class CalendarPermissionItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs index 46db2f0f781..82957e52521 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs @@ -47,7 +47,7 @@ public CalendarViewRequestBuilder(Dictionary pathParameters, IRe public CalendarViewRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get the occurrences, exceptions and single instances of events in a calendar view defined by a time range,from a user's default calendar (../me/calendarView) or some other calendar of the user's. + /// Get the occurrences, exceptions and single instances of events in a calendar view defined by a time range,from a user's default calendar (../me/calendarView) or some other calendar of the user's. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the occurrences, exceptions and single instances of events in a calendar view defined by a time range,from a user's default calendar (../me/calendarView) or some other calendar of the user's. + /// Get the occurrences, exceptions and single instances of events in a calendar view defined by a time range,from a user's default calendar (../me/calendarView) or some other calendar of the user's. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -100,7 +100,7 @@ public CalendarViewRequestBuilder WithUrl(string rawUrl) { return new CalendarViewRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the occurrences, exceptions and single instances of events in a calendar view defined by a time range,from a user's default calendar (../me/calendarView) or some other calendar of the user's. + /// Get the occurrences, exceptions and single instances of events in a calendar view defined by a time range,from a user's default calendar (../me/calendarView) or some other calendar of the user's. This API is supported in the following national cloud deployments. /// public class CalendarViewRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..8569f501fa2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.CalendarGroups.Item.Calendars.Item.CalendarView.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs index dcf466f7985..9c8dd9857b3 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaResponse.cs index 07d5343d8ff..d38af1052cf 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.CalendarGroups.Item.Calendars.Item.CalendarView.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs index b3ac1300c5d..1dfb70da88d 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 635a0056c4a..ff47b3b8fbe 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 1c016dd505c..c621b420ba8 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 5b9e502c6fa..88ad9c9e23c 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs index 6cf7d2daf0f..cd1202bf035 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs index 1281fb09a0d..2800ae377b5 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs index e8ce3a4d8ec..0565efcca9e 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs index 0ff45a5da41..b98c652bc5c 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 4a4f191d82d..57cb1f6321d 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs index 44c0f8bc718..adc200e6c11 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..9e3e8a649a3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.CalendarGroups.Item.Calendars.Item.CalendarView.Item.Instances.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs index 98c3b851e49..91d6f4285a2 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs index bf0c806ee2f..a26b0b2077c 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.CalendarGroups.Item.Calendars.Item.CalendarView.Item.Instances.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index 275c8bd9dba..3bf0823e33e 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index ca0c4f8377f..97e876e5424 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index a0f859c0532..161bec052c6 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 69107f8a169..4db3165d6de 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index 0f14f88edb7..9411da234ad 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index 34a5c9131e1..9b6ddf6caa8 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index 893155deeb2..16ca755cdde 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index e1871e53499..ae5476abcef 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 1036712cdcf..3f5a1e78779 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index bbd5d741fd8..89ce7e46dff 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 6601eb69c20..2dbff773537 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 5df2d32e780..2d4dd04e05b 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 4885ccea056..3e55f34bbbd 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index be39f2e15fa..de2ed49bebf 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..e9dd077e5fe --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.CalendarGroups.Item.Calendars.Item.Events.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs index 833b4748ac0..a6184669346 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaResponse.cs index 81227919b2d..9b0dbecc60d 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.CalendarGroups.Item.Calendars.Item.Events.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/EventsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/EventsRequestBuilder.cs index a52e5dd0372..54e90f80639 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/EventsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/EventsRequestBuilder.cs @@ -47,7 +47,7 @@ public EventsRequestBuilder(Dictionary pathParameters, IRequestA public EventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. + /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to create a new event in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. + /// Use this API to create a new event in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Event body, Action(requestInfo, Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. + /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new event in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. + /// Use this API to create a new event in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public EventsRequestBuilder WithUrl(string rawUrl) { return new EventsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. + /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. This API is supported in the following national cloud deployments. /// public class EventsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs index 3d3695dec86..9f1984e5df2 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index be7022e93cc..195972fdf20 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 2c4ace7ea2d..61cb75c54d2 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index b00022fc23b..5621452a8f8 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs index 9f957b00483..0ac5f5b9137 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs index 2fe0a72fa8a..7d3f79d057f 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs index 2d5e823b0f7..a689d694cd2 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.cs index 97e85a8730e..e1a87d409ad 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.cs @@ -122,7 +122,7 @@ public async Task GetAsync(Action(requestInfo, Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update an event object. + /// Update an event object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -194,7 +194,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update an event object. + /// Update an event object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs index 0dddf701ab7..a14d0d31be9 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index bcf59718476..2a1e30daf7c 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs index 39f3b445419..1b778bdf3d4 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..e31f57fb550 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.CalendarGroups.Item.Calendars.Item.Events.Item.Instances.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs index 3f7b5adb661..4a692bc6212 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs index 582e1c79eb1..7f6af14d6b7 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.CalendarGroups.Item.Calendars.Item.Events.Item.Instances.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index ae3a8b6f0b7..e8344fd12ea 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 0683270f7bf..905ca8a946e 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 273ecfdb1a9..8650a75dea0 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 0fe9a21ea2b..93eeb59dd3e 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index 4817b04e40d..48e21cdc529 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index f7815b5bfc2..86acd0455ca 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index ad60aa84044..49c4f38363b 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index 96c6ca06f3c..1627186702a 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index cedf4735b7b..3a54bb9e21c 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index e0bb52d6135..128826ade29 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 1a041c3131d..a543fbbdcfa 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 1b1e7c849e4..acf9de1c09a 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 18c1ee18b2e..33d28ff60b1 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index b2b88d30005..eba252bdb79 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs new file mode 100644 index 00000000000..bdca03095b5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.CalendarGroups.Item.Calendars.Item.GetSchedule { + public class GetSchedulePostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetSchedulePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetSchedulePostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ScheduleInformation.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs index 2ca6a9fa764..f961afeffcd 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs @@ -28,13 +28,36 @@ public GetScheduleRequestBuilder(Dictionary pathParameters, IReq public GetScheduleRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/getSchedule", rawUrl) { } /// - /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. + /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetSchedulePostResponseAsync(GetSchedulePostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetSchedulePostResponseAsync(GetSchedulePostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetSchedulePostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetSchedulePostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetSchedulePostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetSchedulePostRequestBody body return await RequestAdapter.SendAsync(requestInfo, GetScheduleResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. + /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleResponse.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleResponse.cs index 329682e5971..e5b0e28091a 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.CalendarGroups.Item.Calendars.Item.GetSchedule { - public class GetScheduleResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getSchedulePostResponse instead.")] + public class GetScheduleResponse : GetSchedulePostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetScheduleResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ScheduleInformation.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..6e34721fb5a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.CalendarView.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Delta/DeltaRequestBuilder.cs index ef847370c67..93d60627db8 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarView/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Delta/DeltaResponse.cs index 5ce7e90aabc..3fa7e91dbc3 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.CalendarView.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Accept/AcceptRequestBuilder.cs index a50e1480188..2be8189a457 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarView/{event%2Did}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index b33b5673a15..6188475e6f0 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarView/{event%2Did}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 2d231ba0e0d..1d12dee8fac 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarView/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index fa124584621..eff57edfd34 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarView/{event%2Did}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Cancel/CancelRequestBuilder.cs index a24857d64d3..928e107ff0e 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarView/{event%2Did}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Decline/DeclineRequestBuilder.cs index 8e1087d8a1f..f0bdeb5d9a6 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarView/{event%2Did}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs index 8814369185f..7940baa9212 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarView/{event%2Did}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs index f10b29c729d..5474611dc13 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarView/{event%2Did}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index c1dd26ace54..2303e34f817 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Forward/ForwardRequestBuilder.cs index 368c825ce3e..420ef53a080 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarView/{event%2Did}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..6243b7fafb2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.CalendarView.Item.Instances.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs index 825b1116789..a8e1d636710 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarView/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Delta/DeltaResponse.cs index 4bc7bd54d2c..4f6acd333e3 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.CalendarView.Item.Instances.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index 5effdfebf9f..cb025fc2cd4 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarView/{event%2Did}/instances/{event%2Did1}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 9d807f76eb2..2610bbdaa69 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarView/{event%2Did}/instances/{event%2Did1}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index e3ba2b0278a..916d5cfd0ff 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 8a66ac4df05..4e1bb0ce85d 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index 60430e7335e..7d43daef320 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarView/{event%2Did}/instances/{event%2Did1}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index 5e7ad0bc3e1..fc3b6514f69 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarView/{event%2Did}/instances/{event%2Did1}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index b2529a6aed4..79d8b9e55fe 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarView/{event%2Did}/instances/{event%2Did1}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index cc77fef17e3..64657b89381 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarView/{event%2Did}/instances/{event%2Did1}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 6473ab54e3b..dbf99e09774 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index 5bdfc8d270f..e7fce4b364c 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarView/{event%2Did}/instances/{event%2Did1}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 384336e2419..d3406d65e67 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarView/{event%2Did}/instances/{event%2Did1}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 699c51bb2a0..2b322a32db1 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarView/{event%2Did}/instances/{event%2Did1}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 3c43c0510b1..39624692d4a 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarView/{event%2Did}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index d83a7ab8a40..de2893a525c 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarView/{event%2Did}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/CalendarsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/CalendarsRequestBuilder.cs index 14b881565e8..7b103b1f6d7 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/CalendarsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/CalendarsRequestBuilder.cs @@ -42,7 +42,7 @@ public CalendarsRequestBuilder(Dictionary pathParameters, IReque public CalendarsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get all the user's calendars (/calendars navigation property), get the calendars from the default calendar group or from a specific calendar group. + /// Get all the user's calendars (/calendars navigation property), get the calendars from the default calendar group or from a specific calendar group. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, CalendarCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new calendar for a user. + /// Create a new calendar for a user. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Calendar.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get all the user's calendars (/calendars navigation property), get the calendars from the default calendar group or from a specific calendar group. + /// Get all the user's calendars (/calendars navigation property), get the calendars from the default calendar group or from a specific calendar group. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new calendar for a user. + /// Create a new calendar for a user. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public CalendarsRequestBuilder WithUrl(string rawUrl) { return new CalendarsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get all the user's calendars (/calendars navigation property), get the calendars from the default calendar group or from a specific calendar group. + /// Get all the user's calendars (/calendars navigation property), get the calendars from the default calendar group or from a specific calendar group. This API is supported in the following national cloud deployments. /// public class CalendarsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs new file mode 100644 index 00000000000..879ac506a91 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.Calendars.Item.AllowedCalendarSharingRolesWithUser { + public class AllowedCalendarSharingRolesWithUserGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AllowedCalendarSharingRolesWithUserGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AllowedCalendarSharingRolesWithUserGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfEnumValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfEnumValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs index ba3db6ac7ed..9d2a585ab83 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs @@ -35,6 +35,26 @@ public AllowedCalendarSharingRolesWithUserRequestBuilder(string rawUrl, IRequest /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsAllowedCalendarSharingRolesWithUserGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsAllowedCalendarSharingRolesWithUserGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AllowedCalendarSharingRolesWithUserGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function allowedCalendarSharingRoles + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsAllowedCalendarSharingRolesWithUserGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs index 524797e9187..892bb0d1a8b 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.Calendars.Item.AllowedCalendarSharingRolesWithUser { - public class AllowedCalendarSharingRolesWithUserResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use allowedCalendarSharingRolesWithUserGetResponse instead.")] + public class AllowedCalendarSharingRolesWithUserResponse : AllowedCalendarSharingRolesWithUserGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AllowedCalendarSharingRolesWithUserResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfEnumValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfEnumValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs index 794c0805194..cf98ac08d0a 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs @@ -42,7 +42,7 @@ public CalendarPermissionsRequestBuilder(Dictionary pathParamete public CalendarPermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/calendarPermissions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. + /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, CalendarPermissionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. + /// Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(CalendarPermission body, Action< return await RequestAdapter.SendAsync(requestInfo, CalendarPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. + /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. + /// Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public CalendarPermissionsRequestBuilder WithUrl(string rawUrl) { return new CalendarPermissionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. + /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. This API is supported in the following national cloud deployments. /// public class CalendarPermissionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs index b23983660ac..7000b5fd60f 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs @@ -29,7 +29,7 @@ public CalendarPermissionItemRequestBuilder(Dictionary pathParam public CalendarPermissionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/calendarPermissions/{calendarPermission%2Did}{?%24select}", rawUrl) { } /// - /// Delete calendarPermission. + /// Delete calendarPermission. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get the specified permissions object of a user or group calendar that has been shared. + /// Get the specified permissions object of a user or group calendar that has been shared. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, CalendarPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the permissions assigned to an existing sharee or delegate, through the corresponding <b>calendarPermission</b> object for a calendar. + /// Update the permissions assigned to an existing share recipient or delegate, through the corresponding <b>calendarPermission</b> object for a calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(CalendarPermission body, Action return await RequestAdapter.SendAsync(requestInfo, CalendarPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete calendarPermission. + /// Delete calendarPermission. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the specified permissions object of a user or group calendar that has been shared. + /// Get the specified permissions object of a user or group calendar that has been shared. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the permissions assigned to an existing sharee or delegate, through the corresponding <b>calendarPermission</b> object for a calendar. + /// Update the permissions assigned to an existing share recipient or delegate, through the corresponding <b>calendarPermission</b> object for a calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public CalendarPermissionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the specified permissions object of a user or group calendar that has been shared. + /// Get the specified permissions object of a user or group calendar that has been shared. This API is supported in the following national cloud deployments. /// public class CalendarPermissionItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..b1c9a63d808 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.Calendars.Item.CalendarView.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs index 0675e32b7da..fb1ab91c38c 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/calendarView/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Delta/DeltaResponse.cs index 3c4a76291d1..5a867b3f2a3 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.Calendars.Item.CalendarView.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs index 420272469a3..8d4882248df 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/calendarView/{event%2Did}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index d3626f8a45c..6118b55fb63 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/calendarView/{event%2Did}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 984bdf0a6f1..2fb8bad6dd8 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/calendarView/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index ea63708cecf..be3ff6516fa 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/calendarView/{event%2Did}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs index faef8d2f561..5447514dcb3 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/calendarView/{event%2Did}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs index 05b8385b37f..87deef646a5 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/calendarView/{event%2Did}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs index 8e84a574a1c..1c76042c698 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/calendarView/{event%2Did}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs index b2e4ab39131..66164c4b2b6 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/calendarView/{event%2Did}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index ef480756dc0..100b571a80e 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs index 8b2930e338f..0b801ad13a4 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/calendarView/{event%2Did}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..fee0c423d22 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.Calendars.Item.CalendarView.Item.Instances.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs index 8e1377c7625..42b21893a93 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs index 900f269c720..dde1f0bcd3c 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.Calendars.Item.CalendarView.Item.Instances.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index f2a054884ff..e67f5c0c0ac 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index b274b3f8a0c..be99291e94b 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 8aeacd54746..e5ee77898b3 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 4e0012a9fef..8594b2f86e2 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index 6a051f86103..859fe2a3ae4 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index 40245eb1905..0b1827ff844 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index cdfe046f90e..3fa4b3f4b9a 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index 2f229ae223d..b104a829b88 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 21a564f78c9..e322c40e3a3 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index d4f1e5ea907..0fd3eb7d7f0 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 430f405c54e..664993b8492 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index cc60a3cb46e..a1b7acb031a 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 5054e6343aa..fb10606145d 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/calendarView/{event%2Did}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 4a7af8d0111..5268ddcc9e0 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/calendarView/{event%2Did}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..c2455d793a1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.Calendars.Item.Events.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs index a1a2b61bd9f..1f6f0a9bd00 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/events/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Delta/DeltaResponse.cs index 3d85fbe78f9..2fd8a65be73 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.Calendars.Item.Events.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/EventsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/EventsRequestBuilder.cs index 6ee81312e3d..905b89a2b5d 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/EventsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/EventsRequestBuilder.cs @@ -47,7 +47,7 @@ public EventsRequestBuilder(Dictionary pathParameters, IRequestA public EventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/events{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. + /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to create a new event in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. + /// Use this API to create a new event in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Event body, Action(requestInfo, Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. + /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new event in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. + /// Use this API to create a new event in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public EventsRequestBuilder WithUrl(string rawUrl) { return new EventsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. + /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. This API is supported in the following national cloud deployments. /// public class EventsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs index 0f27cdc6315..0fb82df7db0 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/events/{event%2Did}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index ceb71175fb8..8b5833099c5 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/events/{event%2Did}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 3b23fa4a43f..b747faae0ea 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/events/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 556f5928190..1983c1bd8ca 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/events/{event%2Did}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs index 2367e054a7e..98675ee8cd7 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/events/{event%2Did}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs index 75eb54b96ea..9793f79ef41 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/events/{event%2Did}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs index 2a902663233..1b43ee47db6 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/events/{event%2Did}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/EventItemRequestBuilder.cs index 28496812846..0045cd1f55d 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/EventItemRequestBuilder.cs @@ -122,7 +122,7 @@ public async Task GetAsync(Action(requestInfo, Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update an event object. + /// Update an event object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -194,7 +194,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update an event object. + /// Update an event object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs index a040715fc7a..71322f57bef 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/events/{event%2Did}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index eb235a30e86..959f486f1b6 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs index 8dd9956e38d..84474d53669 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/events/{event%2Did}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..b1b3217cef2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.Calendars.Item.Events.Item.Instances.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs index 798b22eda24..1757f599568 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/events/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs index 9018faac5d9..8415bdf2cb8 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.Calendars.Item.Events.Item.Instances.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index 155531a7edf..167f8eee4e8 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 7cccf2c1d13..ed5fb7cfe03 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 69b50523848..f50fd049725 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 883501cb598..dfffa532e46 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index 255fc3a3cd4..84fc95df4d4 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index e03fe46b987..9aa12dea6b6 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index ee7b3de9e4a..f4700143b54 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index 7edcb7c6612..cfcf1c9eb31 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index d4753244e42..c8a475db978 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index bafce6b54bc..066af33d292 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index e4aa99a6b8c..6925582e46b 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index f2fbe0265c8..fc11135ea55 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index edeb88a3864..b62cbe0a97c 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/events/{event%2Did}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index b13e5aec42b..679bb320119 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/events/{event%2Did}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs new file mode 100644 index 00000000000..fd8b99e872f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.Calendars.Item.GetSchedule { + public class GetSchedulePostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetSchedulePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetSchedulePostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ScheduleInformation.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs index 332459b6662..24ed1ec5f9b 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs @@ -28,13 +28,36 @@ public GetScheduleRequestBuilder(Dictionary pathParameters, IReq public GetScheduleRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/getSchedule", rawUrl) { } /// - /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. + /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetSchedulePostResponseAsync(GetSchedulePostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetSchedulePostResponseAsync(GetSchedulePostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetSchedulePostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetSchedulePostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetSchedulePostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetSchedulePostRequestBody body return await RequestAdapter.SendAsync(requestInfo, GetScheduleResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. + /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/GetSchedule/GetScheduleResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/GetSchedule/GetScheduleResponse.cs index 225756152c1..b920bf5c674 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/GetSchedule/GetScheduleResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/GetSchedule/GetScheduleResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.Calendars.Item.GetSchedule { - public class GetScheduleResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getSchedulePostResponse instead.")] + public class GetScheduleResponse : GetSchedulePostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetScheduleResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ScheduleInformation.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/ChangePassword/ChangePasswordRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ChangePassword/ChangePasswordRequestBuilder.cs index 3a4696d3507..ddb408469d8 100644 --- a/src/Microsoft.Graph/Generated/Me/ChangePassword/ChangePasswordRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ChangePassword/ChangePasswordRequestBuilder.cs @@ -28,7 +28,7 @@ public ChangePasswordRequestBuilder(Dictionary pathParameters, I public ChangePasswordRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/changePassword", rawUrl) { } /// - /// Enable the user to update their password. Any user can update their password without belonging to any administrator role. + /// Enable the user to update their password. Any user can update their password without belonging to any administrator role. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ChangePasswordPostRequestBody body, Action - /// Enable the user to update their password. Any user can update their password without belonging to any administrator role. + /// Enable the user to update their password. Any user can update their password without belonging to any administrator role. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Chats/ChatsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/ChatsRequestBuilder.cs index 887492ac222..773a869770d 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/ChatsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/ChatsRequestBuilder.cs @@ -47,7 +47,7 @@ public ChatsRequestBuilder(Dictionary pathParameters, IRequestAd public ChatsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of chats that the user is part of. This method supports federation. When a user ID is provided, the calling application must belong to the same tenant that the user belongs to. + /// Retrieve the list of chats that the user is part of. This method supports federation. When a user ID is provided, the calling application must belong to the same tenant that the user belongs to. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -88,7 +88,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Chat.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of chats that the user is part of. This method supports federation. When a user ID is provided, the calling application must belong to the same tenant that the user belongs to. + /// Retrieve the list of chats that the user is part of. This method supports federation. When a user ID is provided, the calling application must belong to the same tenant that the user belongs to. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -149,7 +149,7 @@ public ChatsRequestBuilder WithUrl(string rawUrl) { return new ChatsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of chats that the user is part of. This method supports federation. When a user ID is provided, the calling application must belong to the same tenant that the user belongs to. + /// Retrieve the list of chats that the user is part of. This method supports federation. When a user ID is provided, the calling application must belong to the same tenant that the user belongs to. This API is supported in the following national cloud deployments. /// public class ChatsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Chats/GetAllMessages/GetAllMessagesGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Chats/GetAllMessages/GetAllMessagesGetResponse.cs new file mode 100644 index 00000000000..df96510dbdb --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Chats/GetAllMessages/GetAllMessagesGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.Chats.GetAllMessages { + public class GetAllMessagesGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAllMessagesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAllMessagesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Chats/GetAllMessages/GetAllMessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/GetAllMessages/GetAllMessagesRequestBuilder.cs index b0377febcd6..d6d65a9cd09 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/GetAllMessages/GetAllMessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/GetAllMessages/GetAllMessagesRequestBuilder.cs @@ -33,6 +33,26 @@ public GetAllMessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetAllMessagesGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetAllMessagesGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAllMessagesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getAllMessages + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetAllMessagesGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Me/Chats/GetAllMessages/GetAllMessagesResponse.cs b/src/Microsoft.Graph/Generated/Me/Chats/GetAllMessages/GetAllMessagesResponse.cs index 57cb953b1dc..15943fe20fa 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/GetAllMessages/GetAllMessagesResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/GetAllMessages/GetAllMessagesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.Chats.GetAllMessages { - public class GetAllMessagesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAllMessagesGetResponse instead.")] + public class GetAllMessagesResponse : GetAllMessagesGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAllMessagesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/ChatItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/ChatItemRequestBuilder.cs index 5ebe2eba885..145d7fab6f3 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/ChatItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/ChatItemRequestBuilder.cs @@ -108,7 +108,7 @@ public async Task DeleteAsync(Action - /// Retrieve a single chat (without its messages). This method supports federation. To access a chat, at least one chat member must belong to the tenant the request initiated from. + /// Retrieve a single chat (without its messages). This method supports federation. To access a chat, at least one chat member must belong to the tenant the request initiated from. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -173,7 +173,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a single chat (without its messages). This method supports federation. To access a chat, at least one chat member must belong to the tenant the request initiated from. + /// Retrieve a single chat (without its messages). This method supports federation. To access a chat, at least one chat member must belong to the tenant the request initiated from. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -250,7 +250,7 @@ public ChatItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a single chat (without its messages). This method supports federation. To access a chat, at least one chat member must belong to the tenant the request initiated from. + /// Retrieve a single chat (without its messages). This method supports federation. To access a chat, at least one chat member must belong to the tenant the request initiated from. This API is supported in the following national cloud deployments. /// public class ChatItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/HideForUser/HideForUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/HideForUser/HideForUserRequestBuilder.cs index 0d94250bdd6..e9e76310294 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/HideForUser/HideForUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/HideForUser/HideForUserRequestBuilder.cs @@ -28,7 +28,7 @@ public HideForUserRequestBuilder(Dictionary pathParameters, IReq public HideForUserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/hideForUser", rawUrl) { } /// - /// Hide a chat for a user. + /// Hide a chat for a user. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(HideForUserPostRequestBody body, Action - /// Hide a chat for a user. + /// Hide a chat for a user. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.cs index eebe8740e06..6746f4d1aac 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.cs @@ -42,7 +42,7 @@ public InstalledAppsRequestBuilder(Dictionary pathParameters, IR public InstalledAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/installedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all app installations within a chat. + /// List all app installations within a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TeamsAppInstallationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Install a teamsApp to the specified chat. + /// Install a teamsApp to the specified chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TeamsAppInstallation body, Act return await RequestAdapter.SendAsync(requestInfo, TeamsAppInstallation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all app installations within a chat. + /// List all app installations within a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Install a teamsApp to the specified chat. + /// Install a teamsApp to the specified chat. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public InstalledAppsRequestBuilder WithUrl(string rawUrl) { return new InstalledAppsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all app installations within a chat. + /// List all app installations within a chat. This API is supported in the following national cloud deployments. /// public class InstalledAppsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs index f8816eaa9e3..651a631cdbc 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs @@ -44,7 +44,7 @@ public TeamsAppInstallationItemRequestBuilder(Dictionary pathPar public TeamsAppInstallationItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/installedApps/{teamsAppInstallation%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Uninstall an app installed within a chat. + /// Uninstall an app installed within a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -64,7 +64,7 @@ public async Task DeleteAsync(Action - /// Get an app installed in a chat. + /// Get an app installed in a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -105,7 +105,7 @@ public async Task PatchAsync(TeamsAppInstallation body, Ac return await RequestAdapter.SendAsync(requestInfo, TeamsAppInstallation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Uninstall an app installed within a chat. + /// Uninstall an app installed within a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,7 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an app installed in a chat. + /// Get an app installed in a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -206,7 +206,7 @@ public TeamsAppInstallationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an app installed in a chat. + /// Get an app installed in a chat. This API is supported in the following national cloud deployments. /// public class TeamsAppInstallationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs index 340215628bc..c45cb84b944 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs @@ -28,7 +28,7 @@ public UpgradeRequestBuilder(Dictionary pathParameters, IRequest public UpgradeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/installedApps/{teamsAppInstallation%2Did}/upgrade", rawUrl) { } /// - /// Upgrade an app installation within a chat. + /// Upgrade an app installation within a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(UpgradePostRequestBody body, Action - /// Upgrade an app installation within a chat. + /// Upgrade an app installation within a chat. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.cs index 027da1b7ad3..160c352f361 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.cs @@ -28,7 +28,7 @@ public MarkChatReadForUserRequestBuilder(Dictionary pathParamete public MarkChatReadForUserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/markChatReadForUser", rawUrl) { } /// - /// Mark a chat as read for a user. + /// Mark a chat as read for a user. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(MarkChatReadForUserPostRequestBody body, Action - /// Mark a chat as read for a user. + /// Mark a chat as read for a user. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.cs index f88a42d9d11..1f2f8e1475a 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.cs @@ -28,7 +28,7 @@ public MarkChatUnreadForUserRequestBuilder(Dictionary pathParame public MarkChatUnreadForUserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/markChatUnreadForUser", rawUrl) { } /// - /// Mark a chat as unread for a user. + /// Mark a chat as unread for a user. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(MarkChatUnreadForUserPostRequestBody body, Action - /// Mark a chat as unread for a user. + /// Mark a chat as unread for a user. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Add/AddPostResponse.cs new file mode 100644 index 00000000000..95b7adde389 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Add/AddPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.Chats.Item.Members.Add { + public class AddPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AddPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AddPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Add/AddRequestBuilder.cs index 1fc9caa35f0..c29512ccd32 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Add/AddRequestBuilder.cs @@ -28,13 +28,36 @@ public AddRequestBuilder(Dictionary pathParameters, IRequestAdap public AddRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/members/add", rawUrl) { } /// - /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AddPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsAddPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(AddPostRequestBody body, Action(requestInfo, AddResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Add/AddResponse.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Add/AddResponse.cs index b715cdfb9d5..8b909ae179d 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Add/AddResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Add/AddResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.Chats.Item.Members.Add { - public class AddResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use addPostResponse instead.")] + public class AddResponse : AddPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index b813f543797..8e82631cc96 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -29,7 +29,7 @@ public ConversationMemberItemRequestBuilder(Dictionary pathParam public ConversationMemberItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/members/{conversationMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Remove a conversationMember from a chat. + /// Remove a conversationMember from a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve a conversationMember from a chat or channel. + /// Retrieve a conversationMember from a chat or channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(ConversationMember body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Remove a conversationMember from a chat. + /// Remove a conversationMember from a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a conversationMember from a chat or channel. + /// Retrieve a conversationMember from a chat or channel. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public ConversationMemberItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a conversationMember from a chat or channel. + /// Retrieve a conversationMember from a chat or channel. This API is supported in the following national cloud deployments. /// public class ConversationMemberItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/MembersRequestBuilder.cs index bb9af6dfc19..8cc0f8ec7ec 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/MembersRequestBuilder.cs @@ -47,7 +47,7 @@ public MembersRequestBuilder(Dictionary pathParameters, IRequest public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/members{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all conversation members in a chat or channel. + /// List all conversation members in a chat or channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a conversationMember to a chat. + /// Add a conversationMember to a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(ConversationMember body, Action< return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all conversation members in a chat or channel. + /// List all conversation members in a chat or channel. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a conversationMember to a chat. + /// Add a conversationMember to a chat. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public MembersRequestBuilder WithUrl(string rawUrl) { return new MembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all conversation members in a chat or channel. + /// List all conversation members in a chat or channel. This API is supported in the following national cloud deployments. /// public class MembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..56350db33bc --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.Chats.Item.Messages.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Delta/DeltaRequestBuilder.cs index 728b940add3..4c636c7e16f 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Delta/DeltaResponse.cs index bf6d451dd26..46ac6a66fbd 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.Chats.Item.Messages.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.cs index a532aeca067..d686035c041 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.cs @@ -78,7 +78,7 @@ public async Task DeleteAsync(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -143,7 +143,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -220,7 +220,7 @@ public ChatMessageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// public class ChatMessageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs index 33aab62e952..3cbfcb745a7 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -42,7 +42,7 @@ public HostedContentsRequestBuilder(Dictionary pathParameters, I public HostedContentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/messages/{chatMessage%2Did}/hostedContents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ChatMessageHostedContent b return await RequestAdapter.SendAsync(requestInfo, ChatMessageHostedContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public HostedContentsRequestBuilder WithUrl(string rawUrl) { return new HostedContentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// public class HostedContentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 59bf0c3f64e..152f12d30b7 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public ChatMessageHostedContentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..65e1e1dfa21 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.Chats.Item.Messages.Item.Replies.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs index 3e70a2d7f04..91280b7a566 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Delta/DeltaResponse.cs index 3eb45480228..8f40f85c1c1 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.Chats.Item.Messages.Item.Replies.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs index 694a195632b..9331850ae81 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs @@ -73,7 +73,7 @@ public async Task DeleteAsync(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -138,7 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -215,7 +215,7 @@ public ChatMessageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// public class ChatMessageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs index 12df94054c8..1e5821ab658 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -42,7 +42,7 @@ public HostedContentsRequestBuilder(Dictionary pathParameters, I public HostedContentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ChatMessageHostedContent b return await RequestAdapter.SendAsync(requestInfo, ChatMessageHostedContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public HostedContentsRequestBuilder WithUrl(string rawUrl) { return new HostedContentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// public class HostedContentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 235c344d6b7..814b5fcbea7 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public ChatMessageHostedContentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs index b85a6b04dfd..a82fa3eceab 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public SoftDeleteRequestBuilder(Dictionary pathParameters, IRequ public SoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/softDelete", rawUrl) { } /// - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index 147af157260..ba23aecdcbe 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public UndoSoftDeleteRequestBuilder(Dictionary pathParameters, I public UndoSoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/undoSoftDelete", rawUrl) { } /// - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs index e63861888bb..fdef386840c 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -47,7 +47,7 @@ public RepliesRequestBuilder(Dictionary pathParameters, IRequest public RepliesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public RepliesRequestBuilder WithUrl(string rawUrl) { return new RepliesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// public class RepliesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs index 4b303436ff8..96e3873dbfb 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public SoftDeleteRequestBuilder(Dictionary pathParameters, IRequ public SoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/messages/{chatMessage%2Did}/softDelete", rawUrl) { } /// - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index d3a5d04b3b8..25d00a01b06 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public UndoSoftDeleteRequestBuilder(Dictionary pathParameters, I public UndoSoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/messages/{chatMessage%2Did}/undoSoftDelete", rawUrl) { } /// - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/MessagesRequestBuilder.cs index 8db11f1d371..0ab2170c383 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/MessagesRequestBuilder.cs @@ -47,7 +47,7 @@ public MessagesRequestBuilder(Dictionary pathParameters, IReques public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/messages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of messages in a chat. This method supports federation. To list chat messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages in a chat. This method supports federation. To list chat messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified channel or a chat. - /// Find more info here + /// Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of messages in a chat. This method supports federation. To list chat messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages in a chat. This method supports federation. To list chat messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel or a chat. + /// Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public MessagesRequestBuilder WithUrl(string rawUrl) { return new MessagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of messages in a chat. This method supports federation. To list chat messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages in a chat. This method supports federation. To list chat messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// public class MessagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..a675aeb31ae --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.Chats.Item.PermissionGrants.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Delta/DeltaRequestBuilder.cs index 02b29fc638f..909557fa2b1 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Delta/DeltaResponse.cs index 8cb521cfaa1..a2867bc0a3f 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.Chats.Item.PermissionGrants.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs new file mode 100644 index 00000000000..fa695997992 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.Chats.Item.PermissionGrants.GetAvailableExtensionProperties { + public class GetAvailableExtensionPropertiesPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAvailableExtensionPropertiesPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index 40b793832aa..48b12c4baea 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -28,13 +28,36 @@ public GetAvailableExtensionPropertiesRequestBuilder(Dictionary public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/permissionGrants/getAvailableExtensionProperties", rawUrl) { } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetAvailableExtensionPropertiesPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetAvailabl return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index 4085bcd6025..06272b3e161 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.Chats.Item.PermissionGrants.GetAvailableExtensionProperties { - public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAvailableExtensionPropertiesPostResponse instead.")] + public class GetAvailableExtensionPropertiesResponse : GetAvailableExtensionPropertiesPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/GetByIds/GetByIdsPostResponse.cs new file mode 100644 index 00000000000..1dcaac20213 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/GetByIds/GetByIdsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.Chats.Item.PermissionGrants.GetByIds { + public class GetByIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetByIdsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs index 95159cdc9dc..7ff7df9568e 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetByIdsRequestBuilder(Dictionary pathParameters, IReques public GetByIdsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/permissionGrants/getByIds", rawUrl) { } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetByIdsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetByIdsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetByIdsPostRequestBody body, Acti return await RequestAdapter.SendAsync(requestInfo, GetByIdsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/GetByIds/GetByIdsResponse.cs index 9f742e2f2b0..c9b2776bf0c 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/GetByIds/GetByIdsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.Chats.Item.PermissionGrants.GetByIds { - public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getByIdsPostResponse instead.")] + public class GetByIdsResponse : GetByIdsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..b54fc03ccff --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.Chats.Item.PermissionGrants.Item.CheckMemberGroups { + public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index 5d3fe85f344..a6ef95bfb53 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index c34690dffed..6efcf46f0ae 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.Chats.Item.PermissionGrants.Item.CheckMemberGroups { - public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberGroupsPostResponse instead.")] + public class CheckMemberGroupsResponse : CheckMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..d0438d28be0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.Chats.Item.PermissionGrants.Item.CheckMemberObjects { + public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index 75a75762c9a..74a1427350e 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -34,6 +34,28 @@ public CheckMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAd /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action checkMemberObjects + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index 5399b5c7d9c..d36752ce8c3 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.Chats.Item.PermissionGrants.Item.CheckMemberObjects { - public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberObjectsPostResponse instead.")] + public class CheckMemberObjectsResponse : CheckMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..3e4dccd1975 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.Chats.Item.PermissionGrants.Item.GetMemberGroups { + public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index 68768d57259..7d4a285fba9 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberGroupsRequestBuilder(Dictionary pathParameters, public GetMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/getMemberGroups", rawUrl) { } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberGroupsPostRequestB return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs index 5ecad55e66b..87fd2df5077 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.Chats.Item.PermissionGrants.Item.GetMemberGroups { - public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberGroupsPostResponse instead.")] + public class GetMemberGroupsResponse : GetMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..f4e55950417 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.Chats.Item.PermissionGrants.Item.GetMemberObjects { + public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index 0eed99ec6d6..48f6b977084 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberObjectsRequestBuilder(Dictionary pathParameters, public GetMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/getMemberObjects", rawUrl) { } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberObjectsPostReques return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs index b3d95c99345..00339140dbc 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.Chats.Item.PermissionGrants.Item.GetMemberObjects { - public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberObjectsPostResponse instead.")] + public class GetMemberObjectsResponse : GetMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs index 595c3251c6d..a9e4b1d1d74 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs @@ -29,7 +29,7 @@ public RestoreRequestBuilder(Dictionary pathParameters, IRequest public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs index fee613118d5..483aa9bb065 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs @@ -62,7 +62,7 @@ public PermissionGrantsRequestBuilder(Dictionary pathParameters, public PermissionGrantsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/permissionGrants{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all resource-specific permission grants on the chat. This list specifies the Azure AD apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. + /// List all resource-specific permission grants on the chat. This list specifies the Azure AD apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -103,7 +103,7 @@ public async Task PostAsync(ResourceSpecificPer return await RequestAdapter.SendAsync(requestInfo, ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all resource-specific permission grants on the chat. This list specifies the Azure AD apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. + /// List all resource-specific permission grants on the chat. This list specifies the Azure AD apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,7 +164,7 @@ public PermissionGrantsRequestBuilder WithUrl(string rawUrl) { return new PermissionGrantsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all resource-specific permission grants on the chat. This list specifies the Azure AD apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. + /// List all resource-specific permission grants on the chat. This list specifies the Azure AD apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is supported in the following national cloud deployments. /// public class PermissionGrantsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs index 35e2bef50eb..01357e3f426 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -28,7 +28,7 @@ public ValidatePropertiesRequestBuilder(Dictionary pathParameter public ValidatePropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/permissionGrants/validateProperties", rawUrl) { } /// - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ValidatePropertiesPostRequestBody body, Action - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.cs index fca86993079..7dd9a9e58e1 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.cs @@ -34,7 +34,7 @@ public PinnedChatMessageInfoItemRequestBuilder(Dictionary pathPa public PinnedChatMessageInfoItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/pinnedMessages/{pinnedChatMessageInfo%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Unpin a message from a chat. + /// Unpin a message from a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -94,7 +94,7 @@ public async Task PatchAsync(PinnedChatMessageInfo body, return await RequestAdapter.SendAsync(requestInfo, PinnedChatMessageInfo.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Unpin a message from a chat. + /// Unpin a message from a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.cs index 3bfa45096ee..429472ef4a5 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.cs @@ -42,7 +42,7 @@ public PinnedMessagesRequestBuilder(Dictionary pathParameters, I public PinnedMessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/pinnedMessages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of pinnedChatMessages in a chat. + /// Get a list of pinnedChatMessages in a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, PinnedChatMessageInfoCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Pin a chat message in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can pin a chat message. + /// Pin a chat message in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can pin a chat message. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(PinnedChatMessageInfo body, A return await RequestAdapter.SendAsync(requestInfo, PinnedChatMessageInfo.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of pinnedChatMessages in a chat. + /// Get a list of pinnedChatMessages in a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Pin a chat message in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can pin a chat message. + /// Pin a chat message in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can pin a chat message. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PinnedMessagesRequestBuilder WithUrl(string rawUrl) { return new PinnedMessagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of pinnedChatMessages in a chat. + /// Get a list of pinnedChatMessages in a chat. This API is supported in the following national cloud deployments. /// public class PinnedMessagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs index 910c03daaa0..5ed22020b48 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs @@ -28,7 +28,7 @@ public SendActivityNotificationRequestBuilder(Dictionary pathPar public SendActivityNotificationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/sendActivityNotification", rawUrl) { } /// - /// Send an activity feed notification in scope of a chat. For more details about sending notifications and the requirements for doing so, see sending Teams activity notifications. + /// Send an activity feed notification in scope of a chat. For more details about sending notifications and the requirements for doing so, see sending Teams activity notifications. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SendActivityNotificationPostRequestBody body, Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send an activity feed notification in scope of a chat. For more details about sending notifications and the requirements for doing so, see sending Teams activity notifications. + /// Send an activity feed notification in scope of a chat. For more details about sending notifications and the requirements for doing so, see sending Teams activity notifications. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs index dba225ec34c..c375e75a89f 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs @@ -29,7 +29,7 @@ public TeamsAppRequestBuilder(Dictionary pathParameters, IReques public TeamsAppRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/tabs/{teamsTab%2Did}/teamsApp{?%24select,%24expand}", rawUrl) { } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -48,7 +48,7 @@ public TeamsAppRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.TeamsApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +81,7 @@ public TeamsAppRequestBuilder WithUrl(string rawUrl) { return new TeamsAppRequestBuilder(rawUrl, RequestAdapter); } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// public class TeamsAppRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs index f3a2be19682..07bc360949a 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs @@ -34,7 +34,7 @@ public TeamsTabItemRequestBuilder(Dictionary pathParameters, IRe public TeamsTabItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/tabs/{teamsTab%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Remove (unpin) a tab from the specified chat. + /// Remove (unpin) a tab from the specified chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of the specified tab in a chat. + /// Retrieve the properties and relationships of the specified tab in a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of the specified tab in a chat. This can be used to configure the content of the tab. + /// Update the properties of the specified tab in a chat. This can be used to configure the content of the tab. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(TeamsTab body, Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Remove (unpin) a tab from the specified chat. + /// Remove (unpin) a tab from the specified chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of the specified tab in a chat. + /// Retrieve the properties and relationships of the specified tab in a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of the specified tab in a chat. This can be used to configure the content of the tab. + /// Update the properties of the specified tab in a chat. This can be used to configure the content of the tab. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public TeamsTabItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of the specified tab in a chat. + /// Retrieve the properties and relationships of the specified tab in a chat. This API is supported in the following national cloud deployments. /// public class TeamsTabItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Tabs/TabsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Tabs/TabsRequestBuilder.cs index 7943e96bca8..da1dccaf284 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Tabs/TabsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Tabs/TabsRequestBuilder.cs @@ -42,7 +42,7 @@ public TabsRequestBuilder(Dictionary pathParameters, IRequestAda public TabsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/tabs{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of tabs in the specified chat. + /// Retrieve the list of tabs in the specified chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TeamsTabCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add (pin) a tab to the specified chat. The corresponding app must already be installed in the chat. + /// Add (pin) a tab to the specified chat. The corresponding app must already be installed in the chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TeamsTab body, Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of tabs in the specified chat. + /// Retrieve the list of tabs in the specified chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add (pin) a tab to the specified chat. The corresponding app must already be installed in the chat. + /// Add (pin) a tab to the specified chat. The corresponding app must already be installed in the chat. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public TabsRequestBuilder WithUrl(string rawUrl) { return new TabsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of tabs in the specified chat. + /// Retrieve the list of tabs in the specified chat. This API is supported in the following national cloud deployments. /// public class TabsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.cs index 9de12fee39b..a7c828cb814 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.cs @@ -28,7 +28,7 @@ public UnhideForUserRequestBuilder(Dictionary pathParameters, IR public UnhideForUserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/unhideForUser", rawUrl) { } /// - /// Unhide a chat for a user. + /// Unhide a chat for a user. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(UnhideForUserPostRequestBody body, Action - /// Unhide a chat for a user. + /// Unhide a chat for a user. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Me/CheckMemberGroups/CheckMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..4b472b1eaeb --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.CheckMemberGroups { + public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index 2eb89e4152f..89662c3e5dd 100644 --- a/src/Microsoft.Graph/Generated/Me/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Me/CheckMemberGroups/CheckMemberGroupsResponse.cs index 90330c61d6a..8d9eb9a2169 100644 --- a/src/Microsoft.Graph/Generated/Me/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.CheckMemberGroups { - public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberGroupsPostResponse instead.")] + public class CheckMemberGroupsResponse : CheckMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Me/CheckMemberObjects/CheckMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..eed6a6d3e05 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.CheckMemberObjects { + public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index 142205e5d3d..8ca5f4d8562 100644 --- a/src/Microsoft.Graph/Generated/Me/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -34,6 +34,28 @@ public CheckMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAd /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action checkMemberObjects + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Me/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Me/CheckMemberObjects/CheckMemberObjectsResponse.cs index 6b202442fa8..3f5768e72a8 100644 --- a/src/Microsoft.Graph/Generated/Me/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.CheckMemberObjects { - public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberObjectsPostResponse instead.")] + public class CheckMemberObjectsResponse : CheckMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/ContactFoldersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/ContactFoldersRequestBuilder.cs index 7d089484ff8..e9d1f66a86b 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/ContactFoldersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/ContactFoldersRequestBuilder.cs @@ -47,7 +47,7 @@ public ContactFoldersRequestBuilder(Dictionary pathParameters, I public ContactFoldersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/contactFolders{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the contact folder collection in the default Contacts folder of the signed-in user. + /// Get the contact folder collection in the default Contacts folder of the signed-in user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ContactFolderCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new contactFolder under the user's default contacts folder. You can also create a new contactfolder as a child of any specified contact folder. + /// Create a new contactFolder under the user's default contacts folder. You can also create a new contactfolder as a child of any specified contact folder. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(ContactFolder body, Action(requestInfo, ContactFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the contact folder collection in the default Contacts folder of the signed-in user. + /// Get the contact folder collection in the default Contacts folder of the signed-in user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new contactFolder under the user's default contacts folder. You can also create a new contactfolder as a child of any specified contact folder. + /// Create a new contactFolder under the user's default contacts folder. You can also create a new contactfolder as a child of any specified contact folder. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public ContactFoldersRequestBuilder WithUrl(string rawUrl) { return new ContactFoldersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the contact folder collection in the default Contacts folder of the signed-in user. + /// Get the contact folder collection in the default Contacts folder of the signed-in user. This API is supported in the following national cloud deployments. /// public class ContactFoldersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..ad6af08be6a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.ContactFolders.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ContactFolder.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Delta/DeltaRequestBuilder.cs index ca6d474ce8f..8e61efa2745 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/contactFolders/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. + /// Get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. + /// Get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. + /// Get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Delta/DeltaResponse.cs index db637328590..a54e09bbcb1 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.ContactFolders.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ContactFolder.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs index f2e5b8c83b1..f2d0d364624 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs @@ -47,7 +47,7 @@ public ChildFoldersRequestBuilder(Dictionary pathParameters, IRe public ChildFoldersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/contactFolders/{contactFolder%2Did}/childFolders{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a collection of child folders under the specified contact folder. + /// Get a collection of child folders under the specified contact folder. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ContactFolderCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new contactFolder as a child of a specified folder. You can also create a new contactFolder under the user's default contact folder. + /// Create a new contactFolder as a child of a specified folder. You can also create a new contactFolder under the user's default contact folder. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(ContactFolder body, Action(requestInfo, ContactFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a collection of child folders under the specified contact folder. + /// Get a collection of child folders under the specified contact folder. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new contactFolder as a child of a specified folder. You can also create a new contactFolder under the user's default contact folder. + /// Create a new contactFolder as a child of a specified folder. You can also create a new contactFolder under the user's default contact folder. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public ChildFoldersRequestBuilder WithUrl(string rawUrl) { return new ChildFoldersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a collection of child folders under the specified contact folder. + /// Get a collection of child folders under the specified contact folder. This API is supported in the following national cloud deployments. /// public class ChildFoldersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..259e4966fe9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.ContactFolders.Item.ChildFolders.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ContactFolder.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs index 8b7e62ac557..020cac98bac 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/contactFolders/{contactFolder%2Did}/childFolders/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. + /// Get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. + /// Get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. + /// Get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Delta/DeltaResponse.cs index 741ff596469..1a83933b660 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.ContactFolders.Item.ChildFolders.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ContactFolder.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/ContactsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/ContactsRequestBuilder.cs index d4d4a9b0f5f..c521d6ebce3 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/ContactsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/ContactsRequestBuilder.cs @@ -47,7 +47,7 @@ public ContactsRequestBuilder(Dictionary pathParameters, IReques public ContactsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/contactFolders/{contactFolder%2Did}/childFolders/{contactFolder%2Did1}/contacts{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a contact collection from the default Contacts folder of the signed-in user (.../me/contacts), or from the specified contact folder. + /// Get a contact collection from the default Contacts folder of the signed-in user (.../me/contacts), or from the specified contact folder. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ContactCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a contact to the root Contacts folder or to the contacts endpoint of another contact folder. + /// Add a contact to the root Contacts folder or to the contacts endpoint of another contact folder. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Contact body, Action(requestInfo, Contact.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a contact collection from the default Contacts folder of the signed-in user (.../me/contacts), or from the specified contact folder. + /// Get a contact collection from the default Contacts folder of the signed-in user (.../me/contacts), or from the specified contact folder. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a contact to the root Contacts folder or to the contacts endpoint of another contact folder. + /// Add a contact to the root Contacts folder or to the contacts endpoint of another contact folder. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public ContactsRequestBuilder WithUrl(string rawUrl) { return new ContactsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a contact collection from the default Contacts folder of the signed-in user (.../me/contacts), or from the specified contact folder. + /// Get a contact collection from the default Contacts folder of the signed-in user (.../me/contacts), or from the specified contact folder. This API is supported in the following national cloud deployments. /// public class ContactsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..1670731e6ea --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.ContactFolders.Item.ChildFolders.Item.Contacts.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Contact.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaRequestBuilder.cs index c9157483fd3..673c430bfa7 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/contactFolders/{contactFolder%2Did}/childFolders/{contactFolder%2Did1}/contacts/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. + /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. + /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. + /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaResponse.cs index 8da17568ffd..694d7dce20e 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.ContactFolders.Item.ChildFolders.Item.Contacts.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Contact.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ContactFolderItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ContactFolderItemRequestBuilder.cs index 8037cc42294..31445307d16 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ContactFolderItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ContactFolderItemRequestBuilder.cs @@ -39,7 +39,7 @@ public ContactFolderItemRequestBuilder(Dictionary pathParameters public ContactFolderItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/contactFolders/{contactFolder%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete contactFolder other than the default contactFolder. + /// Delete contactFolder other than the default contactFolder. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -59,7 +59,7 @@ public async Task DeleteAsync(Action - /// Get a contact folder by using the contact folder ID. There are two scenarios where an app can get another user's contact folder: + /// Get a contact folder by using the contact folder ID. There are two scenarios where an app can get another user's contact folder: This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -79,7 +79,7 @@ public async Task GetAsync(Action(requestInfo, ContactFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of contactfolder object. + /// Update the properties of contactfolder object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -101,7 +101,7 @@ public async Task PatchAsync(ContactFolder body, Action(requestInfo, ContactFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete contactFolder other than the default contactFolder. + /// Delete contactFolder other than the default contactFolder. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -125,7 +125,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a contact folder by using the contact folder ID. There are two scenarios where an app can get another user's contact folder: + /// Get a contact folder by using the contact folder ID. There are two scenarios where an app can get another user's contact folder: This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -151,7 +151,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of contactfolder object. + /// Update the properties of contactfolder object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -202,7 +202,7 @@ public ContactFolderItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a contact folder by using the contact folder ID. There are two scenarios where an app can get another user's contact folder: + /// Get a contact folder by using the contact folder ID. There are two scenarios where an app can get another user's contact folder: This API is supported in the following national cloud deployments. /// public class ContactFolderItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/ContactsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/ContactsRequestBuilder.cs index ad72c6c7b51..e03a7df3304 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/ContactsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/ContactsRequestBuilder.cs @@ -47,7 +47,7 @@ public ContactsRequestBuilder(Dictionary pathParameters, IReques public ContactsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/contactFolders/{contactFolder%2Did}/contacts{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a contact collection from the default Contacts folder of the signed-in user (.../me/contacts), or from the specified contact folder. + /// Get a contact collection from the default Contacts folder of the signed-in user (.../me/contacts), or from the specified contact folder. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ContactCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a contact to the root Contacts folder or to the contacts endpoint of another contact folder. + /// Add a contact to the root Contacts folder or to the contacts endpoint of another contact folder. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Contact body, Action(requestInfo, Contact.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a contact collection from the default Contacts folder of the signed-in user (.../me/contacts), or from the specified contact folder. + /// Get a contact collection from the default Contacts folder of the signed-in user (.../me/contacts), or from the specified contact folder. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a contact to the root Contacts folder or to the contacts endpoint of another contact folder. + /// Add a contact to the root Contacts folder or to the contacts endpoint of another contact folder. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public ContactsRequestBuilder WithUrl(string rawUrl) { return new ContactsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a contact collection from the default Contacts folder of the signed-in user (.../me/contacts), or from the specified contact folder. + /// Get a contact collection from the default Contacts folder of the signed-in user (.../me/contacts), or from the specified contact folder. This API is supported in the following national cloud deployments. /// public class ContactsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..aacdc59ca97 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.ContactFolders.Item.Contacts.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Contact.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Delta/DeltaRequestBuilder.cs index 0315ed26ffc..b36f2144ad5 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/contactFolders/{contactFolder%2Did}/contacts/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. + /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. + /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. + /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Delta/DeltaResponse.cs index 2c41973e110..67e0daed2e0 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.ContactFolders.Item.Contacts.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Contact.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/Contacts/ContactsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Contacts/ContactsRequestBuilder.cs index 2a5ba879edb..4a5a9f9f894 100644 --- a/src/Microsoft.Graph/Generated/Me/Contacts/ContactsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Contacts/ContactsRequestBuilder.cs @@ -47,7 +47,7 @@ public ContactsRequestBuilder(Dictionary pathParameters, IReques public ContactsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/contacts{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a contact collection from the default contacts folder of the signed-in user. There are two scenarios where an app can get contacts in another user's contact folder: + /// Get a contact collection from the default contacts folder of the signed-in user. There are two scenarios where an app can get contacts in another user's contact folder: This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ContactCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a contact to the root Contacts folder or to the contacts endpoint of another contact folder. + /// Add a contact to the root Contacts folder or to the contacts endpoint of another contact folder. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Contact body, Action(requestInfo, Contact.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a contact collection from the default contacts folder of the signed-in user. There are two scenarios where an app can get contacts in another user's contact folder: + /// Get a contact collection from the default contacts folder of the signed-in user. There are two scenarios where an app can get contacts in another user's contact folder: This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a contact to the root Contacts folder or to the contacts endpoint of another contact folder. + /// Add a contact to the root Contacts folder or to the contacts endpoint of another contact folder. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public ContactsRequestBuilder WithUrl(string rawUrl) { return new ContactsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a contact collection from the default contacts folder of the signed-in user. There are two scenarios where an app can get contacts in another user's contact folder: + /// Get a contact collection from the default contacts folder of the signed-in user. There are two scenarios where an app can get contacts in another user's contact folder: This API is supported in the following national cloud deployments. /// public class ContactsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Contacts/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Contacts/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..b588acd97f1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Contacts/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.Contacts.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Contact.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Contacts/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Contacts/Delta/DeltaRequestBuilder.cs index ffe46e3646c..67fb6883d92 100644 --- a/src/Microsoft.Graph/Generated/Me/Contacts/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Contacts/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/contacts/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. + /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. + /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. + /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Contacts/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/Contacts/Delta/DeltaResponse.cs index b2e12cb8286..d6d353cd015 100644 --- a/src/Microsoft.Graph/Generated/Me/Contacts/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Contacts/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.Contacts.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Contact.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/Contacts/Item/ContactItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Contacts/Item/ContactItemRequestBuilder.cs index 229528b1876..7e3c389bedb 100644 --- a/src/Microsoft.Graph/Generated/Me/Contacts/Item/ContactItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Contacts/Item/ContactItemRequestBuilder.cs @@ -39,7 +39,7 @@ public ContactItemRequestBuilder(Dictionary pathParameters, IReq public ContactItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/contacts/{contact%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a contact. + /// Delete a contact. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -59,7 +59,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a contact object. There are two scenarios where an app can get a contact in another user's contact folder: + /// Retrieve the properties and relationships of a contact object. There are two scenarios where an app can get a contact in another user's contact folder: This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -79,7 +79,7 @@ public async Task GetAsync(Action(requestInfo, Contact.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a contact object. + /// Update the properties of a contact object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -101,7 +101,7 @@ public async Task PatchAsync(Contact body, Action(requestInfo, Contact.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a contact. + /// Delete a contact. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -125,7 +125,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a contact object. There are two scenarios where an app can get a contact in another user's contact folder: + /// Retrieve the properties and relationships of a contact object. There are two scenarios where an app can get a contact in another user's contact folder: This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -151,7 +151,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a contact object. + /// Update the properties of a contact object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -202,7 +202,7 @@ public ContactItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a contact object. There are two scenarios where an app can get a contact in another user's contact folder: + /// Retrieve the properties and relationships of a contact object. There are two scenarios where an app can get a contact in another user's contact folder: This API is supported in the following national cloud deployments. /// public class ContactItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/CreatedObjects/CreatedObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CreatedObjects/CreatedObjectsRequestBuilder.cs index ceef06e0e90..1627aa9fa4c 100644 --- a/src/Microsoft.Graph/Generated/Me/CreatedObjects/CreatedObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CreatedObjects/CreatedObjectsRequestBuilder.cs @@ -47,7 +47,7 @@ public CreatedObjectsRequestBuilder(Dictionary pathParameters, I public CreatedObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/createdObjects{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of directory objects that were created by the user. This API returns only those directory objects that were created by a user who isn't in any administrator role; otherwise, it returns an empty object. + /// Get a list of directory objects that were created by the user. This API returns only those directory objects that were created by a user who isn't in any administrator role; otherwise, it returns an empty object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, DirectoryObjectCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of directory objects that were created by the user. This API returns only those directory objects that were created by a user who isn't in any administrator role; otherwise, it returns an empty object. + /// Get a list of directory objects that were created by the user. This API returns only those directory objects that were created by a user who isn't in any administrator role; otherwise, it returns an empty object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -100,7 +100,7 @@ public CreatedObjectsRequestBuilder WithUrl(string rawUrl) { return new CreatedObjectsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of directory objects that were created by the user. This API returns only those directory objects that were created by a user who isn't in any administrator role; otherwise, it returns an empty object. + /// Get a list of directory objects that were created by the user. This API returns only those directory objects that were created by a user who isn't in any administrator role; otherwise, it returns an empty object. This API is supported in the following national cloud deployments. /// public class CreatedObjectsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Drive/DriveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Drive/DriveRequestBuilder.cs index 7e309f8079f..537225b1ab8 100644 --- a/src/Microsoft.Graph/Generated/Me/Drive/DriveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Drive/DriveRequestBuilder.cs @@ -29,7 +29,7 @@ public DriveRequestBuilder(Dictionary pathParameters, IRequestAd public DriveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/drive{?%24select,%24expand}", rawUrl) { } /// - /// Retrieve the properties and relationships of a Drive resource. A Drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries. + /// Retrieve the properties and relationships of a Drive resource. A Drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public DriveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Drive.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the properties and relationships of a Drive resource. A Drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries. + /// Retrieve the properties and relationships of a Drive resource. A Drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -82,7 +82,7 @@ public DriveRequestBuilder WithUrl(string rawUrl) { return new DriveRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the properties and relationships of a Drive resource. A Drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries. + /// Retrieve the properties and relationships of a Drive resource. A Drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries. This API is supported in the following national cloud deployments. /// public class DriveRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Drives/DrivesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Drives/DrivesRequestBuilder.cs index 030e476ce66..3879f0eb7be 100644 --- a/src/Microsoft.Graph/Generated/Me/Drives/DrivesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Drives/DrivesRequestBuilder.cs @@ -42,7 +42,7 @@ public DrivesRequestBuilder(Dictionary pathParameters, IRequestA public DrivesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/drives{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of Drive resources available for a target User, Group, or Site. + /// Retrieve the list of Drive resources available for a target User, Group, or Site. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, DriveCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of Drive resources available for a target User, Group, or Site. + /// Retrieve the list of Drive resources available for a target User, Group, or Site. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public DrivesRequestBuilder WithUrl(string rawUrl) { return new DrivesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of Drive resources available for a target User, Group, or Site. + /// Retrieve the list of Drive resources available for a target User, Group, or Site. This API is supported in the following national cloud deployments. /// public class DrivesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs index 6ace23398f2..ca02f81003d 100644 --- a/src/Microsoft.Graph/Generated/Me/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs @@ -29,7 +29,7 @@ public LearningCourseActivityItemRequestBuilder(Dictionary pathP public LearningCourseActivityItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/employeeExperience/learningCourseActivities/{learningCourseActivity%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. + /// Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, LearningCourseActivity.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. + /// Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -82,7 +82,7 @@ public LearningCourseActivityItemRequestBuilder WithUrl(string rawUrl) { return new LearningCourseActivityItemRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. + /// Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. This API is supported in the following national cloud deployments. /// public class LearningCourseActivityItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs index c83058f24a7..bac7e617521 100644 --- a/src/Microsoft.Graph/Generated/Me/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs @@ -42,7 +42,7 @@ public LearningCourseActivitiesRequestBuilder(Dictionary pathPar public LearningCourseActivitiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/employeeExperience/learningCourseActivities{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the learningCourseActivity objects (assigned or self-initiated) for a user. + /// Get a list of the learningCourseActivity objects (assigned or self-initiated) for a user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, LearningCourseActivityCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the learningCourseActivity objects (assigned or self-initiated) for a user. + /// Get a list of the learningCourseActivity objects (assigned or self-initiated) for a user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public LearningCourseActivitiesRequestBuilder WithUrl(string rawUrl) { return new LearningCourseActivitiesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the learningCourseActivity objects (assigned or self-initiated) for a user. + /// Get a list of the learningCourseActivity objects (assigned or self-initiated) for a user. This API is supported in the following national cloud deployments. /// public class LearningCourseActivitiesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Events/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Events/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..6aced970b8a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Events/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.Events.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Events/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Delta/DeltaRequestBuilder.cs index 37d30579d41..cd4111359f6 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/events/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Events/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/Events/Delta/DeltaResponse.cs index 17a0514f689..583ad4c9a99 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.Events.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/Events/EventsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/EventsRequestBuilder.cs index 406270f9ab6..dc093b2e0cb 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/EventsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/EventsRequestBuilder.cs @@ -47,7 +47,7 @@ public EventsRequestBuilder(Dictionary pathParameters, IRequestA public EventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/events{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of event objects in the user's mailbox. The list contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. Currently, this operation returns event bodies in only HTML format. There are two scenarios where an app can get events in another user's calendar: + /// Get a list of event objects in the user's mailbox. The list contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. Currently, this operation returns event bodies in only HTML format. There are two scenarios where an app can get events in another user's calendar: This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create one or more multi-value extended properties in a new or existing instance of a resource. The following user resources are supported: As well as the following group resources: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. - /// Find more info here + /// Create one or more single-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task PostAsync(Event body, Action(requestInfo, Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of event objects in the user's mailbox. The list contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. Currently, this operation returns event bodies in only HTML format. There are two scenarios where an app can get events in another user's calendar: + /// Get a list of event objects in the user's mailbox. The list contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. Currently, this operation returns event bodies in only HTML format. There are two scenarios where an app can get events in another user's calendar: This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create one or more multi-value extended properties in a new or existing instance of a resource. The following user resources are supported: As well as the following group resources: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. + /// Create one or more single-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public EventsRequestBuilder WithUrl(string rawUrl) { return new EventsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of event objects in the user's mailbox. The list contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. Currently, this operation returns event bodies in only HTML format. There are two scenarios where an app can get events in another user's calendar: + /// Get a list of event objects in the user's mailbox. The list contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. Currently, this operation returns event bodies in only HTML format. There are two scenarios where an app can get events in another user's calendar: This API is supported in the following national cloud deployments. /// public class EventsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Accept/AcceptRequestBuilder.cs index 679d75628be..834ba58f3d6 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/events/{event%2Did}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/AttachmentsRequestBuilder.cs index 8d9e4ea8708..9455a35f280 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/events/{event%2Did}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 33a9cddc585..ada619e8824 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/events/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index c5126472067..86cde72fc97 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/events/{event%2Did}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Cancel/CancelRequestBuilder.cs index 7d002e1b5d0..45e00b5bfc1 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/events/{event%2Did}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Decline/DeclineRequestBuilder.cs index ae5e7aebe16..9a450103d78 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/events/{event%2Did}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs index 73b3a104b7d..e64eb7ccd5d 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/events/{event%2Did}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/EventItemRequestBuilder.cs index 7e46ec4a639..6da837e5637 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/EventItemRequestBuilder.cs @@ -84,7 +84,7 @@ public EventItemRequestBuilder(Dictionary pathParameters, IReque public EventItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/events/{event%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Removes the specified event from the containing calendar. If the event is a meeting, deleting the event on the organizer's calendar sends a cancellation message to the meeting attendees. + /// Removes the specified event from the containing calendar. If the event is a meeting, deleting the event on the organizer's calendar sends a cancellation message to the meeting attendees. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -104,7 +104,7 @@ public async Task DeleteAsync(Action - /// Get the properties and relationships of the specified event object. Currently, this operation returns event bodies in only HTML format. There are two scenarios where an app can get an event in another user's calendar: Since the event resource supports extensions, you can also use the GET operation to get custom properties and extension data in an event instance. + /// Get the properties and relationships of the specified event object. Currently, this operation returns event bodies in only HTML format. There are two scenarios where an app can get an event in another user's calendar: Since the event resource supports extensions, you can also use the GET operation to get custom properties and extension data in an event instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -124,7 +124,7 @@ public async Task GetAsync(Action(requestInfo, Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of the event object. + /// Update the properties of the event object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -146,7 +146,7 @@ public async Task PatchAsync(Event body, Action(requestInfo, Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Removes the specified event from the containing calendar. If the event is a meeting, deleting the event on the organizer's calendar sends a cancellation message to the meeting attendees. + /// Removes the specified event from the containing calendar. If the event is a meeting, deleting the event on the organizer's calendar sends a cancellation message to the meeting attendees. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,7 +170,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties and relationships of the specified event object. Currently, this operation returns event bodies in only HTML format. There are two scenarios where an app can get an event in another user's calendar: Since the event resource supports extensions, you can also use the GET operation to get custom properties and extension data in an event instance. + /// Get the properties and relationships of the specified event object. Currently, this operation returns event bodies in only HTML format. There are two scenarios where an app can get an event in another user's calendar: Since the event resource supports extensions, you can also use the GET operation to get custom properties and extension data in an event instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -196,7 +196,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of the event object. + /// Update the properties of the event object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -247,7 +247,7 @@ public EventItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the properties and relationships of the specified event object. Currently, this operation returns event bodies in only HTML format. There are two scenarios where an app can get an event in another user's calendar: Since the event resource supports extensions, you can also use the GET operation to get custom properties and extension data in an event instance. + /// Get the properties and relationships of the specified event object. Currently, this operation returns event bodies in only HTML format. There are two scenarios where an app can get an event in another user's calendar: Since the event resource supports extensions, you can also use the GET operation to get custom properties and extension data in an event instance. This API is supported in the following national cloud deployments. /// public class EventItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Extensions/ExtensionsRequestBuilder.cs index 4fb01edaaf5..04196aea40e 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/events/{event%2Did}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 0e40415e2a0..e05162309d5 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Forward/ForwardRequestBuilder.cs index 76f2bcc5f16..f34da2a53a3 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/events/{event%2Did}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..0689735490b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.Events.Item.Instances.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Delta/DeltaRequestBuilder.cs index e5b573ae67b..96d742a5be8 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/events/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Delta/DeltaResponse.cs index 7595bee0c0c..45f4d30727c 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.Events.Item.Instances.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index 7017e7ff806..7a3ac4b0c8e 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/events/{event%2Did}/instances/{event%2Did1}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 5783fca269f..a4fdef1a50a 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/events/{event%2Did}/instances/{event%2Did1}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 90cfff10ede..c7d857b5d2f 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/events/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 6efce5b7865..02ef1fd185c 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/events/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index 48153ca2d63..ec89064b8a6 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/events/{event%2Did}/instances/{event%2Did1}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index 4b5773ed2f3..1d90b5206b3 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/events/{event%2Did}/instances/{event%2Did1}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index 57dbaf5c2be..ee469bffae8 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/events/{event%2Did}/instances/{event%2Did1}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index de490d7454b..91a441960c4 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/events/{event%2Did}/instances/{event%2Did1}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 13ca0666d07..c4c18dc1fd8 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index 61c01df5f1b..ceb78289b95 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/events/{event%2Did}/instances/{event%2Did1}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 60739e1c43c..26c98d423f5 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/events/{event%2Did}/instances/{event%2Did1}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 86211dfdac7..ae017b16d6b 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/events/{event%2Did}/instances/{event%2Did1}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index ff723ee8dd6..9a602a5cadb 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/events/{event%2Did}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 9f081316d0f..986f2c902bf 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/events/{event%2Did}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/ExportPersonalData/ExportPersonalDataRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ExportPersonalData/ExportPersonalDataRequestBuilder.cs index bcd15ed4d89..d0143e4c184 100644 --- a/src/Microsoft.Graph/Generated/Me/ExportPersonalData/ExportPersonalDataRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ExportPersonalData/ExportPersonalDataRequestBuilder.cs @@ -28,7 +28,7 @@ public ExportPersonalDataRequestBuilder(Dictionary pathParameter public ExportPersonalDataRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/exportPersonalData", rawUrl) { } /// - /// Submit a data policy operation request from a company administrator or an application to export an organizational user's data. This data includes the user's data stored in OneDrive and their activity reports. For more guidance about exporting data while complying with regulations, see Data Subject Requests and the GDPR and CCPA. + /// Submit a data policy operation request from a company administrator or an application to export an organizational user's data. This data includes the user's data stored in OneDrive and their activity reports. For more guidance about exporting data while complying with regulations, see Data Subject Requests and the GDPR and CCPA. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ExportPersonalDataPostRequestBody body, Action - /// Submit a data policy operation request from a company administrator or an application to export an organizational user's data. This data includes the user's data stored in OneDrive and their activity reports. For more guidance about exporting data while complying with regulations, see Data Subject Requests and the GDPR and CCPA. + /// Submit a data policy operation request from a company administrator or an application to export an organizational user's data. This data includes the user's data stored in OneDrive and their activity reports. For more guidance about exporting data while complying with regulations, see Data Subject Requests and the GDPR and CCPA. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/FindMeetingTimes/FindMeetingTimesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/FindMeetingTimes/FindMeetingTimesRequestBuilder.cs index cc5334bd65f..ac4728a17e7 100644 --- a/src/Microsoft.Graph/Generated/Me/FindMeetingTimes/FindMeetingTimesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/FindMeetingTimes/FindMeetingTimesRequestBuilder.cs @@ -29,7 +29,7 @@ public FindMeetingTimesRequestBuilder(Dictionary pathParameters, public FindMeetingTimesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/findMeetingTimes", rawUrl) { } /// - /// Suggest meeting times and locations based on organizer and attendee availability, and time or location constraints specified as parameters. If findMeetingTimes cannot return any meeting suggestions, the response would indicate a reason in the emptySuggestionsReason property. Based on this value, you can better adjust the parameters and call findMeetingTimes again. The algorithm used to suggest meeting times and locations undergoes fine-tuning from time to time. In scenarios like test environments where the input parameters and calendar data remain static, expect that the suggested results may differ over time. + /// Suggest meeting times and locations based on organizer and attendee availability, and time or location constraints specified as parameters. If findMeetingTimes cannot return any meeting suggestions, the response would indicate a reason in the emptySuggestionsReason property. Based on this value, you can better adjust the parameters and call findMeetingTimes again. The algorithm used to suggest meeting times and locations undergoes fine-tuning from time to time. In scenarios like test environments where the input parameters and calendar data remain static, expect that the suggested results may differ over time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(FindMeetingTimesPostRe return await RequestAdapter.SendAsync(requestInfo, MeetingTimeSuggestionsResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Suggest meeting times and locations based on organizer and attendee availability, and time or location constraints specified as parameters. If findMeetingTimes cannot return any meeting suggestions, the response would indicate a reason in the emptySuggestionsReason property. Based on this value, you can better adjust the parameters and call findMeetingTimes again. The algorithm used to suggest meeting times and locations undergoes fine-tuning from time to time. In scenarios like test environments where the input parameters and calendar data remain static, expect that the suggested results may differ over time. + /// Suggest meeting times and locations based on organizer and attendee availability, and time or location constraints specified as parameters. If findMeetingTimes cannot return any meeting suggestions, the response would indicate a reason in the emptySuggestionsReason property. Based on this value, you can better adjust the parameters and call findMeetingTimes again. The algorithm used to suggest meeting times and locations undergoes fine-tuning from time to time. In scenarios like test environments where the input parameters and calendar data remain static, expect that the suggested results may differ over time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/FollowedSites/FollowedSitesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/FollowedSites/FollowedSitesRequestBuilder.cs index 77f813e9288..d01aed71503 100644 --- a/src/Microsoft.Graph/Generated/Me/FollowedSites/FollowedSitesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/FollowedSites/FollowedSitesRequestBuilder.cs @@ -42,7 +42,7 @@ public FollowedSitesRequestBuilder(Dictionary pathParameters, IR public FollowedSitesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/followedSites{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List the sites that have been followed by the signed in user. + /// List the sites that have been followed by the signed in user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, SiteCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List the sites that have been followed by the signed in user. + /// List the sites that have been followed by the signed in user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public FollowedSitesRequestBuilder WithUrl(string rawUrl) { return new FollowedSitesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List the sites that have been followed by the signed in user. + /// List the sites that have been followed by the signed in user. This API is supported in the following national cloud deployments. /// public class FollowedSitesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/GetMailTips/GetMailTipsPostResponse.cs b/src/Microsoft.Graph/Generated/Me/GetMailTips/GetMailTipsPostResponse.cs new file mode 100644 index 00000000000..3670f99b47a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/GetMailTips/GetMailTipsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.GetMailTips { + public class GetMailTipsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMailTipsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMailTipsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(MailTips.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/GetMailTips/GetMailTipsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/GetMailTips/GetMailTipsRequestBuilder.cs index 72947477030..de6b6dcd99b 100644 --- a/src/Microsoft.Graph/Generated/Me/GetMailTips/GetMailTipsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/GetMailTips/GetMailTipsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMailTipsRequestBuilder(Dictionary pathParameters, IReq public GetMailTipsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/getMailTips", rawUrl) { } /// - /// Get the MailTips of one or more recipients as available to the signed-in user. Note that by making a POST call to the getMailTips action, you can request specific types of MailTips tobe returned for more than one recipient at one time. The requested MailTips are returned in a mailTips collection. + /// Get the MailTips of one or more recipients as available to the signed-in user. Note that by making a POST call to the getMailTips action, you can request specific types of MailTips tobe returned for more than one recipient at one time. The requested MailTips are returned in a mailTips collection. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMailTipsPostResponseAsync(GetMailTipsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMailTipsPostResponseAsync(GetMailTipsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMailTipsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the MailTips of one or more recipients as available to the signed-in user. Note that by making a POST call to the getMailTips action, you can request specific types of MailTips tobe returned for more than one recipient at one time. The requested MailTips are returned in a mailTips collection. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMailTipsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMailTipsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMailTipsPostRequestBody body return await RequestAdapter.SendAsync(requestInfo, GetMailTipsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the MailTips of one or more recipients as available to the signed-in user. Note that by making a POST call to the getMailTips action, you can request specific types of MailTips tobe returned for more than one recipient at one time. The requested MailTips are returned in a mailTips collection. + /// Get the MailTips of one or more recipients as available to the signed-in user. Note that by making a POST call to the getMailTips action, you can request specific types of MailTips tobe returned for more than one recipient at one time. The requested MailTips are returned in a mailTips collection. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/GetMailTips/GetMailTipsResponse.cs b/src/Microsoft.Graph/Generated/Me/GetMailTips/GetMailTipsResponse.cs index d7496a52e7c..edb74b83be4 100644 --- a/src/Microsoft.Graph/Generated/Me/GetMailTips/GetMailTipsResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/GetMailTips/GetMailTipsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.GetMailTips { - public class GetMailTipsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMailTipsPostResponse instead.")] + public class GetMailTipsResponse : GetMailTipsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMailTipsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(MailTips.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesGetResponse.cs b/src/Microsoft.Graph/Generated/Me/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesGetResponse.cs new file mode 100644 index 00000000000..ef6636a4741 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.GetManagedAppDiagnosticStatuses { + public class GetManagedAppDiagnosticStatusesGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetManagedAppDiagnosticStatusesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetManagedAppDiagnosticStatusesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ManagedAppDiagnosticStatus.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesRequestBuilder.cs index 682ed618a54..d374b5bdece 100644 --- a/src/Microsoft.Graph/Generated/Me/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesRequestBuilder.cs @@ -33,6 +33,26 @@ public GetManagedAppDiagnosticStatusesRequestBuilder(string rawUrl, IRequestAdap /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetManagedAppDiagnosticStatusesGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetManagedAppDiagnosticStatusesGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetManagedAppDiagnosticStatusesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Gets diagnostics validation status for a given user. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetManagedAppDiagnosticStatusesGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Me/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesResponse.cs b/src/Microsoft.Graph/Generated/Me/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesResponse.cs index 0c0d8be6336..30a869d7981 100644 --- a/src/Microsoft.Graph/Generated/Me/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.GetManagedAppDiagnosticStatuses { - public class GetManagedAppDiagnosticStatusesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getManagedAppDiagnosticStatusesGetResponse instead.")] + public class GetManagedAppDiagnosticStatusesResponse : GetManagedAppDiagnosticStatusesGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetManagedAppDiagnosticStatusesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ManagedAppDiagnosticStatus.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/GetManagedAppPolicies/GetManagedAppPoliciesGetResponse.cs b/src/Microsoft.Graph/Generated/Me/GetManagedAppPolicies/GetManagedAppPoliciesGetResponse.cs new file mode 100644 index 00000000000..12b9e3cce96 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/GetManagedAppPolicies/GetManagedAppPoliciesGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.GetManagedAppPolicies { + public class GetManagedAppPoliciesGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetManagedAppPoliciesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetManagedAppPoliciesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ManagedAppPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/GetManagedAppPolicies/GetManagedAppPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/GetManagedAppPolicies/GetManagedAppPoliciesRequestBuilder.cs index 641c194d456..28d7ed3bbae 100644 --- a/src/Microsoft.Graph/Generated/Me/GetManagedAppPolicies/GetManagedAppPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/GetManagedAppPolicies/GetManagedAppPoliciesRequestBuilder.cs @@ -33,6 +33,26 @@ public GetManagedAppPoliciesRequestBuilder(string rawUrl, IRequestAdapter reques /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetManagedAppPoliciesGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetManagedAppPoliciesGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetManagedAppPoliciesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Gets app restrictions for a given user. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetManagedAppPoliciesGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Me/GetManagedAppPolicies/GetManagedAppPoliciesResponse.cs b/src/Microsoft.Graph/Generated/Me/GetManagedAppPolicies/GetManagedAppPoliciesResponse.cs index bea43e89aad..58b44c749fa 100644 --- a/src/Microsoft.Graph/Generated/Me/GetManagedAppPolicies/GetManagedAppPoliciesResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/GetManagedAppPolicies/GetManagedAppPoliciesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.GetManagedAppPolicies { - public class GetManagedAppPoliciesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getManagedAppPoliciesGetResponse instead.")] + public class GetManagedAppPoliciesResponse : GetManagedAppPoliciesGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetManagedAppPoliciesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ManagedAppPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresGetResponse.cs b/src/Microsoft.Graph/Generated/Me/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresGetResponse.cs new file mode 100644 index 00000000000..05e8a0bd204 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.GetManagedDevicesWithAppFailures { + public class GetManagedDevicesWithAppFailuresGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetManagedDevicesWithAppFailuresGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetManagedDevicesWithAppFailuresGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresRequestBuilder.cs index 41cb5d41cf1..0c1cc400390 100644 --- a/src/Microsoft.Graph/Generated/Me/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresRequestBuilder.cs @@ -33,6 +33,26 @@ public GetManagedDevicesWithAppFailuresRequestBuilder(string rawUrl, IRequestAda /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetManagedDevicesWithAppFailuresGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetManagedDevicesWithAppFailuresGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetManagedDevicesWithAppFailuresGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Retrieves the list of devices with failed apps + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetManagedDevicesWithAppFailuresGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Me/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresResponse.cs b/src/Microsoft.Graph/Generated/Me/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresResponse.cs index 4b8970831d9..25889b29990 100644 --- a/src/Microsoft.Graph/Generated/Me/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.GetManagedDevicesWithAppFailures { - public class GetManagedDevicesWithAppFailuresResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getManagedDevicesWithAppFailuresGetResponse instead.")] + public class GetManagedDevicesWithAppFailuresResponse : GetManagedDevicesWithAppFailuresGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetManagedDevicesWithAppFailuresResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Me/GetMemberGroups/GetMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..8bf90cdf5aa --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.GetMemberGroups { + public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index a3d18ebc464..ab345667eb9 100644 --- a/src/Microsoft.Graph/Generated/Me/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberGroupsRequestBuilder(Dictionary pathParameters, public GetMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/getMemberGroups", rawUrl) { } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberGroupsPostRequestB return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Me/GetMemberGroups/GetMemberGroupsResponse.cs index c26548db19d..c6c2043deeb 100644 --- a/src/Microsoft.Graph/Generated/Me/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.GetMemberGroups { - public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberGroupsPostResponse instead.")] + public class GetMemberGroupsResponse : GetMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Me/GetMemberObjects/GetMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..844a3b1a53e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.GetMemberObjects { + public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index 3aa8691ca1c..11203d74ef4 100644 --- a/src/Microsoft.Graph/Generated/Me/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberObjectsRequestBuilder(Dictionary pathParameters, public GetMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/getMemberObjects", rawUrl) { } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberObjectsPostReques return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Me/GetMemberObjects/GetMemberObjectsResponse.cs index b9ac479d4ec..f991261d150 100644 --- a/src/Microsoft.Graph/Generated/Me/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.GetMemberObjects { - public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberObjectsPostResponse instead.")] + public class GetMemberObjectsResponse : GetMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/InferenceClassification/Overrides/Item/InferenceClassificationOverrideItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/InferenceClassification/Overrides/Item/InferenceClassificationOverrideItemRequestBuilder.cs index 73249f5c755..33713111d55 100644 --- a/src/Microsoft.Graph/Generated/Me/InferenceClassification/Overrides/Item/InferenceClassificationOverrideItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/InferenceClassification/Overrides/Item/InferenceClassificationOverrideItemRequestBuilder.cs @@ -29,7 +29,7 @@ public InferenceClassificationOverrideItemRequestBuilder(Dictionary - /// Delete an override specified by its ID. + /// Delete an override specified by its ID. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, InferenceClassificationOverride.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Change the classifyAs field of an override as specified. You cannot use PATCH to change any other fields in an inferenceClassificationOverride instance. If an override exists for a sender and the sender changes his/her display name, you can use POST to force an update to the name field in the existing override. If an override exists for a sender and the sender changes his/her SMTP address, deleting the existing override and creating a new one withthe new SMTP address is the only way to 'update' the override for this sender. + /// Change the classifyAs field of an override as specified. You cannot use PATCH to change any other fields in an inferenceClassificationOverride instance. If an override exists for a sender and the sender changes his/her display name, you can use POST to force an update to the name field in the existing override. If an override exists for a sender and the sender changes his/her SMTP address, deleting the existing override and creating a new one withthe new SMTP address is the only way to 'update' the override for this sender. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -90,7 +90,7 @@ public async Task PatchAsync(InferenceClassific return await RequestAdapter.SendAsync(requestInfo, InferenceClassificationOverride.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an override specified by its ID. + /// Delete an override specified by its ID. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Change the classifyAs field of an override as specified. You cannot use PATCH to change any other fields in an inferenceClassificationOverride instance. If an override exists for a sender and the sender changes his/her display name, you can use POST to force an update to the name field in the existing override. If an override exists for a sender and the sender changes his/her SMTP address, deleting the existing override and creating a new one withthe new SMTP address is the only way to 'update' the override for this sender. + /// Change the classifyAs field of an override as specified. You cannot use PATCH to change any other fields in an inferenceClassificationOverride instance. If an override exists for a sender and the sender changes his/her display name, you can use POST to force an update to the name field in the existing override. If an override exists for a sender and the sender changes his/her SMTP address, deleting the existing override and creating a new one withthe new SMTP address is the only way to 'update' the override for this sender. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/InferenceClassification/Overrides/OverridesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/InferenceClassification/Overrides/OverridesRequestBuilder.cs index 633e001e05d..dd11a1c2634 100644 --- a/src/Microsoft.Graph/Generated/Me/InferenceClassification/Overrides/OverridesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/InferenceClassification/Overrides/OverridesRequestBuilder.cs @@ -42,7 +42,7 @@ public OverridesRequestBuilder(Dictionary pathParameters, IReque public OverridesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/inferenceClassification/overrides{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get the overrides that a user has set up to always classify messages from certain senders in specific ways. Each override corresponds to an SMTP address of a sender. Initially, a user does not have any overrides. + /// Get the overrides that a user has set up to always classify messages from certain senders in specific ways. Each override corresponds to an SMTP address of a sender. Initially, a user does not have any overrides. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Ac return await RequestAdapter.SendAsync(requestInfo, InferenceClassificationOverrideCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an override for a sender identified by an SMTP address. Future messages from that SMTP address will be consistently classifiedas specified in the override. Note + /// Create an override for a sender identified by an SMTP address. Future messages from that SMTP address will be consistently classifiedas specified in the override. Note This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(InferenceClassifica return await RequestAdapter.SendAsync(requestInfo, InferenceClassificationOverride.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the overrides that a user has set up to always classify messages from certain senders in specific ways. Each override corresponds to an SMTP address of a sender. Initially, a user does not have any overrides. + /// Get the overrides that a user has set up to always classify messages from certain senders in specific ways. Each override corresponds to an SMTP address of a sender. Initially, a user does not have any overrides. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an override for a sender identified by an SMTP address. Future messages from that SMTP address will be consistently classifiedas specified in the override. Note + /// Create an override for a sender identified by an SMTP address. Future messages from that SMTP address will be consistently classifiedas specified in the override. Note This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public OverridesRequestBuilder WithUrl(string rawUrl) { return new OverridesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the overrides that a user has set up to always classify messages from certain senders in specific ways. Each override corresponds to an SMTP address of a sender. Initially, a user does not have any overrides. + /// Get the overrides that a user has set up to always classify messages from certain senders in specific ways. Each override corresponds to an SMTP address of a sender. Initially, a user does not have any overrides. This API is supported in the following national cloud deployments. /// public class OverridesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Insights/Shared/SharedRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Insights/Shared/SharedRequestBuilder.cs index 15d2d32583f..f31889a4bdd 100644 --- a/src/Microsoft.Graph/Generated/Me/Insights/Shared/SharedRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Insights/Shared/SharedRequestBuilder.cs @@ -42,7 +42,7 @@ public SharedRequestBuilder(Dictionary pathParameters, IRequestA public SharedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/insights/shared{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Calculated insight that includes the list of documents shared with a user. This insight includes documents hosted on OneDrive/SharePoint in the user's Microsoft 365 tenant that are shared with the user, and documents that are attached as files and sent to the user. + /// Calculated insight that includes the list of documents shared with a user. This insight includes documents hosted on OneDrive/SharePoint in the user's Microsoft 365 tenant that are shared with the user, and documents that are attached as files and sent to the user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(SharedInsight body, Action(requestInfo, SharedInsight.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Calculated insight that includes the list of documents shared with a user. This insight includes documents hosted on OneDrive/SharePoint in the user's Microsoft 365 tenant that are shared with the user, and documents that are attached as files and sent to the user. + /// Calculated insight that includes the list of documents shared with a user. This insight includes documents hosted on OneDrive/SharePoint in the user's Microsoft 365 tenant that are shared with the user, and documents that are attached as files and sent to the user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SharedRequestBuilder WithUrl(string rawUrl) { return new SharedRequestBuilder(rawUrl, RequestAdapter); } /// - /// Calculated insight that includes the list of documents shared with a user. This insight includes documents hosted on OneDrive/SharePoint in the user's Microsoft 365 tenant that are shared with the user, and documents that are attached as files and sent to the user. + /// Calculated insight that includes the list of documents shared with a user. This insight includes documents hosted on OneDrive/SharePoint in the user's Microsoft 365 tenant that are shared with the user, and documents that are attached as files and sent to the user. This API is supported in the following national cloud deployments. /// public class SharedRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Insights/Trending/TrendingRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Insights/Trending/TrendingRequestBuilder.cs index 5f248967c02..7bf639d3d41 100644 --- a/src/Microsoft.Graph/Generated/Me/Insights/Trending/TrendingRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Insights/Trending/TrendingRequestBuilder.cs @@ -42,7 +42,7 @@ public TrendingRequestBuilder(Dictionary pathParameters, IReques public TrendingRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/insights/trending{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Calculated insight that includes a list of documents trending around the user. + /// Calculated insight that includes a list of documents trending around the user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Trending.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Calculated insight that includes a list of documents trending around the user. + /// Calculated insight that includes a list of documents trending around the user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public TrendingRequestBuilder WithUrl(string rawUrl) { return new TrendingRequestBuilder(rawUrl, RequestAdapter); } /// - /// Calculated insight that includes a list of documents trending around the user. + /// Calculated insight that includes a list of documents trending around the user. This API is supported in the following national cloud deployments. /// public class TrendingRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Insights/Used/UsedRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Insights/Used/UsedRequestBuilder.cs index 3c6b7d72f81..d6f11022670 100644 --- a/src/Microsoft.Graph/Generated/Me/Insights/Used/UsedRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Insights/Used/UsedRequestBuilder.cs @@ -42,7 +42,7 @@ public UsedRequestBuilder(Dictionary pathParameters, IRequestAda public UsedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/insights/used{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Calculate and list the documents that a user has viewed or modified. For the signed-in user:- This method includes documents that the user has modified; see example 1. - Using an $orderby query parameter on the lastAccessedDateTime property returns the most recently viewed documents that the user might or might not not have modified; see example 2. For other users, this method includes only documents that the user has modified. + /// Calculate and list the documents that a user has viewed or modified. For the signed-in user:- This method includes documents that the user has modified; see example 1. - Using an $orderby query parameter on the lastAccessedDateTime property returns the most recently viewed documents that the user might or might not not have modified; see example 2. For other users, this method includes only documents that the user has modified. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(UsedInsight body, Action(requestInfo, UsedInsight.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Calculate and list the documents that a user has viewed or modified. For the signed-in user:- This method includes documents that the user has modified; see example 1. - Using an $orderby query parameter on the lastAccessedDateTime property returns the most recently viewed documents that the user might or might not not have modified; see example 2. For other users, this method includes only documents that the user has modified. + /// Calculate and list the documents that a user has viewed or modified. For the signed-in user:- This method includes documents that the user has modified; see example 1. - Using an $orderby query parameter on the lastAccessedDateTime property returns the most recently viewed documents that the user might or might not not have modified; see example 2. For other users, this method includes only documents that the user has modified. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public UsedRequestBuilder WithUrl(string rawUrl) { return new UsedRequestBuilder(rawUrl, RequestAdapter); } /// - /// Calculate and list the documents that a user has viewed or modified. For the signed-in user:- This method includes documents that the user has modified; see example 1. - Using an $orderby query parameter on the lastAccessedDateTime property returns the most recently viewed documents that the user might or might not not have modified; see example 2. For other users, this method includes only documents that the user has modified. + /// Calculate and list the documents that a user has viewed or modified. For the signed-in user:- This method includes documents that the user has modified; see example 1. - Using an $orderby query parameter on the lastAccessedDateTime property returns the most recently viewed documents that the user might or might not not have modified; see example 2. For other users, this method includes only documents that the user has modified. This API is supported in the following national cloud deployments. /// public class UsedRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/GetAllMessages/GetAllMessagesGetResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/GetAllMessages/GetAllMessagesGetResponse.cs new file mode 100644 index 00000000000..1a510a5d06e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/GetAllMessages/GetAllMessagesGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.JoinedTeams.GetAllMessages { + public class GetAllMessagesGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAllMessagesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAllMessagesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/GetAllMessages/GetAllMessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/GetAllMessages/GetAllMessagesRequestBuilder.cs index 91d44367c62..666cc4059f9 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/GetAllMessages/GetAllMessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/GetAllMessages/GetAllMessagesRequestBuilder.cs @@ -33,6 +33,26 @@ public GetAllMessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetAllMessagesGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetAllMessagesGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAllMessagesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getAllMessages + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetAllMessagesGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/GetAllMessages/GetAllMessagesResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/GetAllMessages/GetAllMessagesResponse.cs index 3b2fb3a073e..4845eae178c 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/GetAllMessages/GetAllMessagesResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/GetAllMessages/GetAllMessagesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.JoinedTeams.GetAllMessages { - public class GetAllMessagesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAllMessagesGetResponse instead.")] + public class GetAllMessagesResponse : GetAllMessagesGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAllMessagesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/AllChannels/AllChannelsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/AllChannels/AllChannelsRequestBuilder.cs index 0a4db8dd184..f8fa34e1b65 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/AllChannels/AllChannelsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/AllChannels/AllChannelsRequestBuilder.cs @@ -42,7 +42,7 @@ public AllChannelsRequestBuilder(Dictionary pathParameters, IReq public AllChannelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/allChannels{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of channels either in this team or shared with this team (incoming channels). + /// Get the list of channels either in this team or shared with this team (incoming channels). This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ChannelCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of channels either in this team or shared with this team (incoming channels). + /// Get the list of channels either in this team or shared with this team (incoming channels). This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public AllChannelsRequestBuilder WithUrl(string rawUrl) { return new AllChannelsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of channels either in this team or shared with this team (incoming channels). + /// Get the list of channels either in this team or shared with this team (incoming channels). This API is supported in the following national cloud deployments. /// public class AllChannelsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Archive/ArchiveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Archive/ArchiveRequestBuilder.cs index ae83a0bf8e2..f222512ff25 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Archive/ArchiveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Archive/ArchiveRequestBuilder.cs @@ -28,7 +28,7 @@ public ArchiveRequestBuilder(Dictionary pathParameters, IRequest public ArchiveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/archive", rawUrl) { } /// - /// Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. + /// Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ArchivePostRequestBody body, Action - /// Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. + /// Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/ChannelsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/ChannelsRequestBuilder.cs index eb79ef2b503..d2a60bea615 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/ChannelsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/ChannelsRequestBuilder.cs @@ -47,7 +47,7 @@ public ChannelsRequestBuilder(Dictionary pathParameters, IReques public ChannelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/channels{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of channels in this team. + /// Retrieve the list of channels in this team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ChannelCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This is the name that appears to the user in Microsoft Teams. If you're creating a private channel, you can add a maximum of 200 members. + /// Create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This is the name that appears to the user in Microsoft Teams. If you're creating a private channel, you can add a maximum of 200 members. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Channel body, Action(requestInfo, Channel.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of channels in this team. + /// Retrieve the list of channels in this team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This is the name that appears to the user in Microsoft Teams. If you're creating a private channel, you can add a maximum of 200 members. + /// Create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This is the name that appears to the user in Microsoft Teams. If you're creating a private channel, you can add a maximum of 200 members. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public ChannelsRequestBuilder WithUrl(string rawUrl) { return new ChannelsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of channels in this team. + /// Retrieve the list of channels in this team. This API is supported in the following national cloud deployments. /// public class ChannelsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesGetResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesGetResponse.cs new file mode 100644 index 00000000000..dcd8d2e3c68 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.JoinedTeams.Item.Channels.GetAllMessages { + public class GetAllMessagesGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAllMessagesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAllMessagesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs index 6f193881abb..af5bab1a359 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs @@ -33,6 +33,26 @@ public GetAllMessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetAllMessagesGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetAllMessagesGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAllMessagesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getAllMessages + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetAllMessagesGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesResponse.cs index 077c6ccd87c..094eaf2e03a 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.JoinedTeams.Item.Channels.GetAllMessages { - public class GetAllMessagesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAllMessagesGetResponse instead.")] + public class GetAllMessagesResponse : GetAllMessagesGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAllMessagesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/ChannelItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/ChannelItemRequestBuilder.cs index 8fbed3e8dd6..51201201fc9 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/ChannelItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/ChannelItemRequestBuilder.cs @@ -74,7 +74,7 @@ public ChannelItemRequestBuilder(Dictionary pathParameters, IReq public ChannelItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/channels/{channel%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete the channel. + /// Delete the channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -94,7 +94,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information. + /// Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public async Task GetAsync(Action(requestInfo, Channel.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of the specified channel. + /// Update the properties of the specified channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -136,7 +136,7 @@ public async Task PatchAsync(Channel body, Action(requestInfo, Channel.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete the channel. + /// Delete the channel. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -160,7 +160,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information. + /// Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -186,7 +186,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of the specified channel. + /// Update the properties of the specified channel. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -237,7 +237,7 @@ public ChannelItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information. + /// Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information. This API is supported in the following national cloud deployments. /// public class ChannelItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs index c402dd6b268..3763d5f755b 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs @@ -28,7 +28,7 @@ public CompleteMigrationRequestBuilder(Dictionary pathParameters public CompleteMigrationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/channels/{channel%2Did}/completeMigration", rawUrl) { } /// - /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs new file mode 100644 index 00000000000..920746df1b9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.JoinedTeams.Item.Channels.Item.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName { + public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public bool? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse and sets the default values. + /// + public DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs index af8d061799d..1e42d7b443e 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs @@ -33,6 +33,26 @@ public DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrinci /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function doesUserHaveAccess + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs index 09977737e40..4e8c9b57ce7 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.JoinedTeams.Item.Channels.Item.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName { - public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public bool? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse and sets the default values. - /// - public DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse instead.")] + public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse : DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs index 4fa6351901b..39e55ef2a76 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs @@ -34,7 +34,7 @@ public FilesFolderRequestBuilder(Dictionary pathParameters, IReq public FilesFolderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/channels/{channel%2Did}/filesFolder{?%24select,%24expand}", rawUrl) { } /// - /// Get the metadata for the location where the files of a channel are stored. + /// Get the metadata for the location where the files of a channel are stored. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public FilesFolderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the metadata for the location where the files of a channel are stored. + /// Get the metadata for the location where the files of a channel are stored. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,7 +87,7 @@ public FilesFolderRequestBuilder WithUrl(string rawUrl) { return new FilesFolderRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the metadata for the location where the files of a channel are stored. + /// Get the metadata for the location where the files of a channel are stored. This API is supported in the following national cloud deployments. /// public class FilesFolderRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Add/AddPostResponse.cs new file mode 100644 index 00000000000..b06c9755b0a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Add/AddPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.JoinedTeams.Item.Channels.Item.Members.Add { + public class AddPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AddPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AddPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Add/AddRequestBuilder.cs index 0dbafe43ba1..1c8c439dfa1 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Add/AddRequestBuilder.cs @@ -28,13 +28,36 @@ public AddRequestBuilder(Dictionary pathParameters, IRequestAdap public AddRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/channels/{channel%2Did}/members/add", rawUrl) { } /// - /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AddPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsAddPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(AddPostRequestBody body, Action(requestInfo, AddResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Add/AddResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Add/AddResponse.cs index 16ee0b1efb3..237cdb8a59b 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Add/AddResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Add/AddResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.JoinedTeams.Item.Channels.Item.Members.Add { - public class AddResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use addPostResponse instead.")] + public class AddResponse : AddPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index d514ea03fc0..9540aae1bed 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -29,8 +29,8 @@ public ConversationMemberItemRequestBuilder(Dictionary pathParam public ConversationMemberItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/channels/{channel%2Did}/members/{conversationMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. - /// Find more info here + /// Delete a conversationMember from a channel. This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get a conversationMember from a channel. + /// Get a conversationMember from a channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a team or channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(ConversationMember body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Delete a conversationMember from a channel. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a conversationMember from a channel. + /// Get a conversationMember from a channel. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a team or channel. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public ConversationMemberItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a conversationMember from a channel. + /// Get a conversationMember from a channel. This API is supported in the following national cloud deployments. /// public class ConversationMemberItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs index ba6bbc3f851..86c19183a3d 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs @@ -47,7 +47,7 @@ public MembersRequestBuilder(Dictionary pathParameters, IRequest public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/channels/{channel%2Did}/members{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a conversationMember to a channel. + /// Add a conversationMember to a channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(ConversationMember body, Action< return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a conversationMember to a channel. + /// Add a conversationMember to a channel. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public MembersRequestBuilder WithUrl(string rawUrl) { return new MembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. This API is supported in the following national cloud deployments. /// public class MembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..70fdf2abae6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.JoinedTeams.Item.Channels.Item.Messages.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs index 801e0d16973..79916c8aa83 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaResponse.cs index f8ea71b93e2..4039cfc95e1 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.JoinedTeams.Item.Channels.Item.Messages.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs index 7eb920cca19..d2a98f472cc 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs @@ -78,7 +78,7 @@ public async Task DeleteAsync(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -98,7 +98,7 @@ public async Task GetAsync(Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. + /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -144,7 +144,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,7 +170,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. + /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -221,7 +221,7 @@ public ChatMessageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// public class ChatMessageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs index 9a5e6f5db5e..8e7704c114a 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -42,7 +42,7 @@ public HostedContentsRequestBuilder(Dictionary pathParameters, I public HostedContentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ChatMessageHostedContent b return await RequestAdapter.SendAsync(requestInfo, ChatMessageHostedContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public HostedContentsRequestBuilder WithUrl(string rawUrl) { return new HostedContentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// public class HostedContentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 60fae0a0762..d126f9015c5 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public ChatMessageHostedContentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..9363ecc6af2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.JoinedTeams.Item.Channels.Item.Messages.Item.Replies.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs index b845bd8dfb9..81ca6cd731f 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs index b544ce7548c..9cba111c139 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.JoinedTeams.Item.Channels.Item.Messages.Item.Replies.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs index c5dc6742293..250e1ece138 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs @@ -73,7 +73,7 @@ public async Task DeleteAsync(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -138,7 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -215,7 +215,7 @@ public ChatMessageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// public class ChatMessageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs index 0a8f0502465..54d68845e53 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -42,7 +42,7 @@ public HostedContentsRequestBuilder(Dictionary pathParameters, I public HostedContentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ChatMessageHostedContent b return await RequestAdapter.SendAsync(requestInfo, ChatMessageHostedContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public HostedContentsRequestBuilder WithUrl(string rawUrl) { return new HostedContentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// public class HostedContentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 90dd997ea10..5fd028924df 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public ChatMessageHostedContentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs index b65e010233b..d20c95ae113 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public SoftDeleteRequestBuilder(Dictionary pathParameters, IRequ public SoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/softDelete", rawUrl) { } /// - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index 399a9529283..f749b405229 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public UndoSoftDeleteRequestBuilder(Dictionary pathParameters, I public UndoSoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/undoSoftDelete", rawUrl) { } /// - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs index acb6266ee6c..2e18dda03a1 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -47,7 +47,7 @@ public RepliesRequestBuilder(Dictionary pathParameters, IRequest public RepliesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public RepliesRequestBuilder WithUrl(string rawUrl) { return new RepliesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// public class RepliesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs index 7916498b095..ce0eabaebef 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public SoftDeleteRequestBuilder(Dictionary pathParameters, IRequ public SoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/softDelete", rawUrl) { } /// - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index 59316088ff1..13feec2ae10 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public UndoSoftDeleteRequestBuilder(Dictionary pathParameters, I public UndoSoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/undoSoftDelete", rawUrl) { } /// - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs index eb73877e747..3de43f6ef84 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs @@ -47,7 +47,7 @@ public MessagesRequestBuilder(Dictionary pathParameters, IReques public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/channels/{channel%2Did}/messages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified channel. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public MessagesRequestBuilder WithUrl(string rawUrl) { return new MessagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// public class MessagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs index 27cd4893701..a19e18c378b 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs @@ -29,7 +29,7 @@ public ProvisionEmailRequestBuilder(Dictionary pathParameters, I public ProvisionEmailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/channels/{channel%2Did}/provisionEmail", rawUrl) { } /// - /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. + /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, ProvisionChannelEmailResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. + /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs index 81be4386692..f08292e1e8d 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs @@ -28,7 +28,7 @@ public RemoveEmailRequestBuilder(Dictionary pathParameters, IReq public RemoveEmailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/channels/{channel%2Did}/removeEmail", rawUrl) { } /// - /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. + /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. + /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs index a4badd15b89..c6b8a0bd39b 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs @@ -42,7 +42,7 @@ public AllowedMembersRequestBuilder(Dictionary pathParameters, I public AllowedMembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/channels/{channel%2Did}/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public AllowedMembersRequestBuilder WithUrl(string rawUrl) { return new AllowedMembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant This API is supported in the following national cloud deployments. /// public class AllowedMembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs index 69bb214ad19..e8cda91a801 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs @@ -39,7 +39,7 @@ public SharedWithChannelTeamInfoItemRequestBuilder(Dictionary pa public SharedWithChannelTeamInfoItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/channels/{channel%2Did}/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. + /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -59,7 +59,7 @@ public async Task DeleteAsync(Action - /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -100,7 +100,7 @@ public async Task PatchAsync(SharedWithChannelTeamInf return await RequestAdapter.SendAsync(requestInfo, SharedWithChannelTeamInfo.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. + /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -124,7 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -201,7 +201,7 @@ public SharedWithChannelTeamInfoItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// public class SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs index 16b7c0fe1c0..bb587dc06ce 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs @@ -42,7 +42,7 @@ public SharedWithTeamsRequestBuilder(Dictionary pathParameters, public SharedWithTeamsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/channels/{channel%2Did}/sharedWithTeams{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(SharedWithChannelTeamInfo return await RequestAdapter.SendAsync(requestInfo, SharedWithChannelTeamInfo.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SharedWithTeamsRequestBuilder WithUrl(string rawUrl) { return new SharedWithTeamsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// public class SharedWithTeamsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs index b256b294886..110a439dd8d 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs @@ -29,7 +29,7 @@ public TeamsAppRequestBuilder(Dictionary pathParameters, IReques public TeamsAppRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/channels/{channel%2Did}/tabs/{teamsTab%2Did}/teamsApp{?%24select,%24expand}", rawUrl) { } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -48,7 +48,7 @@ public TeamsAppRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.TeamsApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +81,7 @@ public TeamsAppRequestBuilder WithUrl(string rawUrl) { return new TeamsAppRequestBuilder(rawUrl, RequestAdapter); } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// public class TeamsAppRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs index 1e80d686b2b..c3c6f6f3783 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs @@ -34,7 +34,7 @@ public TeamsTabItemRequestBuilder(Dictionary pathParameters, IRe public TeamsTabItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/channels/{channel%2Did}/tabs/{teamsTab%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Removes (unpins) a tab from the specified channel within a team. + /// Removes (unpins) a tab from the specified channel within a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of the specified tab in a channel within a team. + /// Retrieve the properties and relationships of the specified tab in a channel within a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of the specified tab.This can be used to configure the content of the tab. + /// Update the properties of the specified tab.This can be used to configure the content of the tab. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(TeamsTab body, Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Removes (unpins) a tab from the specified channel within a team. + /// Removes (unpins) a tab from the specified channel within a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of the specified tab in a channel within a team. + /// Retrieve the properties and relationships of the specified tab in a channel within a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of the specified tab.This can be used to configure the content of the tab. + /// Update the properties of the specified tab.This can be used to configure the content of the tab. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public TeamsTabItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of the specified tab in a channel within a team. + /// Retrieve the properties and relationships of the specified tab in a channel within a team. This API is supported in the following national cloud deployments. /// public class TeamsTabItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Tabs/TabsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Tabs/TabsRequestBuilder.cs index 5ee39c4c2e6..3800fff4f93 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Tabs/TabsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Tabs/TabsRequestBuilder.cs @@ -42,7 +42,7 @@ public TabsRequestBuilder(Dictionary pathParameters, IRequestAda public TabsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/channels/{channel%2Did}/tabs{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of tabs in the specified channel within a team. + /// Retrieve the list of tabs in the specified channel within a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TeamsTabCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TeamsTab body, Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of tabs in the specified channel within a team. + /// Retrieve the list of tabs in the specified channel within a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public TabsRequestBuilder WithUrl(string rawUrl) { return new TabsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of tabs in the specified channel within a team. + /// Retrieve the list of tabs in the specified channel within a team. This API is supported in the following national cloud deployments. /// public class TabsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Clone/CloneRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Clone/CloneRequestBuilder.cs index 8113b79cbc0..0a77361e6c0 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Clone/CloneRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Clone/CloneRequestBuilder.cs @@ -28,7 +28,7 @@ public CloneRequestBuilder(Dictionary pathParameters, IRequestAd public CloneRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/clone", rawUrl) { } /// - /// Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they aren't configured. The tabs are displayed on the tab bar in Microsoft Teams, and the first time a user opens them, they must go through the configuration screen. If the user who opens the tab doesn't have permission to configure apps, they'll see a message that says that the tab isn't configured. Cloning is a long-running operation. After the POST clone returns, you need to GET the operation returned by the Location: header to see if it's running, succeeded, or failed. You should continue to GET until the status isn't running. The recommended delay between GETs is 5 seconds. + /// Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they aren't configured. The tabs are displayed on the tab bar in Microsoft Teams, and the first time a user opens them, they must go through the configuration screen. If the user who opens the tab doesn't have permission to configure apps, they'll see a message that says that the tab isn't configured. Cloning is a long-running operation. After the POST clone returns, you need to GET the operation returned by the Location: header to see if it's running, succeeded, or failed. You should continue to GET until the status isn't running. The recommended delay between GETs is 5 seconds. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ClonePostRequestBody body, Action - /// Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they aren't configured. The tabs are displayed on the tab bar in Microsoft Teams, and the first time a user opens them, they must go through the configuration screen. If the user who opens the tab doesn't have permission to configure apps, they'll see a message that says that the tab isn't configured. Cloning is a long-running operation. After the POST clone returns, you need to GET the operation returned by the Location: header to see if it's running, succeeded, or failed. You should continue to GET until the status isn't running. The recommended delay between GETs is 5 seconds. + /// Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they aren't configured. The tabs are displayed on the tab bar in Microsoft Teams, and the first time a user opens them, they must go through the configuration screen. If the user who opens the tab doesn't have permission to configure apps, they'll see a message that says that the tab isn't configured. Cloning is a long-running operation. After the POST clone returns, you need to GET the operation returned by the Location: header to see if it's running, succeeded, or failed. You should continue to GET until the status isn't running. The recommended delay between GETs is 5 seconds. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs index b425fc0864b..d514f9f94fb 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs @@ -28,7 +28,7 @@ public CompleteMigrationRequestBuilder(Dictionary pathParameters public CompleteMigrationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/completeMigration", rawUrl) { } /// - /// Complete the message migration process by removing migration mode from a team. Migration mode is a special state where certain operations are barred, like message POST and membership operations during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + /// Complete the message migration process by removing migration mode from a team. Migration mode is a special state where certain operations are barred, like message POST and membership operations during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Complete the message migration process by removing migration mode from a team. Migration mode is a special state where certain operations are barred, like message POST and membership operations during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + /// Complete the message migration process by removing migration mode from a team. Migration mode is a special state where certain operations are barred, like message POST and membership operations during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Group/GroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Group/GroupRequestBuilder.cs index 8b36743edd3..f529b09d61a 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Group/GroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Group/GroupRequestBuilder.cs @@ -1,4 +1,5 @@ // +using Microsoft.Graph.Me.JoinedTeams.Item.Group.ServiceProvisioningErrors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -14,6 +15,10 @@ namespace Microsoft.Graph.Me.JoinedTeams.Item.Group { /// Provides operations to manage the group property of the microsoft.graph.team entity. /// public class GroupRequestBuilder : BaseRequestBuilder { + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new GroupRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..1298b3f0c56 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Me.JoinedTeams.Item.Group.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/group/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/group/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..04f5d43b9ef --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Me.JoinedTeams.Item.Group.ServiceProvisioningErrors.Count; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Me.JoinedTeams.Item.Group.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \me\joinedTeams\{team-id}\group\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/group/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/group/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/IncomingChannels/IncomingChannelsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/IncomingChannels/IncomingChannelsRequestBuilder.cs index 4eb4ae79ac0..7b09a474694 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/IncomingChannels/IncomingChannelsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/IncomingChannels/IncomingChannelsRequestBuilder.cs @@ -42,7 +42,7 @@ public IncomingChannelsRequestBuilder(Dictionary pathParameters, public IncomingChannelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/incomingChannels{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of incoming channels (channels shared with a team). + /// Get the list of incoming channels (channels shared with a team). This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ChannelCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of incoming channels (channels shared with a team). + /// Get the list of incoming channels (channels shared with a team). This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public IncomingChannelsRequestBuilder WithUrl(string rawUrl) { return new IncomingChannelsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of incoming channels (channels shared with a team). + /// Get the list of incoming channels (channels shared with a team). This API is supported in the following national cloud deployments. /// public class IncomingChannelsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/InstalledAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/InstalledAppsRequestBuilder.cs index 0de11059a4d..236ccdfff34 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/InstalledAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/InstalledAppsRequestBuilder.cs @@ -42,7 +42,7 @@ public InstalledAppsRequestBuilder(Dictionary pathParameters, IR public InstalledAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/installedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of apps installed in the specified team. + /// Retrieve a list of apps installed in the specified team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TeamsAppInstallationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Install an app to the specified team. + /// Install an app to the specified team. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TeamsAppInstallation body, Act return await RequestAdapter.SendAsync(requestInfo, TeamsAppInstallation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of apps installed in the specified team. + /// Retrieve a list of apps installed in the specified team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Install an app to the specified team. + /// Install an app to the specified team. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public InstalledAppsRequestBuilder WithUrl(string rawUrl) { return new InstalledAppsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of apps installed in the specified team. + /// Retrieve a list of apps installed in the specified team. This API is supported in the following national cloud deployments. /// public class InstalledAppsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs index a163b3cdd23..9cf32d920ed 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs @@ -44,7 +44,7 @@ public TeamsAppInstallationItemRequestBuilder(Dictionary pathPar public TeamsAppInstallationItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/installedApps/{teamsAppInstallation%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Uninstalls an app from the specified team. + /// Uninstalls an app from the specified team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -64,7 +64,7 @@ public async Task DeleteAsync(Action - /// Retrieve the app installed in the specified team. + /// Retrieve the app installed in the specified team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -105,7 +105,7 @@ public async Task PatchAsync(TeamsAppInstallation body, Ac return await RequestAdapter.SendAsync(requestInfo, TeamsAppInstallation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Uninstalls an app from the specified team. + /// Uninstalls an app from the specified team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,7 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the app installed in the specified team. + /// Retrieve the app installed in the specified team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -206,7 +206,7 @@ public TeamsAppInstallationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the app installed in the specified team. + /// Retrieve the app installed in the specified team. This API is supported in the following national cloud deployments. /// public class TeamsAppInstallationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs index 13948a0125e..253f81b8a19 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs @@ -28,7 +28,7 @@ public UpgradeRequestBuilder(Dictionary pathParameters, IRequest public UpgradeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/installedApps/{teamsAppInstallation%2Did}/upgrade", rawUrl) { } /// - /// Upgrade an app installation within a chat. + /// Upgrade an app installation within a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(UpgradePostRequestBody body, Action - /// Upgrade an app installation within a chat. + /// Upgrade an app installation within a chat. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Add/AddPostResponse.cs new file mode 100644 index 00000000000..be1f53d1995 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Add/AddPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.JoinedTeams.Item.Members.Add { + public class AddPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AddPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AddPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Add/AddRequestBuilder.cs index b6fba9968d3..ed338e26c12 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Add/AddRequestBuilder.cs @@ -28,13 +28,36 @@ public AddRequestBuilder(Dictionary pathParameters, IRequestAdap public AddRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/members/add", rawUrl) { } /// - /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AddPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsAddPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(AddPostRequestBody body, Action(requestInfo, AddResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Add/AddResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Add/AddResponse.cs index 80d622e1552..ce8df2efa88 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Add/AddResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Add/AddResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.JoinedTeams.Item.Members.Add { - public class AddResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use addPostResponse instead.")] + public class AddResponse : AddPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index 3c19dc6b777..3c6f658c99d 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -29,7 +29,7 @@ public ConversationMemberItemRequestBuilder(Dictionary pathParam public ConversationMemberItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/members/{conversationMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Remove a conversationMember from a team. + /// Remove a conversationMember from a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get a conversationMember from a team. + /// Get a conversationMember from a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team. + /// Update the role of a conversationMember in a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(ConversationMember body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Remove a conversationMember from a team. + /// Remove a conversationMember from a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a conversationMember from a team. + /// Get a conversationMember from a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team. + /// Update the role of a conversationMember in a team. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public ConversationMemberItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a conversationMember from a team. + /// Get a conversationMember from a team. This API is supported in the following national cloud deployments. /// public class ConversationMemberItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/MembersRequestBuilder.cs index 3b9c93125ef..b674936be79 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/MembersRequestBuilder.cs @@ -47,7 +47,7 @@ public MembersRequestBuilder(Dictionary pathParameters, IRequest public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/members{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the conversationMember collection of a team. + /// Get the conversationMember collection of a team. The membership IDs returned by the server must be treated as opaque strings. The client should not try to parse or make assumptions about these resource IDs. In the future, membership results may include users from various tenants, as indicated in the response. Clients should avoid assuming that all members exclusively belong to the current tenant. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a new conversationMember to a team. + /// Add a new conversationMember to a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(ConversationMember body, Action< return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the conversationMember collection of a team. + /// Get the conversationMember collection of a team. The membership IDs returned by the server must be treated as opaque strings. The client should not try to parse or make assumptions about these resource IDs. In the future, membership results may include users from various tenants, as indicated in the response. Clients should avoid assuming that all members exclusively belong to the current tenant. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a new conversationMember to a team. + /// Add a new conversationMember to a team. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public MembersRequestBuilder WithUrl(string rawUrl) { return new MembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the conversationMember collection of a team. + /// Get the conversationMember collection of a team. The membership IDs returned by the server must be treated as opaque strings. The client should not try to parse or make assumptions about these resource IDs. In the future, membership results may include users from various tenants, as indicated in the response. Clients should avoid assuming that all members exclusively belong to the current tenant. This API is supported in the following national cloud deployments. /// public class MembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..ea224dcb979 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.JoinedTeams.Item.PermissionGrants.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Delta/DeltaRequestBuilder.cs index 6f428411bed..871af23ee03 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Delta/DeltaResponse.cs index 8d16f848eac..3532b1ceb87 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.JoinedTeams.Item.PermissionGrants.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs new file mode 100644 index 00000000000..dbb6774128d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.JoinedTeams.Item.PermissionGrants.GetAvailableExtensionProperties { + public class GetAvailableExtensionPropertiesPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAvailableExtensionPropertiesPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index 5c0628700ab..b7a84438dc6 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -28,13 +28,36 @@ public GetAvailableExtensionPropertiesRequestBuilder(Dictionary public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/permissionGrants/getAvailableExtensionProperties", rawUrl) { } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetAvailableExtensionPropertiesPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetAvailabl return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index 4f462adddef..a1f4e09de4a 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.JoinedTeams.Item.PermissionGrants.GetAvailableExtensionProperties { - public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAvailableExtensionPropertiesPostResponse instead.")] + public class GetAvailableExtensionPropertiesResponse : GetAvailableExtensionPropertiesPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/GetByIds/GetByIdsPostResponse.cs new file mode 100644 index 00000000000..3b9bbe90cf7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/GetByIds/GetByIdsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.JoinedTeams.Item.PermissionGrants.GetByIds { + public class GetByIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetByIdsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs index 9a05ab1f655..ed71595ceaa 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetByIdsRequestBuilder(Dictionary pathParameters, IReques public GetByIdsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/permissionGrants/getByIds", rawUrl) { } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetByIdsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetByIdsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetByIdsPostRequestBody body, Acti return await RequestAdapter.SendAsync(requestInfo, GetByIdsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/GetByIds/GetByIdsResponse.cs index 35ca48980e8..83e00a2bf88 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/GetByIds/GetByIdsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.JoinedTeams.Item.PermissionGrants.GetByIds { - public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getByIdsPostResponse instead.")] + public class GetByIdsResponse : GetByIdsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..7f8b87dd5d0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.JoinedTeams.Item.PermissionGrants.Item.CheckMemberGroups { + public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index 0056ebf925f..2d6c0711209 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index a1995401ab2..601f278096d 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.JoinedTeams.Item.PermissionGrants.Item.CheckMemberGroups { - public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberGroupsPostResponse instead.")] + public class CheckMemberGroupsResponse : CheckMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..ada61575da8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.JoinedTeams.Item.PermissionGrants.Item.CheckMemberObjects { + public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index 760e55966c1..f335094ed49 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -34,6 +34,28 @@ public CheckMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAd /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action checkMemberObjects + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index fefcf6f105e..67afd641ba0 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.JoinedTeams.Item.PermissionGrants.Item.CheckMemberObjects { - public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberObjectsPostResponse instead.")] + public class CheckMemberObjectsResponse : CheckMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..6d3309200bb --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.JoinedTeams.Item.PermissionGrants.Item.GetMemberGroups { + public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index 6384f2d9ec7..1d85d95ad2f 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberGroupsRequestBuilder(Dictionary pathParameters, public GetMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/getMemberGroups", rawUrl) { } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberGroupsPostRequestB return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs index ef4b657dd5e..cf946dc5111 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.JoinedTeams.Item.PermissionGrants.Item.GetMemberGroups { - public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberGroupsPostResponse instead.")] + public class GetMemberGroupsResponse : GetMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..80f893bf477 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.JoinedTeams.Item.PermissionGrants.Item.GetMemberObjects { + public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index 5df4ef8c3a3..76ad522cf0a 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberObjectsRequestBuilder(Dictionary pathParameters, public GetMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/getMemberObjects", rawUrl) { } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberObjectsPostReques return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs index 3e0a93c1b8c..3a87c2f6a9d 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.JoinedTeams.Item.PermissionGrants.Item.GetMemberObjects { - public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberObjectsPostResponse instead.")] + public class GetMemberObjectsResponse : GetMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs index 9d30df88f05..6f97967505f 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs @@ -29,7 +29,7 @@ public RestoreRequestBuilder(Dictionary pathParameters, IRequest public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs index 2e09d787978..0038d8cf0e3 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs @@ -62,7 +62,7 @@ public PermissionGrantsRequestBuilder(Dictionary pathParameters, public PermissionGrantsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/permissionGrants{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. + /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -103,7 +103,7 @@ public async Task PostAsync(ResourceSpecificPer return await RequestAdapter.SendAsync(requestInfo, ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. + /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,7 +164,7 @@ public PermissionGrantsRequestBuilder WithUrl(string rawUrl) { return new PermissionGrantsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. + /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is supported in the following national cloud deployments. /// public class PermissionGrantsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs index e2e8dd68034..d6a15dc99e2 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -28,7 +28,7 @@ public ValidatePropertiesRequestBuilder(Dictionary pathParameter public ValidatePropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/permissionGrants/validateProperties", rawUrl) { } /// - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ValidatePropertiesPostRequestBody body, Action - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Photo/PhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Photo/PhotoRequestBuilder.cs index b87b804091f..1214a626c88 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Photo/PhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Photo/PhotoRequestBuilder.cs @@ -34,7 +34,7 @@ public PhotoRequestBuilder(Dictionary pathParameters, IRequestAd public PhotoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/photo{?%24select,%24expand}", rawUrl) { } /// - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -75,7 +75,7 @@ public async Task PatchAsync(ProfilePhoto body, Action(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -136,7 +136,7 @@ public PhotoRequestBuilder WithUrl(string rawUrl) { return new PhotoRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is supported in the following national cloud deployments. /// public class PhotoRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.cs index dc79110592c..3f91e64676f 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.cs @@ -28,7 +28,7 @@ public CompleteMigrationRequestBuilder(Dictionary pathParameters public CompleteMigrationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/primaryChannel/completeMigration", rawUrl) { } /// - /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs new file mode 100644 index 00000000000..9112173ed33 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.JoinedTeams.Item.PrimaryChannel.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName { + public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public bool? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse and sets the default values. + /// + public DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs index 4fd10013fb6..b39b6c5607a 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs @@ -33,6 +33,26 @@ public DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrinci /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function doesUserHaveAccess + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs index ecb89114600..c861bb2c98a 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.JoinedTeams.Item.PrimaryChannel.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName { - public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public bool? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse and sets the default values. - /// - public DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse instead.")] + public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse : DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs index b5ac8dc5835..d42612020cb 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs @@ -34,7 +34,7 @@ public FilesFolderRequestBuilder(Dictionary pathParameters, IReq public FilesFolderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/primaryChannel/filesFolder{?%24select,%24expand}", rawUrl) { } /// - /// Get the metadata for the location where the files of a channel are stored. + /// Get the metadata for the location where the files of a channel are stored. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public FilesFolderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the metadata for the location where the files of a channel are stored. + /// Get the metadata for the location where the files of a channel are stored. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,7 +87,7 @@ public FilesFolderRequestBuilder WithUrl(string rawUrl) { return new FilesFolderRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the metadata for the location where the files of a channel are stored. + /// Get the metadata for the location where the files of a channel are stored. This API is supported in the following national cloud deployments. /// public class FilesFolderRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Add/AddPostResponse.cs new file mode 100644 index 00000000000..d4914ec3b60 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Add/AddPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.JoinedTeams.Item.PrimaryChannel.Members.Add { + public class AddPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AddPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AddPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Add/AddRequestBuilder.cs index d8dcac7d449..d525fb3bd33 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Add/AddRequestBuilder.cs @@ -28,13 +28,36 @@ public AddRequestBuilder(Dictionary pathParameters, IRequestAdap public AddRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/primaryChannel/members/add", rawUrl) { } /// - /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AddPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsAddPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(AddPostRequestBody body, Action(requestInfo, AddResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Add/AddResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Add/AddResponse.cs index 56abcc737c7..edf88cbf122 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Add/AddResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Add/AddResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.JoinedTeams.Item.PrimaryChannel.Members.Add { - public class AddResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use addPostResponse instead.")] + public class AddResponse : AddPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs index 4a2c1a66121..b7b17fcf2f7 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -29,8 +29,8 @@ public ConversationMemberItemRequestBuilder(Dictionary pathParam public ConversationMemberItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/primaryChannel/members/{conversationMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. - /// Find more info here + /// Delete a conversationMember from a channel. This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get a conversationMember from a channel. + /// Get a conversationMember from a channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a team or channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(ConversationMember body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Delete a conversationMember from a channel. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a conversationMember from a channel. + /// Get a conversationMember from a channel. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a team or channel. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public ConversationMemberItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a conversationMember from a channel. + /// Get a conversationMember from a channel. This API is supported in the following national cloud deployments. /// public class ConversationMemberItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs index 739265ebb65..24fe79c919d 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs @@ -47,7 +47,7 @@ public MembersRequestBuilder(Dictionary pathParameters, IRequest public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/primaryChannel/members{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a conversationMember to a channel. + /// Add a conversationMember to a channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(ConversationMember body, Action< return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a conversationMember to a channel. + /// Add a conversationMember to a channel. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public MembersRequestBuilder WithUrl(string rawUrl) { return new MembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. This API is supported in the following national cloud deployments. /// public class MembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..9aca42bfe20 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.JoinedTeams.Item.PrimaryChannel.Messages.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.cs index 36e994607bd..94266016719 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaResponse.cs index 74252dfa7e0..dec0e98cdfa 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.JoinedTeams.Item.PrimaryChannel.Messages.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs index a5c7cd3645b..e57450c76df 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs @@ -78,7 +78,7 @@ public async Task DeleteAsync(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -98,7 +98,7 @@ public async Task GetAsync(Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. + /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -144,7 +144,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,7 +170,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. + /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -221,7 +221,7 @@ public ChatMessageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// public class ChatMessageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs index 465657ac6bb..68b324918a3 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -42,7 +42,7 @@ public HostedContentsRequestBuilder(Dictionary pathParameters, I public HostedContentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/primaryChannel/messages/{chatMessage%2Did}/hostedContents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ChatMessageHostedContent b return await RequestAdapter.SendAsync(requestInfo, ChatMessageHostedContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public HostedContentsRequestBuilder WithUrl(string rawUrl) { return new HostedContentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// public class HostedContentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 514741bfd83..b329221d2cb 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public ChatMessageHostedContentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..c4d95a4f3e7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.JoinedTeams.Item.PrimaryChannel.Messages.Item.Replies.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs index 789b3bffa11..f6bbd2356c5 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaResponse.cs index 28b4912c934..9e9e99c47d4 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.JoinedTeams.Item.PrimaryChannel.Messages.Item.Replies.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs index 3b21cdc1e48..cbf0049a467 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs @@ -73,7 +73,7 @@ public async Task DeleteAsync(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -138,7 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -215,7 +215,7 @@ public ChatMessageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// public class ChatMessageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs index 84a266d42fb..9b2f7395790 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -42,7 +42,7 @@ public HostedContentsRequestBuilder(Dictionary pathParameters, I public HostedContentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ChatMessageHostedContent b return await RequestAdapter.SendAsync(requestInfo, ChatMessageHostedContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public HostedContentsRequestBuilder WithUrl(string rawUrl) { return new HostedContentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// public class HostedContentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 1444d573cf7..f5354fdce98 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public ChatMessageHostedContentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs index c7a4f4ed8cf..72118368732 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public SoftDeleteRequestBuilder(Dictionary pathParameters, IRequ public SoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/softDelete", rawUrl) { } /// - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index 0b7b020306a..d6b8de474d4 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public UndoSoftDeleteRequestBuilder(Dictionary pathParameters, I public UndoSoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/undoSoftDelete", rawUrl) { } /// - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs index 0c3f86f628b..b943fd9b7fa 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -47,7 +47,7 @@ public RepliesRequestBuilder(Dictionary pathParameters, IRequest public RepliesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/primaryChannel/messages/{chatMessage%2Did}/replies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public RepliesRequestBuilder WithUrl(string rawUrl) { return new RepliesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// public class RepliesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs index 7827206eb93..fb425bc9186 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public SoftDeleteRequestBuilder(Dictionary pathParameters, IRequ public SoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/primaryChannel/messages/{chatMessage%2Did}/softDelete", rawUrl) { } /// - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index 1e28e570827..9c976e59ced 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public UndoSoftDeleteRequestBuilder(Dictionary pathParameters, I public UndoSoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/primaryChannel/messages/{chatMessage%2Did}/undoSoftDelete", rawUrl) { } /// - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs index b82d74c8c6d..47bbae7dab1 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs @@ -47,7 +47,7 @@ public MessagesRequestBuilder(Dictionary pathParameters, IReques public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/primaryChannel/messages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified channel. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public MessagesRequestBuilder WithUrl(string rawUrl) { return new MessagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// public class MessagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.cs index f2c465a6f17..d6122ab97c7 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.cs @@ -93,7 +93,7 @@ public async Task DeleteAsync(Action - /// Get the default channel, General, of a team. + /// Get the default channel, General, of a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -158,7 +158,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the default channel, General, of a team. + /// Get the default channel, General, of a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -235,7 +235,7 @@ public PrimaryChannelRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the default channel, General, of a team. + /// Get the default channel, General, of a team. This API is supported in the following national cloud deployments. /// public class PrimaryChannelRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.cs index 4678661a8da..1fad34e42f1 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.cs @@ -29,7 +29,7 @@ public ProvisionEmailRequestBuilder(Dictionary pathParameters, I public ProvisionEmailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/primaryChannel/provisionEmail", rawUrl) { } /// - /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. + /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, ProvisionChannelEmailResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. + /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.cs index 698b458a637..68e5d72e5ef 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.cs @@ -28,7 +28,7 @@ public RemoveEmailRequestBuilder(Dictionary pathParameters, IReq public RemoveEmailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/primaryChannel/removeEmail", rawUrl) { } /// - /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. + /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. + /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs index 6357284d5c6..4982aab4255 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs @@ -42,7 +42,7 @@ public AllowedMembersRequestBuilder(Dictionary pathParameters, I public AllowedMembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/primaryChannel/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public AllowedMembersRequestBuilder WithUrl(string rawUrl) { return new AllowedMembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant This API is supported in the following national cloud deployments. /// public class AllowedMembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs index a25116ea396..237b1fa061d 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs @@ -39,7 +39,7 @@ public SharedWithChannelTeamInfoItemRequestBuilder(Dictionary pa public SharedWithChannelTeamInfoItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/primaryChannel/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. + /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -59,7 +59,7 @@ public async Task DeleteAsync(Action - /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -100,7 +100,7 @@ public async Task PatchAsync(SharedWithChannelTeamInf return await RequestAdapter.SendAsync(requestInfo, SharedWithChannelTeamInfo.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. + /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -124,7 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -201,7 +201,7 @@ public SharedWithChannelTeamInfoItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// public class SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs index f2b181b5358..8d3d34851fb 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs @@ -42,7 +42,7 @@ public SharedWithTeamsRequestBuilder(Dictionary pathParameters, public SharedWithTeamsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/primaryChannel/sharedWithTeams{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(SharedWithChannelTeamInfo return await RequestAdapter.SendAsync(requestInfo, SharedWithChannelTeamInfo.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SharedWithTeamsRequestBuilder WithUrl(string rawUrl) { return new SharedWithTeamsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// public class SharedWithTeamsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs index 483f9795e12..28825783df8 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs @@ -29,7 +29,7 @@ public TeamsAppRequestBuilder(Dictionary pathParameters, IReques public TeamsAppRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/primaryChannel/tabs/{teamsTab%2Did}/teamsApp{?%24select,%24expand}", rawUrl) { } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -48,7 +48,7 @@ public TeamsAppRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.TeamsApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +81,7 @@ public TeamsAppRequestBuilder WithUrl(string rawUrl) { return new TeamsAppRequestBuilder(rawUrl, RequestAdapter); } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// public class TeamsAppRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs index ef87cad814a..797d1c6d00d 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs @@ -34,7 +34,7 @@ public TeamsTabItemRequestBuilder(Dictionary pathParameters, IRe public TeamsTabItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/primaryChannel/tabs/{teamsTab%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Removes (unpins) a tab from the specified channel within a team. + /// Removes (unpins) a tab from the specified channel within a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of the specified tab in a channel within a team. + /// Retrieve the properties and relationships of the specified tab in a channel within a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of the specified tab.This can be used to configure the content of the tab. + /// Update the properties of the specified tab.This can be used to configure the content of the tab. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(TeamsTab body, Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Removes (unpins) a tab from the specified channel within a team. + /// Removes (unpins) a tab from the specified channel within a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of the specified tab in a channel within a team. + /// Retrieve the properties and relationships of the specified tab in a channel within a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of the specified tab.This can be used to configure the content of the tab. + /// Update the properties of the specified tab.This can be used to configure the content of the tab. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public TeamsTabItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of the specified tab in a channel within a team. + /// Retrieve the properties and relationships of the specified tab in a channel within a team. This API is supported in the following national cloud deployments. /// public class TeamsTabItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Tabs/TabsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Tabs/TabsRequestBuilder.cs index 1c943c25fcb..7d87ab8e865 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Tabs/TabsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Tabs/TabsRequestBuilder.cs @@ -42,7 +42,7 @@ public TabsRequestBuilder(Dictionary pathParameters, IRequestAda public TabsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/primaryChannel/tabs{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of tabs in the specified channel within a team. + /// Retrieve the list of tabs in the specified channel within a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TeamsTabCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TeamsTab body, Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of tabs in the specified channel within a team. + /// Retrieve the list of tabs in the specified channel within a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public TabsRequestBuilder WithUrl(string rawUrl) { return new TabsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of tabs in the specified channel within a team. + /// Retrieve the list of tabs in the specified channel within a team. This API is supported in the following national cloud deployments. /// public class TabsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.cs index 85b3437588f..6031a476acb 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of an offerShiftRequest object. + /// Retrieve the properties and relationships of an offerShiftRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of an offerShiftRequest object. + /// Retrieve the properties and relationships of an offerShiftRequest object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public OfferShiftRequestItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of an offerShiftRequest object. + /// Retrieve the properties and relationships of an offerShiftRequest object. This API is supported in the following national cloud deployments. /// public class OfferShiftRequestItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs index 4dc78b42a53..e6d36573788 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs @@ -42,7 +42,7 @@ public OfferShiftRequestsRequestBuilder(Dictionary pathParameter public OfferShiftRequestsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/schedule/offerShiftRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the properties and relationships of all offerShiftRequest objects in a team. + /// Retrieve the properties and relationships of all offerShiftRequest objects in a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OfferShiftRequestCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an instance of an offerShiftRequest. + /// Create an instance of an offerShiftRequest. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OfferShiftRequest body, Action(requestInfo, OfferShiftRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the properties and relationships of all offerShiftRequest objects in a team. + /// Retrieve the properties and relationships of all offerShiftRequest objects in a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an instance of an offerShiftRequest. + /// Create an instance of an offerShiftRequest. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public OfferShiftRequestsRequestBuilder WithUrl(string rawUrl) { return new OfferShiftRequestsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the properties and relationships of all offerShiftRequest objects in a team. + /// Retrieve the properties and relationships of all offerShiftRequest objects in a team. This API is supported in the following national cloud deployments. /// public class OfferShiftRequestsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs index c1a5b48ef3b..203287ceb85 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of an openShiftChangeRequest object. + /// Retrieve the properties and relationships of an openShiftChangeRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of an openShiftChangeRequest object. + /// Retrieve the properties and relationships of an openShiftChangeRequest object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public OpenShiftChangeRequestItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of an openShiftChangeRequest object. + /// Retrieve the properties and relationships of an openShiftChangeRequest object. This API is supported in the following national cloud deployments. /// public class OpenShiftChangeRequestItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs index f960cb2dcdc..fbc887b3f3d 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs @@ -42,7 +42,7 @@ public OpenShiftChangeRequestsRequestBuilder(Dictionary pathPara public OpenShiftChangeRequestsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/schedule/openShiftChangeRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of openShiftChangeRequest objects in a team. + /// Retrieve a list of openShiftChangeRequest objects in a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OpenShiftChangeRequestCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create instance of an openShiftChangeRequest object. + /// Create instance of an openShiftChangeRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OpenShiftChangeRequest body, return await RequestAdapter.SendAsync(requestInfo, OpenShiftChangeRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of openShiftChangeRequest objects in a team. + /// Retrieve a list of openShiftChangeRequest objects in a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create instance of an openShiftChangeRequest object. + /// Create instance of an openShiftChangeRequest object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public OpenShiftChangeRequestsRequestBuilder WithUrl(string rawUrl) { return new OpenShiftChangeRequestsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of openShiftChangeRequest objects in a team. + /// Retrieve a list of openShiftChangeRequest objects in a team. This API is supported in the following national cloud deployments. /// public class OpenShiftChangeRequestsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs index 88dae4e2093..aed8ef23a3d 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs @@ -29,7 +29,7 @@ public OpenShiftItemRequestBuilder(Dictionary pathParameters, IR public OpenShiftItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/schedule/openShifts/{openShift%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an openShift object. + /// Delete an openShift object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of an openshift object. + /// Retrieve the properties and relationships of an openshift object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -91,7 +91,7 @@ public async Task PatchAsync(OpenShift body, Action(requestInfo, OpenShift.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an openShift object. + /// Delete an openShift object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of an openshift object. + /// Retrieve the properties and relationships of an openshift object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -192,7 +192,7 @@ public OpenShiftItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of an openshift object. + /// Retrieve the properties and relationships of an openshift object. This API is supported in the following national cloud deployments. /// public class OpenShiftItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs index aa9781701df..9dd6deb3e3a 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs @@ -42,7 +42,7 @@ public OpenShiftsRequestBuilder(Dictionary pathParameters, IRequ public OpenShiftsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/schedule/openShifts{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List openShift objects in a team. + /// List openShift objects in a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OpenShiftCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an instance of an openShift object. + /// Create an instance of an openShift object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OpenShift body, Action(requestInfo, OpenShift.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List openShift objects in a team. + /// List openShift objects in a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an instance of an openShift object. + /// Create an instance of an openShift object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public OpenShiftsRequestBuilder WithUrl(string rawUrl) { return new OpenShiftsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List openShift objects in a team. + /// List openShift objects in a team. This API is supported in the following national cloud deployments. /// public class OpenShiftsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/ScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/ScheduleRequestBuilder.cs index 0555d57c29f..d701be881c2 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/ScheduleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/ScheduleRequestBuilder.cs @@ -98,7 +98,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule. + /// Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -163,7 +163,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule. + /// Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -240,7 +240,7 @@ public ScheduleRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule. + /// Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule. This API is supported in the following national cloud deployments. /// public class ScheduleRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.cs index 61da4f7b222..0b1e685d7a2 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.cs @@ -29,7 +29,7 @@ public SchedulingGroupItemRequestBuilder(Dictionary pathParamete public SchedulingGroupItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/schedule/schedulingGroups/{schedulingGroup%2Did}{?%24select}", rawUrl) { } /// - /// Mark a schedulingGroup as inactive by setting its isActive property.This method does not remove the schedulingGroup from the schedule. Existing shift instances assigned to the scheduling group remain part of the group. + /// Mark a schedulingGroup as inactive by setting its isActive property.This method does not remove the schedulingGroup from the schedule. Existing shift instances assigned to the scheduling group remain part of the group. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a schedulingGroup by ID. + /// Retrieve the properties and relationships of a schedulingGroup by ID. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -91,7 +91,7 @@ public async Task PatchAsync(SchedulingGroup body, Action(requestInfo, SchedulingGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Mark a schedulingGroup as inactive by setting its isActive property.This method does not remove the schedulingGroup from the schedule. Existing shift instances assigned to the scheduling group remain part of the group. + /// Mark a schedulingGroup as inactive by setting its isActive property.This method does not remove the schedulingGroup from the schedule. Existing shift instances assigned to the scheduling group remain part of the group. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a schedulingGroup by ID. + /// Retrieve the properties and relationships of a schedulingGroup by ID. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -192,7 +192,7 @@ public SchedulingGroupItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a schedulingGroup by ID. + /// Retrieve the properties and relationships of a schedulingGroup by ID. This API is supported in the following national cloud deployments. /// public class SchedulingGroupItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs index 985163bcd0f..7f66e628cc2 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs @@ -42,7 +42,7 @@ public SchedulingGroupsRequestBuilder(Dictionary pathParameters, public SchedulingGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/schedule/schedulingGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get the list of schedulingGroups in this schedule. + /// Get the list of schedulingGroups in this schedule. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, SchedulingGroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new schedulingGroup. + /// Create a new schedulingGroup. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(SchedulingGroup body, Action(requestInfo, SchedulingGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of schedulingGroups in this schedule. + /// Get the list of schedulingGroups in this schedule. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new schedulingGroup. + /// Create a new schedulingGroup. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SchedulingGroupsRequestBuilder WithUrl(string rawUrl) { return new SchedulingGroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of schedulingGroups in this schedule. + /// Get the list of schedulingGroups in this schedule. This API is supported in the following national cloud deployments. /// public class SchedulingGroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/Share/ShareRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/Share/ShareRequestBuilder.cs index e99ec3dc51d..13811e81c35 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/Share/ShareRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/Share/ShareRequestBuilder.cs @@ -28,7 +28,7 @@ public ShareRequestBuilder(Dictionary pathParameters, IRequestAd public ShareRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/schedule/share", rawUrl) { } /// - /// Share a schedule time range with schedule members.Make the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers.Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. + /// Share a schedule time range with schedule members.Make the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers.Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SharePostRequestBody body, Action - /// Share a schedule time range with schedule members.Make the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers.Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. + /// Share a schedule time range with schedule members.Make the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers.Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs index 4e0cf1c8e0f..70604bc910b 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs @@ -29,7 +29,7 @@ public ShiftItemRequestBuilder(Dictionary pathParameters, IReque public ShiftItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/schedule/shifts/{shift%2Did}{?%24select}", rawUrl) { } /// - /// Delete a shift from the schedule. + /// Delete a shift from the schedule. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a shift object by ID. + /// Retrieve the properties and relationships of a shift object by ID. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -91,7 +91,7 @@ public async Task PatchAsync(Shift body, Action(requestInfo, Shift.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a shift from the schedule. + /// Delete a shift from the schedule. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a shift object by ID. + /// Retrieve the properties and relationships of a shift object by ID. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -192,7 +192,7 @@ public ShiftItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a shift object by ID. + /// Retrieve the properties and relationships of a shift object by ID. This API is supported in the following national cloud deployments. /// public class ShiftItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/Shifts/ShiftsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/Shifts/ShiftsRequestBuilder.cs index 086b1063fa8..0074ac10a3b 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/Shifts/ShiftsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/Shifts/ShiftsRequestBuilder.cs @@ -42,7 +42,7 @@ public ShiftsRequestBuilder(Dictionary pathParameters, IRequestA public ShiftsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/schedule/shifts{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get the list of shift instances in a schedule. + /// Get the list of shift instances in a schedule. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ShiftCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new shift instance in a schedule. The duration of a shift cannot be less than 1 minute or longer than 24 hours. + /// Create a new shift instance in a schedule. The duration of a shift cannot be less than 1 minute or longer than 24 hours. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(Shift body, Action(requestInfo, Shift.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of shift instances in a schedule. + /// Get the list of shift instances in a schedule. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new shift instance in a schedule. The duration of a shift cannot be less than 1 minute or longer than 24 hours. + /// Create a new shift instance in a schedule. The duration of a shift cannot be less than 1 minute or longer than 24 hours. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ShiftsRequestBuilder WithUrl(string rawUrl) { return new ShiftsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of shift instances in a schedule. + /// Get the list of shift instances in a schedule. This API is supported in the following national cloud deployments. /// public class ShiftsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.cs index 58fa8cce787..bdaaf1a1bf1 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a swapShiftsChangeRequest object. + /// Retrieve the properties and relationships of a swapShiftsChangeRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a swapShiftsChangeRequest object. + /// Retrieve the properties and relationships of a swapShiftsChangeRequest object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public SwapShiftsChangeRequestItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a swapShiftsChangeRequest object. + /// Retrieve the properties and relationships of a swapShiftsChangeRequest object. This API is supported in the following national cloud deployments. /// public class SwapShiftsChangeRequestItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs index 6fa2671dd7d..99b578769c7 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs @@ -42,7 +42,7 @@ public SwapShiftsChangeRequestsRequestBuilder(Dictionary pathPar public SwapShiftsChangeRequestsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/schedule/swapShiftsChangeRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of swapShiftsChangeRequest objects in the team. + /// Retrieve a list of swapShiftsChangeRequest objects in the team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, SwapShiftsChangeRequestCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an instance of a swapShiftsChangeRequest object. + /// Create an instance of a swapShiftsChangeRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(SwapShiftsChangeRequest bod return await RequestAdapter.SendAsync(requestInfo, SwapShiftsChangeRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of swapShiftsChangeRequest objects in the team. + /// Retrieve a list of swapShiftsChangeRequest objects in the team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an instance of a swapShiftsChangeRequest object. + /// Create an instance of a swapShiftsChangeRequest object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SwapShiftsChangeRequestsRequestBuilder WithUrl(string rawUrl) { return new SwapShiftsChangeRequestsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of swapShiftsChangeRequest objects in the team. + /// Retrieve a list of swapShiftsChangeRequest objects in the team. This API is supported in the following national cloud deployments. /// public class SwapShiftsChangeRequestsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.cs index 82cb0567e5e..04c676b8853 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.cs @@ -29,7 +29,7 @@ public TimeOffReasonItemRequestBuilder(Dictionary pathParameters public TimeOffReasonItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/schedule/timeOffReasons/{timeOffReason%2Did}{?%24select}", rawUrl) { } /// - /// Mark a timeOffReason as inactive by setting the isActive property. Every team must include at least one timeoff reason. This method does not remove the specified timeOffReason instance. timeOffItem instances that have been assigned this reason remain assigned to this reason. + /// Mark a timeOffReason as inactive by setting the isActive property. Every team must include at least one timeoff reason. This method doesn't remove the specified timeOffReason instance. timeOffItem instances that have been assigned this reason remain assigned to this reason. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a timeOffReason object by ID. + /// Retrieve the properties and relationships of a timeOffReason object by ID. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -91,7 +91,7 @@ public async Task PatchAsync(TimeOffReason body, Action(requestInfo, TimeOffReason.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Mark a timeOffReason as inactive by setting the isActive property. Every team must include at least one timeoff reason. This method does not remove the specified timeOffReason instance. timeOffItem instances that have been assigned this reason remain assigned to this reason. + /// Mark a timeOffReason as inactive by setting the isActive property. Every team must include at least one timeoff reason. This method doesn't remove the specified timeOffReason instance. timeOffItem instances that have been assigned this reason remain assigned to this reason. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a timeOffReason object by ID. + /// Retrieve the properties and relationships of a timeOffReason object by ID. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -192,7 +192,7 @@ public TimeOffReasonItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a timeOffReason object by ID. + /// Retrieve the properties and relationships of a timeOffReason object by ID. This API is supported in the following national cloud deployments. /// public class TimeOffReasonItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs index dd53739380a..4fee8e51240 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs @@ -42,7 +42,7 @@ public TimeOffReasonsRequestBuilder(Dictionary pathParameters, I public TimeOffReasonsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/schedule/timeOffReasons{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get the list of timeOffReasons in a schedule. + /// Get the list of timeOffReasons in a schedule. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TimeOffReasonCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new timeOffReason. + /// Create a new timeOffReason. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TimeOffReason body, Action(requestInfo, TimeOffReason.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of timeOffReasons in a schedule. + /// Get the list of timeOffReasons in a schedule. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new timeOffReason. + /// Create a new timeOffReason. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public TimeOffReasonsRequestBuilder WithUrl(string rawUrl) { return new TimeOffReasonsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of timeOffReasons in a schedule. + /// Get the list of timeOffReasons in a schedule. This API is supported in the following national cloud deployments. /// public class TimeOffReasonsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.cs index 1cc4e324b45..5cd080ad8a3 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.cs @@ -29,7 +29,7 @@ public TimeOffRequestItemRequestBuilder(Dictionary pathParameter public TimeOffRequestItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/schedule/timeOffRequests/{timeOffRequest%2Did}{?%24select}", rawUrl) { } /// - /// Delete a timeOffRequest object. + /// Delete a timeOffRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a timeoffrequest object. + /// Retrieve the properties and relationships of a timeoffrequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(TimeOffRequest body, Action(requestInfo, TimeOffRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a timeOffRequest object. + /// Delete a timeOffRequest object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a timeoffrequest object. + /// Retrieve the properties and relationships of a timeoffrequest object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public TimeOffRequestItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a timeoffrequest object. + /// Retrieve the properties and relationships of a timeoffrequest object. This API is supported in the following national cloud deployments. /// public class TimeOffRequestItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs index 7824f46a8a5..5ee4a771c8e 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs @@ -42,7 +42,7 @@ public TimeOffRequestsRequestBuilder(Dictionary pathParameters, public TimeOffRequestsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/schedule/timeOffRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Retrieve a list of timeOffRequest objects in the team. + /// Retrieve a list of timeOffRequest objects in the team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(TimeOffRequest body, Action(requestInfo, TimeOffRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of timeOffRequest objects in the team. + /// Retrieve a list of timeOffRequest objects in the team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public TimeOffRequestsRequestBuilder WithUrl(string rawUrl) { return new TimeOffRequestsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of timeOffRequest objects in the team. + /// Retrieve a list of timeOffRequest objects in the team. This API is supported in the following national cloud deployments. /// public class TimeOffRequestsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.cs index faf30f371a0..5eaa5e3d249 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.cs @@ -29,7 +29,7 @@ public TimeOffItemRequestBuilder(Dictionary pathParameters, IReq public TimeOffItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/schedule/timesOff/{timeOff%2Did}{?%24select}", rawUrl) { } /// - /// Delete a timeOff instance from a schedule. + /// Delete a timeOff instance from a schedule. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a timeOff object by ID. + /// Retrieve the properties and relationships of a timeOff object by ID. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -91,7 +91,7 @@ public async Task PatchAsync(TimeOff body, Action(requestInfo, TimeOff.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a timeOff instance from a schedule. + /// Delete a timeOff instance from a schedule. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a timeOff object by ID. + /// Retrieve the properties and relationships of a timeOff object by ID. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -192,7 +192,7 @@ public TimeOffItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a timeOff object by ID. + /// Retrieve the properties and relationships of a timeOff object by ID. This API is supported in the following national cloud deployments. /// public class TimeOffItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimesOff/TimesOffRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimesOff/TimesOffRequestBuilder.cs index c244130ec31..d4217f81b32 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimesOff/TimesOffRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimesOff/TimesOffRequestBuilder.cs @@ -42,7 +42,7 @@ public TimesOffRequestBuilder(Dictionary pathParameters, IReques public TimesOffRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/schedule/timesOff{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get the list of timeOff instances in a schedule. + /// Get the list of timeOff instances in a schedule. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TimeOffCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new timeOff instance in a schedule. + /// Create a new timeOff instance in a schedule. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TimeOff body, Action(requestInfo, TimeOff.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of timeOff instances in a schedule. + /// Get the list of timeOff instances in a schedule. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new timeOff instance in a schedule. + /// Create a new timeOff instance in a schedule. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public TimesOffRequestBuilder WithUrl(string rawUrl) { return new TimesOffRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of timeOff instances in a schedule. + /// Get the list of timeOff instances in a schedule. This API is supported in the following national cloud deployments. /// public class TimesOffRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs index 988b8be24a3..439d5a7abcf 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs @@ -28,7 +28,7 @@ public SendActivityNotificationRequestBuilder(Dictionary pathPar public SendActivityNotificationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/sendActivityNotification", rawUrl) { } /// - /// Send an activity feed notification in the scope of a team. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. + /// Send an activity feed notification in the scope of a team. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SendActivityNotificationPostRequestBody body, Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send an activity feed notification in the scope of a team. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. + /// Send an activity feed notification in the scope of a team. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs index e23242b3bc3..c4c8c5210b4 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs @@ -29,7 +29,7 @@ public TeamworkTagMemberItemRequestBuilder(Dictionary pathParame public TeamworkTagMemberItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/tags/{teamworkTag%2Did}/members/{teamworkTagMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a member from a standard tag in a team. + /// Delete a member from a standard tag in a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get the properties and relationships of a member of a standard tag in a team. + /// Get the properties and relationships of a member of a standard tag in a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(TeamworkTagMember body, Action(requestInfo, TeamworkTagMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a member from a standard tag in a team. + /// Delete a member from a standard tag in a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties and relationships of a member of a standard tag in a team. + /// Get the properties and relationships of a member of a standard tag in a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public TeamworkTagMemberItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the properties and relationships of a member of a standard tag in a team. + /// Get the properties and relationships of a member of a standard tag in a team. This API is supported in the following national cloud deployments. /// public class TeamworkTagMemberItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/Members/MembersRequestBuilder.cs index f01fb034c57..7fe00cddb9a 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/Members/MembersRequestBuilder.cs @@ -42,7 +42,7 @@ public MembersRequestBuilder(Dictionary pathParameters, IRequest public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/tags/{teamworkTag%2Did}/members{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the members of a standard tag in a team and their properties. + /// Get a list of the members of a standard tag in a team and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TeamworkTagMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new teamworkTagMember object in a team. + /// Create a new teamworkTagMember object in a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TeamworkTagMember body, Action(requestInfo, TeamworkTagMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the members of a standard tag in a team and their properties. + /// Get a list of the members of a standard tag in a team and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new teamworkTagMember object in a team. + /// Create a new teamworkTagMember object in a team. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public MembersRequestBuilder WithUrl(string rawUrl) { return new MembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the members of a standard tag in a team and their properties. + /// Get a list of the members of a standard tag in a team and their properties. This API is supported in the following national cloud deployments. /// public class MembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs index f43315048d6..48df57fac9c 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs @@ -34,7 +34,7 @@ public TeamworkTagItemRequestBuilder(Dictionary pathParameters, public TeamworkTagItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/tags/{teamworkTag%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a tag object permanently. + /// Delete a tag object permanently. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a tag object. + /// Read the properties and relationships of a tag object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, TeamworkTag.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a tag object. + /// Update the properties of a tag object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(TeamworkTag body, Action(requestInfo, TeamworkTag.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a tag object permanently. + /// Delete a tag object permanently. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a tag object. + /// Read the properties and relationships of a tag object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a tag object. + /// Update the properties of a tag object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public TeamworkTagItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a tag object. + /// Read the properties and relationships of a tag object. This API is supported in the following national cloud deployments. /// public class TeamworkTagItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/TagsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/TagsRequestBuilder.cs index 10f44cf1221..e278c53ab09 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/TagsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/TagsRequestBuilder.cs @@ -42,7 +42,7 @@ public TagsRequestBuilder(Dictionary pathParameters, IRequestAda public TagsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/tags{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the tag objects and their properties. + /// Get a list of the tag objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TeamworkTagCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a standard tag for members in a team. + /// Create a standard tag for members in a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TeamworkTag body, Action(requestInfo, TeamworkTag.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the tag objects and their properties. + /// Get a list of the tag objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a standard tag for members in a team. + /// Create a standard tag for members in a team. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public TagsRequestBuilder WithUrl(string rawUrl) { return new TagsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the tag objects and their properties. + /// Get a list of the tag objects and their properties. This API is supported in the following national cloud deployments. /// public class TagsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Unarchive/UnarchiveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Unarchive/UnarchiveRequestBuilder.cs index b6381e6449d..d34e45d8652 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Unarchive/UnarchiveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Unarchive/UnarchiveRequestBuilder.cs @@ -28,7 +28,7 @@ public UnarchiveRequestBuilder(Dictionary pathParameters, IReque public UnarchiveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/unarchive", rawUrl) { } /// - /// Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. + /// Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. + /// Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/JoinedTeamsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/JoinedTeamsRequestBuilder.cs index 7a45e1fcfb7..b1f28876ae6 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/JoinedTeamsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/JoinedTeamsRequestBuilder.cs @@ -47,7 +47,7 @@ public JoinedTeamsRequestBuilder(Dictionary pathParameters, IReq public JoinedTeamsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the teams in Microsoft Teams that the user is a direct member of. + /// Get the teams in Microsoft Teams that the user is a direct member of. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -88,7 +88,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Team.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the teams in Microsoft Teams that the user is a direct member of. + /// Get the teams in Microsoft Teams that the user is a direct member of. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -149,7 +149,7 @@ public JoinedTeamsRequestBuilder WithUrl(string rawUrl) { return new JoinedTeamsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the teams in Microsoft Teams that the user is a direct member of. + /// Get the teams in Microsoft Teams that the user is a direct member of. This API is supported in the following national cloud deployments. /// public class JoinedTeamsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/LicenseDetails/LicenseDetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/LicenseDetails/LicenseDetailsRequestBuilder.cs index 7bf5d3c1e61..edf896e44ce 100644 --- a/src/Microsoft.Graph/Generated/Me/LicenseDetails/LicenseDetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/LicenseDetails/LicenseDetailsRequestBuilder.cs @@ -42,7 +42,7 @@ public LicenseDetailsRequestBuilder(Dictionary pathParameters, I public LicenseDetailsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/licenseDetails{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of licenseDetails objects for enterprise users. This API returns details for licenses that are directly assigned and those transitively assigned through memberships in licensed groups. + /// Retrieve a list of licenseDetails objects for enterprise users. This API returns details for licenses that are directly assigned and those transitively assigned through memberships in licensed groups. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.LicenseDetails.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of licenseDetails objects for enterprise users. This API returns details for licenses that are directly assigned and those transitively assigned through memberships in licensed groups. + /// Retrieve a list of licenseDetails objects for enterprise users. This API returns details for licenses that are directly assigned and those transitively assigned through memberships in licensed groups. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public LicenseDetailsRequestBuilder WithUrl(string rawUrl) { return new LicenseDetailsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of licenseDetails objects for enterprise users. This API returns details for licenses that are directly assigned and those transitively assigned through memberships in licensed groups. + /// Retrieve a list of licenseDetails objects for enterprise users. This API returns details for licenses that are directly assigned and those transitively assigned through memberships in licensed groups. This API is supported in the following national cloud deployments. /// public class LicenseDetailsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..7a481c458bd --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.MailFolders.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(MailFolder.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Delta/DeltaRequestBuilder.cs index 7925190df56..58eed525ec0 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. + /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. + /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. + /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Delta/DeltaResponse.cs index 9e8cad94f7f..4367151e73c 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.MailFolders.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(MailFolder.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs index 85ec33a0d95..201db55ef44 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, MailFolderCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. - /// Find more info here + /// Create a new mailSearchFolder in the specified user's mailbox. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. + /// Create a new mailSearchFolder in the specified user's mailbox. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..25d803a3766 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.MailFolders.Item.ChildFolders.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(MailFolder.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs index 5293c8581ce..dae798a9dcc 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/childFolders/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. + /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. + /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. + /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Delta/DeltaResponse.cs index 31a10404cac..571f274466a 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.MailFolders.Item.ChildFolders.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(MailFolder.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Copy/CopyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Copy/CopyRequestBuilder.cs index c291c563aeb..769aefcccc3 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Copy/CopyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Copy/CopyRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyRequestBuilder(Dictionary pathParameters, IRequestAda public CopyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/copy", rawUrl) { } /// - /// Copy a mailfolder and its contents to another mailfolder. + /// Copy a mailfolder and its contents to another mailfolder. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyPostRequestBody body, Action(requestInfo, MailFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a mailfolder and its contents to another mailfolder. + /// Copy a mailfolder and its contents to another mailfolder. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs index 1512b3427e2..a4788472f87 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs @@ -29,7 +29,7 @@ public MessageRuleItemRequestBuilder(Dictionary pathParameters, public MessageRuleItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messageRules/{messageRule%2Did}{?%24select}", rawUrl) { } /// - /// Delete the specified messageRule object. + /// Delete the specified messageRule object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get the properties and relationships of a messageRule object. + /// Get the properties and relationships of a messageRule object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, MessageRule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Change writable properties on a messageRule object and save the changes. + /// Change writable properties on a messageRule object and save the changes. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(MessageRule body, Action(requestInfo, MessageRule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete the specified messageRule object. + /// Delete the specified messageRule object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties and relationships of a messageRule object. + /// Get the properties and relationships of a messageRule object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Change writable properties on a messageRule object and save the changes. + /// Change writable properties on a messageRule object and save the changes. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public MessageRuleItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the properties and relationships of a messageRule object. + /// Get the properties and relationships of a messageRule object. This API is supported in the following national cloud deployments. /// public class MessageRuleItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/MessageRules/MessageRulesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/MessageRules/MessageRulesRequestBuilder.cs index 230aa2e3c71..243647d4484 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/MessageRules/MessageRulesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/MessageRules/MessageRulesRequestBuilder.cs @@ -42,7 +42,7 @@ public MessageRulesRequestBuilder(Dictionary pathParameters, IRe public MessageRulesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messageRules{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get all the messageRule objects defined for the user's inbox. + /// Get all the messageRule objects defined for the user's inbox. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, MessageRuleCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. + /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(MessageRule body, Action(requestInfo, MessageRule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get all the messageRule objects defined for the user's inbox. + /// Get all the messageRule objects defined for the user's inbox. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. + /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public MessageRulesRequestBuilder WithUrl(string rawUrl) { return new MessageRulesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get all the messageRule objects defined for the user's inbox. + /// Get all the messageRule objects defined for the user's inbox. This API is supported in the following national cloud deployments. /// public class MessageRulesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..205fb5f713b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.MailFolders.Item.ChildFolders.Item.Messages.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaRequestBuilder.cs index 8abefc85f80..5297af26bd8 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaResponse.cs index f85a5ed9264..5d8a7a601b8 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.MailFolders.Item.ChildFolders.Item.Messages.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index 4a06c15b436..126f6f3fb4f 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/attachments{?%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects attached to a message. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects attached to a message. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects attached to a message. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index a5ac45ea3f0..1ac181f240d 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index f1aeebdd273..8d66f646afe 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public AttachmentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. This API is supported in the following national cloud deployments. /// public class AttachmentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Copy/CopyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Copy/CopyRequestBuilder.cs index 7cf2357cd02..5a8b33dc138 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Copy/CopyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Copy/CopyRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyRequestBuilder(Dictionary pathParameters, IRequestAda public CopyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/copy", rawUrl) { } /// - /// Copy a message to a folder within the user's mailbox. + /// Copy a message to a folder within the user's mailbox. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public CopyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a message to a folder within the user's mailbox. + /// Copy a message to a folder within the user's mailbox. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs index a3a42961a5d..cb0803910ca 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateForwardRequestBuilder(Dictionary pathParameters, IR public CreateForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/createForward", rawUrl) { } /// - /// Create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. + /// Create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public CreateForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. + /// Create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs index 58e7050a308..3b77cf258d4 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateReplyRequestBuilder(Dictionary pathParameters, IReq public CreateReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/createReply", rawUrl) { } /// - /// Create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. + /// Create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public CreateReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. + /// Create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs index 69d4858ff80..397ce9ecf8e 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateReplyAllRequestBuilder(Dictionary pathParameters, I public CreateReplyAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/createReplyAll", rawUrl) { } /// - /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. + /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public CreateReplyAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapte return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. + /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs index 04f3b215128..4ceb0dccb88 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 8d1f61f10a4..0bac8c65ac3 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -29,7 +29,7 @@ public ExtensionItemRequestBuilder(Dictionary pathParameters, IR public ExtensionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/extensions/{extension%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an open extension (openTypeExtension object) from the specified instance of a resource. For the list of resources that support open extensions, see the table in the Permissions section. + /// Delete an open extension (openTypeExtension object) from the specified instance of a resource. For the list of resources that support open extensions, see the table in the Permissions section. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an open extension (openTypeExtension object) from the specified instance of a resource. For the list of resources that support open extensions, see the table in the Permissions section. + /// Delete an open extension (openTypeExtension object) from the specified instance of a resource. For the list of resources that support open extensions, see the table in the Permissions section. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.cs index 54b61657992..f3394af838c 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/forward", rawUrl) { } /// - /// Forward a message using either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to forward a message, and send it later. + /// Forward a message using either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to forward a message, and send it later. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// Forward a message using either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to forward a message, and send it later. + /// Forward a message using either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to forward a message, and send it later. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Move/MoveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Move/MoveRequestBuilder.cs index 4f119e84beb..446482d9be0 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Move/MoveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Move/MoveRequestBuilder.cs @@ -29,7 +29,7 @@ public MoveRequestBuilder(Dictionary pathParameters, IRequestAda public MoveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/move", rawUrl) { } /// - /// Move a message to another folder within the specified user's mailbox. This creates a new copy of the message in the destination folder and removes the original message. + /// Move a message to another folder within the specified user's mailbox. This creates a new copy of the message in the destination folder and removes the original message. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public MoveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Move a message to another folder within the specified user's mailbox. This creates a new copy of the message in the destination folder and removes the original message. + /// Move a message to another folder within the specified user's mailbox. This creates a new copy of the message in the destination folder and removes the original message. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.cs index 25a5566a6b7..2546a7d5a3b 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.cs @@ -28,7 +28,7 @@ public ReplyRequestBuilder(Dictionary pathParameters, IRequestAd public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/reply", rawUrl) { } /// - /// Reply to the sender of a message using either JSON or MIME format. When using JSON format:* Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.* If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply to an existing message and send it later. + /// Reply to the sender of a message using either JSON or MIME format. When using JSON format:* Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.* If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply to an existing message and send it later. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ReplyPostRequestBody body, Action - /// Reply to the sender of a message using either JSON or MIME format. When using JSON format:* Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.* If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply to an existing message and send it later. + /// Reply to the sender of a message using either JSON or MIME format. When using JSON format:* Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.* If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply to an existing message and send it later. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs index b8d5e7cf533..193b83b8a89 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs @@ -28,7 +28,7 @@ public ReplyAllRequestBuilder(Dictionary pathParameters, IReques public ReplyAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/replyAll", rawUrl) { } /// - /// Reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message and send it later. + /// Reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message and send it later. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ReplyAllPostRequestBody body, Action - /// Reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message and send it later. + /// Reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message and send it later. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Send/SendRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Send/SendRequestBuilder.cs index 410d2b073e2..38ff3d1b3ca 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Send/SendRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Send/SendRequestBuilder.cs @@ -28,7 +28,7 @@ public SendRequestBuilder(Dictionary pathParameters, IRequestAda public SendRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/send", rawUrl) { } /// - /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. + /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action r await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. + /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/MessagesRequestBuilder.cs index 84610caf17b..e346881bfbf 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/MessagesRequestBuilder.cs @@ -47,7 +47,7 @@ public MessagesRequestBuilder(Dictionary pathParameters, IReques public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get all the messages in the specified user's mailbox, or those messages in a specified folder in the mailbox. + /// Get all the messages in the specified user's mailbox, or those messages in a specified folder in the mailbox. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, MessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to create a new Message in a mailfolder. + /// Use this API to create a new Message in a mailfolder. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get all the messages in the specified user's mailbox, or those messages in a specified folder in the mailbox. + /// Get all the messages in the specified user's mailbox, or those messages in a specified folder in the mailbox. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Message in a mailfolder. + /// Use this API to create a new Message in a mailfolder. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public MessagesRequestBuilder WithUrl(string rawUrl) { return new MessagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get all the messages in the specified user's mailbox, or those messages in a specified folder in the mailbox. + /// Get all the messages in the specified user's mailbox, or those messages in a specified folder in the mailbox. This API is supported in the following national cloud deployments. /// public class MessagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Move/MoveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Move/MoveRequestBuilder.cs index 1fc3d41b46a..b970b88c3c0 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Move/MoveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Move/MoveRequestBuilder.cs @@ -29,7 +29,7 @@ public MoveRequestBuilder(Dictionary pathParameters, IRequestAda public MoveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/move", rawUrl) { } /// - /// Move a mailfolder and its contents to another mailfolder. + /// Move a mailfolder and its contents to another mailfolder. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(MovePostRequestBody body, Action(requestInfo, MailFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Move a mailfolder and its contents to another mailfolder. + /// Move a mailfolder and its contents to another mailfolder. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Copy/CopyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Copy/CopyRequestBuilder.cs index d1df3a949eb..985fd81add2 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Copy/CopyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Copy/CopyRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyRequestBuilder(Dictionary pathParameters, IRequestAda public CopyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/copy", rawUrl) { } /// - /// Copy a mailfolder and its contents to another mailfolder. + /// Copy a mailfolder and its contents to another mailfolder. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyPostRequestBody body, Action(requestInfo, MailFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a mailfolder and its contents to another mailfolder. + /// Copy a mailfolder and its contents to another mailfolder. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MailFolderItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MailFolderItemRequestBuilder.cs index 6142b6e331c..a13469c8520 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MailFolderItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MailFolderItemRequestBuilder.cs @@ -54,7 +54,7 @@ public MailFolderItemRequestBuilder(Dictionary pathParameters, I public MailFolderItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}{?includeHiddenFolders*,%24select,%24expand}", rawUrl) { } /// - /// Delete the specified mailFolder. The folder can be a mailSearchFolder. You can specify a mail folder by its folder ID, or by its well-known folder name, if one exists. + /// Delete the specified mailFolder. The folder can be a mailSearchFolder. You can specify a mail folder by its folder ID, or by its well-known folder name, if one exists. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -94,7 +94,7 @@ public async Task GetAsync(Action(requestInfo, MailFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the writable properties of a mailSearchFolder object. + /// Update the writable properties of a mailSearchFolder object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -116,7 +116,7 @@ public async Task PatchAsync(MailFolder body, Action(requestInfo, MailFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete the specified mailFolder. The folder can be a mailSearchFolder. You can specify a mail folder by its folder ID, or by its well-known folder name, if one exists. + /// Delete the specified mailFolder. The folder can be a mailSearchFolder. You can specify a mail folder by its folder ID, or by its well-known folder name, if one exists. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -166,7 +166,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the writable properties of a mailSearchFolder object. + /// Update the writable properties of a mailSearchFolder object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs index 38d70524952..770d4a2bee8 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs @@ -29,7 +29,7 @@ public MessageRuleItemRequestBuilder(Dictionary pathParameters, public MessageRuleItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/messageRules/{messageRule%2Did}{?%24select}", rawUrl) { } /// - /// Delete the specified messageRule object. + /// Delete the specified messageRule object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get the properties and relationships of a messageRule object. + /// Get the properties and relationships of a messageRule object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, MessageRule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Change writable properties on a messageRule object and save the changes. + /// Change writable properties on a messageRule object and save the changes. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(MessageRule body, Action(requestInfo, MessageRule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete the specified messageRule object. + /// Delete the specified messageRule object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties and relationships of a messageRule object. + /// Get the properties and relationships of a messageRule object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Change writable properties on a messageRule object and save the changes. + /// Change writable properties on a messageRule object and save the changes. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public MessageRuleItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the properties and relationships of a messageRule object. + /// Get the properties and relationships of a messageRule object. This API is supported in the following national cloud deployments. /// public class MessageRuleItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MessageRules/MessageRulesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MessageRules/MessageRulesRequestBuilder.cs index bd5e9b69536..bca055e5b6b 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MessageRules/MessageRulesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MessageRules/MessageRulesRequestBuilder.cs @@ -42,7 +42,7 @@ public MessageRulesRequestBuilder(Dictionary pathParameters, IRe public MessageRulesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/messageRules{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get all the messageRule objects defined for the user's inbox. + /// Get all the messageRule objects defined for the user's inbox. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, MessageRuleCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. + /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(MessageRule body, Action(requestInfo, MessageRule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get all the messageRule objects defined for the user's inbox. + /// Get all the messageRule objects defined for the user's inbox. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. + /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public MessageRulesRequestBuilder WithUrl(string rawUrl) { return new MessageRulesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get all the messageRule objects defined for the user's inbox. + /// Get all the messageRule objects defined for the user's inbox. This API is supported in the following national cloud deployments. /// public class MessageRulesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..b1c625019c2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.MailFolders.Item.Messages.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Delta/DeltaRequestBuilder.cs index 4d8820742c1..54561bacca5 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/messages/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Delta/DeltaResponse.cs index d547987a0fc..97baf73d606 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.MailFolders.Item.Messages.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index 207ab8141cd..94f24ef321a 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/attachments{?%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects attached to a message. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects attached to a message. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects attached to a message. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 4bad492d4be..5e85d9bbca9 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 370712bafe1..742c0cf3a3f 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public AttachmentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. This API is supported in the following national cloud deployments. /// public class AttachmentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Copy/CopyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Copy/CopyRequestBuilder.cs index 9daf3001d8f..3973d0d5d98 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Copy/CopyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Copy/CopyRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyRequestBuilder(Dictionary pathParameters, IRequestAda public CopyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/copy", rawUrl) { } /// - /// Copy a message to a folder within the user's mailbox. + /// Copy a message to a folder within the user's mailbox. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public CopyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a message to a folder within the user's mailbox. + /// Copy a message to a folder within the user's mailbox. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs index 6ad00a2e425..ded24896b41 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateForwardRequestBuilder(Dictionary pathParameters, IR public CreateForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/createForward", rawUrl) { } /// - /// Create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. + /// Create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public CreateForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. + /// Create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs index a5a8b77aed5..bfd32c314ae 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateReplyRequestBuilder(Dictionary pathParameters, IReq public CreateReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/createReply", rawUrl) { } /// - /// Create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. + /// Create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public CreateReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. + /// Create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs index 2c100daae4e..210d322e09f 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateReplyAllRequestBuilder(Dictionary pathParameters, I public CreateReplyAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/createReplyAll", rawUrl) { } /// - /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. + /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public CreateReplyAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapte return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. + /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs index 02df948b17e..6d146a9defa 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 984628ad431..8307f860e8f 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -29,7 +29,7 @@ public ExtensionItemRequestBuilder(Dictionary pathParameters, IR public ExtensionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/extensions/{extension%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an open extension (openTypeExtension object) from the specified instance of a resource. For the list of resources that support open extensions, see the table in the Permissions section. + /// Delete an open extension (openTypeExtension object) from the specified instance of a resource. For the list of resources that support open extensions, see the table in the Permissions section. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an open extension (openTypeExtension object) from the specified instance of a resource. For the list of resources that support open extensions, see the table in the Permissions section. + /// Delete an open extension (openTypeExtension object) from the specified instance of a resource. For the list of resources that support open extensions, see the table in the Permissions section. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.cs index 16e8c0c802f..faa6b63f70b 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/forward", rawUrl) { } /// - /// Forward a message using either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to forward a message, and send it later. + /// Forward a message using either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to forward a message, and send it later. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// Forward a message using either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to forward a message, and send it later. + /// Forward a message using either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to forward a message, and send it later. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Move/MoveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Move/MoveRequestBuilder.cs index 2cca1ec5600..38a018f6542 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Move/MoveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Move/MoveRequestBuilder.cs @@ -29,7 +29,7 @@ public MoveRequestBuilder(Dictionary pathParameters, IRequestAda public MoveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/move", rawUrl) { } /// - /// Move a message to another folder within the specified user's mailbox. This creates a new copy of the message in the destination folder and removes the original message. + /// Move a message to another folder within the specified user's mailbox. This creates a new copy of the message in the destination folder and removes the original message. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public MoveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Move a message to another folder within the specified user's mailbox. This creates a new copy of the message in the destination folder and removes the original message. + /// Move a message to another folder within the specified user's mailbox. This creates a new copy of the message in the destination folder and removes the original message. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.cs index 355390d7701..4ff1dd2c499 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.cs @@ -28,7 +28,7 @@ public ReplyRequestBuilder(Dictionary pathParameters, IRequestAd public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/reply", rawUrl) { } /// - /// Reply to the sender of a message using either JSON or MIME format. When using JSON format:* Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.* If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply to an existing message and send it later. + /// Reply to the sender of a message using either JSON or MIME format. When using JSON format:* Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.* If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply to an existing message and send it later. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ReplyPostRequestBody body, Action - /// Reply to the sender of a message using either JSON or MIME format. When using JSON format:* Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.* If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply to an existing message and send it later. + /// Reply to the sender of a message using either JSON or MIME format. When using JSON format:* Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.* If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply to an existing message and send it later. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs index af260650a45..e360dae1910 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs @@ -28,7 +28,7 @@ public ReplyAllRequestBuilder(Dictionary pathParameters, IReques public ReplyAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/replyAll", rawUrl) { } /// - /// Reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message and send it later. + /// Reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message and send it later. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ReplyAllPostRequestBody body, Action - /// Reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message and send it later. + /// Reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message and send it later. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Send/SendRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Send/SendRequestBuilder.cs index 97d30576296..b9b3b0d6270 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Send/SendRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Send/SendRequestBuilder.cs @@ -28,7 +28,7 @@ public SendRequestBuilder(Dictionary pathParameters, IRequestAda public SendRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/send", rawUrl) { } /// - /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. + /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action r await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. + /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/MessagesRequestBuilder.cs index 1f6832becd1..7c2515987a4 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/MessagesRequestBuilder.cs @@ -47,7 +47,7 @@ public MessagesRequestBuilder(Dictionary pathParameters, IReques public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/messages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get all the messages in the specified user's mailbox, or those messages in a specified folder in the mailbox. + /// Get all the messages in the specified user's mailbox, or those messages in a specified folder in the mailbox. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, MessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to create a new Message in a mailfolder. + /// Use this API to create a new Message in a mailfolder. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get all the messages in the specified user's mailbox, or those messages in a specified folder in the mailbox. + /// Get all the messages in the specified user's mailbox, or those messages in a specified folder in the mailbox. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Message in a mailfolder. + /// Use this API to create a new Message in a mailfolder. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public MessagesRequestBuilder WithUrl(string rawUrl) { return new MessagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get all the messages in the specified user's mailbox, or those messages in a specified folder in the mailbox. + /// Get all the messages in the specified user's mailbox, or those messages in a specified folder in the mailbox. This API is supported in the following national cloud deployments. /// public class MessagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Move/MoveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Move/MoveRequestBuilder.cs index 6c6cabf4c6b..297fa5b36b3 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Move/MoveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Move/MoveRequestBuilder.cs @@ -29,7 +29,7 @@ public MoveRequestBuilder(Dictionary pathParameters, IRequestAda public MoveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/move", rawUrl) { } /// - /// Move a mailfolder and its contents to another mailfolder. + /// Move a mailfolder and its contents to another mailfolder. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(MovePostRequestBody body, Action(requestInfo, MailFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Move a mailfolder and its contents to another mailfolder. + /// Move a mailfolder and its contents to another mailfolder. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/MailFoldersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/MailFoldersRequestBuilder.cs index 904e42aebda..7cbaa0a787a 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/MailFoldersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/MailFoldersRequestBuilder.cs @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, MailFolderCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to create a new mail folder in the root folder of the user's mailbox. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. + /// Use this API to create a new mail folder in the root folder of the user's mailbox. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new mail folder in the root folder of the user's mailbox. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. + /// Use this API to create a new mail folder in the root folder of the user's mailbox. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlPostResponse.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlPostResponse.cs new file mode 100644 index 00000000000..54574d05e5a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlPostResponse.cs @@ -0,0 +1,64 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.ManagedDevices.Item.LogCollectionRequests.Item.CreateDownloadUrl { + public class CreateDownloadUrlPostResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public string Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Instantiates a new createDownloadUrlPostResponse and sets the default values. + /// + public CreateDownloadUrlPostResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static CreateDownloadUrlPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CreateDownloadUrlPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.cs index 6e731932ec7..3d9c544166e 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.cs @@ -33,6 +33,26 @@ public CreateDownloadUrlRequestBuilder(string rawUrl, IRequestAdapter requestAda /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCreateDownloadUrlPostResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCreateDownloadUrlPostResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CreateDownloadUrlPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action createDownloadUrl + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCreateDownloadUrlPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlResponse.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlResponse.cs index 3f4133b021a..d4c2150478a 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlResponse.cs @@ -1,64 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.ManagedDevices.Item.LogCollectionRequests.Item.CreateDownloadUrl { - public class CreateDownloadUrlResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public string Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } -#endif - /// - /// Instantiates a new createDownloadUrlResponse and sets the default values. - /// - public CreateDownloadUrlResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use createDownloadUrlPostResponse instead.")] + public class CreateDownloadUrlResponse : CreateDownloadUrlPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static CreateDownloadUrlResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CreateDownloadUrlResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CreateDownloadUrlResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/Manager/ManagerRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Manager/ManagerRequestBuilder.cs index 830432790ed..842632906f6 100644 --- a/src/Microsoft.Graph/Generated/Me/Manager/ManagerRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Manager/ManagerRequestBuilder.cs @@ -34,7 +34,7 @@ public ManagerRequestBuilder(Dictionary pathParameters, IRequest public ManagerRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/manager{?%24select,%24expand}", rawUrl) { } /// - /// Remove a user's manager. + /// Remove a user's manager. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. + /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Remove a user's manager. + /// Remove a user's manager. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -98,7 +98,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. + /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,7 +147,7 @@ public ManagerRequestBuilderDeleteRequestConfiguration() { } } /// - /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. + /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. This API is supported in the following national cloud deployments. /// public class ManagerRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Manager/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Manager/Ref/RefRequestBuilder.cs index 0d53b3f2742..0438aecde75 100644 --- a/src/Microsoft.Graph/Generated/Me/Manager/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Manager/Ref/RefRequestBuilder.cs @@ -29,7 +29,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/manager/$ref", rawUrl) { } /// - /// Remove a user's manager. + /// Remove a user's manager. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. + /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Assign a user's manager. + /// Assign a user's manager. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PutAsync(ReferenceUpdate body, Action - /// Remove a user's manager. + /// Remove a user's manager. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. + /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Assign a user's manager. + /// Assign a user's manager. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MeRequestBuilder.cs index 66f506d7ddf..c3e881aa605 100644 --- a/src/Microsoft.Graph/Generated/Me/MeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MeRequestBuilder.cs @@ -64,6 +64,7 @@ using Microsoft.Graph.Me.RevokeSignInSessions; using Microsoft.Graph.Me.ScopedRoleMemberOf; using Microsoft.Graph.Me.SendMail; +using Microsoft.Graph.Me.ServiceProvisioningErrors; using Microsoft.Graph.Me.Settings; using Microsoft.Graph.Me.Teamwork; using Microsoft.Graph.Me.Todo; @@ -337,6 +338,10 @@ public class MeRequestBuilder : BaseRequestBuilder { public SendMailRequestBuilder SendMail { get => new SendMailRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to manage the settings property of the microsoft.graph.user entity. public SettingsRequestBuilder Settings { get => new SettingsRequestBuilder(PathParameters, RequestAdapter); @@ -386,7 +391,7 @@ public ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder ExportDevic return new ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder(PathParameters, RequestAdapter, skip, top); } /// - /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. + /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -406,7 +411,7 @@ public ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder ExportDevic return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage. + /// Update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -438,7 +443,7 @@ public ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder ReminderViewWi return new ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder(PathParameters, RequestAdapter, endDateTime, startDateTime); } /// - /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. + /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -464,7 +469,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage. + /// Update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -499,7 +504,7 @@ public MeRequestBuilder WithUrl(string rawUrl) { return new MeRequestBuilder(rawUrl, RequestAdapter); } /// - /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. + /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. This API is supported in the following national cloud deployments. /// public class MeRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Messages/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..3491e3fce18 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Messages/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.Messages.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Delta/DeltaRequestBuilder.cs index cd177339de9..52dd91665d5 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/messages/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/Messages/Delta/DeltaResponse.cs index 94bfb4b3846..e949951fcd4 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.Messages.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index a9181205aeb..4cc946de836 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/messages/{message%2Did}/attachments{?%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects attached to a message. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects attached to a message. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects attached to a message. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 3e1b89663af..188bd174ba9 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/messages/{message%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 76a64eee9f9..3f549bd6d89 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public AttachmentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. This API is supported in the following national cloud deployments. /// public class AttachmentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Copy/CopyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Copy/CopyRequestBuilder.cs index 2ec5db1a82c..ca4809609f1 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Copy/CopyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Copy/CopyRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyRequestBuilder(Dictionary pathParameters, IRequestAda public CopyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/messages/{message%2Did}/copy", rawUrl) { } /// - /// Copy a message to a folder within the user's mailbox. + /// Copy a message to a folder within the user's mailbox. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public CopyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a message to a folder within the user's mailbox. + /// Copy a message to a folder within the user's mailbox. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs index 38b75fc8557..e88cc7d0dea 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateForwardRequestBuilder(Dictionary pathParameters, IR public CreateForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/messages/{message%2Did}/createForward", rawUrl) { } /// - /// Create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. + /// Create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public CreateForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. + /// Create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs index 9be1972569f..ce4258cbd53 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateReplyRequestBuilder(Dictionary pathParameters, IReq public CreateReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/messages/{message%2Did}/createReply", rawUrl) { } /// - /// Create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. + /// Create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public CreateReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. + /// Create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs index cf12ec1eb92..fc85b406d6c 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateReplyAllRequestBuilder(Dictionary pathParameters, I public CreateReplyAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/messages/{message%2Did}/createReplyAll", rawUrl) { } /// - /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. + /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public CreateReplyAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapte return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. + /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Extensions/ExtensionsRequestBuilder.cs index 68323607d87..9ec88958285 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/messages/{message%2Did}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index e5c4564935e..82678675ec4 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -29,7 +29,7 @@ public ExtensionItemRequestBuilder(Dictionary pathParameters, IR public ExtensionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/messages/{message%2Did}/extensions/{extension%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an open extension (openTypeExtension object) from the specified instance of a resource. For the list of resources that support open extensions, see the table in the Permissions section. + /// Delete an open extension (openTypeExtension object) from the specified instance of a resource. For the list of resources that support open extensions, see the table in the Permissions section. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an open extension (openTypeExtension object) from the specified instance of a resource. For the list of resources that support open extensions, see the table in the Permissions section. + /// Delete an open extension (openTypeExtension object) from the specified instance of a resource. For the list of resources that support open extensions, see the table in the Permissions section. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Forward/ForwardRequestBuilder.cs index 85520b716ed..4ab86d31e57 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/messages/{message%2Did}/forward", rawUrl) { } /// - /// Forward a message using either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to forward a message, and send it later. + /// Forward a message using either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to forward a message, and send it later. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// Forward a message using either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to forward a message, and send it later. + /// Forward a message using either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to forward a message, and send it later. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs index 6e24bddf8dc..f5e671f3d2a 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs @@ -89,8 +89,8 @@ public MessageItemRequestBuilder(Dictionary pathParameters, IReq public MessageItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/messages/{message%2Did}{?includeHiddenMessages*,%24select,%24expand}", rawUrl) { } /// - /// Delete eventMessage. - /// Find more info here + /// Delete a message in the specified user's mailbox, or delete a relationship of the message. This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -110,7 +110,7 @@ public async Task DeleteAsync(Action /// The messages in a mailbox or folder. Read-only. Nullable. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -129,7 +129,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a message object. + /// Update the properties of a message object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -151,7 +151,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete eventMessage. + /// Delete a message in the specified user's mailbox, or delete a relationship of the message. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -201,7 +201,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a message object. + /// Update the properties of a message object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Move/MoveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Move/MoveRequestBuilder.cs index cc6cbf95ecb..5f67fe33da1 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Move/MoveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Move/MoveRequestBuilder.cs @@ -29,7 +29,7 @@ public MoveRequestBuilder(Dictionary pathParameters, IRequestAda public MoveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/messages/{message%2Did}/move", rawUrl) { } /// - /// Move a message to another folder within the specified user's mailbox. This creates a new copy of the message in the destination folder and removes the original message. + /// Move a message to another folder within the specified user's mailbox. This creates a new copy of the message in the destination folder and removes the original message. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public MoveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Move a message to another folder within the specified user's mailbox. This creates a new copy of the message in the destination folder and removes the original message. + /// Move a message to another folder within the specified user's mailbox. This creates a new copy of the message in the destination folder and removes the original message. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Reply/ReplyRequestBuilder.cs index dfea0aa5ad4..324e94290ad 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Reply/ReplyRequestBuilder.cs @@ -28,7 +28,7 @@ public ReplyRequestBuilder(Dictionary pathParameters, IRequestAd public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/messages/{message%2Did}/reply", rawUrl) { } /// - /// Reply to the sender of a message using either JSON or MIME format. When using JSON format:* Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.* If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply to an existing message and send it later. + /// Reply to the sender of a message using either JSON or MIME format. When using JSON format:* Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.* If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply to an existing message and send it later. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ReplyPostRequestBody body, Action - /// Reply to the sender of a message using either JSON or MIME format. When using JSON format:* Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.* If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply to an existing message and send it later. + /// Reply to the sender of a message using either JSON or MIME format. When using JSON format:* Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.* If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply to an existing message and send it later. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs index 404fb208df9..23c3bfbd86a 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs @@ -28,7 +28,7 @@ public ReplyAllRequestBuilder(Dictionary pathParameters, IReques public ReplyAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/messages/{message%2Did}/replyAll", rawUrl) { } /// - /// Reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message and send it later. + /// Reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message and send it later. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ReplyAllPostRequestBody body, Action - /// Reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message and send it later. + /// Reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message and send it later. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Send/SendRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Send/SendRequestBuilder.cs index 297897e4e57..30d47af9522 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Send/SendRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Send/SendRequestBuilder.cs @@ -28,7 +28,7 @@ public SendRequestBuilder(Dictionary pathParameters, IRequestAda public SendRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/messages/{message%2Did}/send", rawUrl) { } /// - /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. + /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action r await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. + /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Value/ContentRequestBuilder.cs index 702cb5165f5..267117d7037 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Value/ContentRequestBuilder.cs @@ -29,7 +29,7 @@ public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } /// /// Get media content for the navigation property messages from me - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs index 1a7d60727a5..bd012c3d57f 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs @@ -48,7 +48,7 @@ public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b } /// /// The messages in a mailbox or folder. Read-only. Nullable. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, MessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. - /// Find more info here + /// Create a draft of a new message in either JSON or MIME format. When using JSON format, you can:- Include an attachment to the message.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- /* Add any attachments and S/MIME properties to the MIME content. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single operation, or create a draft to forward, reply and reply-all to an existing message. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create a draft of a new message in either JSON or MIME format. When using JSON format, you can:- Include an attachment to the message.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- /* Add any attachments and S/MIME properties to the MIME content. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single operation, or create a draft to forward, reply and reply-all to an existing message. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.cs index eab2da71b59..6ab4cf4fa5a 100644 --- a/src/Microsoft.Graph/Generated/Me/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.cs @@ -42,7 +42,7 @@ public Oauth2PermissionGrantsRequestBuilder(Dictionary pathParam public Oauth2PermissionGrantsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/oauth2PermissionGrants{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of oAuth2PermissionGrant entities, which represent delegated permissions granted to enable a client application to access an API on behalf of the user. + /// Retrieve a list of oAuth2PermissionGrant entities, which represent delegated permissions granted to enable a client application to access an API on behalf of the user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OAuth2PermissionGrantCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of oAuth2PermissionGrant entities, which represent delegated permissions granted to enable a client application to access an API on behalf of the user. + /// Retrieve a list of oAuth2PermissionGrant entities, which represent delegated permissions granted to enable a client application to access an API on behalf of the user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public Oauth2PermissionGrantsRequestBuilder WithUrl(string rawUrl) { return new Oauth2PermissionGrantsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of oAuth2PermissionGrant entities, which represent delegated permissions granted to enable a client application to access an API on behalf of the user. + /// Retrieve a list of oAuth2PermissionGrant entities, which represent delegated permissions granted to enable a client application to access an API on behalf of the user. This API is supported in the following national cloud deployments. /// public class Oauth2PermissionGrantsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs index e976f7abe0a..c24c1c76709 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs @@ -29,7 +29,7 @@ public GetNotebookFromWebUrlRequestBuilder(Dictionary pathParame public GetNotebookFromWebUrlRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onenote/notebooks/getNotebookFromWebUrl", rawUrl) { } /// - /// Retrieve the properties and relationships of a notebook object by using its URL path. The location can be user notebooks on Microsoft 365, group notebooks, or SharePoint site-hosted team notebooks on Microsoft 365. + /// Retrieve the properties and relationships of a notebook object by using its URL path. The location can be user notebooks on Microsoft 365, group notebooks, or SharePoint site-hosted team notebooks on Microsoft 365. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(GetNotebookFromWebUrlPostRequestB return await RequestAdapter.SendAsync(requestInfo, CopyNotebookModel.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the properties and relationships of a notebook object by using its URL path. The location can be user notebooks on Microsoft 365, group notebooks, or SharePoint site-hosted team notebooks on Microsoft 365. + /// Retrieve the properties and relationships of a notebook object by using its URL path. The location can be user notebooks on Microsoft 365, group notebooks, or SharePoint site-hosted team notebooks on Microsoft 365. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs new file mode 100644 index 00000000000..c110c5eb814 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.Onenote.Notebooks.GetRecentNotebooksWithIncludePersonalNotebooks { + public class GetRecentNotebooksWithIncludePersonalNotebooksGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetRecentNotebooksWithIncludePersonalNotebooksGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetRecentNotebooksWithIncludePersonalNotebooksGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(RecentNotebook.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs index db4c287b3cf..c7817cecdda 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs @@ -35,6 +35,26 @@ public GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder(string rawUr /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetRecentNotebooksWithIncludePersonalNotebooksGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetRecentNotebooksWithIncludePersonalNotebooksGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getRecentNotebooks + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetRecentNotebooksWithIncludePersonalNotebooksGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs index 11a919436d3..c15a802338c 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.Onenote.Notebooks.GetRecentNotebooksWithIncludePersonalNotebooks { - public class GetRecentNotebooksWithIncludePersonalNotebooksResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getRecentNotebooksWithIncludePersonalNotebooksGetResponse instead.")] + public class GetRecentNotebooksWithIncludePersonalNotebooksResponse : GetRecentNotebooksWithIncludePersonalNotebooksGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetRecentNotebooksWithIncludePersonalNotebooksResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(RecentNotebook.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs index 3304d692685..0b52a745866 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyNotebookRequestBuilder(Dictionary pathParameters, IRe public CopyNotebookRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onenote/notebooks/{notebook%2Did}/copyNotebook", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyNotebookPostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs index 7d74d3ff739..189209282e5 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs @@ -63,7 +63,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a notebook object. + /// Retrieve the properties and relationships of a notebook object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -128,7 +128,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a notebook object. + /// Retrieve the properties and relationships of a notebook object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -205,7 +205,7 @@ public NotebookItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a notebook object. + /// Retrieve the properties and relationships of a notebook object. This API is supported in the following national cloud deployments. /// public class NotebookItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs index 5e900c0d9bd..0d508286a57 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionGroupsRequestBuilder(Dictionary pathParameters, IR public SectionGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sectionGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of section groups from the specified section group. + /// Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, SectionGroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of section groups from the specified section group. + /// Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public SectionGroupsRequestBuilder WithUrl(string rawUrl) { return new SectionGroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of section groups from the specified section group. + /// Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. /// public class SectionGroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index 2df1e5f1299..6f3683e6f55 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToNotebookRequestBuilder(Dictionary pathParameters, I public CopyToNotebookRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToNotebook", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToNotebookPostRequestBody body return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index 7026890d544..77fdfb9a990 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionGroupRequestBuilder(Dictionary pathParameter public CopyToSectionGroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionGroupPostRequestBody return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index caf66e2844a..6248592d963 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionRequestBuilder(Dictionary pathParameters, IR public CopyToSectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", rawUrl) { } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionPostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs index e897db8f6a6..c6aeddf9d58 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs @@ -42,7 +42,7 @@ public PagesRequestBuilder(Dictionary pathParameters, IRequestAd public PagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenotePageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenotePage body, Action(requestInfo, OnenotePage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PagesRequestBuilder WithUrl(string rawUrl) { return new PagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// public class PagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs index 46da9debba8..26b6ee0391a 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionsRequestBuilder(Dictionary pathParameters, IReques public SectionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of onenoteSection objects from the specified section group. + /// Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenoteSectionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new onenoteSection in the specified section group. + /// Create a new onenoteSection in the specified section group. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenoteSection body, Action(requestInfo, OnenoteSection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of onenoteSection objects from the specified section group. + /// Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new onenoteSection in the specified section group. + /// Create a new onenoteSection in the specified section group. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SectionsRequestBuilder WithUrl(string rawUrl) { return new SectionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of onenoteSection objects from the specified section group. + /// Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. /// public class SectionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs index c50a25ed2cd..5a90dca9511 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionGroupsRequestBuilder(Dictionary pathParameters, IR public SectionGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onenote/notebooks/{notebook%2Did}/sectionGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of section groups from the specified notebook. + /// Retrieve a list of section groups from the specified notebook. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, SectionGroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new section group in the specified notebook. + /// Create a new section group in the specified notebook. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(SectionGroup body, Action(requestInfo, SectionGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of section groups from the specified notebook. + /// Retrieve a list of section groups from the specified notebook. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new section group in the specified notebook. + /// Create a new section group in the specified notebook. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SectionGroupsRequestBuilder WithUrl(string rawUrl) { return new SectionGroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of section groups from the specified notebook. + /// Retrieve a list of section groups from the specified notebook. This API is supported in the following national cloud deployments. /// public class SectionGroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index 59a7063ab50..0c096e85d90 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToNotebookRequestBuilder(Dictionary pathParameters, I public CopyToNotebookRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/copyToNotebook", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToNotebookPostRequestBody body return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index 7f7588b36e5..f4b47b1b649 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionGroupRequestBuilder(Dictionary pathParameter public CopyToSectionGroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionGroupPostRequestBody return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 3ad33c33616..655f7835ae6 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionRequestBuilder(Dictionary pathParameters, IR public CopyToSectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", rawUrl) { } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionPostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs index 3b51ed3b906..74acb298158 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs @@ -42,7 +42,7 @@ public PagesRequestBuilder(Dictionary pathParameters, IRequestAd public PagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenotePageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenotePage body, Action(requestInfo, OnenotePage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PagesRequestBuilder WithUrl(string rawUrl) { return new PagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// public class PagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs index 89e01bb28b7..cfd6d7777c4 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionsRequestBuilder(Dictionary pathParameters, IReques public SectionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onenote/notebooks/{notebook%2Did}/sections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of onenoteSection objects from the specified notebook. + /// Retrieve a list of onenoteSection objects from the specified notebook. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenoteSectionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new onenoteSection in the specified notebook. + /// Create a new onenoteSection in the specified notebook. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenoteSection body, Action(requestInfo, OnenoteSection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of onenoteSection objects from the specified notebook. + /// Retrieve a list of onenoteSection objects from the specified notebook. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new onenoteSection in the specified notebook. + /// Create a new onenoteSection in the specified notebook. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SectionsRequestBuilder WithUrl(string rawUrl) { return new SectionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of onenoteSection objects from the specified notebook. + /// Retrieve a list of onenoteSection objects from the specified notebook. This API is supported in the following national cloud deployments. /// public class SectionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/NotebooksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/NotebooksRequestBuilder.cs index 264c7135374..9365c0b3439 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/NotebooksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/NotebooksRequestBuilder.cs @@ -48,7 +48,7 @@ public NotebooksRequestBuilder(Dictionary pathParameters, IReque public NotebooksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onenote/notebooks{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of notebook objects. + /// Retrieve a list of notebook objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -76,7 +76,7 @@ public GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder GetRecentNot return new GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder(PathParameters, RequestAdapter, includePersonalNotebooks); } /// - /// Create a new OneNote notebook. + /// Create a new OneNote notebook. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -98,7 +98,7 @@ public async Task PostAsync(Notebook body, Action(requestInfo, Notebook.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of notebook objects. + /// Retrieve a list of notebook objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -124,7 +124,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new OneNote notebook. + /// Create a new OneNote notebook. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -159,7 +159,7 @@ public NotebooksRequestBuilder WithUrl(string rawUrl) { return new NotebooksRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of notebook objects. + /// Retrieve a list of notebook objects. This API is supported in the following national cloud deployments. /// public class NotebooksRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs index f82ff42ec5b..d9bf3b97167 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public OnenoteOperationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. /// public class OnenoteOperationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Operations/OperationsRequestBuilder.cs index 78c113c9084..97866460123 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Operations/OperationsRequestBuilder.cs @@ -42,7 +42,7 @@ public OperationsRequestBuilder(Dictionary pathParameters, IRequ public OperationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onenote/operations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(OnenoteOperation body, Action(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public OperationsRequestBuilder WithUrl(string rawUrl) { return new OperationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. /// public class OperationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index fcc6de72897..58a4c156dd2 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionRequestBuilder(Dictionary pathParameters, IR public CopyToSectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onenote/pages/{onenotePage%2Did}/copyToSection", rawUrl) { } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionPostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs index f4d8f07c08e..5a5f7b8ad44 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -59,7 +59,7 @@ public OnenotePageItemRequestBuilder(Dictionary pathParameters, public OnenotePageItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onenote/pages/{onenotePage%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a OneNote page. + /// Delete a OneNote page. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -79,7 +79,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. + /// Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -120,7 +120,7 @@ public async Task PatchAsync(OnenotePage body, Action(requestInfo, OnenotePage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a OneNote page. + /// Delete a OneNote page. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. + /// Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -221,7 +221,7 @@ public OnenotePageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. + /// Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. This API is supported in the following national cloud deployments. /// public class OnenotePageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Pages/PagesRequestBuilder.cs index d928b55b1cb..73b97f0e322 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Pages/PagesRequestBuilder.cs @@ -42,7 +42,7 @@ public PagesRequestBuilder(Dictionary pathParameters, IRequestAd public PagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onenote/pages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of page objects. + /// Retrieve a list of page objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenotePageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new OneNote page in the default section of the default notebook. To create a page in a different section in the default notebook, you can use the sectionName query parameter. Example: ../onenote/pages?sectionName=My%20section The POST /onenote/pages operation is used only to create pages in the current user's default notebook. If you're targeting other notebooks, you can create pages in a specified section. + /// Create a new OneNote page in the default section of the default notebook. To create a page in a different section in the default notebook, you can use the sectionName query parameter. Example: ../onenote/pages?sectionName=My%20section The POST /onenote/pages operation is used only to create pages in the current user's default notebook. If you're targeting other notebooks, you can create pages in a specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenotePage body, Action(requestInfo, OnenotePage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of page objects. + /// Retrieve a list of page objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new OneNote page in the default section of the default notebook. To create a page in a different section in the default notebook, you can use the sectionName query parameter. Example: ../onenote/pages?sectionName=My%20section The POST /onenote/pages operation is used only to create pages in the current user's default notebook. If you're targeting other notebooks, you can create pages in a specified section. + /// Create a new OneNote page in the default section of the default notebook. To create a page in a different section in the default notebook, you can use the sectionName query parameter. Example: ../onenote/pages?sectionName=My%20section The POST /onenote/pages operation is used only to create pages in the current user's default notebook. If you're targeting other notebooks, you can create pages in a specified section. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PagesRequestBuilder WithUrl(string rawUrl) { return new PagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of page objects. + /// Retrieve a list of page objects. This API is supported in the following national cloud deployments. /// public class PagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs index ea4db4e33d9..3ce9caa01b8 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + /// The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -117,7 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + /// The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -194,7 +194,7 @@ public OnenoteResourceItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + /// The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. /// public class OnenoteResourceItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Resources/ResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Resources/ResourcesRequestBuilder.cs index 68f01eb0f2d..425e6c1155b 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Resources/ResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Resources/ResourcesRequestBuilder.cs @@ -42,7 +42,7 @@ public ResourcesRequestBuilder(Dictionary pathParameters, IReque public ResourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onenote/resources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + /// The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(OnenoteResource body, Action(requestInfo, OnenoteResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + /// The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public ResourcesRequestBuilder WithUrl(string rawUrl) { return new ResourcesRequestBuilder(rawUrl, RequestAdapter); } /// - /// The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + /// The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. /// public class ResourcesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs index 377b145a0e9..779701740cd 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs @@ -68,7 +68,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a sectionGroup object. + /// Retrieve the properties and relationships of a sectionGroup object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -133,7 +133,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a sectionGroup object. + /// Retrieve the properties and relationships of a sectionGroup object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -210,7 +210,7 @@ public SectionGroupItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a sectionGroup object. + /// Retrieve the properties and relationships of a sectionGroup object. This API is supported in the following national cloud deployments. /// public class SectionGroupItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs index ac4ac562ab8..4909b1c1171 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionGroupsRequestBuilder(Dictionary pathParameters, IR public SectionGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onenote/sectionGroups/{sectionGroup%2Did}/sectionGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of section groups from the specified section group. + /// Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, SectionGroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of section groups from the specified section group. + /// Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public SectionGroupsRequestBuilder WithUrl(string rawUrl) { return new SectionGroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of section groups from the specified section group. + /// Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. /// public class SectionGroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index 687e2c384b3..fcf129022fc 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToNotebookRequestBuilder(Dictionary pathParameters, I public CopyToNotebookRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToNotebook", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToNotebookPostRequestBody body return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index 7fd9299dba6..85f6dd0c81a 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionGroupRequestBuilder(Dictionary pathParameter public CopyToSectionGroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionGroupPostRequestBody return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index c3464cfb58d..1e43d5bd452 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionRequestBuilder(Dictionary pathParameters, IR public CopyToSectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", rawUrl) { } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionPostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs index a4a1509704f..fb271a115fe 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs @@ -42,7 +42,7 @@ public PagesRequestBuilder(Dictionary pathParameters, IRequestAd public PagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenotePageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenotePage body, Action(requestInfo, OnenotePage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PagesRequestBuilder WithUrl(string rawUrl) { return new PagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// public class PagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs index 54c33dc78bc..3d61941ad7b 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionsRequestBuilder(Dictionary pathParameters, IReques public SectionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onenote/sectionGroups/{sectionGroup%2Did}/sections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of onenoteSection objects from the specified section group. + /// Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenoteSectionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new onenoteSection in the specified section group. + /// Create a new onenoteSection in the specified section group. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenoteSection body, Action(requestInfo, OnenoteSection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of onenoteSection objects from the specified section group. + /// Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new onenoteSection in the specified section group. + /// Create a new onenoteSection in the specified section group. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SectionsRequestBuilder WithUrl(string rawUrl) { return new SectionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of onenoteSection objects from the specified section group. + /// Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. /// public class SectionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs index 44265302c9b..88cb21010b2 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionGroupsRequestBuilder(Dictionary pathParameters, IR public SectionGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onenote/sectionGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of sectionGroup objects. + /// Retrieve a list of sectionGroup objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(SectionGroup body, Action(requestInfo, SectionGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of sectionGroup objects. + /// Retrieve a list of sectionGroup objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SectionGroupsRequestBuilder WithUrl(string rawUrl) { return new SectionGroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of sectionGroup objects. + /// Retrieve a list of sectionGroup objects. This API is supported in the following national cloud deployments. /// public class SectionGroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index cced944b366..ee9ad6be5bc 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToNotebookRequestBuilder(Dictionary pathParameters, I public CopyToNotebookRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onenote/sections/{onenoteSection%2Did}/copyToNotebook", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToNotebookPostRequestBody body return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index 09912c9f55b..1f287421dd4 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionGroupRequestBuilder(Dictionary pathParameter public CopyToSectionGroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onenote/sections/{onenoteSection%2Did}/copyToSectionGroup", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionGroupPostRequestBody return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs index 7f89feaecac..dbd41d92685 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs @@ -73,7 +73,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a onenoteSection object. + /// Retrieve the properties and relationships of a onenoteSection object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -138,7 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a onenoteSection object. + /// Retrieve the properties and relationships of a onenoteSection object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -215,7 +215,7 @@ public OnenoteSectionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a onenoteSection object. + /// Retrieve the properties and relationships of a onenoteSection object. This API is supported in the following national cloud deployments. /// public class OnenoteSectionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 3b27863e9b6..0b29d593da3 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionRequestBuilder(Dictionary pathParameters, IR public CopyToSectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", rawUrl) { } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionPostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs index aa8d191c78a..60f973d8576 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs @@ -42,7 +42,7 @@ public PagesRequestBuilder(Dictionary pathParameters, IRequestAd public PagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onenote/sections/{onenoteSection%2Did}/pages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenotePageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenotePage body, Action(requestInfo, OnenotePage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PagesRequestBuilder WithUrl(string rawUrl) { return new PagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// public class PagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/SectionsRequestBuilder.cs index 325e21f0cfc..f25f2c69d6a 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/SectionsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionsRequestBuilder(Dictionary pathParameters, IReques public SectionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onenote/sections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of onenoteSection objects. + /// Retrieve a list of onenoteSection objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(OnenoteSection body, Action(requestInfo, OnenoteSection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of onenoteSection objects. + /// Retrieve a list of onenoteSection objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SectionsRequestBuilder WithUrl(string rawUrl) { return new SectionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of onenoteSection objects. + /// Retrieve a list of onenoteSection objects. This API is supported in the following national cloud deployments. /// public class SectionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.cs index 563c3f65f34..e1ed913c5a1 100644 --- a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateOrGetRequestBuilder(Dictionary pathParameters, IReq public CreateOrGetRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onlineMeetings/createOrGet", rawUrl) { } /// - /// Create an onlineMeeting object with a custom specified external ID. If the external ID already exists, this API will return the onlineMeeting object with that external ID. + /// Create an onlineMeeting object with a custom specified external ID. If the external ID already exists, this API will return the onlineMeeting object with that external ID. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateOrGetPostRequestBody body, Acti return await RequestAdapter.SendAsync(requestInfo, OnlineMeeting.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an onlineMeeting object with a custom specified external ID. If the external ID already exists, this API will return the onlineMeeting object with that external ID. + /// Create an onlineMeeting object with a custom specified external ID. If the external ID already exists, this API will return the onlineMeeting object with that external ID. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.cs index c5d4625c5b8..2d99fe24e09 100644 --- a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.cs @@ -42,7 +42,7 @@ public AttendanceReportsRequestBuilder(Dictionary pathParameters public AttendanceReportsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onlineMeetings/{onlineMeeting%2Did}/attendanceReports{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of meetingAttendanceReport objects for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. + /// Get a list of meetingAttendanceReport objects for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(MeetingAttendanceReport bod return await RequestAdapter.SendAsync(requestInfo, MeetingAttendanceReport.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of meetingAttendanceReport objects for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. + /// Get a list of meetingAttendanceReport objects for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public AttendanceReportsRequestBuilder WithUrl(string rawUrl) { return new AttendanceReportsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of meetingAttendanceReport objects for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. + /// Get a list of meetingAttendanceReport objects for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. This API is supported in the following national cloud deployments. /// public class AttendanceReportsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.cs index 86e04a7280f..40bbe212e2b 100644 --- a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.cs @@ -42,7 +42,7 @@ public AttendanceRecordsRequestBuilder(Dictionary pathParameters public AttendanceRecordsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onlineMeetings/{onlineMeeting%2Did}/attendanceReports/{meetingAttendanceReport%2Did}/attendanceRecords{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of attendanceRecord objects and their properties. + /// Get a list of attendanceRecord objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(AttendanceRecord body, Action(requestInfo, AttendanceRecord.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of attendanceRecord objects and their properties. + /// Get a list of attendanceRecord objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public AttendanceRecordsRequestBuilder WithUrl(string rawUrl) { return new AttendanceRecordsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of attendanceRecord objects and their properties. + /// Get a list of attendanceRecord objects and their properties. This API is supported in the following national cloud deployments. /// public class AttendanceRecordsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.cs index 77ca0aef543..50aea39a31b 100644 --- a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report will be generated for that session. + /// Get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report will be generated for that session. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report will be generated for that session. + /// Get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report will be generated for that session. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public MeetingAttendanceReportItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report will be generated for that session. + /// Get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report will be generated for that session. This API is supported in the following national cloud deployments. /// public class MeetingAttendanceReportItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlGetResponse.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlGetResponse.cs new file mode 100644 index 00000000000..2d713785dc2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlGetResponse.cs @@ -0,0 +1,64 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.OnlineMeetings.Item.GetVirtualAppointmentJoinWebUrl { + public class GetVirtualAppointmentJoinWebUrlGetResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public string Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Instantiates a new getVirtualAppointmentJoinWebUrlGetResponse and sets the default values. + /// + public GetVirtualAppointmentJoinWebUrlGetResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static GetVirtualAppointmentJoinWebUrlGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetVirtualAppointmentJoinWebUrlGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.cs index d7263089e80..c2ccd1fd562 100644 --- a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.cs @@ -33,6 +33,26 @@ public GetVirtualAppointmentJoinWebUrlRequestBuilder(string rawUrl, IRequestAdap /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetVirtualAppointmentJoinWebUrlGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetVirtualAppointmentJoinWebUrlGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetVirtualAppointmentJoinWebUrlGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getVirtualAppointmentJoinWebUrl + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetVirtualAppointmentJoinWebUrlGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlResponse.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlResponse.cs index 61af966b70a..84e76eb4eb7 100644 --- a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlResponse.cs @@ -1,64 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.OnlineMeetings.Item.GetVirtualAppointmentJoinWebUrl { - public class GetVirtualAppointmentJoinWebUrlResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public string Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } -#endif - /// - /// Instantiates a new getVirtualAppointmentJoinWebUrlResponse and sets the default values. - /// - public GetVirtualAppointmentJoinWebUrlResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use getVirtualAppointmentJoinWebUrlGetResponse instead.")] + public class GetVirtualAppointmentJoinWebUrlResponse : GetVirtualAppointmentJoinWebUrlGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static GetVirtualAppointmentJoinWebUrlResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetVirtualAppointmentJoinWebUrlResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetVirtualAppointmentJoinWebUrlResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.cs index d55c857616a..aea7ea8f8e0 100644 --- a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.cs @@ -2,6 +2,7 @@ using Microsoft.Graph.Me.OnlineMeetings.Item.AttendanceReports; using Microsoft.Graph.Me.OnlineMeetings.Item.AttendeeReport; using Microsoft.Graph.Me.OnlineMeetings.Item.GetVirtualAppointmentJoinWebUrl; +using Microsoft.Graph.Me.OnlineMeetings.Item.Transcripts; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -29,6 +30,10 @@ public class OnlineMeetingItemRequestBuilder : BaseRequestBuilder { public GetVirtualAppointmentJoinWebUrlRequestBuilder GetVirtualAppointmentJoinWebUrl { get => new GetVirtualAppointmentJoinWebUrlRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the transcripts property of the microsoft.graph.onlineMeeting entity. + public TranscriptsRequestBuilder Transcripts { get => + new TranscriptsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new OnlineMeetingItemRequestBuilder and sets the default values. /// @@ -44,7 +49,7 @@ public OnlineMeetingItemRequestBuilder(Dictionary pathParameters public OnlineMeetingItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onlineMeetings/{onlineMeeting%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an onlineMeeting object. + /// Delete an onlineMeeting object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -64,7 +69,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. + /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +89,7 @@ public async Task GetAsync(Action(requestInfo, OnlineMeeting.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of the specified onlineMeeting object. Please see Request body section for the list of properties that support updating. + /// Update the properties of the specified onlineMeeting object. Please see Request body section for the list of properties that support updating. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -106,7 +111,7 @@ public async Task PatchAsync(OnlineMeeting body, Action(requestInfo, OnlineMeeting.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an onlineMeeting object. + /// Delete an onlineMeeting object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -130,7 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. + /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -156,7 +161,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of the specified onlineMeeting object. Please see Request body section for the list of properties that support updating. + /// Update the properties of the specified onlineMeeting object. Please see Request body section for the list of properties that support updating. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -207,7 +212,7 @@ public OnlineMeetingItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. + /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. This API is supported in the following national cloud deployments. /// public class OnlineMeetingItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..261d96e0983 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Me.OnlineMeetings.Item.Transcripts.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onlineMeetings/{onlineMeeting%2Did}/transcripts/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onlineMeetings/{onlineMeeting%2Did}/transcripts/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.cs new file mode 100644 index 00000000000..fc4922bd683 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.cs @@ -0,0 +1,261 @@ +// +using Microsoft.Graph.Me.OnlineMeetings.Item.Transcripts.Item.Content; +using Microsoft.Graph.Me.OnlineMeetings.Item.Transcripts.Item.MetadataContent; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Me.OnlineMeetings.Item.Transcripts.Item { + /// + /// Provides operations to manage the transcripts property of the microsoft.graph.onlineMeeting entity. + /// + public class CallTranscriptItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the media for the user entity. + public ContentRequestBuilder Content { get => + new ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the media for the user entity. + public MetadataContentRequestBuilder MetadataContent { get => + new MetadataContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new CallTranscriptItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CallTranscriptItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onlineMeetings/{onlineMeeting%2Did}/transcripts/{callTranscript%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new CallTranscriptItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CallTranscriptItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onlineMeetings/{onlineMeeting%2Did}/transcripts/{callTranscript%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property transcripts for me + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get transcripts from me + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CallTranscript.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property transcripts in me + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(CallTranscript body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(CallTranscript body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CallTranscript.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property transcripts for me + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new CallTranscriptItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get transcripts from me + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new CallTranscriptItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property transcripts in me + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(CallTranscript body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(CallTranscript body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new CallTranscriptItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CallTranscriptItemRequestBuilder WithUrl(string rawUrl) { + return new CallTranscriptItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CallTranscriptItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new CallTranscriptItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public CallTranscriptItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get transcripts from me + /// + public class CallTranscriptItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CallTranscriptItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CallTranscriptItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CallTranscriptItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CallTranscriptItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CallTranscriptItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CallTranscriptItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new CallTranscriptItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public CallTranscriptItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.cs new file mode 100644 index 00000000000..c7338b80422 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.cs @@ -0,0 +1,163 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Me.OnlineMeetings.Item.Transcripts.Item.Content { + /// + /// Provides operations to manage the media for the user entity. + /// + public class ContentRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new ContentRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onlineMeetings/{onlineMeeting%2Did}/transcripts/{callTranscript%2Did}/content", pathParameters) { + } + /// + /// Instantiates a new ContentRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onlineMeetings/{onlineMeeting%2Did}/transcripts/{callTranscript%2Did}/content", rawUrl) { + } + /// + /// Get content for the navigation property transcripts from me + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update content for the navigation property transcripts in me + /// + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PutAsync(Stream body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CallTranscript.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get content for the navigation property transcripts from me + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new ContentRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update content for the navigation property transcripts in me + /// + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PUT, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetStreamContent(body); + if (requestConfiguration != null) { + var requestConfig = new ContentRequestBuilderPutRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ContentRequestBuilder WithUrl(string rawUrl) { + return new ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContentRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new contentRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ContentRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContentRequestBuilderPutRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new contentRequestBuilderPutRequestConfiguration and sets the default values. + /// + public ContentRequestBuilderPutRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilder.cs new file mode 100644 index 00000000000..37a9a10a487 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilder.cs @@ -0,0 +1,161 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Me.OnlineMeetings.Item.Transcripts.Item.MetadataContent { + /// + /// Provides operations to manage the media for the user entity. + /// + public class MetadataContentRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MetadataContentRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MetadataContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onlineMeetings/{onlineMeeting%2Did}/transcripts/{callTranscript%2Did}/metadataContent", pathParameters) { + } + /// + /// Instantiates a new MetadataContentRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MetadataContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onlineMeetings/{onlineMeeting%2Did}/transcripts/{callTranscript%2Did}/metadataContent", rawUrl) { + } + /// + /// Get metadataContent for the navigation property transcripts from me + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update metadataContent for the navigation property transcripts in me + /// + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PutAsync(Stream body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get metadataContent for the navigation property transcripts from me + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MetadataContentRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update metadataContent for the navigation property transcripts in me + /// + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PUT, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.SetStreamContent(body); + if (requestConfiguration != null) { + var requestConfig = new MetadataContentRequestBuilderPutRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MetadataContentRequestBuilder WithUrl(string rawUrl) { + return new MetadataContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MetadataContentRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new metadataContentRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MetadataContentRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MetadataContentRequestBuilderPutRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new metadataContentRequestBuilderPutRequestConfiguration and sets the default values. + /// + public MetadataContentRequestBuilderPutRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilder.cs new file mode 100644 index 00000000000..2654712e137 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.Me.OnlineMeetings.Item.Transcripts.Count; +using Microsoft.Graph.Me.OnlineMeetings.Item.Transcripts.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Me.OnlineMeetings.Item.Transcripts { + /// + /// Provides operations to manage the transcripts property of the microsoft.graph.onlineMeeting entity. + /// + public class TranscriptsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the transcripts property of the microsoft.graph.onlineMeeting entity. + /// The unique identifier of callTranscript + public CallTranscriptItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("callTranscript%2Did", position); + return new CallTranscriptItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new TranscriptsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public TranscriptsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onlineMeetings/{onlineMeeting%2Did}/transcripts{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new TranscriptsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public TranscriptsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onlineMeetings/{onlineMeeting%2Did}/transcripts{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get transcripts from me + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CallTranscriptCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to transcripts for me + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(CallTranscript body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(CallTranscript body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CallTranscript.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get transcripts from me + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new TranscriptsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to transcripts for me + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(CallTranscript body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(CallTranscript body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new TranscriptsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public TranscriptsRequestBuilder WithUrl(string rawUrl) { + return new TranscriptsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get transcripts from me + /// + public class TranscriptsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class TranscriptsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public TranscriptsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new TranscriptsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new transcriptsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public TranscriptsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class TranscriptsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new transcriptsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public TranscriptsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/OnlineMeetingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/OnlineMeetingsRequestBuilder.cs index 29cff0fc4d3..a66fd018456 100644 --- a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/OnlineMeetingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/OnlineMeetingsRequestBuilder.cs @@ -47,7 +47,7 @@ public OnlineMeetingsRequestBuilder(Dictionary pathParameters, I public OnlineMeetingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onlineMeetings{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. + /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, OnlineMeetingCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an online meeting on behalf of a user. + /// >- userId is the object ID of a user in Azure user management portal. For more information, see Allow applications to access online meetings on behalf of a user. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(OnlineMeeting body, Action(requestInfo, OnlineMeeting.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. + /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an online meeting on behalf of a user. + /// >- userId is the object ID of a user in Azure user management portal. For more information, see Allow applications to access online meetings on behalf of a user. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public OnlineMeetingsRequestBuilder WithUrl(string rawUrl) { return new OnlineMeetingsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. + /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. This API is supported in the following national cloud deployments. /// public class OnlineMeetingsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.cs index bd1e504bb2b..9f842c28a75 100644 --- a/src/Microsoft.Graph/Generated/Me/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.cs @@ -29,7 +29,7 @@ public OutlookCategoryItemRequestBuilder(Dictionary pathParamete public OutlookCategoryItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/outlook/masterCategories/{outlookCategory%2Did}{?%24select}", rawUrl) { } /// - /// Delete the specified outlookCategory object. + /// Delete the specified outlookCategory object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get the properties and relationships of the specified outlookCategory object. + /// Get the properties and relationships of the specified outlookCategory object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, OutlookCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the writable property, color, of the specified outlookCategory object. You cannot modify the displayName propertyonce you have created the category. + /// Update the writable property, color, of the specified outlookCategory object. You can't modify the displayName propertyonce you have created the category. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(OutlookCategory body, Action(requestInfo, OutlookCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete the specified outlookCategory object. + /// Delete the specified outlookCategory object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties and relationships of the specified outlookCategory object. + /// Get the properties and relationships of the specified outlookCategory object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the writable property, color, of the specified outlookCategory object. You cannot modify the displayName propertyonce you have created the category. + /// Update the writable property, color, of the specified outlookCategory object. You can't modify the displayName propertyonce you have created the category. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public OutlookCategoryItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the properties and relationships of the specified outlookCategory object. + /// Get the properties and relationships of the specified outlookCategory object. This API is supported in the following national cloud deployments. /// public class OutlookCategoryItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Me/Outlook/MasterCategories/MasterCategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Outlook/MasterCategories/MasterCategoriesRequestBuilder.cs index 6a7e4b79f7f..2035ed8f17c 100644 --- a/src/Microsoft.Graph/Generated/Me/Outlook/MasterCategories/MasterCategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Outlook/MasterCategories/MasterCategoriesRequestBuilder.cs @@ -42,7 +42,7 @@ public MasterCategoriesRequestBuilder(Dictionary pathParameters, public MasterCategoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/outlook/masterCategories{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get all the categories that have been defined for the user. + /// Get all the categories that have been defined for the user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OutlookCategoryCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an outlookCategory object in the user's master list of categories. + /// Create an outlookCategory object in the user's master list of categories. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OutlookCategory body, Action(requestInfo, OutlookCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get all the categories that have been defined for the user. + /// Get all the categories that have been defined for the user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an outlookCategory object in the user's master list of categories. + /// Create an outlookCategory object in the user's master list of categories. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public MasterCategoriesRequestBuilder WithUrl(string rawUrl) { return new MasterCategoriesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get all the categories that have been defined for the user. + /// Get all the categories that have been defined for the user. This API is supported in the following national cloud deployments. /// public class MasterCategoriesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Outlook/SupportedLanguages/SupportedLanguagesGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedLanguages/SupportedLanguagesGetResponse.cs new file mode 100644 index 00000000000..296b44548d5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedLanguages/SupportedLanguagesGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.Outlook.SupportedLanguages { + public class SupportedLanguagesGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new SupportedLanguagesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new SupportedLanguagesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(LocaleInfo.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Outlook/SupportedLanguages/SupportedLanguagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedLanguages/SupportedLanguagesRequestBuilder.cs index 20ad6e4ea7f..4f9805c6e4a 100644 --- a/src/Microsoft.Graph/Generated/Me/Outlook/SupportedLanguages/SupportedLanguagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedLanguages/SupportedLanguagesRequestBuilder.cs @@ -28,12 +28,33 @@ public SupportedLanguagesRequestBuilder(Dictionary pathParameter public SupportedLanguagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/outlook/supportedLanguages(){?%24top,%24skip,%24search,%24filter,%24count}", rawUrl) { } /// - /// Get the list of locales and languages that are supported for the user, as configured on the user's mailbox server. When setting up an Outlook client, the user selects the preferred language from this supported list. You can subsequently get the preferred language bygetting the user's mailbox settings. + /// Get the list of locales and languages that are supported for the user, as configured on the user's mailbox server. When setting up an Outlook client, the user selects the preferred language from this supported list. You can subsequently get the preferred language bygetting the user's mailbox settings. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsSupportedLanguagesGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsSupportedLanguagesGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, SupportedLanguagesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the list of locales and languages that are supported for the user, as configured on the user's mailbox server. When setting up an Outlook client, the user selects the preferred language from this supported list. You can subsequently get the preferred language bygetting the user's mailbox settings. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsSupportedLanguagesGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, SupportedLanguagesResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of locales and languages that are supported for the user, as configured on the user's mailbox server. When setting up an Outlook client, the user selects the preferred language from this supported list. You can subsequently get the preferred language bygetting the user's mailbox settings. + /// Get the list of locales and languages that are supported for the user, as configured on the user's mailbox server. When setting up an Outlook client, the user selects the preferred language from this supported list. You can subsequently get the preferred language bygetting the user's mailbox settings. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public SupportedLanguagesRequestBuilder WithUrl(string rawUrl) { return new SupportedLanguagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of locales and languages that are supported for the user, as configured on the user's mailbox server. When setting up an Outlook client, the user selects the preferred language from this supported list. You can subsequently get the preferred language bygetting the user's mailbox settings. + /// Get the list of locales and languages that are supported for the user, as configured on the user's mailbox server. When setting up an Outlook client, the user selects the preferred language from this supported list. You can subsequently get the preferred language bygetting the user's mailbox settings. This API is supported in the following national cloud deployments. /// public class SupportedLanguagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Outlook/SupportedLanguages/SupportedLanguagesResponse.cs b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedLanguages/SupportedLanguagesResponse.cs index 40df1c287b4..35a8a9c7c67 100644 --- a/src/Microsoft.Graph/Generated/Me/Outlook/SupportedLanguages/SupportedLanguagesResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedLanguages/SupportedLanguagesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.Outlook.SupportedLanguages { - public class SupportedLanguagesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use supportedLanguagesGetResponse instead.")] + public class SupportedLanguagesResponse : SupportedLanguagesGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SupportedLanguagesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(LocaleInfo.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZones/SupportedTimeZonesGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZones/SupportedTimeZonesGetResponse.cs new file mode 100644 index 00000000000..7dce320f2af --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZones/SupportedTimeZonesGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.Outlook.SupportedTimeZones { + public class SupportedTimeZonesGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new SupportedTimeZonesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new SupportedTimeZonesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(TimeZoneInformation.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZones/SupportedTimeZonesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZones/SupportedTimeZonesRequestBuilder.cs index bf3baba705c..23bcb8193f6 100644 --- a/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZones/SupportedTimeZonesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZones/SupportedTimeZonesRequestBuilder.cs @@ -33,6 +33,26 @@ public SupportedTimeZonesRequestBuilder(string rawUrl, IRequestAdapter requestAd /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsSupportedTimeZonesGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsSupportedTimeZonesGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, SupportedTimeZonesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function supportedTimeZones + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsSupportedTimeZonesGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZones/SupportedTimeZonesResponse.cs b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZones/SupportedTimeZonesResponse.cs index d9bd7b34223..ae2baf42e72 100644 --- a/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZones/SupportedTimeZonesResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZones/SupportedTimeZonesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.Outlook.SupportedTimeZones { - public class SupportedTimeZonesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use supportedTimeZonesGetResponse instead.")] + public class SupportedTimeZonesResponse : SupportedTimeZonesGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SupportedTimeZonesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(TimeZoneInformation.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardGetResponse.cs new file mode 100644 index 00000000000..c7bf160f9d3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.Outlook.SupportedTimeZonesWithTimeZoneStandard { + public class SupportedTimeZonesWithTimeZoneStandardGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new SupportedTimeZonesWithTimeZoneStandardGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new SupportedTimeZonesWithTimeZoneStandardGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(TimeZoneInformation.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardRequestBuilder.cs index 495320d9bc8..88f3b19bcda 100644 --- a/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardRequestBuilder.cs @@ -35,6 +35,26 @@ public SupportedTimeZonesWithTimeZoneStandardRequestBuilder(string rawUrl, IRequ /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsSupportedTimeZonesWithTimeZoneStandardGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsSupportedTimeZonesWithTimeZoneStandardGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, SupportedTimeZonesWithTimeZoneStandardGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function supportedTimeZones + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsSupportedTimeZonesWithTimeZoneStandardGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardResponse.cs b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardResponse.cs index 5dfc623501d..8198542f58f 100644 --- a/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.Outlook.SupportedTimeZonesWithTimeZoneStandard { - public class SupportedTimeZonesWithTimeZoneStandardResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use supportedTimeZonesWithTimeZoneStandardGetResponse instead.")] + public class SupportedTimeZonesWithTimeZoneStandardResponse : SupportedTimeZonesWithTimeZoneStandardGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SupportedTimeZonesWithTimeZoneStandardResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(TimeZoneInformation.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/People/PeopleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/People/PeopleRequestBuilder.cs index 83f17afbe82..97f1823c912 100644 --- a/src/Microsoft.Graph/Generated/Me/People/PeopleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/People/PeopleRequestBuilder.cs @@ -42,7 +42,7 @@ public PeopleRequestBuilder(Dictionary pathParameters, IRequestA public PeopleRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/people{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Retrieve a collection of person objects ordered by their relevance to the user, which is determined by the user's communication and collaboration patterns, and business relationships. You can get this information via the People API. For examples, see the Examples section and the article Use the People API to get information about the people most relevant to you. + /// Retrieve a collection of person objects ordered by their relevance to the user, which is determined by the user's communication and collaboration patterns, and business relationships. You can get this information via the People API. For examples, see the Examples section and the article Use the People API to get information about the people most relevant to you. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, PersonCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a collection of person objects ordered by their relevance to the user, which is determined by the user's communication and collaboration patterns, and business relationships. You can get this information via the People API. For examples, see the Examples section and the article Use the People API to get information about the people most relevant to you. + /// Retrieve a collection of person objects ordered by their relevance to the user, which is determined by the user's communication and collaboration patterns, and business relationships. You can get this information via the People API. For examples, see the Examples section and the article Use the People API to get information about the people most relevant to you. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public PeopleRequestBuilder WithUrl(string rawUrl) { return new PeopleRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a collection of person objects ordered by their relevance to the user, which is determined by the user's communication and collaboration patterns, and business relationships. You can get this information via the People API. For examples, see the Examples section and the article Use the People API to get information about the people most relevant to you. + /// Retrieve a collection of person objects ordered by their relevance to the user, which is determined by the user's communication and collaboration patterns, and business relationships. You can get this information via the People API. For examples, see the Examples section and the article Use the People API to get information about the people most relevant to you. This API is supported in the following national cloud deployments. /// public class PeopleRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Photo/PhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Photo/PhotoRequestBuilder.cs index e34a128d7e9..5fb8f81cee2 100644 --- a/src/Microsoft.Graph/Generated/Me/Photo/PhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Photo/PhotoRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public PhotoRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is supported in the following national cloud deployments. /// public class PhotoRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs index 272e75bd306..c5562d5b0fb 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs @@ -42,7 +42,7 @@ public BucketsRequestBuilder(Dictionary pathParameters, IRequest public BucketsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/planner/plans/{plannerPlan%2Did}/buckets{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of plannerBucket objects contained by a plannerPlan object. + /// Retrieve a list of plannerBucket objects contained by a plannerPlan object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(PlannerBucket body, Action(requestInfo, PlannerBucket.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of plannerBucket objects contained by a plannerPlan object. + /// Retrieve a list of plannerBucket objects contained by a plannerPlan object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public BucketsRequestBuilder WithUrl(string rawUrl) { return new BucketsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of plannerBucket objects contained by a plannerPlan object. + /// Retrieve a list of plannerBucket objects contained by a plannerPlan object. This API is supported in the following national cloud deployments. /// public class BucketsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs index fb75dc030e6..35692546469 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public AssignedToTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class AssignedToTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs index fa3f00ecd7f..43904aa0e0a 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public BucketTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class BucketTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs index e7a6410b121..04a1ec6cacd 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public DetailsRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// public class DetailsRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs index d6ee44509d5..dde9e0cf9db 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public ProgressTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class ProgressTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs index da64d90725d..c6ac2ae1ec1 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs @@ -42,7 +42,7 @@ public TasksRequestBuilder(Dictionary pathParameters, IRequestAd public TasksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%2Did}/tasks{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of plannerTask objects associated to a plannerBucket object. + /// Retrieve a list of plannerTask objects associated to a plannerBucket object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(PlannerTask body, Action(requestInfo, PlannerTask.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of plannerTask objects associated to a plannerBucket object. + /// Retrieve a list of plannerTask objects associated to a plannerBucket object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public TasksRequestBuilder WithUrl(string rawUrl) { return new TasksRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of plannerTask objects associated to a plannerBucket object. + /// Retrieve a list of plannerTask objects associated to a plannerBucket object. This API is supported in the following national cloud deployments. /// public class TasksRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Details/DetailsRequestBuilder.cs index c76c6659394..4549fe96fcf 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Details/DetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Details/DetailsRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a plannerPlanDetails object. + /// Retrieve the properties and relationships of a plannerPlanDetails object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a plannerPlanDetails object. + /// Retrieve the properties and relationships of a plannerPlanDetails object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public DetailsRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a plannerPlanDetails object. + /// Retrieve the properties and relationships of a plannerPlanDetails object. This API is supported in the following national cloud deployments. /// public class DetailsRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs index 102708b0372..e45f23895c2 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public AssignedToTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class AssignedToTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs index 4f8a782ba82..b88961eb601 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public BucketTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class BucketTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.cs index 84065eacdb5..53d3f354ca8 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public DetailsRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// public class DetailsRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs index e636fdeeb97..a2f397f746b 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public ProgressTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class ProgressTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs index 952dd68ea6a..2387da9236a 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs @@ -42,7 +42,7 @@ public TasksRequestBuilder(Dictionary pathParameters, IRequestAd public TasksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/planner/plans/{plannerPlan%2Did}/tasks{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of plannerTask objects associated with a plannerPlan object. + /// Retrieve a list of plannerTask objects associated with a plannerPlan object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(PlannerTask body, Action(requestInfo, PlannerTask.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of plannerTask objects associated with a plannerPlan object. + /// Retrieve a list of plannerTask objects associated with a plannerPlan object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public TasksRequestBuilder WithUrl(string rawUrl) { return new TasksRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of plannerTask objects associated with a plannerPlan object. + /// Retrieve a list of plannerTask objects associated with a plannerPlan object. This API is supported in the following national cloud deployments. /// public class TasksRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Plans/PlansRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Plans/PlansRequestBuilder.cs index d9729707ad1..4b007451296 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Plans/PlansRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Plans/PlansRequestBuilder.cs @@ -42,7 +42,7 @@ public PlansRequestBuilder(Dictionary pathParameters, IRequestAd public PlansRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/planner/plans{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of plannerplan objects shared with a user object. + /// Retrieve a list of plannerplan objects shared with a user object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(PlannerPlan body, Action(requestInfo, PlannerPlan.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of plannerplan objects shared with a user object. + /// Retrieve a list of plannerplan objects shared with a user object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public PlansRequestBuilder WithUrl(string rawUrl) { return new PlansRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of plannerplan objects shared with a user object. + /// Retrieve a list of plannerplan objects shared with a user object. This API is supported in the following national cloud deployments. /// public class PlansRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs index 1e930ea0bf9..912884cd21a 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public AssignedToTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class AssignedToTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs index f4234146124..123155a89f9 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public BucketTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class BucketTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/Details/DetailsRequestBuilder.cs index 1f8d2da0ef3..6217c0786ce 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/Details/DetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/Details/DetailsRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public DetailsRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// public class DetailsRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs index cb1962fe2ca..18543bc6205 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public ProgressTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class ProgressTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Tasks/TasksRequestBuilder.cs index 4e6ada0e7c9..a7436170262 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Tasks/TasksRequestBuilder.cs @@ -42,7 +42,7 @@ public TasksRequestBuilder(Dictionary pathParameters, IRequestAd public TasksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/planner/tasks{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of plannertask objects assigned to a User. + /// Retrieve a list of plannertask objects assigned to a User. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(PlannerTask body, Action(requestInfo, PlannerTask.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of plannertask objects assigned to a User. + /// Retrieve a list of plannertask objects assigned to a User. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public TasksRequestBuilder WithUrl(string rawUrl) { return new TasksRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of plannertask objects assigned to a User. + /// Retrieve a list of plannertask objects assigned to a User. This API is supported in the following national cloud deployments. /// public class TasksRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Presence/ClearPresence/ClearPresenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Presence/ClearPresence/ClearPresenceRequestBuilder.cs index 5169b4dfd81..7b45fc184a2 100644 --- a/src/Microsoft.Graph/Generated/Me/Presence/ClearPresence/ClearPresenceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Presence/ClearPresence/ClearPresenceRequestBuilder.cs @@ -28,7 +28,7 @@ public ClearPresenceRequestBuilder(Dictionary pathParameters, IR public ClearPresenceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/presence/clearPresence", rawUrl) { } /// - /// Clear the application's presence session for a user. If it is the user's only presence session, the user's presence will change to Offline/Offline. For details about presences sessions, see presence: setPresence. + /// Clear the application's presence session for a user. If it is the user's only presence session, the user's presence will change to Offline/Offline. For details about presences sessions, see presence: setPresence. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ClearPresencePostRequestBody body, Action - /// Clear the application's presence session for a user. If it is the user's only presence session, the user's presence will change to Offline/Offline. For details about presences sessions, see presence: setPresence. + /// Clear the application's presence session for a user. If it is the user's only presence session, the user's presence will change to Offline/Offline. For details about presences sessions, see presence: setPresence. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Presence/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Presence/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.cs index 1a4b9873960..47767c17fdf 100644 --- a/src/Microsoft.Graph/Generated/Me/Presence/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Presence/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.cs @@ -28,7 +28,7 @@ public ClearUserPreferredPresenceRequestBuilder(Dictionary pathP public ClearUserPreferredPresenceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/presence/clearUserPreferredPresence", rawUrl) { } /// - /// Clear the preferred availability and activity status for a user. + /// Clear the preferred availability and activity status for a user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Clear the preferred availability and activity status for a user. + /// Clear the preferred availability and activity status for a user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/Presence/PresenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Presence/PresenceRequestBuilder.cs index 306839cf669..a83d8cfdf19 100644 --- a/src/Microsoft.Graph/Generated/Me/Presence/PresenceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Presence/PresenceRequestBuilder.cs @@ -73,7 +73,7 @@ public async Task DeleteAsync(Action - /// Get a user's presence information. + /// Get a user's presence information. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -138,7 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a user's presence information. + /// Get a user's presence information. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -215,7 +215,7 @@ public PresenceRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a user's presence information. + /// Get a user's presence information. This API is supported in the following national cloud deployments. /// public class PresenceRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Presence/SetPresence/SetPresenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Presence/SetPresence/SetPresenceRequestBuilder.cs index 47e565b0b1f..d962ae80c13 100644 --- a/src/Microsoft.Graph/Generated/Me/Presence/SetPresence/SetPresenceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Presence/SetPresence/SetPresenceRequestBuilder.cs @@ -28,7 +28,7 @@ public SetPresenceRequestBuilder(Dictionary pathParameters, IReq public SetPresenceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/presence/setPresence", rawUrl) { } /// - /// Set the state of a user's presence session as an application. + /// Set the state of a user's presence session as an application. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SetPresencePostRequestBody body, Action - /// Set the state of a user's presence session as an application. + /// Set the state of a user's presence session as an application. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Presence/SetStatusMessage/SetStatusMessageRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Presence/SetStatusMessage/SetStatusMessageRequestBuilder.cs index d101fa5ef0a..8664ed26be9 100644 --- a/src/Microsoft.Graph/Generated/Me/Presence/SetStatusMessage/SetStatusMessageRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Presence/SetStatusMessage/SetStatusMessageRequestBuilder.cs @@ -28,7 +28,8 @@ public SetStatusMessageRequestBuilder(Dictionary pathParameters, public SetStatusMessageRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/presence/setStatusMessage", rawUrl) { } /// - /// Invoke action setStatusMessage + /// Set a presence status message for a user. An optional expiration date and time can be supplied. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -49,7 +50,7 @@ public async Task PostAsync(SetStatusMessagePostRequestBody body, Action - /// Invoke action setStatusMessage + /// Set a presence status message for a user. An optional expiration date and time can be supplied. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Presence/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Presence/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.cs index 5fbfe6c1efa..1cd851ee61d 100644 --- a/src/Microsoft.Graph/Generated/Me/Presence/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Presence/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.cs @@ -28,7 +28,7 @@ public SetUserPreferredPresenceRequestBuilder(Dictionary pathPar public SetUserPreferredPresenceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/presence/setUserPreferredPresence", rawUrl) { } /// - /// Set the preferred availability and activity status for a user. If the preferred presence of a user is set, the user's presence shows as the preferred status. Preferred presence takes effect only when at least one presence session exists for the user. Otherwise, the user's presence shows as Offline. A presence session is created as a result of a successful setPresence operation, or if the user is signed in on a Microsoft Teams client. For more details, see presence sessions and time-out and expiration. + /// Set the preferred availability and activity status for a user. If the preferred presence of a user is set, the user's presence shows as the preferred status. Preferred presence takes effect only when at least one presence session exists for the user. Otherwise, the user's presence shows as Offline. A presence session is created as a result of a successful setPresence operation, or if the user is signed in on a Microsoft Teams client. For more details, see presence sessions and time-out and expiration. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SetUserPreferredPresencePostRequestBody body, Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Set the preferred availability and activity status for a user. If the preferred presence of a user is set, the user's presence shows as the preferred status. Preferred presence takes effect only when at least one presence session exists for the user. Otherwise, the user's presence shows as Offline. A presence session is created as a result of a successful setPresence operation, or if the user is signed in on a Microsoft Teams client. For more details, see presence sessions and time-out and expiration. + /// Set the preferred availability and activity status for a user. If the preferred presence of a user is set, the user's presence shows as the preferred status. Preferred presence takes effect only when at least one presence session exists for the user. Otherwise, the user's presence shows as Offline. A presence session is created as a result of a successful setPresence operation, or if the user is signed in on a Microsoft Teams client. For more details, see presence sessions and time-out and expiration. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/RegisteredDevices/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/RegisteredDevices/Item/DirectoryObjectItemRequestBuilder.cs index ee328738386..db400d9e71e 100644 --- a/src/Microsoft.Graph/Generated/Me/RegisteredDevices/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/RegisteredDevices/Item/DirectoryObjectItemRequestBuilder.cs @@ -44,7 +44,7 @@ public DirectoryObjectItemRequestBuilder(Dictionary pathParamete public DirectoryObjectItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/registeredDevices/{directoryObject%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Devices that are registered for the user. Read-only. Nullable. Supports $expand. + /// Devices that are registered for the user. Read-only. Nullable. Supports $expand and returns up to 100 objects. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -63,7 +63,7 @@ public async Task GetAsync(Action(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Devices that are registered for the user. Read-only. Nullable. Supports $expand. + /// Devices that are registered for the user. Read-only. Nullable. Supports $expand and returns up to 100 objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -96,7 +96,7 @@ public DirectoryObjectItemRequestBuilder WithUrl(string rawUrl) { return new DirectoryObjectItemRequestBuilder(rawUrl, RequestAdapter); } /// - /// Devices that are registered for the user. Read-only. Nullable. Supports $expand. + /// Devices that are registered for the user. Read-only. Nullable. Supports $expand and returns up to 100 objects. /// public class DirectoryObjectItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/RegisteredDevices/RegisteredDevicesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/RegisteredDevices/RegisteredDevicesRequestBuilder.cs index a3d0f2c4e99..c787d1b646c 100644 --- a/src/Microsoft.Graph/Generated/Me/RegisteredDevices/RegisteredDevicesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/RegisteredDevices/RegisteredDevicesRequestBuilder.cs @@ -57,7 +57,7 @@ public RegisteredDevicesRequestBuilder(Dictionary pathParameters public RegisteredDevicesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/registeredDevices{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Devices that are registered for the user. Read-only. Nullable. Supports $expand. + /// Devices that are registered for the user. Read-only. Nullable. Supports $expand and returns up to 100 objects. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -77,7 +77,7 @@ public async Task GetAsync(Action(requestInfo, DirectoryObjectCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Devices that are registered for the user. Read-only. Nullable. Supports $expand. + /// Devices that are registered for the user. Read-only. Nullable. Supports $expand and returns up to 100 objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RegisteredDevicesRequestBuilder WithUrl(string rawUrl) { return new RegisteredDevicesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Devices that are registered for the user. Read-only. Nullable. Supports $expand. + /// Devices that are registered for the user. Read-only. Nullable. Supports $expand and returns up to 100 objects. /// public class RegisteredDevicesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeGetResponse.cs b/src/Microsoft.Graph/Generated/Me/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeGetResponse.cs new file mode 100644 index 00000000000..7bbebac53a8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.ReminderViewWithStartDateTimeWithEndDateTime { + public class ReminderViewWithStartDateTimeWithEndDateTimeGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new ReminderViewWithStartDateTimeWithEndDateTimeGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new ReminderViewWithStartDateTimeWithEndDateTimeGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Reminder.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder.cs index 9766139d17d..31d3397895e 100644 --- a/src/Microsoft.Graph/Generated/Me/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder.cs @@ -37,6 +37,26 @@ public ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder(string rawUrl, /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsReminderViewWithStartDateTimeWithEndDateTimeGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsReminderViewWithStartDateTimeWithEndDateTimeGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ReminderViewWithStartDateTimeWithEndDateTimeGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function reminderView + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsReminderViewWithStartDateTimeWithEndDateTimeGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Me/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeResponse.cs b/src/Microsoft.Graph/Generated/Me/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeResponse.cs index abdc51db1f1..56e9b922a8e 100644 --- a/src/Microsoft.Graph/Generated/Me/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.ReminderViewWithStartDateTimeWithEndDateTime { - public class ReminderViewWithStartDateTimeWithEndDateTimeResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use reminderViewWithStartDateTimeWithEndDateTimeGetResponse instead.")] + public class ReminderViewWithStartDateTimeWithEndDateTimeResponse : ReminderViewWithStartDateTimeWithEndDateTimeGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ReminderViewWithStartDateTimeWithEndDateTimeResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Reminder.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/ReprocessLicenseAssignment/ReprocessLicenseAssignmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ReprocessLicenseAssignment/ReprocessLicenseAssignmentRequestBuilder.cs index a9333f3cec0..db633a92f2d 100644 --- a/src/Microsoft.Graph/Generated/Me/ReprocessLicenseAssignment/ReprocessLicenseAssignmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ReprocessLicenseAssignment/ReprocessLicenseAssignmentRequestBuilder.cs @@ -29,7 +29,7 @@ public ReprocessLicenseAssignmentRequestBuilder(Dictionary pathP public ReprocessLicenseAssignmentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/reprocessLicenseAssignment", rawUrl) { } /// - /// Reprocess all group-based license assignments for the user. To learn more about group-based licensing, see What is group-based licensing in Azure Active Directory. Also see Identify and resolve license assignment problems for a group in Azure Active Directory for more details. + /// Reprocess all group-based license assignments for the user. To learn more about group-based licensing, see What is group-based licensing in Azure Active Directory. Also see Identify and resolve license assignment problems for a group in Azure Active Directory for more details. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public ReprocessLicenseAssignmentRequestBuilder(string rawUrl, IRequestAdapter r return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Reprocess all group-based license assignments for the user. To learn more about group-based licensing, see What is group-based licensing in Azure Active Directory. Also see Identify and resolve license assignment problems for a group in Azure Active Directory for more details. + /// Reprocess all group-based license assignments for the user. To learn more about group-based licensing, see What is group-based licensing in Azure Active Directory. Also see Identify and resolve license assignment problems for a group in Azure Active Directory for more details. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Restore/RestoreRequestBuilder.cs index f01bb8d3a4b..d44d2a6cb9e 100644 --- a/src/Microsoft.Graph/Generated/Me/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Restore/RestoreRequestBuilder.cs @@ -29,7 +29,7 @@ public RestoreRequestBuilder(Dictionary pathParameters, IRequest public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/RevokeSignInSessions/RevokeSignInSessionsPostResponse.cs b/src/Microsoft.Graph/Generated/Me/RevokeSignInSessions/RevokeSignInSessionsPostResponse.cs new file mode 100644 index 00000000000..1a405c85123 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/RevokeSignInSessions/RevokeSignInSessionsPostResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.RevokeSignInSessions { + public class RevokeSignInSessionsPostResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public bool? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new revokeSignInSessionsPostResponse and sets the default values. + /// + public RevokeSignInSessionsPostResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static RevokeSignInSessionsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new RevokeSignInSessionsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/RevokeSignInSessions/RevokeSignInSessionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/RevokeSignInSessions/RevokeSignInSessionsRequestBuilder.cs index 9efa63346b8..bb1b346a373 100644 --- a/src/Microsoft.Graph/Generated/Me/RevokeSignInSessions/RevokeSignInSessionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/RevokeSignInSessions/RevokeSignInSessionsRequestBuilder.cs @@ -28,12 +28,33 @@ public RevokeSignInSessionsRequestBuilder(Dictionary pathParamet public RevokeSignInSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/revokeSignInSessions", rawUrl) { } /// - /// Invalidates all the refresh tokens issued to applications for a user (as well as session cookies in a user's browser), by resetting the signInSessionsValidFromDateTime user property to the current date-time. Typically, this operation is performed (by the user or an administrator) if the user has a lost or stolen device. This operation prevents access to the organization's data through applications on the device by requiring the user to sign in again to all applications that they have previously consented to, independent of device. + /// Invalidates all the refresh tokens issued to applications for a user (as well as session cookies in a user's browser), by resetting the signInSessionsValidFromDateTime user property to the current date-time. Typically, this operation is performed (by the user or an administrator) if the user has a lost or stolen device. This operation prevents access to the organization's data through applications on the device by requiring the user to sign in again to all applications that they have previously consented to, independent of device. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsRevokeSignInSessionsPostResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsRevokeSignInSessionsPostResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, RevokeSignInSessionsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invalidates all the refresh tokens issued to applications for a user (as well as session cookies in a user's browser), by resetting the signInSessionsValidFromDateTime user property to the current date-time. Typically, this operation is performed (by the user or an administrator) if the user has a lost or stolen device. This operation prevents access to the organization's data through applications on the device by requiring the user to sign in again to all applications that they have previously consented to, independent of device. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsRevokeSignInSessionsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task PostAsync(Action(requestInfo, RevokeSignInSessionsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Invalidates all the refresh tokens issued to applications for a user (as well as session cookies in a user's browser), by resetting the signInSessionsValidFromDateTime user property to the current date-time. Typically, this operation is performed (by the user or an administrator) if the user has a lost or stolen device. This operation prevents access to the organization's data through applications on the device by requiring the user to sign in again to all applications that they have previously consented to, independent of device. + /// Invalidates all the refresh tokens issued to applications for a user (as well as session cookies in a user's browser), by resetting the signInSessionsValidFromDateTime user property to the current date-time. Typically, this operation is performed (by the user or an administrator) if the user has a lost or stolen device. This operation prevents access to the organization's data through applications on the device by requiring the user to sign in again to all applications that they have previously consented to, independent of device. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/RevokeSignInSessions/RevokeSignInSessionsResponse.cs b/src/Microsoft.Graph/Generated/Me/RevokeSignInSessions/RevokeSignInSessionsResponse.cs index 1ae18ca78af..9434bda08ba 100644 --- a/src/Microsoft.Graph/Generated/Me/RevokeSignInSessions/RevokeSignInSessionsResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/RevokeSignInSessions/RevokeSignInSessionsResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.RevokeSignInSessions { - public class RevokeSignInSessionsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public bool? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new revokeSignInSessionsResponse and sets the default values. - /// - public RevokeSignInSessionsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use revokeSignInSessionsPostResponse instead.")] + public class RevokeSignInSessionsResponse : RevokeSignInSessionsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static RevokeSignInSessionsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new RevokeSignInSessionsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RevokeSignInSessionsResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/SendMail/SendMailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/SendMail/SendMailRequestBuilder.cs index 9a803bf7fff..26f99f442c3 100644 --- a/src/Microsoft.Graph/Generated/Me/SendMail/SendMailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/SendMail/SendMailRequestBuilder.cs @@ -28,7 +28,7 @@ public SendMailRequestBuilder(Dictionary pathParameters, IReques public SendMailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/sendMail", rawUrl) { } /// - /// Send the message specified in the request body using either JSON or MIME format. When using JSON format, you can include a file attachment in the same sendMail action call. When using MIME format: This method saves the message in the Sent Items folder. Alternatively, create a draft message to send later. To learn more about the steps involved in the backend before a mail is delivered to recipients, see here. + /// Send the message specified in the request body using either JSON or MIME format. When using JSON format, you can include a file attachment in the same sendMail action call. When using MIME format: This method saves the message in the Sent Items folder. Alternatively, create a draft message to send later. To learn more about the steps involved in the backend before a mail is delivered to recipients, see here. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SendMailPostRequestBody body, Action - /// Send the message specified in the request body using either JSON or MIME format. When using JSON format, you can include a file attachment in the same sendMail action call. When using MIME format: This method saves the message in the Sent Items folder. Alternatively, create a draft message to send later. To learn more about the steps involved in the backend before a mail is delivered to recipients, see here. + /// Send the message specified in the request body using either JSON or MIME format. When using JSON format, you can include a file attachment in the same sendMail action call. When using MIME format: This method saves the message in the Sent Items folder. Alternatively, create a draft message to send later. To learn more about the steps involved in the backend before a mail is delivered to recipients, see here. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..7b47b8060e5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Me.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs similarity index 60% rename from src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Delta/DeltaRequestBuilder.cs rename to src/Microsoft.Graph/Generated/Me/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index bb1b7683dc8..af2d8faa2c2 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -1,5 +1,7 @@ // +using Microsoft.Graph.Me.ServiceProvisioningErrors.Count; using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -8,54 +10,58 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.Delta { +namespace Microsoft.Graph.Me.ServiceProvisioningErrors { /// - /// Provides operations to call the delta method. + /// Builds and executes requests for operations under \me\serviceProvisioningErrors /// - public class DeltaRequestBuilder : BaseRequestBuilder { + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } /// - /// Instantiates a new DeltaRequestBuilder and sets the default values. + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", pathParameters) { + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { } /// - /// Instantiates a new DeltaRequestBuilder and sets the default values. + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Invoke function delta + /// Get serviceProvisioningErrors property value /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { {"4XX", ODataError.CreateFromDiscriminatorValue}, {"5XX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Invoke function delta + /// Get serviceProvisioningErrors property value /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { #endif var requestInfo = new RequestInformation { HttpMethod = Method.GET, @@ -64,7 +70,7 @@ public RequestInformation ToGetRequestInformation(Action /// The raw URL to use for the request builder. - public DeltaRequestBuilder WithUrl(string rawUrl) { - return new DeltaRequestBuilder(rawUrl, RequestAdapter); + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Invoke function delta + /// Get serviceProvisioningErrors property value /// - public class DeltaRequestBuilderGetQueryParameters { + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -136,17 +152,17 @@ public class DeltaRequestBuilderGetQueryParameters { /// /// Configuration for the request such as headers, query parameters, and middleware options. /// - public class DeltaRequestBuilderGetRequestConfiguration { + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { /// Request headers public RequestHeaders Headers { get; set; } /// Request options public IList Options { get; set; } /// Request query parameters - public DeltaRequestBuilderGetQueryParameters QueryParameters { get; set; } = new DeltaRequestBuilderGetQueryParameters(); + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); /// - /// Instantiates a new deltaRequestBuilderGetRequestConfiguration and sets the default values. + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. /// - public DeltaRequestBuilderGetRequestConfiguration() { + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { Options = new List(); Headers = new RequestHeaders(); } diff --git a/src/Microsoft.Graph/Generated/Me/Settings/SettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Settings/SettingsRequestBuilder.cs index e977d9b6c05..32e3bcc1a7d 100644 --- a/src/Microsoft.Graph/Generated/Me/Settings/SettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Settings/SettingsRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Read the user and organization userSettings object.To learn how to update the properties of the userSettings object, see update user settings. + /// Read the user and organization userSettings object.To learn how to update the properties of the userSettings object, see update user settings. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -73,7 +73,7 @@ public async Task GetAsync(Action(requestInfo, UserSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of the userSettings object. Users in the same organization can have different settings based on their preference or on the organization policies. To get the user current settings, see current user settings. + /// Update the properties of the userSettings object. Users in the same organization can have different settings based on their preference or on the organization policies. To get the user current settings, see current user settings. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -119,7 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the user and organization userSettings object.To learn how to update the properties of the userSettings object, see update user settings. + /// Read the user and organization userSettings object.To learn how to update the properties of the userSettings object, see update user settings. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -145,7 +145,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of the userSettings object. Users in the same organization can have different settings based on their preference or on the organization policies. To get the user current settings, see current user settings. + /// Update the properties of the userSettings object. Users in the same organization can have different settings based on their preference or on the organization policies. To get the user current settings, see current user settings. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -196,7 +196,7 @@ public SettingsRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the user and organization userSettings object.To learn how to update the properties of the userSettings object, see update user settings. + /// Read the user and organization userSettings object.To learn how to update the properties of the userSettings object, see update user settings. This API is supported in the following national cloud deployments. /// public class SettingsRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Settings/ShiftPreferences/ShiftPreferencesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Settings/ShiftPreferences/ShiftPreferencesRequestBuilder.cs index 0bff08166d3..1cec57ede88 100644 --- a/src/Microsoft.Graph/Generated/Me/Settings/ShiftPreferences/ShiftPreferencesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Settings/ShiftPreferences/ShiftPreferencesRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a shiftPreferences object by ID. + /// Retrieve the properties and relationships of a shiftPreferences object by ID. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.ShiftPreferences.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties and relationships of a shiftPreferences object. + /// Update the properties and relationships of a shiftPreferences object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a shiftPreferences object by ID. + /// Retrieve the properties and relationships of a shiftPreferences object by ID. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties and relationships of a shiftPreferences object. + /// Update the properties and relationships of a shiftPreferences object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -191,7 +191,7 @@ public ShiftPreferencesRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a shiftPreferences object by ID. + /// Retrieve the properties and relationships of a shiftPreferences object by ID. This API is supported in the following national cloud deployments. /// public class ShiftPreferencesRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Teamwork/AssociatedTeams/AssociatedTeamsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Teamwork/AssociatedTeams/AssociatedTeamsRequestBuilder.cs index 182d55c8fc9..855bd970f5d 100644 --- a/src/Microsoft.Graph/Generated/Me/Teamwork/AssociatedTeams/AssociatedTeamsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Teamwork/AssociatedTeams/AssociatedTeamsRequestBuilder.cs @@ -42,7 +42,7 @@ public AssociatedTeamsRequestBuilder(Dictionary pathParameters, public AssociatedTeamsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/teamwork/associatedTeams{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of teams in Microsoft Teams that a user is associated with.Currently, a user can be associated with a team in two different ways:* A user can be a direct member of a team.* A user can be a member of a shared channel that is hosted inside a team. + /// Get the list of teams in Microsoft Teams that a user is associated with.Currently, a user can be associated with a team in two different ways: This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(AssociatedTeamInfo body, Action< return await RequestAdapter.SendAsync(requestInfo, AssociatedTeamInfo.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of teams in Microsoft Teams that a user is associated with.Currently, a user can be associated with a team in two different ways:* A user can be a direct member of a team.* A user can be a member of a shared channel that is hosted inside a team. + /// Get the list of teams in Microsoft Teams that a user is associated with.Currently, a user can be associated with a team in two different ways: This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public AssociatedTeamsRequestBuilder WithUrl(string rawUrl) { return new AssociatedTeamsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of teams in Microsoft Teams that a user is associated with.Currently, a user can be associated with a team in two different ways:* A user can be a direct member of a team.* A user can be a member of a shared channel that is hosted inside a team. + /// Get the list of teams in Microsoft Teams that a user is associated with.Currently, a user can be associated with a team in two different ways: This API is supported in the following national cloud deployments. /// public class AssociatedTeamsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/InstalledAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/InstalledAppsRequestBuilder.cs index ff44d99beb1..661c68fcd62 100644 --- a/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/InstalledAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/InstalledAppsRequestBuilder.cs @@ -42,7 +42,7 @@ public InstalledAppsRequestBuilder(Dictionary pathParameters, IR public InstalledAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/teamwork/installedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of apps installed in the personal scope of the specified user. + /// Retrieve the list of apps installed in the personal scope of the specified user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Acti return await RequestAdapter.SendAsync(requestInfo, UserScopeTeamsAppInstallationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Install an app in the personal scope of the specified user. + /// Install an app in the personal scope of the specified user. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(UserScopeTeamsAppInst return await RequestAdapter.SendAsync(requestInfo, UserScopeTeamsAppInstallation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of apps installed in the personal scope of the specified user. + /// Retrieve the list of apps installed in the personal scope of the specified user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Install an app in the personal scope of the specified user. + /// Install an app in the personal scope of the specified user. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public InstalledAppsRequestBuilder WithUrl(string rawUrl) { return new InstalledAppsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of apps installed in the personal scope of the specified user. + /// Retrieve the list of apps installed in the personal scope of the specified user. This API is supported in the following national cloud deployments. /// public class InstalledAppsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/Item/Chat/ChatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/Item/Chat/ChatRequestBuilder.cs index 1435be9d2aa..17627925092 100644 --- a/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/Item/Chat/ChatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/Item/Chat/ChatRequestBuilder.cs @@ -29,7 +29,7 @@ public ChatRequestBuilder(Dictionary pathParameters, IRequestAda public ChatRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/teamwork/installedApps/{userScopeTeamsAppInstallation%2Did}/chat{?%24select,%24expand}", rawUrl) { } /// - /// Retrieve the chat of the specified user and Teams app. + /// Retrieve the chat of the specified user and Teams app. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public ChatRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Chat.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the chat of the specified user and Teams app. + /// Retrieve the chat of the specified user and Teams app. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -82,7 +82,7 @@ public ChatRequestBuilder WithUrl(string rawUrl) { return new ChatRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the chat of the specified user and Teams app. + /// Retrieve the chat of the specified user and Teams app. This API is supported in the following national cloud deployments. /// public class ChatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/Item/UserScopeTeamsAppInstallationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/Item/UserScopeTeamsAppInstallationItemRequestBuilder.cs index 5d3007607cf..d0904260ace 100644 --- a/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/Item/UserScopeTeamsAppInstallationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/Item/UserScopeTeamsAppInstallationItemRequestBuilder.cs @@ -44,7 +44,7 @@ public UserScopeTeamsAppInstallationItemRequestBuilder(Dictionary - /// Uninstall an app from the personal scope of the specified user. + /// Uninstall an app from the personal scope of the specified user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -64,7 +64,7 @@ public async Task DeleteAsync(Action - /// Retrieve the app installed in the personal scope of the specified user. + /// Retrieve the app installed in the personal scope of the specified user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -105,7 +105,7 @@ public async Task PatchAsync(UserScopeTeamsAppIns return await RequestAdapter.SendAsync(requestInfo, UserScopeTeamsAppInstallation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Uninstall an app from the personal scope of the specified user. + /// Uninstall an app from the personal scope of the specified user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,7 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the app installed in the personal scope of the specified user. + /// Retrieve the app installed in the personal scope of the specified user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -206,7 +206,7 @@ public UserScopeTeamsAppInstallationItemRequestBuilderDeleteRequestConfiguration } } /// - /// Retrieve the app installed in the personal scope of the specified user. + /// Retrieve the app installed in the personal scope of the specified user. This API is supported in the following national cloud deployments. /// public class UserScopeTeamsAppInstallationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Teamwork/SendActivityNotification/SendActivityNotificationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Teamwork/SendActivityNotification/SendActivityNotificationRequestBuilder.cs index fa61ad243b9..1456ce3171e 100644 --- a/src/Microsoft.Graph/Generated/Me/Teamwork/SendActivityNotification/SendActivityNotificationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Teamwork/SendActivityNotification/SendActivityNotificationRequestBuilder.cs @@ -28,7 +28,7 @@ public SendActivityNotificationRequestBuilder(Dictionary pathPar public SendActivityNotificationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/teamwork/sendActivityNotification", rawUrl) { } /// - /// Send an activity feed notification to a user. For more details about sending notifications and the requirements for doing so, see sending Teams activity notifications. + /// Send an activity feed notification to a user. For more details about sending notifications and the requirements for doing so, see sending Teams activity notifications. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SendActivityNotificationPostRequestBody body, Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send an activity feed notification to a user. For more details about sending notifications and the requirements for doing so, see sending Teams activity notifications. + /// Send an activity feed notification to a user. For more details about sending notifications and the requirements for doing so, see sending Teams activity notifications. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..7fc8ab7fd98 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.Todo.Lists.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(TodoTaskList.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Delta/DeltaRequestBuilder.cs index bfc36a90b22..258816d313e 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Delta/DeltaResponse.cs index 83660ec646b..26f68dc149a 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.Todo.Lists.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(TodoTaskList.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..a9527fb574f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.Todo.Lists.Item.Tasks.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(TodoTask.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Delta/DeltaRequestBuilder.cs index ec37684ed46..3e750dddef1 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Delta/DeltaResponse.cs index 1b23145b495..b43ce0938e6 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.Todo.Lists.Item.Tasks.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(TodoTask.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/AttachmentsRequestBuilder.cs index 673937679b0..92108f61891 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/todo/lists/{todoTaskList%2Did}/tasks/{todoTask%2Did}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get a list of the taskFileAttachment objects and their properties. The contentBytes property will not be returned in the response. Use the Get attachment API to view the contentBytes. + /// Get a list of the taskFileAttachment objects and their properties. The contentBytes property will not be returned in the response. Use the Get attachment API to view the contentBytes. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentBaseCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a new taskFileAttachment object to a todoTask. This operation limits the size of the attachment you can add to under 3 MB. If the size of the file attachments is more than 3 MB, create an upload session to upload the attachments. + /// Add a new taskFileAttachment object to a todoTask. This operation limits the size of the attachment you can add to under 3 MB. If the size of the file attachments is more than 3 MB, create an upload session to upload the attachments. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(AttachmentBase body, Action(requestInfo, AttachmentBase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the taskFileAttachment objects and their properties. The contentBytes property will not be returned in the response. Use the Get attachment API to view the contentBytes. + /// Get a list of the taskFileAttachment objects and their properties. The contentBytes property will not be returned in the response. Use the Get attachment API to view the contentBytes. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a new taskFileAttachment object to a todoTask. This operation limits the size of the attachment you can add to under 3 MB. If the size of the file attachments is more than 3 MB, create an upload session to upload the attachments. + /// Add a new taskFileAttachment object to a todoTask. This operation limits the size of the attachment you can add to under 3 MB. If the size of the file attachments is more than 3 MB, create an upload session to upload the attachments. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the taskFileAttachment objects and their properties. The contentBytes property will not be returned in the response. Use the Get attachment API to view the contentBytes. + /// Get a list of the taskFileAttachment objects and their properties. The contentBytes property will not be returned in the response. Use the Get attachment API to view the contentBytes. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 39c87ae74f3..6f7baa8eecf 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/todo/lists/{todoTaskList%2Did}/tasks/{todoTask%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session to iteratively upload ranges of a file as an attachment to a todoTask. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. The request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows the transfer to be resumed, in case the network connection is dropped during the upload. The following are the steps to attach a file to a Microsoft To Do task using an upload session: For an example that describes the end-to-end attachment process, see attach files to a To Do task. + /// Create an upload session to iteratively upload ranges of a file as an attachment to a todoTask. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. The request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows the transfer to be resumed, in case the network connection is dropped during the upload. The following are the steps to attach a file to a Microsoft To Do task using an upload session: For an example that describes the end-to-end attachment process, see attach files to a To Do task. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session to iteratively upload ranges of a file as an attachment to a todoTask. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. The request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows the transfer to be resumed, in case the network connection is dropped during the upload. The following are the steps to attach a file to a Microsoft To Do task using an upload session: For an example that describes the end-to-end attachment process, see attach files to a To Do task. + /// Create an upload session to iteratively upload ranges of a file as an attachment to a todoTask. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. The request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows the transfer to be resumed, in case the network connection is dropped during the upload. The following are the steps to attach a file to a Microsoft To Do task using an upload session: For an example that describes the end-to-end attachment process, see attach files to a To Do task. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/Item/AttachmentBaseItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/Item/AttachmentBaseItemRequestBuilder.cs index a8854c9d300..a62f56f01d9 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/Item/AttachmentBaseItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/Item/AttachmentBaseItemRequestBuilder.cs @@ -34,7 +34,7 @@ public AttachmentBaseItemRequestBuilder(Dictionary pathParameter public AttachmentBaseItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/todo/lists/{todoTaskList%2Did}/tasks/{todoTask%2Did}/attachments/{attachmentBase%2Did}{?%24select}", rawUrl) { } /// - /// Delete a taskFileAttachment object from a todoTask resource. + /// Delete a taskFileAttachment object from a todoTask resource. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a taskFileAttachment object. + /// Read the properties and relationships of a taskFileAttachment object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentBase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a taskFileAttachment object from a todoTask resource. + /// Delete a taskFileAttachment object from a todoTask resource. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -98,7 +98,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a taskFileAttachment object. + /// Read the properties and relationships of a taskFileAttachment object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,7 +147,7 @@ public AttachmentBaseItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a taskFileAttachment object. + /// Read the properties and relationships of a taskFileAttachment object. This API is supported in the following national cloud deployments. /// public class AttachmentBaseItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/ChecklistItems/ChecklistItemsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/ChecklistItems/ChecklistItemsRequestBuilder.cs index c8582612d9f..77d733d8642 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/ChecklistItems/ChecklistItemsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/ChecklistItems/ChecklistItemsRequestBuilder.cs @@ -42,7 +42,7 @@ public ChecklistItemsRequestBuilder(Dictionary pathParameters, I public ChecklistItemsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/todo/lists/{todoTaskList%2Did}/tasks/{todoTask%2Did}/checklistItems{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the checklistItem resources associated to a todoTask from the checklistItems navigation property. + /// Get the checklistItem resources associated to a todoTask from the checklistItems navigation property. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ChecklistItemCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new checklistItem object. + /// Create a new checklistItem object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(ChecklistItem body, Action(requestInfo, ChecklistItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the checklistItem resources associated to a todoTask from the checklistItems navigation property. + /// Get the checklistItem resources associated to a todoTask from the checklistItems navigation property. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new checklistItem object. + /// Create a new checklistItem object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ChecklistItemsRequestBuilder WithUrl(string rawUrl) { return new ChecklistItemsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the checklistItem resources associated to a todoTask from the checklistItems navigation property. + /// Get the checklistItem resources associated to a todoTask from the checklistItems navigation property. This API is supported in the following national cloud deployments. /// public class ChecklistItemsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/ChecklistItems/Item/ChecklistItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/ChecklistItems/Item/ChecklistItemItemRequestBuilder.cs index 0c99bb6a5ed..71d9541f273 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/ChecklistItems/Item/ChecklistItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/ChecklistItems/Item/ChecklistItemItemRequestBuilder.cs @@ -29,7 +29,7 @@ public ChecklistItemItemRequestBuilder(Dictionary pathParameters public ChecklistItemItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/todo/lists/{todoTaskList%2Did}/tasks/{todoTask%2Did}/checklistItems/{checklistItem%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a checklistItem object. + /// Delete a checklistItem object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a checklistItem object. + /// Read the properties and relationships of a checklistItem object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, ChecklistItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a checklistItem object. + /// Update the properties of a checklistItem object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(ChecklistItem body, Action(requestInfo, ChecklistItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a checklistItem object. + /// Delete a checklistItem object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a checklistItem object. + /// Read the properties and relationships of a checklistItem object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a checklistItem object. + /// Update the properties of a checklistItem object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public ChecklistItemItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a checklistItem object. + /// Read the properties and relationships of a checklistItem object. This API is supported in the following national cloud deployments. /// public class ChecklistItemItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/LinkedResources/Item/LinkedResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/LinkedResources/Item/LinkedResourceItemRequestBuilder.cs index 055afdc1ea2..13aade20f9d 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/LinkedResources/Item/LinkedResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/LinkedResources/Item/LinkedResourceItemRequestBuilder.cs @@ -29,7 +29,7 @@ public LinkedResourceItemRequestBuilder(Dictionary pathParameter public LinkedResourceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/todo/lists/{todoTaskList%2Did}/tasks/{todoTask%2Did}/linkedResources/{linkedResource%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a linkedResource object. + /// Deletes a linkedResource object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a linkedResource object. + /// Read the properties and relationships of a linkedResource object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, LinkedResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a linkedResource object. + /// Update the properties of a linkedResource object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(LinkedResource body, Action(requestInfo, LinkedResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a linkedResource object. + /// Deletes a linkedResource object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a linkedResource object. + /// Read the properties and relationships of a linkedResource object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a linkedResource object. + /// Update the properties of a linkedResource object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public LinkedResourceItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a linkedResource object. + /// Read the properties and relationships of a linkedResource object. This API is supported in the following national cloud deployments. /// public class LinkedResourceItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/LinkedResources/LinkedResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/LinkedResources/LinkedResourcesRequestBuilder.cs index 121f3dbf9db..e1c2ec5a092 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/LinkedResources/LinkedResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/LinkedResources/LinkedResourcesRequestBuilder.cs @@ -42,7 +42,7 @@ public LinkedResourcesRequestBuilder(Dictionary pathParameters, public LinkedResourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/todo/lists/{todoTaskList%2Did}/tasks/{todoTask%2Did}/linkedResources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get information of one or more items in a partner application, based on which a specified task was created. The information is represented in a linkedResource object for each item. It includes an external ID for the item in the partner application, and if applicable, a deep link to that item in the application. + /// Get information of one or more items in a partner application, based on which a specified task was created. The information is represented in a linkedResource object for each item. It includes an external ID for the item in the partner application, and if applicable, a deep link to that item in the application. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, LinkedResourceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a linkedResource object to associate a specified task with an item in a partner application. For example, you can associate a task with an email item in Outlook that spurred the task, and you can create a linkedResource object to track its association. You can also create a linkedResource object while creating a task. + /// Create a linkedResource object to associate a specified task with an item in a partner application. For example, you can associate a task with an email item in Outlook that spurred the task, and you can create a linkedResource object to track its association. You can also create a linkedResource object while creating a task. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(LinkedResource body, Action(requestInfo, LinkedResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get information of one or more items in a partner application, based on which a specified task was created. The information is represented in a linkedResource object for each item. It includes an external ID for the item in the partner application, and if applicable, a deep link to that item in the application. + /// Get information of one or more items in a partner application, based on which a specified task was created. The information is represented in a linkedResource object for each item. It includes an external ID for the item in the partner application, and if applicable, a deep link to that item in the application. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a linkedResource object to associate a specified task with an item in a partner application. For example, you can associate a task with an email item in Outlook that spurred the task, and you can create a linkedResource object to track its association. You can also create a linkedResource object while creating a task. + /// Create a linkedResource object to associate a specified task with an item in a partner application. For example, you can associate a task with an email item in Outlook that spurred the task, and you can create a linkedResource object to track its association. You can also create a linkedResource object while creating a task. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public LinkedResourcesRequestBuilder WithUrl(string rawUrl) { return new LinkedResourcesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get information of one or more items in a partner application, based on which a specified task was created. The information is represented in a linkedResource object for each item. It includes an external ID for the item in the partner application, and if applicable, a deep link to that item in the application. + /// Get information of one or more items in a partner application, based on which a specified task was created. The information is represented in a linkedResource object for each item. It includes an external ID for the item in the partner application, and if applicable, a deep link to that item in the application. This API is supported in the following national cloud deployments. /// public class LinkedResourcesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/TodoTaskItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/TodoTaskItemRequestBuilder.cs index 21982886db1..c3cbce7cf57 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/TodoTaskItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/TodoTaskItemRequestBuilder.cs @@ -54,7 +54,7 @@ public TodoTaskItemRequestBuilder(Dictionary pathParameters, IRe public TodoTaskItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/todo/lists/{todoTaskList%2Did}/tasks/{todoTask%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a todoTask object. + /// Deletes a todoTask object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a todoTask object. + /// Read the properties and relationships of a todoTask object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -94,7 +94,7 @@ public async Task GetAsync(Action(requestInfo, TodoTask.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a todoTask object. + /// Update the properties of a todoTask object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -116,7 +116,7 @@ public async Task PatchAsync(TodoTask body, Action(requestInfo, TodoTask.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a todoTask object. + /// Deletes a todoTask object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a todoTask object. + /// Read the properties and relationships of a todoTask object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -166,7 +166,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a todoTask object. + /// Update the properties of a todoTask object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -217,7 +217,7 @@ public TodoTaskItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a todoTask object. + /// Read the properties and relationships of a todoTask object. This API is supported in the following national cloud deployments. /// public class TodoTaskItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/TasksRequestBuilder.cs index 5d4f313a169..c0a376cc3f3 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/TasksRequestBuilder.cs @@ -47,7 +47,7 @@ public TasksRequestBuilder(Dictionary pathParameters, IRequestAd public TasksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/todo/lists/{todoTaskList%2Did}/tasks{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the todoTask resources from the tasks navigation property of a specified todoTaskList. + /// Get the todoTask resources from the tasks navigation property of a specified todoTaskList. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, TodoTaskCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new task object in a specified todoTaskList. + /// Create a new task object in a specified todoTaskList. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(TodoTask body, Action(requestInfo, TodoTask.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the todoTask resources from the tasks navigation property of a specified todoTaskList. + /// Get the todoTask resources from the tasks navigation property of a specified todoTaskList. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new task object in a specified todoTaskList. + /// Create a new task object in a specified todoTaskList. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public TasksRequestBuilder WithUrl(string rawUrl) { return new TasksRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the todoTask resources from the tasks navigation property of a specified todoTaskList. + /// Get the todoTask resources from the tasks navigation property of a specified todoTaskList. This API is supported in the following national cloud deployments. /// public class TasksRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/TodoTaskListItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/TodoTaskListItemRequestBuilder.cs index 79ef7a61550..5a71a166031 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/TodoTaskListItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/TodoTaskListItemRequestBuilder.cs @@ -39,7 +39,7 @@ public TodoTaskListItemRequestBuilder(Dictionary pathParameters, public TodoTaskListItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/todo/lists/{todoTaskList%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a todoTaskList object. + /// Deletes a todoTaskList object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -59,7 +59,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a todoTaskList object. + /// Read the properties and relationships of a todoTaskList object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -79,7 +79,7 @@ public async Task GetAsync(Action(requestInfo, TodoTaskList.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a todoTaskList object. + /// Update the properties of a todoTaskList object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -101,7 +101,7 @@ public async Task PatchAsync(TodoTaskList body, Action(requestInfo, TodoTaskList.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a todoTaskList object. + /// Deletes a todoTaskList object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -125,7 +125,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a todoTaskList object. + /// Read the properties and relationships of a todoTaskList object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -151,7 +151,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a todoTaskList object. + /// Update the properties of a todoTaskList object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -202,7 +202,7 @@ public TodoTaskListItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a todoTaskList object. + /// Read the properties and relationships of a todoTaskList object. This API is supported in the following national cloud deployments. /// public class TodoTaskListItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/ListsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/ListsRequestBuilder.cs index 43977c956dc..7af5e5ee148 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/ListsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/ListsRequestBuilder.cs @@ -47,7 +47,7 @@ public ListsRequestBuilder(Dictionary pathParameters, IRequestAd public ListsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/todo/lists{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the todoTaskList objects and their properties. + /// Get a list of the todoTaskList objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, TodoTaskListCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new lists object. + /// Create a new lists object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(TodoTaskList body, Action(requestInfo, TodoTaskList.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the todoTaskList objects and their properties. + /// Get a list of the todoTaskList objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new lists object. + /// Create a new lists object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public ListsRequestBuilder WithUrl(string rawUrl) { return new ListsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the todoTaskList objects and their properties. + /// Get a list of the todoTaskList objects and their properties. This API is supported in the following national cloud deployments. /// public class ListsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/TranslateExchangeIds/TranslateExchangeIdsPostResponse.cs b/src/Microsoft.Graph/Generated/Me/TranslateExchangeIds/TranslateExchangeIdsPostResponse.cs new file mode 100644 index 00000000000..96391a11f3b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/TranslateExchangeIds/TranslateExchangeIdsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.TranslateExchangeIds { + public class TranslateExchangeIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new TranslateExchangeIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new TranslateExchangeIdsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ConvertIdResult.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/TranslateExchangeIds/TranslateExchangeIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/TranslateExchangeIds/TranslateExchangeIdsRequestBuilder.cs index 51c1f1df3cd..95049d2b23b 100644 --- a/src/Microsoft.Graph/Generated/Me/TranslateExchangeIds/TranslateExchangeIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/TranslateExchangeIds/TranslateExchangeIdsRequestBuilder.cs @@ -28,13 +28,36 @@ public TranslateExchangeIdsRequestBuilder(Dictionary pathParamet public TranslateExchangeIdsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/translateExchangeIds", rawUrl) { } /// - /// Translate identifiers of Outlook-related resources between formats. + /// Translate identifiers of Outlook-related resources between formats. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsTranslateExchangeIdsPostResponseAsync(TranslateExchangeIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsTranslateExchangeIdsPostResponseAsync(TranslateExchangeIdsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, TranslateExchangeIdsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Translate identifiers of Outlook-related resources between formats. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsTranslateExchangeIdsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(TranslateExchangeIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(TranslateExchangeIdsPo return await RequestAdapter.SendAsync(requestInfo, TranslateExchangeIdsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Translate identifiers of Outlook-related resources between formats. + /// Translate identifiers of Outlook-related resources between formats. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/TranslateExchangeIds/TranslateExchangeIdsResponse.cs b/src/Microsoft.Graph/Generated/Me/TranslateExchangeIds/TranslateExchangeIdsResponse.cs index f9d777892a2..542b36f522d 100644 --- a/src/Microsoft.Graph/Generated/Me/TranslateExchangeIds/TranslateExchangeIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/TranslateExchangeIds/TranslateExchangeIdsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Me.TranslateExchangeIds { - public class TranslateExchangeIdsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use translateExchangeIdsPostResponse instead.")] + public class TranslateExchangeIdsResponse : TranslateExchangeIdsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new TranslateExchangeIdsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ConvertIdResult.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentApprovalSettings.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentApprovalSettings.cs index 7db7117d0d9..223e9dd623d 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentApprovalSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentApprovalSettings.cs @@ -14,12 +14,12 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// If false, then approval is not required for new requests in this policy. + /// If false, then approval isn't required for new requests in this policy. public bool? IsApprovalRequiredForAdd { get { return BackingStore?.Get("isApprovalRequiredForAdd"); } set { BackingStore?.Set("isApprovalRequiredForAdd", value); } } - /// If false, then approval is not required for updates to requests in this policy. + /// If false, then approval isn't required for updates to requests in this policy. public bool? IsApprovalRequiredForUpdate { get { return BackingStore?.Get("isApprovalRequiredForUpdate"); } set { BackingStore?.Set("isApprovalRequiredForUpdate", value); } diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequest.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequest.cs index ed114095eff..81282ad32c8 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequest.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequest.cs @@ -86,12 +86,12 @@ public AccessPackageSubject Requestor { set { BackingStore?.Set("requestor", value); } } #endif - /// The type of the request. The possible values are: notSpecified, userAdd, UserExtend, userUpdate, userRemove, adminAdd, adminUpdate, adminRemove, systemAdd, systemUpdate, systemRemove, onBehalfAdd (not supported), unknownFutureValue. A request from the user themselves would have requestType of userAdd, userUpdate or userRemove. This property cannot be changed once set. + /// The type of the request. The possible values are: notSpecified, userAdd, UserExtend, userUpdate, userRemove, adminAdd, adminUpdate, adminRemove, systemAdd, systemUpdate, systemRemove, onBehalfAdd (not supported), unknownFutureValue. A request from the user themselves would have requestType of userAdd, userUpdate or userRemove. This property can't be changed once set. public AccessPackageRequestType? RequestType { get { return BackingStore?.Get("requestType"); } set { BackingStore?.Set("requestType", value); } } - /// The range of dates that access is to be assigned to the requestor. This property cannot be changed once set. + /// The range of dates that access is to be assigned to the requestor. This property can't be changed once set. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public EntitlementManagementSchedule? Schedule { @@ -143,8 +143,8 @@ public string Status { {"completedDateTime", n => { CompletedDateTime = n.GetDateTimeOffsetValue(); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"customExtensionCalloutInstances", n => { CustomExtensionCalloutInstances = n.GetCollectionOfObjectValues(CustomExtensionCalloutInstance.CreateFromDiscriminatorValue)?.ToList(); } }, - {"requestor", n => { Requestor = n.GetObjectValue(AccessPackageSubject.CreateFromDiscriminatorValue); } }, {"requestType", n => { RequestType = n.GetEnumValue(); } }, + {"requestor", n => { Requestor = n.GetObjectValue(AccessPackageSubject.CreateFromDiscriminatorValue); } }, {"schedule", n => { Schedule = n.GetObjectValue(EntitlementManagementSchedule.CreateFromDiscriminatorValue); } }, {"state", n => { State = n.GetEnumValue(); } }, {"status", n => { Status = n.GetStringValue(); } }, diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequestCallbackData.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequestCallbackData.cs index dad7fdcb64e..36142ab71f2 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequestCallbackData.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequestCallbackData.cs @@ -34,7 +34,7 @@ public string CustomExtensionStageInstanceId { set { BackingStore?.Set("customExtensionStageInstanceId", value); } } #endif - /// Indicates the stage at which the custom callout extension will be executed. The possible values are: assignmentRequestCreated, assignmentRequestApproved, assignmentRequestGranted, assignmentRequestRemoved, assignmentFourteenDaysBeforeExpiration, assignmentOneDayBeforeExpiration, unknownFutureValue. + /// Indicates the stage at which the custom callout extension is executed. The possible values are: assignmentRequestCreated, assignmentRequestApproved, assignmentRequestGranted, assignmentRequestRemoved, assignmentFourteenDaysBeforeExpiration, assignmentOneDayBeforeExpiration, unknownFutureValue. public AccessPackageCustomExtensionStage? Stage { get { return BackingStore?.Get("stage"); } set { BackingStore?.Set("stage", value); } diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequestorSettings.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequestorSettings.cs index 3c47e8d5449..1ad689570df 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequestorSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequestorSettings.cs @@ -12,7 +12,7 @@ public IDictionary AdditionalData { get { return BackingStore?.Get>("additionalData"); } set { BackingStore?.Set("additionalData", value); } } - /// False indicates that the requestor is not permitted to include a schedule in their request. + /// False indicates that the requestor isn't permitted to include a schedule in their request. public bool? AllowCustomAssignmentSchedule { get { return BackingStore?.Get("allowCustomAssignmentSchedule"); } set { BackingStore?.Set("allowCustomAssignmentSchedule", value); } diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageCatalog.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageCatalog.cs index a4c613c5eaa..cc2ff9dee3c 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageCatalog.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageCatalog.cs @@ -151,8 +151,8 @@ public AccessPackageCatalogState? State { {"isExternallyVisible", n => { IsExternallyVisible = n.GetBoolValue(); } }, {"modifiedDateTime", n => { ModifiedDateTime = n.GetDateTimeOffsetValue(); } }, {"resourceRoles", n => { ResourceRoles = n.GetCollectionOfObjectValues(AccessPackageResourceRole.CreateFromDiscriminatorValue)?.ToList(); } }, - {"resources", n => { Resources = n.GetCollectionOfObjectValues(AccessPackageResource.CreateFromDiscriminatorValue)?.ToList(); } }, {"resourceScopes", n => { ResourceScopes = n.GetCollectionOfObjectValues(AccessPackageResourceScope.CreateFromDiscriminatorValue)?.ToList(); } }, + {"resources", n => { Resources = n.GetCollectionOfObjectValues(AccessPackageResource.CreateFromDiscriminatorValue)?.ToList(); } }, {"state", n => { State = n.GetEnumValue(); } }, }; } diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageTextInputQuestion.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageTextInputQuestion.cs index 00efbaa65d3..24524ab47a7 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageTextInputQuestion.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageTextInputQuestion.cs @@ -11,7 +11,7 @@ public bool? IsSingleLineQuestion { get { return BackingStore?.Get("isSingleLineQuestion"); } set { BackingStore?.Set("isSingleLineQuestion", value); } } - /// The regular expression pattern which any answer to this question must match. + /// The regular expression pattern that any answer to this question must match. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? RegexPattern { diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewHistoryScheduleSettings.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewHistoryScheduleSettings.cs index 7e25ff1eeec..391563ca97f 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewHistoryScheduleSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewHistoryScheduleSettings.cs @@ -42,7 +42,7 @@ public PatternedRecurrence Recurrence { set { BackingStore?.Set("recurrence", value); } } #endif - /// A duration string in ISO 8601 duration format specifying the lookback period of the generated review history data. For example, if a history definition is scheduled to run on the 1st of every month, the reportRange is P1M. In this case, on the first of every month, access review history data will be collected containing only the previous month's review data. Note: Only years, months, and days ISO 8601 properties are supported. Required. + /// A duration string in ISO 8601 duration format specifying the lookback period of the generated review history data. For example, if a history definition is scheduled to run on the first of every month, the reportRange is P1M. In this case, on the first of every month, access review history data is collected containing only the previous month's review data. Note: Only years, months, and days ISO 8601 properties are supported. Required. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? ReportRange { diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewScheduleDefinition.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewScheduleDefinition.cs index 9ed3fd70b74..03ccb980350 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewScheduleDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewScheduleDefinition.cs @@ -53,7 +53,7 @@ public string DescriptionForAdmins { set { BackingStore?.Set("descriptionForAdmins", value); } } #endif - /// Description provided by review creators to provide more context of the review to reviewers. Reviewers will see this description in the email sent to them requesting their review. Email notifications support up to 256 characters. Supports $select. + /// Description provided by review creators to provide more context of the review to reviewers. Reviewers see this description in the email sent to them requesting their review. Email notifications support up to 256 characters. Supports $select. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DescriptionForReviewers { @@ -81,7 +81,7 @@ public string DisplayName { set { BackingStore?.Set("displayName", value); } } #endif - /// This collection of reviewer scopes is used to define the list of fallback reviewers. These fallback reviewers will be notified to take action if no users are found from the list of reviewers specified. This could occur when either the group owner is specified as the reviewer but the group owner does not exist, or manager is specified as reviewer but a user's manager does not exist. See accessReviewReviewerScope. Replaces backupReviewers. Supports $select. NOTE: The value of this property will be ignored if fallback reviewers are assigned through the stageSettings property. + /// This collection of reviewer scopes is used to define the list of fallback reviewers. These fallback reviewers are notified to take action if no users are found from the list of reviewers specified. This could occur when either the group owner is specified as the reviewer but the group owner doesn't exist, or manager is specified as reviewer but a user's manager doesn't exist. See accessReviewReviewerScope. Replaces backupReviewers. Supports $select. NOTE: The value of this property will be ignored if fallback reviewers are assigned through the stageSettings property. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? FallbackReviewers { @@ -95,7 +95,7 @@ public List FallbackReviewers { set { BackingStore?.Set("fallbackReviewers", value); } } #endif - /// This property is required when scoping a review to guest users' access across all Microsoft 365 groups and determines which Microsoft 365 groups are reviewed. Each group will become a unique accessReviewInstance of the access review series. For supported scopes, see accessReviewScope. Supports $select. For examples of options for configuring instanceEnumerationScope, see Configure the scope of your access review definition using the Microsoft Graph API. + /// This property is required when scoping a review to guest users' access across all Microsoft 365 groups and determines which Microsoft 365 groups are reviewed. Each group becomes a unique accessReviewInstance of the access review series. For supported scopes, see accessReviewScope. Supports $select. For examples of options for configuring instanceEnumerationScope, see Configure the scope of your access review definition using the Microsoft Graph API. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public AccessReviewScope? InstanceEnumerationScope { @@ -109,7 +109,7 @@ public AccessReviewScope InstanceEnumerationScope { set { BackingStore?.Set("instanceEnumerationScope", value); } } #endif - /// If the accessReviewScheduleDefinition is a recurring access review, instances represent each recurrence. A review that does not recur will have exactly one instance. Instances also represent each unique resource under review in the accessReviewScheduleDefinition. If a review has multiple resources and multiple instances, each resource will have a unique instance for each recurrence. + /// If the accessReviewScheduleDefinition is a recurring access review, instances represent each recurrence. A review that doesn't recur will have exactly one instance. Instances also represent each unique resource under review in the accessReviewScheduleDefinition. If a review has multiple resources and multiple instances, each resource has a unique instance for each recurrence. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Instances { @@ -170,7 +170,7 @@ public AccessReviewScheduleSettings Settings { set { BackingStore?.Set("settings", value); } } #endif - /// Required only for a multi-stage access review to define the stages and their settings. You can break down each review instance into up to three sequential stages, where each stage can have a different set of reviewers, fallback reviewers, and settings. Stages will be created sequentially based on the dependsOn property. Optional. When this property is defined, its settings are used instead of the corresponding settings in the accessReviewScheduleDefinition object and its settings, reviewers, and fallbackReviewers properties. + /// Required only for a multi-stage access review to define the stages and their settings. You can break down each review instance into up to three sequential stages, where each stage can have a different set of reviewers, fallback reviewers, and settings. Stages are created sequentially based on the dependsOn property. Optional. When this property is defined, its settings are used instead of the corresponding settings in the accessReviewScheduleDefinition object and its settings, reviewers, and fallbackReviewers properties. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? StageSettings { diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewStage.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewStage.cs index 33b2a9efa8b..b39a205f36c 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewStage.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewStage.cs @@ -25,7 +25,7 @@ public DateTimeOffset? EndDateTime { get { return BackingStore?.Get("endDateTime"); } set { BackingStore?.Set("endDateTime", value); } } - /// This collection of reviewer scopes is used to define the list of fallback reviewers. These fallback reviewers will be notified to take action if no users are found from the list of reviewers specified. This could occur when either the group owner is specified as the reviewer but the group owner does not exist, or manager is specified as reviewer but a user's manager does not exist. + /// This collection of reviewer scopes is used to define the list of fallback reviewers. These fallback reviewers are notified to take action if no users are found from the list of reviewers specified. This could occur when either the group owner is specified as the reviewer but the group owner doesn't exist, or manager is specified as reviewer but a user's manager doesn't exist. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? FallbackReviewers { diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Models/AccountTargetContent.cs similarity index 55% rename from src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsPostRequestBody.cs rename to src/Microsoft.Graph/Generated/Models/AccountTargetContent.cs index 55bcb25e4f2..bc76401cb6e 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Models/AccountTargetContent.cs @@ -5,8 +5,8 @@ using System.IO; using System.Linq; using System; -namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.GetByIds { - public class GetByIdsPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable { +namespace Microsoft.Graph.Models { + public class AccountTargetContent : IAdditionalDataHolder, IBackedModel, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get { return BackingStore?.Get>("additionalData"); } @@ -14,38 +14,29 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The ids property + /// The OdataType property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Ids { - get { return BackingStore?.Get?>("ids"); } - set { BackingStore?.Set("ids", value); } + public string? OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } } #nullable restore #else - public List Ids { - get { return BackingStore?.Get>("ids"); } - set { BackingStore?.Set("ids", value); } + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } } #endif - /// The types property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Types { - get { return BackingStore?.Get?>("types"); } - set { BackingStore?.Set("types", value); } + /// The type property + public AccountTargetContentType? Type { + get { return BackingStore?.Get("type"); } + set { BackingStore?.Set("type", value); } } -#nullable restore -#else - public List Types { - get { return BackingStore?.Get>("types"); } - set { BackingStore?.Set("types", value); } - } -#endif /// - /// Instantiates a new getByIdsPostRequestBody and sets the default values. + /// Instantiates a new accountTargetContent and sets the default values. /// - public GetByIdsPostRequestBody() { + public AccountTargetContent() { BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); AdditionalData = new Dictionary(); } @@ -53,17 +44,22 @@ public GetByIdsPostRequestBody() { /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static GetByIdsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + public static AccountTargetContent CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetByIdsPostRequestBody(); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch { + "#microsoft.graph.addressBookAccountTargetContent" => new AddressBookAccountTargetContent(), + "#microsoft.graph.includeAllAccountTargetContent" => new IncludeAllAccountTargetContent(), + _ => new AccountTargetContent(), + }; } /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"types", n => { Types = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -72,8 +68,8 @@ public IDictionary> GetFieldDeserializers() { /// Serialization writer to use to serialize this model public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfPrimitiveValues("ids", Ids); - writer.WriteCollectionOfPrimitiveValues("types", Types); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteEnumValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Microsoft.Graph/Generated/Models/AccountTargetContentType.cs b/src/Microsoft.Graph/Generated/Models/AccountTargetContentType.cs new file mode 100644 index 00000000000..d4f6523cc88 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/AccountTargetContentType.cs @@ -0,0 +1,15 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + public enum AccountTargetContentType { + [EnumMember(Value = "unknown")] + Unknown, + [EnumMember(Value = "includeAll")] + IncludeAll, + [EnumMember(Value = "addressBook")] + AddressBook, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/AddressBookAccountTargetContent.cs b/src/Microsoft.Graph/Generated/Models/AddressBookAccountTargetContent.cs new file mode 100644 index 00000000000..ccfe984ab96 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/AddressBookAccountTargetContent.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class AddressBookAccountTargetContent : AccountTargetContent, IParsable { + /// The accountTargetEmails property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? AccountTargetEmails { + get { return BackingStore?.Get?>("accountTargetEmails"); } + set { BackingStore?.Set("accountTargetEmails", value); } + } +#nullable restore +#else + public List AccountTargetEmails { + get { return BackingStore?.Get>("accountTargetEmails"); } + set { BackingStore?.Set("accountTargetEmails", value); } + } +#endif + /// + /// Instantiates a new addressBookAccountTargetContent and sets the default values. + /// + public AddressBookAccountTargetContent() : base() { + OdataType = "#microsoft.graph.addressBookAccountTargetContent"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AddressBookAccountTargetContent CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AddressBookAccountTargetContent(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"accountTargetEmails", n => { AccountTargetEmails = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("accountTargetEmails", AccountTargetEmails); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/AggregationOption.cs b/src/Microsoft.Graph/Generated/Models/AggregationOption.cs index f4b83bcbccd..8b5ed2c74db 100644 --- a/src/Microsoft.Graph/Generated/Models/AggregationOption.cs +++ b/src/Microsoft.Graph/Generated/Models/AggregationOption.cs @@ -56,7 +56,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// The number of searchBucket resources to be returned. This is not required when the range is provided manually in the search request. Optional. + /// The number of searchBucket resources to be returned. This isn't required when the range is provided manually in the search request. Optional. public int? Size { get { return BackingStore?.Get("size"); } set { BackingStore?.Set("size", value); } diff --git a/src/Microsoft.Graph/Generated/Models/AgreementFileProperties.cs b/src/Microsoft.Graph/Generated/Models/AgreementFileProperties.cs index 9bd9fe8b640..3cdcdf63e07 100644 --- a/src/Microsoft.Graph/Generated/Models/AgreementFileProperties.cs +++ b/src/Microsoft.Graph/Generated/Models/AgreementFileProperties.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models { public class AgreementFileProperties : Entity, IParsable { - /// The date time representing when the file was created.The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + /// The date time representing when the file was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? CreatedDateTime { get { return BackingStore?.Get("createdDateTime"); } set { BackingStore?.Set("createdDateTime", value); } @@ -53,7 +53,7 @@ public string FileName { set { BackingStore?.Set("fileName", value); } } #endif - /// If none of the languages matches the client preference, indicates whether this is the default agreement file . If none of the files are marked as default, the first one is treated as the default. Read-only. + /// If none of the languages matches the client preference, indicates whether this is the default agreement file. If none of the files are marked as default, the first one is treated as the default. Read-only. public bool? IsDefault { get { return BackingStore?.Get("isDefault"); } set { BackingStore?.Set("isDefault", value); } diff --git a/src/Microsoft.Graph/Generated/Models/AllowedValue.cs b/src/Microsoft.Graph/Generated/Models/AllowedValue.cs index ca9b813dbb2..2be47628392 100644 --- a/src/Microsoft.Graph/Generated/Models/AllowedValue.cs +++ b/src/Microsoft.Graph/Generated/Models/AllowedValue.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models { public class AllowedValue : Entity, IParsable { - /// Indicates whether the predefined value is active or deactivated. If set to false, this predefined value cannot be assigned to any additional supported directory objects. + /// Indicates whether the predefined value is active or deactivated. If set to false, this predefined value can't be assigned to any other supported directory objects. public bool? IsActive { get { return BackingStore?.Get("isActive"); } set { BackingStore?.Set("isActive", value); } diff --git a/src/Microsoft.Graph/Generated/Models/AndroidGeneralDeviceConfiguration.cs b/src/Microsoft.Graph/Generated/Models/AndroidGeneralDeviceConfiguration.cs index ca2f3cf8b00..a3880018761 100644 --- a/src/Microsoft.Graph/Generated/Models/AndroidGeneralDeviceConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/AndroidGeneralDeviceConfiguration.cs @@ -356,9 +356,9 @@ public AndroidGeneralDeviceConfiguration() : base() { {"voiceAssistantBlocked", n => { VoiceAssistantBlocked = n.GetBoolValue(); } }, {"voiceDialingBlocked", n => { VoiceDialingBlocked = n.GetBoolValue(); } }, {"webBrowserBlockAutofill", n => { WebBrowserBlockAutofill = n.GetBoolValue(); } }, - {"webBrowserBlocked", n => { WebBrowserBlocked = n.GetBoolValue(); } }, {"webBrowserBlockJavaScript", n => { WebBrowserBlockJavaScript = n.GetBoolValue(); } }, {"webBrowserBlockPopups", n => { WebBrowserBlockPopups = n.GetBoolValue(); } }, + {"webBrowserBlocked", n => { WebBrowserBlocked = n.GetBoolValue(); } }, {"webBrowserCookieSettings", n => { WebBrowserCookieSettings = n.GetEnumValue(); } }, {"wiFiBlocked", n => { WiFiBlocked = n.GetBoolValue(); } }, }; diff --git a/src/Microsoft.Graph/Generated/Models/AndroidWorkProfileGeneralDeviceConfiguration.cs b/src/Microsoft.Graph/Generated/Models/AndroidWorkProfileGeneralDeviceConfiguration.cs index 206ad65fcfd..c7300fe51c3 100644 --- a/src/Microsoft.Graph/Generated/Models/AndroidWorkProfileGeneralDeviceConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/AndroidWorkProfileGeneralDeviceConfiguration.cs @@ -220,13 +220,13 @@ public AndroidWorkProfileGeneralDeviceConfiguration() : base() { {"workProfilePasswordBlockFingerprintUnlock", n => { WorkProfilePasswordBlockFingerprintUnlock = n.GetBoolValue(); } }, {"workProfilePasswordBlockTrustAgents", n => { WorkProfilePasswordBlockTrustAgents = n.GetBoolValue(); } }, {"workProfilePasswordExpirationDays", n => { WorkProfilePasswordExpirationDays = n.GetIntValue(); } }, - {"workProfilePasswordMinimumLength", n => { WorkProfilePasswordMinimumLength = n.GetIntValue(); } }, {"workProfilePasswordMinLetterCharacters", n => { WorkProfilePasswordMinLetterCharacters = n.GetIntValue(); } }, {"workProfilePasswordMinLowerCaseCharacters", n => { WorkProfilePasswordMinLowerCaseCharacters = n.GetIntValue(); } }, {"workProfilePasswordMinNonLetterCharacters", n => { WorkProfilePasswordMinNonLetterCharacters = n.GetIntValue(); } }, {"workProfilePasswordMinNumericCharacters", n => { WorkProfilePasswordMinNumericCharacters = n.GetIntValue(); } }, {"workProfilePasswordMinSymbolCharacters", n => { WorkProfilePasswordMinSymbolCharacters = n.GetIntValue(); } }, {"workProfilePasswordMinUpperCaseCharacters", n => { WorkProfilePasswordMinUpperCaseCharacters = n.GetIntValue(); } }, + {"workProfilePasswordMinimumLength", n => { WorkProfilePasswordMinimumLength = n.GetIntValue(); } }, {"workProfilePasswordMinutesOfInactivityBeforeScreenTimeout", n => { WorkProfilePasswordMinutesOfInactivityBeforeScreenTimeout = n.GetIntValue(); } }, {"workProfilePasswordPreviousPasswordBlockCount", n => { WorkProfilePasswordPreviousPasswordBlockCount = n.GetIntValue(); } }, {"workProfilePasswordRequiredType", n => { WorkProfilePasswordRequiredType = n.GetEnumValue(); } }, diff --git a/src/Microsoft.Graph/Generated/Models/ApiApplication.cs b/src/Microsoft.Graph/Generated/Models/ApiApplication.cs index 3ad23012190..4e3df5b70b9 100644 --- a/src/Microsoft.Graph/Generated/Models/ApiApplication.cs +++ b/src/Microsoft.Graph/Generated/Models/ApiApplication.cs @@ -61,7 +61,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// Lists the client applications that are pre-authorized with the specified delegated permissions to access this application's APIs. Users are not required to consent to any pre-authorized application (for the permissions specified). However, any additional permissions not listed in preAuthorizedApplications (requested through incremental consent for example) will require user consent. + /// Lists the client applications that are preauthorized with the specified delegated permissions to access this application's APIs. Users aren't required to consent to any preauthorized application (for the permissions specified). However, any other permissions not listed in preAuthorizedApplications (requested through incremental consent for example) will require user consent. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? PreAuthorizedApplications { diff --git a/src/Microsoft.Graph/Generated/Models/AppIdentity.cs b/src/Microsoft.Graph/Generated/Models/AppIdentity.cs index 59e9ef9e4e9..5902a88885c 100644 --- a/src/Microsoft.Graph/Generated/Models/AppIdentity.cs +++ b/src/Microsoft.Graph/Generated/Models/AppIdentity.cs @@ -28,7 +28,7 @@ public string AppId { #endif /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// Refers to the Application Name displayed in the Azure Portal. + /// Refers to the application name displayed in the Microsoft Entra admin center. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DisplayName { diff --git a/src/Microsoft.Graph/Generated/Models/AppRole.cs b/src/Microsoft.Graph/Generated/Models/AppRole.cs index e7448e866c7..85ed6bfd25c 100644 --- a/src/Microsoft.Graph/Generated/Models/AppRole.cs +++ b/src/Microsoft.Graph/Generated/Models/AppRole.cs @@ -94,7 +94,7 @@ public string Origin { set { BackingStore?.Set("origin", value); } } #endif - /// Specifies the value to include in the roles claim in ID tokens and access tokens authenticating an assigned user or service principal. Must not exceed 120 characters in length. Allowed characters are : ! # $ % & ' ( ) * + , - . / : ; = ? @ [ ] ^ + _ { } ~, as well as characters in the ranges 0-9, A-Z and a-z. Any other character, including the space character, are not allowed. May not begin with .. + /// Specifies the value to include in the roles claim in ID tokens and access tokens authenticating an assigned user or service principal. Must not exceed 120 characters in length. Allowed characters are : ! # $ % & ' ( ) * + , - . / : ; = ? @ [ ] ^ + _ { } ~, and characters in the ranges 0-9, A-Z and a-z. Any other character, including the space character, aren't allowed. May not begin with .. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Value { diff --git a/src/Microsoft.Graph/Generated/Models/Application.cs b/src/Microsoft.Graph/Generated/Models/Application.cs index a8d9f6a6de7..8c3898d60ac 100644 --- a/src/Microsoft.Graph/Generated/Models/Application.cs +++ b/src/Microsoft.Graph/Generated/Models/Application.cs @@ -613,9 +613,9 @@ public Application() : base() { {"addIns", n => { AddIns = n.GetCollectionOfObjectValues(AddIn.CreateFromDiscriminatorValue)?.ToList(); } }, {"api", n => { Api = n.GetObjectValue(ApiApplication.CreateFromDiscriminatorValue); } }, {"appId", n => { AppId = n.GetStringValue(); } }, - {"applicationTemplateId", n => { ApplicationTemplateId = n.GetStringValue(); } }, {"appManagementPolicies", n => { AppManagementPolicies = n.GetCollectionOfObjectValues(AppManagementPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, {"appRoles", n => { AppRoles = n.GetCollectionOfObjectValues(AppRole.CreateFromDiscriminatorValue)?.ToList(); } }, + {"applicationTemplateId", n => { ApplicationTemplateId = n.GetStringValue(); } }, {"certification", n => { Certification = n.GetObjectValue(Microsoft.Graph.Models.Certification.CreateFromDiscriminatorValue); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"createdOnBehalfOf", n => { CreatedOnBehalfOf = n.GetObjectValue(DirectoryObject.CreateFromDiscriminatorValue); } }, diff --git a/src/Microsoft.Graph/Generated/Models/ApprovalStage.cs b/src/Microsoft.Graph/Generated/Models/ApprovalStage.cs index 7f94ada1e81..99df7071eaa 100644 --- a/src/Microsoft.Graph/Generated/Models/ApprovalStage.cs +++ b/src/Microsoft.Graph/Generated/Models/ApprovalStage.cs @@ -102,9 +102,9 @@ public string Status { {"assignedToMe", n => { AssignedToMe = n.GetBoolValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"justification", n => { Justification = n.GetStringValue(); } }, + {"reviewResult", n => { ReviewResult = n.GetStringValue(); } }, {"reviewedBy", n => { ReviewedBy = n.GetObjectValue(Identity.CreateFromDiscriminatorValue); } }, {"reviewedDateTime", n => { ReviewedDateTime = n.GetDateTimeOffsetValue(); } }, - {"reviewResult", n => { ReviewResult = n.GetStringValue(); } }, {"status", n => { Status = n.GetStringValue(); } }, }; } diff --git a/src/Microsoft.Graph/Generated/Models/AttachmentBase.cs b/src/Microsoft.Graph/Generated/Models/AttachmentBase.cs index af17b38d483..839e1916df7 100644 --- a/src/Microsoft.Graph/Generated/Models/AttachmentBase.cs +++ b/src/Microsoft.Graph/Generated/Models/AttachmentBase.cs @@ -25,7 +25,7 @@ public DateTimeOffset? LastModifiedDateTime { get { return BackingStore?.Get("lastModifiedDateTime"); } set { BackingStore?.Set("lastModifiedDateTime", value); } } - /// The display name of the attachment. This does not need to be the actual file name. + /// The display name of the attachment. This doesn't need to be the actual file name. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Name { diff --git a/src/Microsoft.Graph/Generated/Models/AttachmentInfo.cs b/src/Microsoft.Graph/Generated/Models/AttachmentInfo.cs index 889c576def0..8f400e26bb9 100644 --- a/src/Microsoft.Graph/Generated/Models/AttachmentInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/AttachmentInfo.cs @@ -33,7 +33,7 @@ public string ContentType { set { BackingStore?.Set("contentType", value); } } #endif - /// The display name of the attachment. This can be a descriptive string and does not have to be the actual file name. Required. + /// The display name of the attachment. This can be a descriptive string and doesn't have to be the actual file name. Required. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Name { diff --git a/src/Microsoft.Graph/Generated/Models/AttachmentItem.cs b/src/Microsoft.Graph/Generated/Models/AttachmentItem.cs index e428f8b56ec..91f17e912de 100644 --- a/src/Microsoft.Graph/Generated/Models/AttachmentItem.cs +++ b/src/Microsoft.Graph/Generated/Models/AttachmentItem.cs @@ -19,7 +19,7 @@ public Microsoft.Graph.Models.AttachmentType? AttachmentType { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The CID or Content-Id of the attachment for referencing in case of in-line attachments using <img src='cid:contentId'> tag in HTML messages. Optional. + /// The CID or Content-Id of the attachment for referencing for the in-line attachments using the <img src='cid:contentId'> tag in HTML messages. Optional. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? ContentId { @@ -52,7 +52,7 @@ public bool? IsInline { get { return BackingStore?.Get("isInline"); } set { BackingStore?.Set("isInline", value); } } - /// The display name of the attachment. This can be a descriptive string and does not have to be the actual file name. Required. + /// The display name of the attachment. This can be a descriptive string and doesn't have to be the actual file name. Required. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Name { diff --git a/src/Microsoft.Graph/Generated/Models/AttackSimulationOperation.cs b/src/Microsoft.Graph/Generated/Models/AttackSimulationOperation.cs new file mode 100644 index 00000000000..8570ac9d5e4 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/AttackSimulationOperation.cs @@ -0,0 +1,63 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class AttackSimulationOperation : LongRunningOperation, IParsable { + /// The percentageCompleted property + public int? PercentageCompleted { + get { return BackingStore?.Get("percentageCompleted"); } + set { BackingStore?.Set("percentageCompleted", value); } + } + /// The tenantId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TenantId { + get { return BackingStore?.Get("tenantId"); } + set { BackingStore?.Set("tenantId", value); } + } +#nullable restore +#else + public string TenantId { + get { return BackingStore?.Get("tenantId"); } + set { BackingStore?.Set("tenantId", value); } + } +#endif + /// The type property + public AttackSimulationOperationType? Type { + get { return BackingStore?.Get("type"); } + set { BackingStore?.Set("type", value); } + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AttackSimulationOperation CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AttackSimulationOperation(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"percentageCompleted", n => { PercentageCompleted = n.GetIntValue(); } }, + {"tenantId", n => { TenantId = n.GetStringValue(); } }, + {"type", n => { Type = n.GetEnumValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteIntValue("percentageCompleted", PercentageCompleted); + writer.WriteStringValue("tenantId", TenantId); + writer.WriteEnumValue("type", Type); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/AttackSimulationOperationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AttackSimulationOperationCollectionResponse.cs new file mode 100644 index 00000000000..23afab7ab1b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/AttackSimulationOperationCollectionResponse.cs @@ -0,0 +1,49 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class AttackSimulationOperationCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AttackSimulationOperationCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AttackSimulationOperationCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(AttackSimulationOperation.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/AttackSimulationOperationType.cs b/src/Microsoft.Graph/Generated/Models/AttackSimulationOperationType.cs new file mode 100644 index 00000000000..004a8890325 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/AttackSimulationOperationType.cs @@ -0,0 +1,13 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + public enum AttackSimulationOperationType { + [EnumMember(Value = "createSimualation")] + CreateSimualation, + [EnumMember(Value = "updateSimulation")] + UpdateSimulation, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/AttackSimulationRoot.cs b/src/Microsoft.Graph/Generated/Models/AttackSimulationRoot.cs index 6c5f6db10c0..2d6868dccf6 100644 --- a/src/Microsoft.Graph/Generated/Models/AttackSimulationRoot.cs +++ b/src/Microsoft.Graph/Generated/Models/AttackSimulationRoot.cs @@ -6,6 +6,76 @@ using System; namespace Microsoft.Graph.Models { public class AttackSimulationRoot : Entity, IParsable { + /// The endUserNotifications property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? EndUserNotifications { + get { return BackingStore?.Get?>("endUserNotifications"); } + set { BackingStore?.Set("endUserNotifications", value); } + } +#nullable restore +#else + public List EndUserNotifications { + get { return BackingStore?.Get>("endUserNotifications"); } + set { BackingStore?.Set("endUserNotifications", value); } + } +#endif + /// The landingPages property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? LandingPages { + get { return BackingStore?.Get?>("landingPages"); } + set { BackingStore?.Set("landingPages", value); } + } +#nullable restore +#else + public List LandingPages { + get { return BackingStore?.Get>("landingPages"); } + set { BackingStore?.Set("landingPages", value); } + } +#endif + /// The loginPages property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? LoginPages { + get { return BackingStore?.Get?>("loginPages"); } + set { BackingStore?.Set("loginPages", value); } + } +#nullable restore +#else + public List LoginPages { + get { return BackingStore?.Get>("loginPages"); } + set { BackingStore?.Set("loginPages", value); } + } +#endif + /// The operations property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Operations { + get { return BackingStore?.Get?>("operations"); } + set { BackingStore?.Set("operations", value); } + } +#nullable restore +#else + public List Operations { + get { return BackingStore?.Get>("operations"); } + set { BackingStore?.Set("operations", value); } + } +#endif + /// The payloads property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Payloads { + get { return BackingStore?.Get?>("payloads"); } + set { BackingStore?.Set("payloads", value); } + } +#nullable restore +#else + public List Payloads { + get { return BackingStore?.Get>("payloads"); } + set { BackingStore?.Set("payloads", value); } + } +#endif /// Represents simulation automation created to run on a tenant. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -33,6 +103,20 @@ public List Simulations { get { return BackingStore?.Get>("simulations"); } set { BackingStore?.Set("simulations", value); } } +#endif + /// The trainings property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Trainings { + get { return BackingStore?.Get?>("trainings"); } + set { BackingStore?.Set("trainings", value); } + } +#nullable restore +#else + public List Trainings { + get { return BackingStore?.Get>("trainings"); } + set { BackingStore?.Set("trainings", value); } + } #endif /// /// Creates a new instance of the appropriate class based on discriminator value @@ -47,8 +131,14 @@ public List Simulations { /// public new IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { + {"endUserNotifications", n => { EndUserNotifications = n.GetCollectionOfObjectValues(EndUserNotification.CreateFromDiscriminatorValue)?.ToList(); } }, + {"landingPages", n => { LandingPages = n.GetCollectionOfObjectValues(LandingPage.CreateFromDiscriminatorValue)?.ToList(); } }, + {"loginPages", n => { LoginPages = n.GetCollectionOfObjectValues(LoginPage.CreateFromDiscriminatorValue)?.ToList(); } }, + {"operations", n => { Operations = n.GetCollectionOfObjectValues(AttackSimulationOperation.CreateFromDiscriminatorValue)?.ToList(); } }, + {"payloads", n => { Payloads = n.GetCollectionOfObjectValues(Payload.CreateFromDiscriminatorValue)?.ToList(); } }, {"simulationAutomations", n => { SimulationAutomations = n.GetCollectionOfObjectValues(SimulationAutomation.CreateFromDiscriminatorValue)?.ToList(); } }, {"simulations", n => { Simulations = n.GetCollectionOfObjectValues(Simulation.CreateFromDiscriminatorValue)?.ToList(); } }, + {"trainings", n => { Trainings = n.GetCollectionOfObjectValues(Training.CreateFromDiscriminatorValue)?.ToList(); } }, }; } /// @@ -58,8 +148,14 @@ public List Simulations { public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); + writer.WriteCollectionOfObjectValues("endUserNotifications", EndUserNotifications); + writer.WriteCollectionOfObjectValues("landingPages", LandingPages); + writer.WriteCollectionOfObjectValues("loginPages", LoginPages); + writer.WriteCollectionOfObjectValues("operations", Operations); + writer.WriteCollectionOfObjectValues("payloads", Payloads); writer.WriteCollectionOfObjectValues("simulationAutomations", SimulationAutomations); writer.WriteCollectionOfObjectValues("simulations", Simulations); + writer.WriteCollectionOfObjectValues("trainings", Trainings); } } } diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationContextClassReference.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationContextClassReference.cs index 9a1808977be..47b171155da 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthenticationContextClassReference.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationContextClassReference.cs @@ -34,7 +34,7 @@ public string DisplayName { set { BackingStore?.Set("displayName", value); } } #endif - /// Indicates whether the authenticationContextClassReference has been published by the security admin and is ready for use by apps. When it is set to false, it should not be shown in authentication context selection UX, or used to protect app resources. It will be shown and available for Conditional Access policy authoring. The default value is false. Supports $filter (eq). + /// Indicates whether the authenticationContextClassReference has been published by the security admin and is ready for use by apps. When it's set to false, it shouldn't be shown in authentication context selection UX, or used to protect app resources. It's shown and available for Conditional Access policy authoring. The default value is false. Supports $filter (eq). public bool? IsAvailable { get { return BackingStore?.Get("isAvailable"); } set { BackingStore?.Set("isAvailable", value); } diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationMethodsRegistrationCampaignIncludeTarget.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodsRegistrationCampaignIncludeTarget.cs index 418f1d52d32..d498e4d9e86 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthenticationMethodsRegistrationCampaignIncludeTarget.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodsRegistrationCampaignIncludeTarget.cs @@ -83,8 +83,8 @@ public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"id", n => { Id = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, - {"targetedAuthenticationMethod", n => { TargetedAuthenticationMethod = n.GetStringValue(); } }, {"targetType", n => { TargetType = n.GetEnumValue(); } }, + {"targetedAuthenticationMethod", n => { TargetedAuthenticationMethod = n.GetStringValue(); } }, }; } /// diff --git a/src/Microsoft.Graph/Generated/Models/AuthorizationPolicy.cs b/src/Microsoft.Graph/Generated/Models/AuthorizationPolicy.cs index 2bb0b878a58..cff8ad508f4 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthorizationPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthorizationPolicy.cs @@ -74,11 +74,11 @@ public AuthorizationPolicy() : base() { /// public new IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - {"allowedToSignUpEmailBasedSubscriptions", n => { AllowedToSignUpEmailBasedSubscriptions = n.GetBoolValue(); } }, - {"allowedToUseSSPR", n => { AllowedToUseSSPR = n.GetBoolValue(); } }, {"allowEmailVerifiedUsersToJoinOrganization", n => { AllowEmailVerifiedUsersToJoinOrganization = n.GetBoolValue(); } }, {"allowInvitesFrom", n => { AllowInvitesFrom = n.GetEnumValue(); } }, {"allowUserConsentForRiskyApps", n => { AllowUserConsentForRiskyApps = n.GetBoolValue(); } }, + {"allowedToSignUpEmailBasedSubscriptions", n => { AllowedToSignUpEmailBasedSubscriptions = n.GetBoolValue(); } }, + {"allowedToUseSSPR", n => { AllowedToUseSSPR = n.GetBoolValue(); } }, {"blockMsolPowerShell", n => { BlockMsolPowerShell = n.GetBoolValue(); } }, {"defaultUserRolePermissions", n => { DefaultUserRolePermissions = n.GetObjectValue(Microsoft.Graph.Models.DefaultUserRolePermissions.CreateFromDiscriminatorValue); } }, {"guestUserRoleId", n => { GuestUserRoleId = n.GetGuidValue(); } }, diff --git a/src/Microsoft.Graph/Generated/Models/AvailabilityItem.cs b/src/Microsoft.Graph/Generated/Models/AvailabilityItem.cs index 2a869b53bac..e9173cd6d24 100644 --- a/src/Microsoft.Graph/Generated/Models/AvailabilityItem.cs +++ b/src/Microsoft.Graph/Generated/Models/AvailabilityItem.cs @@ -42,7 +42,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// Indicates the service ID in case of 1:n appointments. If the appointment is of type 1:n, this field will be present, otherwise, null. + /// Indicates the service ID for 1:n appointments. If the appointment is of type 1:n, this field is present, otherwise, null. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? ServiceId { diff --git a/src/Microsoft.Graph/Generated/Models/BaseEndUserNotification.cs b/src/Microsoft.Graph/Generated/Models/BaseEndUserNotification.cs new file mode 100644 index 00000000000..49a3949e0cf --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/BaseEndUserNotification.cs @@ -0,0 +1,102 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class BaseEndUserNotification : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The defaultLanguage property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DefaultLanguage { + get { return BackingStore?.Get("defaultLanguage"); } + set { BackingStore?.Set("defaultLanguage", value); } + } +#nullable restore +#else + public string DefaultLanguage { + get { return BackingStore?.Get("defaultLanguage"); } + set { BackingStore?.Set("defaultLanguage", value); } + } +#endif + /// The endUserNotification property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.EndUserNotification? EndUserNotification { + get { return BackingStore?.Get("endUserNotification"); } + set { BackingStore?.Set("endUserNotification", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.EndUserNotification EndUserNotification { + get { return BackingStore?.Get("endUserNotification"); } + set { BackingStore?.Set("endUserNotification", value); } + } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#nullable restore +#else + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#endif + /// + /// Instantiates a new baseEndUserNotification and sets the default values. + /// + public BaseEndUserNotification() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static BaseEndUserNotification CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch { + "#microsoft.graph.positiveReinforcementNotification" => new PositiveReinforcementNotification(), + "#microsoft.graph.simulationNotification" => new SimulationNotification(), + "#microsoft.graph.trainingReminderNotification" => new TrainingReminderNotification(), + _ => new BaseEndUserNotification(), + }; + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"defaultLanguage", n => { DefaultLanguage = n.GetStringValue(); } }, + {"endUserNotification", n => { EndUserNotification = n.GetObjectValue(Microsoft.Graph.Models.EndUserNotification.CreateFromDiscriminatorValue); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("defaultLanguage", DefaultLanguage); + writer.WriteObjectValue("endUserNotification", EndUserNotification); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/BookingAppointment.cs b/src/Microsoft.Graph/Generated/Models/BookingAppointment.cs index 37683bce116..b82b4853d87 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingAppointment.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingAppointment.cs @@ -37,7 +37,7 @@ public string AnonymousJoinWebUrl { set { BackingStore?.Set("anonymousJoinWebUrl", value); } } #endif - /// A collection of customer properties for an appointment. An appointment will contain a list of customer information and each unit will indicate the properties of a customer who is part of that appointment. Optional. + /// A collection of customer properties for an appointment. An appointment contains a list of customer information and each unit will indicate the properties of a customer who is part of that appointment. Optional. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Customers { @@ -113,7 +113,7 @@ public int? MaximumAttendeesCount { get { return BackingStore?.Get("maximumAttendeesCount"); } set { BackingStore?.Set("maximumAttendeesCount", value); } } - /// If true indicates that the bookingCustomer for this appointment does not wish to receive a confirmation for this appointment. + /// If true indicates that the bookingCustomer for this appointment doesn't wish to receive a confirmation for this appointment. public bool? OptOutOfCustomerEmail { get { return BackingStore?.Get("optOutOfCustomerEmail"); } set { BackingStore?.Set("optOutOfCustomerEmail", value); } @@ -194,7 +194,7 @@ public Location ServiceLocation { set { BackingStore?.Set("serviceLocation", value); } } #endif - /// The name of the bookingService associated with this appointment.This property is optional when creating a new appointment. If not specified, it is computed from the service associated with the appointment by the serviceId property. + /// The name of the bookingService associated with this appointment.This property is optional when creating a new appointment. If not specified, it's computed from the service associated with the appointment by the serviceId property. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? ServiceName { @@ -270,8 +270,8 @@ public DateTimeTimeZone StartDateTime { return new Dictionary>(base.GetFieldDeserializers()) { {"additionalInformation", n => { AdditionalInformation = n.GetStringValue(); } }, {"anonymousJoinWebUrl", n => { AnonymousJoinWebUrl = n.GetStringValue(); } }, - {"customers", n => { Customers = n.GetCollectionOfObjectValues(BookingCustomerInformationBase.CreateFromDiscriminatorValue)?.ToList(); } }, {"customerTimeZone", n => { CustomerTimeZone = n.GetStringValue(); } }, + {"customers", n => { Customers = n.GetCollectionOfObjectValues(BookingCustomerInformationBase.CreateFromDiscriminatorValue)?.ToList(); } }, {"duration", n => { Duration = n.GetTimeSpanValue(); } }, {"endDateTime", n => { EndDateTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, {"filledAttendeesCount", n => { FilledAttendeesCount = n.GetIntValue(); } }, diff --git a/src/Microsoft.Graph/Generated/Models/BookingBusiness.cs b/src/Microsoft.Graph/Generated/Models/BookingBusiness.cs index 190a22dae87..4f90f973e6d 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingBusiness.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingBusiness.cs @@ -270,8 +270,8 @@ public string WebSiteUrl { {"businessHours", n => { BusinessHours = n.GetCollectionOfObjectValues(BookingWorkHours.CreateFromDiscriminatorValue)?.ToList(); } }, {"businessType", n => { BusinessType = n.GetStringValue(); } }, {"calendarView", n => { CalendarView = n.GetCollectionOfObjectValues(BookingAppointment.CreateFromDiscriminatorValue)?.ToList(); } }, - {"customers", n => { Customers = n.GetCollectionOfObjectValues(BookingCustomerBase.CreateFromDiscriminatorValue)?.ToList(); } }, {"customQuestions", n => { CustomQuestions = n.GetCollectionOfObjectValues(BookingCustomQuestion.CreateFromDiscriminatorValue)?.ToList(); } }, + {"customers", n => { Customers = n.GetCollectionOfObjectValues(BookingCustomerBase.CreateFromDiscriminatorValue)?.ToList(); } }, {"defaultCurrencyIso", n => { DefaultCurrencyIso = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"email", n => { Email = n.GetStringValue(); } }, diff --git a/src/Microsoft.Graph/Generated/Models/BookingCustomerInformation.cs b/src/Microsoft.Graph/Generated/Models/BookingCustomerInformation.cs index 2d5a9063ee5..dffff9ce522 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingCustomerInformation.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingCustomerInformation.cs @@ -137,8 +137,8 @@ public BookingCustomerInformation() : base() { /// public new IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - {"customerId", n => { CustomerId = n.GetStringValue(); } }, {"customQuestionAnswers", n => { CustomQuestionAnswers = n.GetCollectionOfObjectValues(BookingQuestionAnswer.CreateFromDiscriminatorValue)?.ToList(); } }, + {"customerId", n => { CustomerId = n.GetStringValue(); } }, {"emailAddress", n => { EmailAddress = n.GetStringValue(); } }, {"location", n => { Location = n.GetObjectValue(Microsoft.Graph.Models.Location.CreateFromDiscriminatorValue); } }, {"name", n => { Name = n.GetStringValue(); } }, diff --git a/src/Microsoft.Graph/Generated/Models/BookingQuestionAssignment.cs b/src/Microsoft.Graph/Generated/Models/BookingQuestionAssignment.cs index 0a3314de79c..c9970707cb0 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingQuestionAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingQuestionAssignment.cs @@ -33,7 +33,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// Indicates whether it is mandatory to answer the custom question. + /// Indicates whether it's mandatory to answer the custom question. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? QuestionId { diff --git a/src/Microsoft.Graph/Generated/Models/Call.cs b/src/Microsoft.Graph/Generated/Models/Call.cs index dadc2ac4873..6d6733bb287 100644 --- a/src/Microsoft.Graph/Generated/Models/Call.cs +++ b/src/Microsoft.Graph/Generated/Models/Call.cs @@ -104,7 +104,7 @@ public List ContentSharingSessions { set { BackingStore?.Set("contentSharingSessions", value); } } #endif - /// The direction of the call. The possible value are incoming or outgoing. Read-only. + /// The direction of the call. The possible values are incoming or outgoing. Read-only. public CallDirection? Direction { get { return BackingStore?.Get("direction"); } set { BackingStore?.Set("direction", value); } @@ -221,7 +221,7 @@ public List RequestedModalities { set { BackingStore?.Set("requestedModalities", value); } } #endif - /// The result information. For example can hold termination reason. Read-only. + /// The result information. For example, the result can hold termination reason. Read-only. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public Microsoft.Graph.Models.ResultInfo? ResultInfo { @@ -338,10 +338,10 @@ public CallTranscriptionInfo Transcription { public new IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"audioRoutingGroups", n => { AudioRoutingGroups = n.GetCollectionOfObjectValues(AudioRoutingGroup.CreateFromDiscriminatorValue)?.ToList(); } }, - {"callbackUri", n => { CallbackUri = n.GetStringValue(); } }, {"callChainId", n => { CallChainId = n.GetStringValue(); } }, {"callOptions", n => { CallOptions = n.GetObjectValue(Microsoft.Graph.Models.CallOptions.CreateFromDiscriminatorValue); } }, {"callRoutes", n => { CallRoutes = n.GetCollectionOfObjectValues(CallRoute.CreateFromDiscriminatorValue)?.ToList(); } }, + {"callbackUri", n => { CallbackUri = n.GetStringValue(); } }, {"chatInfo", n => { ChatInfo = n.GetObjectValue(Microsoft.Graph.Models.ChatInfo.CreateFromDiscriminatorValue); } }, {"contentSharingSessions", n => { ContentSharingSessions = n.GetCollectionOfObjectValues(ContentSharingSession.CreateFromDiscriminatorValue)?.ToList(); } }, {"direction", n => { Direction = n.GetEnumValue(); } }, diff --git a/src/Microsoft.Graph/Generated/Models/CallRecords/DirectRoutingLogRow.cs b/src/Microsoft.Graph/Generated/Models/CallRecords/DirectRoutingLogRow.cs index 54a9f7c91bf..06c557f83dc 100644 --- a/src/Microsoft.Graph/Generated/Models/CallRecords/DirectRoutingLogRow.cs +++ b/src/Microsoft.Graph/Generated/Models/CallRecords/DirectRoutingLogRow.cs @@ -261,10 +261,10 @@ public static DirectRoutingLogRow CreateFromDiscriminatorValue(IParseNode parseN /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"calleeNumber", n => { CalleeNumber = n.GetStringValue(); } }, {"callEndSubReason", n => { CallEndSubReason = n.GetIntValue(); } }, - {"callerNumber", n => { CallerNumber = n.GetStringValue(); } }, {"callType", n => { CallType = n.GetStringValue(); } }, + {"calleeNumber", n => { CalleeNumber = n.GetStringValue(); } }, + {"callerNumber", n => { CallerNumber = n.GetStringValue(); } }, {"correlationId", n => { CorrelationId = n.GetStringValue(); } }, {"duration", n => { Duration = n.GetIntValue(); } }, {"endDateTime", n => { EndDateTime = n.GetDateTimeOffsetValue(); } }, diff --git a/src/Microsoft.Graph/Generated/Models/CallRecords/PstnCallLogRow.cs b/src/Microsoft.Graph/Generated/Models/CallRecords/PstnCallLogRow.cs index ace8d51a457..6a741984300 100644 --- a/src/Microsoft.Graph/Generated/Models/CallRecords/PstnCallLogRow.cs +++ b/src/Microsoft.Graph/Generated/Models/CallRecords/PstnCallLogRow.cs @@ -317,10 +317,10 @@ public static PstnCallLogRow CreateFromDiscriminatorValue(IParseNode parseNode) public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"callDurationSource", n => { CallDurationSource = n.GetEnumValue(); } }, - {"calleeNumber", n => { CalleeNumber = n.GetStringValue(); } }, - {"callerNumber", n => { CallerNumber = n.GetStringValue(); } }, {"callId", n => { CallId = n.GetStringValue(); } }, {"callType", n => { CallType = n.GetStringValue(); } }, + {"calleeNumber", n => { CalleeNumber = n.GetStringValue(); } }, + {"callerNumber", n => { CallerNumber = n.GetStringValue(); } }, {"charge", n => { Charge = n.GetDecimalValue(); } }, {"conferenceId", n => { ConferenceId = n.GetStringValue(); } }, {"connectionCharge", n => { ConnectionCharge = n.GetDecimalValue(); } }, diff --git a/src/Microsoft.Graph/Generated/Models/CallTranscript.cs b/src/Microsoft.Graph/Generated/Models/CallTranscript.cs new file mode 100644 index 00000000000..754cd3bc426 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/CallTranscript.cs @@ -0,0 +1,120 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class CallTranscript : Entity, IParsable { + /// The content property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public byte[]? Content { + get { return BackingStore?.Get("content"); } + set { BackingStore?.Set("content", value); } + } +#nullable restore +#else + public byte[] Content { + get { return BackingStore?.Get("content"); } + set { BackingStore?.Set("content", value); } + } +#endif + /// The createdDateTime property + public DateTimeOffset? CreatedDateTime { + get { return BackingStore?.Get("createdDateTime"); } + set { BackingStore?.Set("createdDateTime", value); } + } + /// The meetingId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? MeetingId { + get { return BackingStore?.Get("meetingId"); } + set { BackingStore?.Set("meetingId", value); } + } +#nullable restore +#else + public string MeetingId { + get { return BackingStore?.Get("meetingId"); } + set { BackingStore?.Set("meetingId", value); } + } +#endif + /// The meetingOrganizer property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public IdentitySet? MeetingOrganizer { + get { return BackingStore?.Get("meetingOrganizer"); } + set { BackingStore?.Set("meetingOrganizer", value); } + } +#nullable restore +#else + public IdentitySet MeetingOrganizer { + get { return BackingStore?.Get("meetingOrganizer"); } + set { BackingStore?.Set("meetingOrganizer", value); } + } +#endif + /// The metadataContent property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public byte[]? MetadataContent { + get { return BackingStore?.Get("metadataContent"); } + set { BackingStore?.Set("metadataContent", value); } + } +#nullable restore +#else + public byte[] MetadataContent { + get { return BackingStore?.Get("metadataContent"); } + set { BackingStore?.Set("metadataContent", value); } + } +#endif + /// The transcriptContentUrl property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TranscriptContentUrl { + get { return BackingStore?.Get("transcriptContentUrl"); } + set { BackingStore?.Set("transcriptContentUrl", value); } + } +#nullable restore +#else + public string TranscriptContentUrl { + get { return BackingStore?.Get("transcriptContentUrl"); } + set { BackingStore?.Set("transcriptContentUrl", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CallTranscript CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CallTranscript(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"content", n => { Content = n.GetByteArrayValue(); } }, + {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, + {"meetingId", n => { MeetingId = n.GetStringValue(); } }, + {"meetingOrganizer", n => { MeetingOrganizer = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, + {"metadataContent", n => { MetadataContent = n.GetByteArrayValue(); } }, + {"transcriptContentUrl", n => { TranscriptContentUrl = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteByteArrayValue("content", Content); + writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); + writer.WriteStringValue("meetingId", MeetingId); + writer.WriteObjectValue("meetingOrganizer", MeetingOrganizer); + writer.WriteByteArrayValue("metadataContent", MetadataContent); + writer.WriteStringValue("transcriptContentUrl", TranscriptContentUrl); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/CallTranscriptCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/CallTranscriptCollectionResponse.cs new file mode 100644 index 00000000000..bd42b86dedf --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/CallTranscriptCollectionResponse.cs @@ -0,0 +1,49 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class CallTranscriptCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CallTranscriptCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CallTranscriptCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(CallTranscript.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Certification.cs b/src/Microsoft.Graph/Generated/Models/Certification.cs index 304115187a3..bfec38ed004 100644 --- a/src/Microsoft.Graph/Generated/Models/Certification.cs +++ b/src/Microsoft.Graph/Generated/Models/Certification.cs @@ -28,7 +28,7 @@ public string CertificationDetailsUrl { set { BackingStore?.Set("certificationDetailsUrl", value); } } #endif - /// The timestamp when the current certification for the application will expire. + /// The timestamp when the current certification for the application expires. public DateTimeOffset? CertificationExpirationDateTime { get { return BackingStore?.Get("certificationExpirationDateTime"); } set { BackingStore?.Set("certificationExpirationDateTime", value); } diff --git a/src/Microsoft.Graph/Generated/Models/ChatMessageMention.cs b/src/Microsoft.Graph/Generated/Models/ChatMessageMention.cs index b4dbb692595..c7c74eeaba4 100644 --- a/src/Microsoft.Graph/Generated/Models/ChatMessageMention.cs +++ b/src/Microsoft.Graph/Generated/Models/ChatMessageMention.cs @@ -82,8 +82,8 @@ public static ChatMessageMention CreateFromDiscriminatorValue(IParseNode parseNo public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"id", n => { Id = n.GetIntValue(); } }, - {"mentioned", n => { Mentioned = n.GetObjectValue(ChatMessageMentionedIdentitySet.CreateFromDiscriminatorValue); } }, {"mentionText", n => { MentionText = n.GetStringValue(); } }, + {"mentioned", n => { Mentioned = n.GetObjectValue(ChatMessageMentionedIdentitySet.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } diff --git a/src/Microsoft.Graph/Generated/Models/CoachmarkLocation.cs b/src/Microsoft.Graph/Generated/Models/CoachmarkLocation.cs new file mode 100644 index 00000000000..6c2c16a9cfa --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/CoachmarkLocation.cs @@ -0,0 +1,85 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class CoachmarkLocation : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The length property + public int? Length { + get { return BackingStore?.Get("length"); } + set { BackingStore?.Set("length", value); } + } + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#nullable restore +#else + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#endif + /// The offset property + public int? Offset { + get { return BackingStore?.Get("offset"); } + set { BackingStore?.Set("offset", value); } + } + /// The type property + public CoachmarkLocationType? Type { + get { return BackingStore?.Get("type"); } + set { BackingStore?.Set("type", value); } + } + /// + /// Instantiates a new coachmarkLocation and sets the default values. + /// + public CoachmarkLocation() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static CoachmarkLocation CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CoachmarkLocation(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"length", n => { Length = n.GetIntValue(); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"offset", n => { Offset = n.GetIntValue(); } }, + {"type", n => { Type = n.GetEnumValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteIntValue("length", Length); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteIntValue("offset", Offset); + writer.WriteEnumValue("type", Type); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/CoachmarkLocationType.cs b/src/Microsoft.Graph/Generated/Models/CoachmarkLocationType.cs new file mode 100644 index 00000000000..5b5f479d81d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/CoachmarkLocationType.cs @@ -0,0 +1,21 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + public enum CoachmarkLocationType { + [EnumMember(Value = "unknown")] + Unknown, + [EnumMember(Value = "fromEmail")] + FromEmail, + [EnumMember(Value = "subject")] + Subject, + [EnumMember(Value = "externalTag")] + ExternalTag, + [EnumMember(Value = "displayName")] + DisplayName, + [EnumMember(Value = "messageBody")] + MessageBody, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/ConditionalAccessConditionSet.cs b/src/Microsoft.Graph/Generated/Models/ConditionalAccessConditionSet.cs index d76af40d887..a7f440aacbc 100644 --- a/src/Microsoft.Graph/Generated/Models/ConditionalAccessConditionSet.cs +++ b/src/Microsoft.Graph/Generated/Models/ConditionalAccessConditionSet.cs @@ -189,8 +189,8 @@ public static ConditionalAccessConditionSet CreateFromDiscriminatorValue(IParseN public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"applications", n => { Applications = n.GetObjectValue(ConditionalAccessApplications.CreateFromDiscriminatorValue); } }, - {"clientApplications", n => { ClientApplications = n.GetObjectValue(ConditionalAccessClientApplications.CreateFromDiscriminatorValue); } }, {"clientAppTypes", n => { ClientAppTypes = n.GetCollectionOfEnumValues()?.ToList(); } }, + {"clientApplications", n => { ClientApplications = n.GetObjectValue(ConditionalAccessClientApplications.CreateFromDiscriminatorValue); } }, {"devices", n => { Devices = n.GetObjectValue(ConditionalAccessDevices.CreateFromDiscriminatorValue); } }, {"locations", n => { Locations = n.GetObjectValue(ConditionalAccessLocations.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, diff --git a/src/Microsoft.Graph/Generated/Models/ConversationThread.cs b/src/Microsoft.Graph/Generated/Models/ConversationThread.cs index 55174c23622..966fe58e76e 100644 --- a/src/Microsoft.Graph/Generated/Models/ConversationThread.cs +++ b/src/Microsoft.Graph/Generated/Models/ConversationThread.cs @@ -124,8 +124,8 @@ public List UniqueSenders { {"lastDeliveredDateTime", n => { LastDeliveredDateTime = n.GetDateTimeOffsetValue(); } }, {"posts", n => { Posts = n.GetCollectionOfObjectValues(Post.CreateFromDiscriminatorValue)?.ToList(); } }, {"preview", n => { Preview = n.GetStringValue(); } }, - {"topic", n => { Topic = n.GetStringValue(); } }, {"toRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, + {"topic", n => { Topic = n.GetStringValue(); } }, {"uniqueSenders", n => { UniqueSenders = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } diff --git a/src/Microsoft.Graph/Generated/Models/ConvertIdResult.cs b/src/Microsoft.Graph/Generated/Models/ConvertIdResult.cs index f316c280159..bae5cd04cec 100644 --- a/src/Microsoft.Graph/Generated/Models/ConvertIdResult.cs +++ b/src/Microsoft.Graph/Generated/Models/ConvertIdResult.cs @@ -14,7 +14,7 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// An error object indicating the reason for the conversion failure. This value is not present if the conversion succeeded. + /// An error object indicating the reason for the conversion failure. This value isn't present if the conversion succeeded. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public GenericError? ErrorDetails { @@ -56,7 +56,7 @@ public string SourceId { set { BackingStore?.Set("sourceId", value); } } #endif - /// The converted identifier. This value is not present if the conversion failed. + /// The converted identifier. This value isn't present if the conversion failed. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? TargetId { diff --git a/src/Microsoft.Graph/Generated/Models/CustomExtensionClientConfiguration.cs b/src/Microsoft.Graph/Generated/Models/CustomExtensionClientConfiguration.cs index 0c8c95e075e..94c908812fb 100644 --- a/src/Microsoft.Graph/Generated/Models/CustomExtensionClientConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/CustomExtensionClientConfiguration.cs @@ -28,7 +28,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// The max duration in milliseconds that Azure AD will wait for a response from the external app before it shuts down the connection. The valid range is between 200 and 2000 milliseconds. Default duration is 1000. + /// The max duration in milliseconds that Azure AD waits for a response from the external app before it shuts down the connection. The valid range is between 200 and 2000 milliseconds. Default duration is 1000. public int? TimeoutInMilliseconds { get { return BackingStore?.Get("timeoutInMilliseconds"); } set { BackingStore?.Set("timeoutInMilliseconds", value); } diff --git a/src/Microsoft.Graph/Generated/Models/CustomTrainingSetting.cs b/src/Microsoft.Graph/Generated/Models/CustomTrainingSetting.cs new file mode 100644 index 00000000000..d3ab387f46a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/CustomTrainingSetting.cs @@ -0,0 +1,110 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class CustomTrainingSetting : TrainingSetting, IParsable { + /// The assignedTo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? AssignedTo { + get { return BackingStore?.Get?>("assignedTo"); } + set { BackingStore?.Set("assignedTo", value); } + } +#nullable restore +#else + public List AssignedTo { + get { return BackingStore?.Get>("assignedTo"); } + set { BackingStore?.Set("assignedTo", value); } + } +#endif + /// The description property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Description { + get { return BackingStore?.Get("description"); } + set { BackingStore?.Set("description", value); } + } +#nullable restore +#else + public string Description { + get { return BackingStore?.Get("description"); } + set { BackingStore?.Set("description", value); } + } +#endif + /// The displayName property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#nullable restore +#else + public string DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#endif + /// The durationInMinutes property + public int? DurationInMinutes { + get { return BackingStore?.Get("durationInMinutes"); } + set { BackingStore?.Set("durationInMinutes", value); } + } + /// The url property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Url { + get { return BackingStore?.Get("url"); } + set { BackingStore?.Set("url", value); } + } +#nullable restore +#else + public string Url { + get { return BackingStore?.Get("url"); } + set { BackingStore?.Set("url", value); } + } +#endif + /// + /// Instantiates a new customTrainingSetting and sets the default values. + /// + public CustomTrainingSetting() : base() { + OdataType = "#microsoft.graph.customTrainingSetting"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CustomTrainingSetting CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CustomTrainingSetting(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"assignedTo", n => { AssignedTo = n.GetCollectionOfEnumValues()?.ToList(); } }, + {"description", n => { Description = n.GetStringValue(); } }, + {"displayName", n => { DisplayName = n.GetStringValue(); } }, + {"durationInMinutes", n => { DurationInMinutes = n.GetIntValue(); } }, + {"url", n => { Url = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfEnumValues("assignedTo", AssignedTo); + writer.WriteStringValue("description", Description); + writer.WriteStringValue("displayName", DisplayName); + writer.WriteIntValue("durationInMinutes", DurationInMinutes); + writer.WriteStringValue("url", Url); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/DefaultUserRolePermissions.cs b/src/Microsoft.Graph/Generated/Models/DefaultUserRolePermissions.cs index d91b6ac572c..c1c32b439ee 100644 --- a/src/Microsoft.Graph/Generated/Models/DefaultUserRolePermissions.cs +++ b/src/Microsoft.Graph/Generated/Models/DefaultUserRolePermissions.cs @@ -12,17 +12,17 @@ public IDictionary AdditionalData { get { return BackingStore?.Get>("additionalData"); } set { BackingStore?.Set("additionalData", value); } } - /// Indicates whether the default user role can create applications. This setting corresponds to the Users can register applications setting in the User settings menu in the Azure portal. + /// Indicates whether the default user role can create applications. This setting corresponds to the Users can register applications setting in the User settings menu in the Microsoft Entra admin center. public bool? AllowedToCreateApps { get { return BackingStore?.Get("allowedToCreateApps"); } set { BackingStore?.Set("allowedToCreateApps", value); } } - /// Indicates whether the default user role can create security groups. This setting corresponds to the following menus in the Azure portal: The Users can create security groups in Azure portals, API or PowerShell setting in the Group settings menu. Users can create security groups setting in the User settings menu. + /// Indicates whether the default user role can create security groups. This setting corresponds to the following menus in the Microsoft Entra admin center: The Users can create security groups in Microsoft Entra admin centers, API or PowerShell setting in the Group settings menu. Users can create security groups setting in the User settings menu. public bool? AllowedToCreateSecurityGroups { get { return BackingStore?.Get("allowedToCreateSecurityGroups"); } set { BackingStore?.Set("allowedToCreateSecurityGroups", value); } } - /// Indicates whether the default user role can create tenants. This setting corresponds to the Restrict non-admin users from creating tenants setting in the User settings menu in the Azure portal. When this setting is false, users assigned the Tenant Creator role can still create tenants. + /// Indicates whether the default user role can create tenants. This setting corresponds to the Restrict non-admin users from creating tenants setting in the User settings menu in the Microsoft Entra admin center. When this setting is false, users assigned the Tenant Creator role can still create tenants. public bool? AllowedToCreateTenants { get { return BackingStore?.Get("allowedToCreateTenants"); } set { BackingStore?.Set("allowedToCreateTenants", value); } diff --git a/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationship.cs b/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationship.cs index 1d22e9e50c2..c1c84193026 100644 --- a/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationship.cs +++ b/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationship.cs @@ -126,7 +126,11 @@ public DelegatedAdminRelationshipStatus? Status { /// The parse node to use to read the discriminator value and create the object public static new DelegatedAdminRelationship CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DelegatedAdminRelationship(); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch { + "#microsoft.graph.resellerDelegatedAdminRelationship" => new ResellerDelegatedAdminRelationship(), + _ => new DelegatedAdminRelationship(), + }; } /// /// The deserialization information for the current model diff --git a/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationshipRequestAction.cs b/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationshipRequestAction.cs index 5224b0291d0..a41e6ee6e83 100644 --- a/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationshipRequestAction.cs +++ b/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationshipRequestAction.cs @@ -11,5 +11,7 @@ public enum DelegatedAdminRelationshipRequestAction { Terminate, [EnumMember(Value = "unknownFutureValue")] UnknownFutureValue, + [EnumMember(Value = "reject")] + Reject, } } diff --git a/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicy.cs b/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicy.cs index b5b237efc42..6d0d50369e5 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicy.cs @@ -178,13 +178,13 @@ public int? Version { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, {"deviceSettingStateSummaries", n => { DeviceSettingStateSummaries = n.GetCollectionOfObjectValues(SettingStateDeviceSummary.CreateFromDiscriminatorValue)?.ToList(); } }, - {"deviceStatuses", n => { DeviceStatuses = n.GetCollectionOfObjectValues(DeviceComplianceDeviceStatus.CreateFromDiscriminatorValue)?.ToList(); } }, {"deviceStatusOverview", n => { DeviceStatusOverview = n.GetObjectValue(DeviceComplianceDeviceOverview.CreateFromDiscriminatorValue); } }, + {"deviceStatuses", n => { DeviceStatuses = n.GetCollectionOfObjectValues(DeviceComplianceDeviceStatus.CreateFromDiscriminatorValue)?.ToList(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, {"scheduledActionsForRule", n => { ScheduledActionsForRule = n.GetCollectionOfObjectValues(DeviceComplianceScheduledActionForRule.CreateFromDiscriminatorValue)?.ToList(); } }, - {"userStatuses", n => { UserStatuses = n.GetCollectionOfObjectValues(DeviceComplianceUserStatus.CreateFromDiscriminatorValue)?.ToList(); } }, {"userStatusOverview", n => { UserStatusOverview = n.GetObjectValue(DeviceComplianceUserOverview.CreateFromDiscriminatorValue); } }, + {"userStatuses", n => { UserStatuses = n.GetCollectionOfObjectValues(DeviceComplianceUserStatus.CreateFromDiscriminatorValue)?.ToList(); } }, {"version", n => { Version = n.GetIntValue(); } }, }; } diff --git a/src/Microsoft.Graph/Generated/Models/DeviceConfiguration.cs b/src/Microsoft.Graph/Generated/Models/DeviceConfiguration.cs index b935a771996..5a280033820 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceConfiguration.cs @@ -182,12 +182,12 @@ public int? Version { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, {"deviceSettingStateSummaries", n => { DeviceSettingStateSummaries = n.GetCollectionOfObjectValues(SettingStateDeviceSummary.CreateFromDiscriminatorValue)?.ToList(); } }, - {"deviceStatuses", n => { DeviceStatuses = n.GetCollectionOfObjectValues(DeviceConfigurationDeviceStatus.CreateFromDiscriminatorValue)?.ToList(); } }, {"deviceStatusOverview", n => { DeviceStatusOverview = n.GetObjectValue(DeviceConfigurationDeviceOverview.CreateFromDiscriminatorValue); } }, + {"deviceStatuses", n => { DeviceStatuses = n.GetCollectionOfObjectValues(DeviceConfigurationDeviceStatus.CreateFromDiscriminatorValue)?.ToList(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, - {"userStatuses", n => { UserStatuses = n.GetCollectionOfObjectValues(DeviceConfigurationUserStatus.CreateFromDiscriminatorValue)?.ToList(); } }, {"userStatusOverview", n => { UserStatusOverview = n.GetObjectValue(DeviceConfigurationUserOverview.CreateFromDiscriminatorValue); } }, + {"userStatuses", n => { UserStatuses = n.GetCollectionOfObjectValues(DeviceConfigurationUserStatus.CreateFromDiscriminatorValue)?.ToList(); } }, {"version", n => { Version = n.GetIntValue(); } }, }; } diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagement.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagement.cs index 581c32a584f..91d34c1d7c0 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagement.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagement.cs @@ -949,8 +949,8 @@ public Microsoft.Graph.Models.WindowsMalwareOverview WindowsMalwareOverview { {"userExperienceAnalyticsDevicePerformance", n => { UserExperienceAnalyticsDevicePerformance = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.UserExperienceAnalyticsDevicePerformance.CreateFromDiscriminatorValue)?.ToList(); } }, {"userExperienceAnalyticsDeviceScores", n => { UserExperienceAnalyticsDeviceScores = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.UserExperienceAnalyticsDeviceScores.CreateFromDiscriminatorValue)?.ToList(); } }, {"userExperienceAnalyticsDeviceStartupHistory", n => { UserExperienceAnalyticsDeviceStartupHistory = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.UserExperienceAnalyticsDeviceStartupHistory.CreateFromDiscriminatorValue)?.ToList(); } }, - {"userExperienceAnalyticsDeviceStartupProcesses", n => { UserExperienceAnalyticsDeviceStartupProcesses = n.GetCollectionOfObjectValues(UserExperienceAnalyticsDeviceStartupProcess.CreateFromDiscriminatorValue)?.ToList(); } }, {"userExperienceAnalyticsDeviceStartupProcessPerformance", n => { UserExperienceAnalyticsDeviceStartupProcessPerformance = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.UserExperienceAnalyticsDeviceStartupProcessPerformance.CreateFromDiscriminatorValue)?.ToList(); } }, + {"userExperienceAnalyticsDeviceStartupProcesses", n => { UserExperienceAnalyticsDeviceStartupProcesses = n.GetCollectionOfObjectValues(UserExperienceAnalyticsDeviceStartupProcess.CreateFromDiscriminatorValue)?.ToList(); } }, {"userExperienceAnalyticsMetricHistory", n => { UserExperienceAnalyticsMetricHistory = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.UserExperienceAnalyticsMetricHistory.CreateFromDiscriminatorValue)?.ToList(); } }, {"userExperienceAnalyticsModelScores", n => { UserExperienceAnalyticsModelScores = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.UserExperienceAnalyticsModelScores.CreateFromDiscriminatorValue)?.ToList(); } }, {"userExperienceAnalyticsOverview", n => { UserExperienceAnalyticsOverview = n.GetObjectValue(Microsoft.Graph.Models.UserExperienceAnalyticsOverview.CreateFromDiscriminatorValue); } }, diff --git a/src/Microsoft.Graph/Generated/Models/DirectoryDefinition.cs b/src/Microsoft.Graph/Generated/Models/DirectoryDefinition.cs index a14ba561e6c..379e42097e4 100644 --- a/src/Microsoft.Graph/Generated/Models/DirectoryDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/DirectoryDefinition.cs @@ -49,7 +49,7 @@ public bool? ReadOnly { get { return BackingStore?.Get("readOnly"); } set { BackingStore?.Set("readOnly", value); } } - /// Read only value that indicates version discovered. null if discovery has not yet occurred. + /// Read only value that indicates version discovered. null if discovery hasn't yet occurred. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Version { diff --git a/src/Microsoft.Graph/Generated/Models/DriveItem.cs b/src/Microsoft.Graph/Generated/Models/DriveItem.cs index 40b2ff14ab5..7eb2174ffd3 100644 --- a/src/Microsoft.Graph/Generated/Models/DriveItem.cs +++ b/src/Microsoft.Graph/Generated/Models/DriveItem.cs @@ -467,9 +467,9 @@ public DriveItem() : base() { {"analytics", n => { Analytics = n.GetObjectValue(ItemAnalytics.CreateFromDiscriminatorValue); } }, {"audio", n => { Audio = n.GetObjectValue(Microsoft.Graph.Models.Audio.CreateFromDiscriminatorValue); } }, {"bundle", n => { Bundle = n.GetObjectValue(Microsoft.Graph.Models.Bundle.CreateFromDiscriminatorValue); } }, + {"cTag", n => { CTag = n.GetStringValue(); } }, {"children", n => { Children = n.GetCollectionOfObjectValues(DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, {"content", n => { Content = n.GetByteArrayValue(); } }, - {"cTag", n => { CTag = n.GetStringValue(); } }, {"deleted", n => { Deleted = n.GetObjectValue(Microsoft.Graph.Models.Deleted.CreateFromDiscriminatorValue); } }, {"file", n => { File = n.GetObjectValue(FileObject.CreateFromDiscriminatorValue); } }, {"fileSystemInfo", n => { FileSystemInfo = n.GetObjectValue(Microsoft.Graph.Models.FileSystemInfo.CreateFromDiscriminatorValue); } }, diff --git a/src/Microsoft.Graph/Generated/Models/EducationAssignment.cs b/src/Microsoft.Graph/Generated/Models/EducationAssignment.cs index a67b012f2c0..2d3835f9109 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationAssignment.cs @@ -284,13 +284,13 @@ public string WebUrl { /// public new IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - {"addedStudentAction", n => { AddedStudentAction = n.GetEnumValue(); } }, {"addToCalendarAction", n => { AddToCalendarAction = n.GetEnumValue(); } }, + {"addedStudentAction", n => { AddedStudentAction = n.GetEnumValue(); } }, {"allowLateSubmissions", n => { AllowLateSubmissions = n.GetBoolValue(); } }, {"allowStudentsToAddResourcesToSubmission", n => { AllowStudentsToAddResourcesToSubmission = n.GetBoolValue(); } }, {"assignDateTime", n => { AssignDateTime = n.GetDateTimeOffsetValue(); } }, - {"assignedDateTime", n => { AssignedDateTime = n.GetDateTimeOffsetValue(); } }, {"assignTo", n => { AssignTo = n.GetObjectValue(EducationAssignmentRecipient.CreateFromDiscriminatorValue); } }, + {"assignedDateTime", n => { AssignedDateTime = n.GetDateTimeOffsetValue(); } }, {"categories", n => { Categories = n.GetCollectionOfObjectValues(EducationCategory.CreateFromDiscriminatorValue)?.ToList(); } }, {"classId", n => { ClassId = n.GetStringValue(); } }, {"closeDateTime", n => { CloseDateTime = n.GetDateTimeOffsetValue(); } }, diff --git a/src/Microsoft.Graph/Generated/Models/EducationAssignmentDefaults.cs b/src/Microsoft.Graph/Generated/Models/EducationAssignmentDefaults.cs index d677e45c7eb..0b21d442d4b 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationAssignmentDefaults.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationAssignmentDefaults.cs @@ -49,8 +49,8 @@ public string NotificationChannelUrl { /// public new IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - {"addedStudentAction", n => { AddedStudentAction = n.GetEnumValue(); } }, {"addToCalendarAction", n => { AddToCalendarAction = n.GetEnumValue(); } }, + {"addedStudentAction", n => { AddedStudentAction = n.GetEnumValue(); } }, {"dueTime", n => { DueTime = n.GetTimeValue(); } }, {"notificationChannelUrl", n => { NotificationChannelUrl = n.GetStringValue(); } }, }; diff --git a/src/Microsoft.Graph/Generated/Models/EducationClass.cs b/src/Microsoft.Graph/Generated/Models/EducationClass.cs index e34068b660b..8dbda829ea8 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationClass.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationClass.cs @@ -292,8 +292,8 @@ public EducationTerm Term { return new Dictionary>(base.GetFieldDeserializers()) { {"assignmentCategories", n => { AssignmentCategories = n.GetCollectionOfObjectValues(EducationCategory.CreateFromDiscriminatorValue)?.ToList(); } }, {"assignmentDefaults", n => { AssignmentDefaults = n.GetObjectValue(EducationAssignmentDefaults.CreateFromDiscriminatorValue); } }, - {"assignments", n => { Assignments = n.GetCollectionOfObjectValues(EducationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, {"assignmentSettings", n => { AssignmentSettings = n.GetObjectValue(EducationAssignmentSettings.CreateFromDiscriminatorValue); } }, + {"assignments", n => { Assignments = n.GetCollectionOfObjectValues(EducationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, {"classCode", n => { ClassCode = n.GetStringValue(); } }, {"course", n => { Course = n.GetObjectValue(EducationCourse.CreateFromDiscriminatorValue); } }, {"createdBy", n => { CreatedBy = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, diff --git a/src/Microsoft.Graph/Generated/Models/EducationUser.cs b/src/Microsoft.Graph/Generated/Models/EducationUser.cs index bc32ee6abee..3acdb2cec58 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationUser.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationUser.cs @@ -519,8 +519,8 @@ public string UserType { {"externalSourceDetail", n => { ExternalSourceDetail = n.GetStringValue(); } }, {"givenName", n => { GivenName = n.GetStringValue(); } }, {"mail", n => { Mail = n.GetStringValue(); } }, - {"mailingAddress", n => { MailingAddress = n.GetObjectValue(PhysicalAddress.CreateFromDiscriminatorValue); } }, {"mailNickname", n => { MailNickname = n.GetStringValue(); } }, + {"mailingAddress", n => { MailingAddress = n.GetObjectValue(PhysicalAddress.CreateFromDiscriminatorValue); } }, {"middleName", n => { MiddleName = n.GetStringValue(); } }, {"mobilePhone", n => { MobilePhone = n.GetStringValue(); } }, {"officeLocation", n => { OfficeLocation = n.GetStringValue(); } }, diff --git a/src/Microsoft.Graph/Generated/Models/EmailFileAssessmentRequest.cs b/src/Microsoft.Graph/Generated/Models/EmailFileAssessmentRequest.cs index 85174812264..65e8c2fb5e6 100644 --- a/src/Microsoft.Graph/Generated/Models/EmailFileAssessmentRequest.cs +++ b/src/Microsoft.Graph/Generated/Models/EmailFileAssessmentRequest.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models { public class EmailFileAssessmentRequest : ThreatAssessmentRequest, IParsable { - /// Base64 encoded .eml email file content. The file content cannot fetch back because it isn't stored. + /// Base64 encoded .eml email file content. The file content can't fetch back because it isn't stored. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? ContentData { diff --git a/src/Microsoft.Graph/Generated/Models/EmailPayloadDetail.cs b/src/Microsoft.Graph/Generated/Models/EmailPayloadDetail.cs new file mode 100644 index 00000000000..4b91ee50781 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/EmailPayloadDetail.cs @@ -0,0 +1,94 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class EmailPayloadDetail : PayloadDetail, IParsable { + /// The fromEmail property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? FromEmail { + get { return BackingStore?.Get("fromEmail"); } + set { BackingStore?.Set("fromEmail", value); } + } +#nullable restore +#else + public string FromEmail { + get { return BackingStore?.Get("fromEmail"); } + set { BackingStore?.Set("fromEmail", value); } + } +#endif + /// The fromName property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? FromName { + get { return BackingStore?.Get("fromName"); } + set { BackingStore?.Set("fromName", value); } + } +#nullable restore +#else + public string FromName { + get { return BackingStore?.Get("fromName"); } + set { BackingStore?.Set("fromName", value); } + } +#endif + /// The isExternalSender property + public bool? IsExternalSender { + get { return BackingStore?.Get("isExternalSender"); } + set { BackingStore?.Set("isExternalSender", value); } + } + /// The subject property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Subject { + get { return BackingStore?.Get("subject"); } + set { BackingStore?.Set("subject", value); } + } +#nullable restore +#else + public string Subject { + get { return BackingStore?.Get("subject"); } + set { BackingStore?.Set("subject", value); } + } +#endif + /// + /// Instantiates a new emailPayloadDetail and sets the default values. + /// + public EmailPayloadDetail() : base() { + OdataType = "#microsoft.graph.emailPayloadDetail"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new EmailPayloadDetail CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new EmailPayloadDetail(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"fromEmail", n => { FromEmail = n.GetStringValue(); } }, + {"fromName", n => { FromName = n.GetStringValue(); } }, + {"isExternalSender", n => { IsExternalSender = n.GetBoolValue(); } }, + {"subject", n => { Subject = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteStringValue("fromEmail", FromEmail); + writer.WriteStringValue("fromName", FromName); + writer.WriteBoolValue("isExternalSender", IsExternalSender); + writer.WriteStringValue("subject", Subject); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/EndUserNotification.cs b/src/Microsoft.Graph/Generated/Models/EndUserNotification.cs new file mode 100644 index 00000000000..6b98f18a352 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/EndUserNotification.cs @@ -0,0 +1,164 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class EndUserNotification : Entity, IParsable { + /// The createdBy property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public EmailIdentity? CreatedBy { + get { return BackingStore?.Get("createdBy"); } + set { BackingStore?.Set("createdBy", value); } + } +#nullable restore +#else + public EmailIdentity CreatedBy { + get { return BackingStore?.Get("createdBy"); } + set { BackingStore?.Set("createdBy", value); } + } +#endif + /// The createdDateTime property + public DateTimeOffset? CreatedDateTime { + get { return BackingStore?.Get("createdDateTime"); } + set { BackingStore?.Set("createdDateTime", value); } + } + /// The description property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Description { + get { return BackingStore?.Get("description"); } + set { BackingStore?.Set("description", value); } + } +#nullable restore +#else + public string Description { + get { return BackingStore?.Get("description"); } + set { BackingStore?.Set("description", value); } + } +#endif + /// The details property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Details { + get { return BackingStore?.Get?>("details"); } + set { BackingStore?.Set("details", value); } + } +#nullable restore +#else + public List Details { + get { return BackingStore?.Get>("details"); } + set { BackingStore?.Set("details", value); } + } +#endif + /// The displayName property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#nullable restore +#else + public string DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#endif + /// The lastModifiedBy property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public EmailIdentity? LastModifiedBy { + get { return BackingStore?.Get("lastModifiedBy"); } + set { BackingStore?.Set("lastModifiedBy", value); } + } +#nullable restore +#else + public EmailIdentity LastModifiedBy { + get { return BackingStore?.Get("lastModifiedBy"); } + set { BackingStore?.Set("lastModifiedBy", value); } + } +#endif + /// The lastModifiedDateTime property + public DateTimeOffset? LastModifiedDateTime { + get { return BackingStore?.Get("lastModifiedDateTime"); } + set { BackingStore?.Set("lastModifiedDateTime", value); } + } + /// The notificationType property + public EndUserNotificationType? NotificationType { + get { return BackingStore?.Get("notificationType"); } + set { BackingStore?.Set("notificationType", value); } + } + /// The source property + public SimulationContentSource? Source { + get { return BackingStore?.Get("source"); } + set { BackingStore?.Set("source", value); } + } + /// The status property + public SimulationContentStatus? Status { + get { return BackingStore?.Get("status"); } + set { BackingStore?.Set("status", value); } + } + /// The supportedLocales property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SupportedLocales { + get { return BackingStore?.Get?>("supportedLocales"); } + set { BackingStore?.Set("supportedLocales", value); } + } +#nullable restore +#else + public List SupportedLocales { + get { return BackingStore?.Get>("supportedLocales"); } + set { BackingStore?.Set("supportedLocales", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new EndUserNotification CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new EndUserNotification(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"createdBy", n => { CreatedBy = n.GetObjectValue(EmailIdentity.CreateFromDiscriminatorValue); } }, + {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, + {"description", n => { Description = n.GetStringValue(); } }, + {"details", n => { Details = n.GetCollectionOfObjectValues(EndUserNotificationDetail.CreateFromDiscriminatorValue)?.ToList(); } }, + {"displayName", n => { DisplayName = n.GetStringValue(); } }, + {"lastModifiedBy", n => { LastModifiedBy = n.GetObjectValue(EmailIdentity.CreateFromDiscriminatorValue); } }, + {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, + {"notificationType", n => { NotificationType = n.GetEnumValue(); } }, + {"source", n => { Source = n.GetEnumValue(); } }, + {"status", n => { Status = n.GetEnumValue(); } }, + {"supportedLocales", n => { SupportedLocales = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteObjectValue("createdBy", CreatedBy); + writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); + writer.WriteStringValue("description", Description); + writer.WriteCollectionOfObjectValues("details", Details); + writer.WriteStringValue("displayName", DisplayName); + writer.WriteObjectValue("lastModifiedBy", LastModifiedBy); + writer.WriteDateTimeOffsetValue("lastModifiedDateTime", LastModifiedDateTime); + writer.WriteEnumValue("notificationType", NotificationType); + writer.WriteEnumValue("source", Source); + writer.WriteEnumValue("status", Status); + writer.WriteCollectionOfPrimitiveValues("supportedLocales", SupportedLocales); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/EndUserNotificationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/EndUserNotificationCollectionResponse.cs new file mode 100644 index 00000000000..9a67d28900d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/EndUserNotificationCollectionResponse.cs @@ -0,0 +1,49 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class EndUserNotificationCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new EndUserNotificationCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new EndUserNotificationCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(EndUserNotification.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/EndUserNotificationDetail.cs b/src/Microsoft.Graph/Generated/Models/EndUserNotificationDetail.cs new file mode 100644 index 00000000000..1cccac057d4 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/EndUserNotificationDetail.cs @@ -0,0 +1,120 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class EndUserNotificationDetail : Entity, IParsable { + /// The emailContent property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? EmailContent { + get { return BackingStore?.Get("emailContent"); } + set { BackingStore?.Set("emailContent", value); } + } +#nullable restore +#else + public string EmailContent { + get { return BackingStore?.Get("emailContent"); } + set { BackingStore?.Set("emailContent", value); } + } +#endif + /// The isDefaultLangauge property + public bool? IsDefaultLangauge { + get { return BackingStore?.Get("isDefaultLangauge"); } + set { BackingStore?.Set("isDefaultLangauge", value); } + } + /// The language property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Language { + get { return BackingStore?.Get("language"); } + set { BackingStore?.Set("language", value); } + } +#nullable restore +#else + public string Language { + get { return BackingStore?.Get("language"); } + set { BackingStore?.Set("language", value); } + } +#endif + /// The locale property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Locale { + get { return BackingStore?.Get("locale"); } + set { BackingStore?.Set("locale", value); } + } +#nullable restore +#else + public string Locale { + get { return BackingStore?.Get("locale"); } + set { BackingStore?.Set("locale", value); } + } +#endif + /// The sentFrom property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public EmailIdentity? SentFrom { + get { return BackingStore?.Get("sentFrom"); } + set { BackingStore?.Set("sentFrom", value); } + } +#nullable restore +#else + public EmailIdentity SentFrom { + get { return BackingStore?.Get("sentFrom"); } + set { BackingStore?.Set("sentFrom", value); } + } +#endif + /// The subject property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Subject { + get { return BackingStore?.Get("subject"); } + set { BackingStore?.Set("subject", value); } + } +#nullable restore +#else + public string Subject { + get { return BackingStore?.Get("subject"); } + set { BackingStore?.Set("subject", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new EndUserNotificationDetail CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new EndUserNotificationDetail(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"emailContent", n => { EmailContent = n.GetStringValue(); } }, + {"isDefaultLangauge", n => { IsDefaultLangauge = n.GetBoolValue(); } }, + {"language", n => { Language = n.GetStringValue(); } }, + {"locale", n => { Locale = n.GetStringValue(); } }, + {"sentFrom", n => { SentFrom = n.GetObjectValue(EmailIdentity.CreateFromDiscriminatorValue); } }, + {"subject", n => { Subject = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteStringValue("emailContent", EmailContent); + writer.WriteBoolValue("isDefaultLangauge", IsDefaultLangauge); + writer.WriteStringValue("language", Language); + writer.WriteStringValue("locale", Locale); + writer.WriteObjectValue("sentFrom", SentFrom); + writer.WriteStringValue("subject", Subject); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/EndUserNotificationDetailCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/EndUserNotificationDetailCollectionResponse.cs new file mode 100644 index 00000000000..3fbd3de6da3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/EndUserNotificationDetailCollectionResponse.cs @@ -0,0 +1,49 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class EndUserNotificationDetailCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new EndUserNotificationDetailCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new EndUserNotificationDetailCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(EndUserNotificationDetail.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/EndUserNotificationPreference.cs b/src/Microsoft.Graph/Generated/Models/EndUserNotificationPreference.cs new file mode 100644 index 00000000000..9e03818d978 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/EndUserNotificationPreference.cs @@ -0,0 +1,15 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + public enum EndUserNotificationPreference { + [EnumMember(Value = "unknown")] + Unknown, + [EnumMember(Value = "microsoft")] + Microsoft, + [EnumMember(Value = "custom")] + Custom, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/EndUserNotificationSetting.cs b/src/Microsoft.Graph/Generated/Models/EndUserNotificationSetting.cs new file mode 100644 index 00000000000..0b60b512f4c --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/EndUserNotificationSetting.cs @@ -0,0 +1,99 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class EndUserNotificationSetting : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The notificationPreference property + public EndUserNotificationPreference? NotificationPreference { + get { return BackingStore?.Get("notificationPreference"); } + set { BackingStore?.Set("notificationPreference", value); } + } + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#nullable restore +#else + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#endif + /// The positiveReinforcement property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public PositiveReinforcementNotification? PositiveReinforcement { + get { return BackingStore?.Get("positiveReinforcement"); } + set { BackingStore?.Set("positiveReinforcement", value); } + } +#nullable restore +#else + public PositiveReinforcementNotification PositiveReinforcement { + get { return BackingStore?.Get("positiveReinforcement"); } + set { BackingStore?.Set("positiveReinforcement", value); } + } +#endif + /// The settingType property + public EndUserNotificationSettingType? SettingType { + get { return BackingStore?.Get("settingType"); } + set { BackingStore?.Set("settingType", value); } + } + /// + /// Instantiates a new endUserNotificationSetting and sets the default values. + /// + public EndUserNotificationSetting() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static EndUserNotificationSetting CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch { + "#microsoft.graph.noTrainingNotificationSetting" => new NoTrainingNotificationSetting(), + "#microsoft.graph.trainingNotificationSetting" => new TrainingNotificationSetting(), + _ => new EndUserNotificationSetting(), + }; + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"notificationPreference", n => { NotificationPreference = n.GetEnumValue(); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"positiveReinforcement", n => { PositiveReinforcement = n.GetObjectValue(PositiveReinforcementNotification.CreateFromDiscriminatorValue); } }, + {"settingType", n => { SettingType = n.GetEnumValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteEnumValue("notificationPreference", NotificationPreference); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteObjectValue("positiveReinforcement", PositiveReinforcement); + writer.WriteEnumValue("settingType", SettingType); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/EndUserNotificationSettingType.cs b/src/Microsoft.Graph/Generated/Models/EndUserNotificationSettingType.cs new file mode 100644 index 00000000000..bc3fb5d59d2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/EndUserNotificationSettingType.cs @@ -0,0 +1,17 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + public enum EndUserNotificationSettingType { + [EnumMember(Value = "unknown")] + Unknown, + [EnumMember(Value = "noTraining")] + NoTraining, + [EnumMember(Value = "trainingSelected")] + TrainingSelected, + [EnumMember(Value = "noNotification")] + NoNotification, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/EndUserNotificationType.cs b/src/Microsoft.Graph/Generated/Models/EndUserNotificationType.cs new file mode 100644 index 00000000000..e8f03717894 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/EndUserNotificationType.cs @@ -0,0 +1,19 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + public enum EndUserNotificationType { + [EnumMember(Value = "unknown")] + Unknown, + [EnumMember(Value = "positiveReinforcement")] + PositiveReinforcement, + [EnumMember(Value = "noTraining")] + NoTraining, + [EnumMember(Value = "trainingAssignment")] + TrainingAssignment, + [EnumMember(Value = "trainingReminder")] + TrainingReminder, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Entity.cs b/src/Microsoft.Graph/Generated/Models/Entity.cs index 93c387134bf..19597d810cb 100644 --- a/src/Microsoft.Graph/Generated/Models/Entity.cs +++ b/src/Microsoft.Graph/Generated/Models/Entity.cs @@ -130,6 +130,7 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.attachment" => new Attachment(), "#microsoft.graph.attachmentBase" => new AttachmentBase(), "#microsoft.graph.attachmentSession" => new AttachmentSession(), + "#microsoft.graph.attackSimulationOperation" => new AttackSimulationOperation(), "#microsoft.graph.attackSimulationRoot" => new AttackSimulationRoot(), "#microsoft.graph.attendanceRecord" => new AttendanceRecord(), "#microsoft.graph.attributeMappingFunctionSchema" => new AttributeMappingFunctionSchema(), @@ -178,6 +179,7 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.callRecords.callRecord" => new CallRecord(), "#microsoft.graph.callRecords.segment" => new Segment(), "#microsoft.graph.callRecords.session" => new Session(), + "#microsoft.graph.callTranscript" => new CallTranscript(), "#microsoft.graph.cancelMediaProcessingOperation" => new CancelMediaProcessingOperation(), "#microsoft.graph.certificateBasedAuthConfiguration" => new CertificateBasedAuthConfiguration(), "#microsoft.graph.changeTrackedEntity" => new ChangeTrackedEntity(), @@ -302,6 +304,8 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.emailFileAssessmentRequest" => new EmailFileAssessmentRequest(), "#microsoft.graph.employeeExperienceUser" => new EmployeeExperienceUser(), "#microsoft.graph.endpoint" => new Endpoint(), + "#microsoft.graph.endUserNotification" => new EndUserNotification(), + "#microsoft.graph.endUserNotificationDetail" => new EndUserNotificationDetail(), "#microsoft.graph.enrollmentConfigurationAssignment" => new EnrollmentConfigurationAssignment(), "#microsoft.graph.enrollmentTroubleshootingEvent" => new EnrollmentTroubleshootingEvent(), "#microsoft.graph.enterpriseCodeSigningCertificate" => new EnterpriseCodeSigningCertificate(), @@ -387,6 +391,8 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.itemActivityStat" => new ItemActivityStat(), "#microsoft.graph.itemAnalytics" => new ItemAnalytics(), "#microsoft.graph.itemAttachment" => new ItemAttachment(), + "#microsoft.graph.landingPage" => new LandingPage(), + "#microsoft.graph.landingPageDetail" => new LandingPageDetail(), "#microsoft.graph.learningAssignment" => new LearningAssignment(), "#microsoft.graph.learningContent" => new LearningContent(), "#microsoft.graph.learningCourseActivity" => new LearningCourseActivity(), @@ -398,6 +404,7 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.listItem" => new ListItem(), "#microsoft.graph.listItemVersion" => new ListItemVersion(), "#microsoft.graph.localizedNotificationMessage" => new LocalizedNotificationMessage(), + "#microsoft.graph.loginPage" => new LoginPage(), "#microsoft.graph.longRunningOperation" => new LongRunningOperation(), "#microsoft.graph.macOSCompliancePolicy" => new MacOSCompliancePolicy(), "#microsoft.graph.macOSCustomConfiguration" => new MacOSCustomConfiguration(), @@ -491,6 +498,7 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.participantJoiningNotification" => new ParticipantJoiningNotification(), "#microsoft.graph.participantLeftNotification" => new ParticipantLeftNotification(), "#microsoft.graph.passwordAuthenticationMethod" => new PasswordAuthenticationMethod(), + "#microsoft.graph.payload" => new Payload(), "#microsoft.graph.permission" => new Permission(), "#microsoft.graph.permissionGrantConditionSet" => new PermissionGrantConditionSet(), "#microsoft.graph.permissionGrantPolicy" => new PermissionGrantPolicy(), @@ -530,6 +538,17 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.printUsage" => new PrintUsage(), "#microsoft.graph.printUsageByPrinter" => new PrintUsageByPrinter(), "#microsoft.graph.printUsageByUser" => new PrintUsageByUser(), + "#microsoft.graph.privilegedAccessGroup" => new PrivilegedAccessGroup(), + "#microsoft.graph.privilegedAccessGroupAssignmentSchedule" => new PrivilegedAccessGroupAssignmentSchedule(), + "#microsoft.graph.privilegedAccessGroupAssignmentScheduleInstance" => new PrivilegedAccessGroupAssignmentScheduleInstance(), + "#microsoft.graph.privilegedAccessGroupAssignmentScheduleRequest" => new PrivilegedAccessGroupAssignmentScheduleRequest(), + "#microsoft.graph.privilegedAccessGroupEligibilitySchedule" => new PrivilegedAccessGroupEligibilitySchedule(), + "#microsoft.graph.privilegedAccessGroupEligibilityScheduleInstance" => new PrivilegedAccessGroupEligibilityScheduleInstance(), + "#microsoft.graph.privilegedAccessGroupEligibilityScheduleRequest" => new PrivilegedAccessGroupEligibilityScheduleRequest(), + "#microsoft.graph.privilegedAccessRoot" => new PrivilegedAccessRoot(), + "#microsoft.graph.privilegedAccessSchedule" => new PrivilegedAccessSchedule(), + "#microsoft.graph.privilegedAccessScheduleInstance" => new PrivilegedAccessScheduleInstance(), + "#microsoft.graph.privilegedAccessScheduleRequest" => new PrivilegedAccessScheduleRequest(), "#microsoft.graph.profilePhoto" => new ProfilePhoto(), "#microsoft.graph.provisioningObjectSummary" => new ProvisioningObjectSummary(), "#microsoft.graph.rbacApplication" => new RbacApplication(), @@ -537,6 +556,7 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.referenceAttachment" => new ReferenceAttachment(), "#microsoft.graph.remoteAssistancePartner" => new RemoteAssistancePartner(), "#microsoft.graph.request" => new Request(), + "#microsoft.graph.resellerDelegatedAdminRelationship" => new ResellerDelegatedAdminRelationship(), "#microsoft.graph.resourceOperation" => new ResourceOperation(), "#microsoft.graph.resourceSpecificPermissionGrant" => new ResourceSpecificPermissionGrant(), "#microsoft.graph.richLongRunningOperation" => new RichLongRunningOperation(), @@ -590,7 +610,9 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.security.hostComponent" => new HostComponent(), "#microsoft.graph.security.hostCookie" => new HostCookie(), "#microsoft.graph.security.hostname" => new Hostname(), + "#microsoft.graph.security.hostPair" => new HostPair(), "#microsoft.graph.security.hostReputation" => new HostReputation(), + "#microsoft.graph.security.hostSslCertificate" => new HostSslCertificate(), "#microsoft.graph.security.hostTracker" => new HostTracker(), "#microsoft.graph.security.incident" => new Incident(), "#microsoft.graph.security.indicator" => new Indicator(), @@ -602,6 +624,8 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.security.retentionEventType" => new Microsoft.Graph.Models.Security.RetentionEventType(), "#microsoft.graph.security.search" => new Microsoft.Graph.Models.Security.Search(), "#microsoft.graph.security.siteSource" => new SiteSource(), + "#microsoft.graph.security.sslCertificate" => new Microsoft.Graph.Models.Security.SslCertificate(), + "#microsoft.graph.security.subdomain" => new Subdomain(), "#microsoft.graph.security.tag" => new Tag(), "#microsoft.graph.security.threatIntelligence" => new Microsoft.Graph.Models.Security.ThreatIntelligence(), "#microsoft.graph.security.triggersRoot" => new TriggersRoot(), @@ -611,6 +635,9 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.security.userSource" => new UserSource(), "#microsoft.graph.security.vulnerability" => new Vulnerability(), "#microsoft.graph.security.vulnerabilityComponent" => new VulnerabilityComponent(), + "#microsoft.graph.security.whoisBaseRecord" => new WhoisBaseRecord(), + "#microsoft.graph.security.whoisHistoryRecord" => new WhoisHistoryRecord(), + "#microsoft.graph.security.whoisRecord" => new WhoisRecord(), "#microsoft.graph.securityReportsRoot" => new SecurityReportsRoot(), "#microsoft.graph.serviceAnnouncement" => new ServiceAnnouncement(), "#microsoft.graph.serviceAnnouncementAttachment" => new ServiceAnnouncementAttachment(), @@ -697,6 +724,8 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.todoTaskList" => new TodoTaskList(), "#microsoft.graph.tokenIssuancePolicy" => new TokenIssuancePolicy(), "#microsoft.graph.tokenLifetimePolicy" => new TokenLifetimePolicy(), + "#microsoft.graph.training" => new Training(), + "#microsoft.graph.trainingLanguageDetail" => new TrainingLanguageDetail(), "#microsoft.graph.trending" => new Trending(), "#microsoft.graph.unifiedRbacResourceAction" => new UnifiedRbacResourceAction(), "#microsoft.graph.unifiedRbacResourceNamespace" => new UnifiedRbacResourceNamespace(), diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Acl.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Acl.cs index fe6cdf422b0..343cce490e0 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Acl.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Acl.cs @@ -38,7 +38,7 @@ public AclType? Type { get { return BackingStore?.Get("type"); } set { BackingStore?.Set("type", value); } } - /// The unique identifer of the identity. In case of Azure Active Directory identities, value is set to the object identifier of the user, group or tenant for types user, group and everyone (and everyoneExceptGuests) respectively. In case of external groups value is set to the ID of the externalGroup + /// The unique identifer of the identity. For Azure Active Directory identities, value is set to the object identifier of the user, group or tenant for types user, group and everyone (and everyoneExceptGuests) respectively. For external groups value is set to the ID of the externalGroup #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Value { diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Label.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Label.cs index 394aad771e0..e62c3399775 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Label.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Label.cs @@ -23,5 +23,7 @@ public enum Label { FileExtension, [EnumMember(Value = "unknownFutureValue")] UnknownFutureValue, + [EnumMember(Value = "iconUrl")] + IconUrl, } } diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Property.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Property.cs index 622dae29198..ad166363145 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Property.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Property.cs @@ -12,7 +12,7 @@ public IDictionary AdditionalData { get { return BackingStore?.Get>("additionalData"); } set { BackingStore?.Set("additionalData", value); } } - /// A set of aliases or a friendly names for the property. Maximum 32 characters. Only alphanumeric characters allowed. For example, each string may not contain control characters, whitespace, or any of the following: :, ;, ,, (, ), [, ], {, }, %, $, +, !, *, =, &, ?, @, #, /, ~, ', ', <, >, `, ^. Optional. + /// A set of aliases or a friendly name for the property. Maximum 32 characters. Only alphanumeric characters allowed. For example, each string may not contain control characters, whitespace, or any of the following: :, ;, ,, (, ), [, ], {, }, %, $, +, !, *, =, &, ?, @, #, /, ~, ', ', <, >, `, ^. Optional. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Aliases { @@ -43,12 +43,12 @@ public bool? IsRetrievable { get { return BackingStore?.Get("isRetrievable"); } set { BackingStore?.Set("isRetrievable", value); } } - /// Specifies if the property is searchable. Only properties of type String or StringCollection can be searchable. Non-searchable properties are not added to the search index. Optional. + /// Specifies if the property is searchable. Only properties of type String or StringCollection can be searchable. Nonsearchable properties aren't added to the search index. Optional. public bool? IsSearchable { get { return BackingStore?.Get("isSearchable"); } set { BackingStore?.Set("isSearchable", value); } } - /// Specifies one or more well-known tags added against a property. Labels help Microsoft Search understand the semantics of the data in the connection. Adding appropriate labels would result in an enhanced search experience (e.g. better relevance). The possible values are: title, url, createdBy, lastModifiedBy, authors, createdDateTime, lastModifiedDateTime, fileName, fileExtension, iconUrl, unknownFutureValue. Optional. + /// Specifies one or more well-known tags added against a property. Labels help Microsoft Search understand the semantics of the data in the connection. Adding appropriate labels would result in an enhanced search experience (for example, better relevance). The possible values are: title, url, createdBy, lastModifiedBy, authors, createdDateTime, lastModifiedDateTime, fileName, fileExtension, iconUrl, unknownFutureValue. Optional. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Labels { diff --git a/src/Microsoft.Graph/Generated/Models/FileAssessmentRequest.cs b/src/Microsoft.Graph/Generated/Models/FileAssessmentRequest.cs index f962eb009ae..7c997c7c067 100644 --- a/src/Microsoft.Graph/Generated/Models/FileAssessmentRequest.cs +++ b/src/Microsoft.Graph/Generated/Models/FileAssessmentRequest.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models { public class FileAssessmentRequest : ThreatAssessmentRequest, IParsable { - /// Base64 encoded file content. The file content cannot fetch back because it isn't stored. + /// Base64 encoded file content. The file content can't fetch back because it isn't stored. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? ContentData { diff --git a/src/Microsoft.Graph/Generated/Models/FileEncryptionInfo.cs b/src/Microsoft.Graph/Generated/Models/FileEncryptionInfo.cs new file mode 100644 index 00000000000..7ca37e46097 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/FileEncryptionInfo.cs @@ -0,0 +1,179 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + /// + /// Contains properties for file encryption information for the content version of a line of business app. + /// + public class FileEncryptionInfo : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The key used to encrypt the file content. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public byte[]? EncryptionKey { + get { return BackingStore?.Get("encryptionKey"); } + set { BackingStore?.Set("encryptionKey", value); } + } +#nullable restore +#else + public byte[] EncryptionKey { + get { return BackingStore?.Get("encryptionKey"); } + set { BackingStore?.Set("encryptionKey", value); } + } +#endif + /// The file digest prior to encryption. ProfileVersion1 requires a non-null FileDigest. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public byte[]? FileDigest { + get { return BackingStore?.Get("fileDigest"); } + set { BackingStore?.Set("fileDigest", value); } + } +#nullable restore +#else + public byte[] FileDigest { + get { return BackingStore?.Get("fileDigest"); } + set { BackingStore?.Set("fileDigest", value); } + } +#endif + /// The file digest algorithm. ProfileVersion1 currently only supports SHA256 for the FileDigestAlgorithm. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? FileDigestAlgorithm { + get { return BackingStore?.Get("fileDigestAlgorithm"); } + set { BackingStore?.Set("fileDigestAlgorithm", value); } + } +#nullable restore +#else + public string FileDigestAlgorithm { + get { return BackingStore?.Get("fileDigestAlgorithm"); } + set { BackingStore?.Set("fileDigestAlgorithm", value); } + } +#endif + /// The initialization vector (IV) used for the encryption algorithm. Must be 16 bytes. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public byte[]? InitializationVector { + get { return BackingStore?.Get("initializationVector"); } + set { BackingStore?.Set("initializationVector", value); } + } +#nullable restore +#else + public byte[] InitializationVector { + get { return BackingStore?.Get("initializationVector"); } + set { BackingStore?.Set("initializationVector", value); } + } +#endif + /// The hash of the concatenation of the IV and encrypted file content. Must be 32 bytes. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public byte[]? Mac { + get { return BackingStore?.Get("mac"); } + set { BackingStore?.Set("mac", value); } + } +#nullable restore +#else + public byte[] Mac { + get { return BackingStore?.Get("mac"); } + set { BackingStore?.Set("mac", value); } + } +#endif + /// The key used to compute the message authentication code of the concatenation of the IV and encrypted file content. Must be 32 bytes. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public byte[]? MacKey { + get { return BackingStore?.Get("macKey"); } + set { BackingStore?.Set("macKey", value); } + } +#nullable restore +#else + public byte[] MacKey { + get { return BackingStore?.Get("macKey"); } + set { BackingStore?.Set("macKey", value); } + } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#nullable restore +#else + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#endif + /// The profile identifier. Maps to the strategy used to encrypt the file. Currently, only ProfileVersion1 is supported. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ProfileIdentifier { + get { return BackingStore?.Get("profileIdentifier"); } + set { BackingStore?.Set("profileIdentifier", value); } + } +#nullable restore +#else + public string ProfileIdentifier { + get { return BackingStore?.Get("profileIdentifier"); } + set { BackingStore?.Set("profileIdentifier", value); } + } +#endif + /// + /// Instantiates a new fileEncryptionInfo and sets the default values. + /// + public FileEncryptionInfo() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static FileEncryptionInfo CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FileEncryptionInfo(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"encryptionKey", n => { EncryptionKey = n.GetByteArrayValue(); } }, + {"fileDigest", n => { FileDigest = n.GetByteArrayValue(); } }, + {"fileDigestAlgorithm", n => { FileDigestAlgorithm = n.GetStringValue(); } }, + {"initializationVector", n => { InitializationVector = n.GetByteArrayValue(); } }, + {"mac", n => { Mac = n.GetByteArrayValue(); } }, + {"macKey", n => { MacKey = n.GetByteArrayValue(); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"profileIdentifier", n => { ProfileIdentifier = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteByteArrayValue("encryptionKey", EncryptionKey); + writer.WriteByteArrayValue("fileDigest", FileDigest); + writer.WriteStringValue("fileDigestAlgorithm", FileDigestAlgorithm); + writer.WriteByteArrayValue("initializationVector", InitializationVector); + writer.WriteByteArrayValue("mac", Mac); + writer.WriteByteArrayValue("macKey", MacKey); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("profileIdentifier", ProfileIdentifier); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Filter.cs b/src/Microsoft.Graph/Generated/Models/Filter.cs index 97fdbd1b60b..13c80f5a3e0 100644 --- a/src/Microsoft.Graph/Generated/Models/Filter.cs +++ b/src/Microsoft.Graph/Generated/Models/Filter.cs @@ -28,7 +28,7 @@ public List CategoryFilterGroups { set { BackingStore?.Set("categoryFilterGroups", value); } } #endif - /// Filter group set used to decide whether given object is in scope for provisioning. This is the filter which should be used in most cases. If an object used to satisfy this filter at a given moment, and then the object or the filter was changed so that filter is not satisfied any longer, such object will get de-provisioned'. An object is considered in scope if ANY of the groups in the collection is evaluated to true. + /// Filter group set used to decide whether given object is in scope for provisioning. This is the filter which should be used in most cases. If an object used to satisfy this filter at a given moment, and then the object or the filter was changed so that filter isn't satisfied any longer, such object will get deprovisioned'. An object is considered in scope if ANY of the groups in the collection is evaluated to true. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Groups { @@ -42,7 +42,7 @@ public List Groups { set { BackingStore?.Set("groups", value); } } #endif - /// *Experimental* Filter group set used to filter out objects at the early stage of reading them from the directory. If an object doesn't satisfy this filter it will not be processed further. Important to understand is that if an object used to satisfy this filter at a given moment, and then the object or the filter was changed so that filter is no longer satisfied, such object will NOT get de-provisioned. An object is considered in scope if ANY of the groups in the collection is evaluated to true. + /// *Experimental* Filter group set used to filter out objects at the early stage of reading them from the directory. If an object doesn't satisfy this filter, then it will not be processed further. Important to understand is that if an object used to satisfy this filter at a given moment, and then the object or the filter was changed so that filter is no longer satisfied, such object will NOT get deprovisioned. An object is considered in scope if ANY of the groups in the collection is evaluated to true. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? InputFilterGroups { diff --git a/src/Microsoft.Graph/Generated/Models/Group.cs b/src/Microsoft.Graph/Generated/Models/Group.cs index a0de20c4650..f0076dee045 100644 --- a/src/Microsoft.Graph/Generated/Models/Group.cs +++ b/src/Microsoft.Graph/Generated/Models/Group.cs @@ -838,10 +838,9 @@ public Group() : base() { {"mailNickname", n => { MailNickname = n.GetStringValue(); } }, {"memberOf", n => { MemberOf = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, {"members", n => { Members = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + {"membersWithLicenseErrors", n => { MembersWithLicenseErrors = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, {"membershipRule", n => { MembershipRule = n.GetStringValue(); } }, {"membershipRuleProcessingState", n => { MembershipRuleProcessingState = n.GetStringValue(); } }, - {"membersWithLicenseErrors", n => { MembersWithLicenseErrors = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - {"onenote", n => { Onenote = n.GetObjectValue(Microsoft.Graph.Models.Onenote.CreateFromDiscriminatorValue); } }, {"onPremisesDomainName", n => { OnPremisesDomainName = n.GetStringValue(); } }, {"onPremisesLastSyncDateTime", n => { OnPremisesLastSyncDateTime = n.GetDateTimeOffsetValue(); } }, {"onPremisesNetBiosName", n => { OnPremisesNetBiosName = n.GetStringValue(); } }, @@ -849,6 +848,7 @@ public Group() : base() { {"onPremisesSamAccountName", n => { OnPremisesSamAccountName = n.GetStringValue(); } }, {"onPremisesSecurityIdentifier", n => { OnPremisesSecurityIdentifier = n.GetStringValue(); } }, {"onPremisesSyncEnabled", n => { OnPremisesSyncEnabled = n.GetBoolValue(); } }, + {"onenote", n => { Onenote = n.GetObjectValue(Microsoft.Graph.Models.Onenote.CreateFromDiscriminatorValue); } }, {"owners", n => { Owners = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, {"permissionGrants", n => { PermissionGrants = n.GetCollectionOfObjectValues(ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue)?.ToList(); } }, {"photo", n => { Photo = n.GetObjectValue(ProfilePhoto.CreateFromDiscriminatorValue); } }, diff --git a/src/Microsoft.Graph/Generated/Models/HostSecurityState.cs b/src/Microsoft.Graph/Generated/Models/HostSecurityState.cs index fb5e2c8b67b..b2182602b0d 100644 --- a/src/Microsoft.Graph/Generated/Models/HostSecurityState.cs +++ b/src/Microsoft.Graph/Generated/Models/HostSecurityState.cs @@ -71,7 +71,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// Host Operating System. (For example, Windows10, MacOS, RHEL, etc.). + /// Host Operating System. (For example, Windows 10, macOS, RHEL, etc.). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Os { diff --git a/src/Microsoft.Graph/Generated/Models/Identity.cs b/src/Microsoft.Graph/Generated/Models/Identity.cs index d473b83ff0e..7516e67fa75 100644 --- a/src/Microsoft.Graph/Generated/Models/Identity.cs +++ b/src/Microsoft.Graph/Generated/Models/Identity.cs @@ -14,7 +14,7 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The display name of the identity. Note that this might not always be available or up to date. For example, if a user changes their display name, the API might show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. + /// The display name of the identity. The display name might not always be available or up to date. For example, if a user changes their display name, the API might show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DisplayName { diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/IdentityGovernance.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/IdentityGovernance.cs index 64f07ca1017..cf54da6f4a3 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/IdentityGovernance.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/IdentityGovernance.cs @@ -83,6 +83,20 @@ public string OdataType { get { return BackingStore?.Get("@odata.type"); } set { BackingStore?.Set("@odata.type", value); } } +#endif + /// The privilegedAccess property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.PrivilegedAccessRoot? PrivilegedAccess { + get { return BackingStore?.Get("privilegedAccess"); } + set { BackingStore?.Set("privilegedAccess", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.PrivilegedAccessRoot PrivilegedAccess { + get { return BackingStore?.Get("privilegedAccess"); } + set { BackingStore?.Set("privilegedAccess", value); } + } #endif /// The termsOfUse property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -123,6 +137,7 @@ public IDictionary> GetFieldDeserializers() { {"entitlementManagement", n => { EntitlementManagement = n.GetObjectValue(Microsoft.Graph.Models.EntitlementManagement.CreateFromDiscriminatorValue); } }, {"lifecycleWorkflows", n => { LifecycleWorkflows = n.GetObjectValue(LifecycleWorkflowsContainer.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"privilegedAccess", n => { PrivilegedAccess = n.GetObjectValue(Microsoft.Graph.Models.PrivilegedAccessRoot.CreateFromDiscriminatorValue); } }, {"termsOfUse", n => { TermsOfUse = n.GetObjectValue(Microsoft.Graph.Models.TermsOfUseContainer.CreateFromDiscriminatorValue); } }, }; } @@ -137,6 +152,7 @@ public void Serialize(ISerializationWriter writer) { writer.WriteObjectValue("entitlementManagement", EntitlementManagement); writer.WriteObjectValue("lifecycleWorkflows", LifecycleWorkflows); writer.WriteStringValue("@odata.type", OdataType); + writer.WriteObjectValue("privilegedAccess", PrivilegedAccess); writer.WriteObjectValue("termsOfUse", TermsOfUse); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/LifecycleWorkflowsContainer.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/LifecycleWorkflowsContainer.cs index 6c098b9240b..14c7ac89284 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/LifecycleWorkflowsContainer.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/LifecycleWorkflowsContainer.cs @@ -107,8 +107,8 @@ public List WorkflowTemplates { {"deletedItems", n => { DeletedItems = n.GetObjectValue(Microsoft.Graph.Models.DeletedItemContainer.CreateFromDiscriminatorValue); } }, {"settings", n => { Settings = n.GetObjectValue(LifecycleManagementSettings.CreateFromDiscriminatorValue); } }, {"taskDefinitions", n => { TaskDefinitions = n.GetCollectionOfObjectValues(TaskDefinition.CreateFromDiscriminatorValue)?.ToList(); } }, - {"workflows", n => { Workflows = n.GetCollectionOfObjectValues(Workflow.CreateFromDiscriminatorValue)?.ToList(); } }, {"workflowTemplates", n => { WorkflowTemplates = n.GetCollectionOfObjectValues(WorkflowTemplate.CreateFromDiscriminatorValue)?.ToList(); } }, + {"workflows", n => { Workflows = n.GetCollectionOfObjectValues(Workflow.CreateFromDiscriminatorValue)?.ToList(); } }, }; } /// diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/Parameter.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/Parameter.cs index 6eed2dd1ef1..eb90d668da8 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/Parameter.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/Parameter.cs @@ -83,8 +83,8 @@ public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"name", n => { Name = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, - {"values", n => { Values = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"valueType", n => { ValueType = n.GetEnumValue(); } }, + {"values", n => { Values = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } /// diff --git a/src/Microsoft.Graph/Generated/Models/IdentitySecurityDefaultsEnforcementPolicy.cs b/src/Microsoft.Graph/Generated/Models/IdentitySecurityDefaultsEnforcementPolicy.cs index 286745be66c..63b1d454acc 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentitySecurityDefaultsEnforcementPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentitySecurityDefaultsEnforcementPolicy.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models { public class IdentitySecurityDefaultsEnforcementPolicy : PolicyBase, IParsable { - /// If set to true, Azure Active Directory security defaults is enabled for the tenant. + /// If set to true, Azure Active Directory security defaults are enabled for the tenant. public bool? IsEnabled { get { return BackingStore?.Get("isEnabled"); } set { BackingStore?.Set("isEnabled", value); } diff --git a/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttribute.cs b/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttribute.cs index 42a6f8d73d7..535c7aedd61 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttribute.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttribute.cs @@ -25,7 +25,7 @@ public string Description { set { BackingStore?.Set("description", value); } } #endif - /// The display name of the user flow attribute. + /// The display name of the user flow attribute. Supports $filter (eq, ne). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DisplayName { diff --git a/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttributeAssignment.cs b/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttributeAssignment.cs index 5078451314f..d4e3c7f2ef2 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttributeAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttributeAssignment.cs @@ -20,12 +20,12 @@ public string DisplayName { set { BackingStore?.Set("displayName", value); } } #endif - /// Determines whether the identityUserFlowAttribute is optional. true means the user doesn't have to provide a value. false means the user cannot complete sign-up without providing a value. + /// Determines whether the identityUserFlowAttribute is optional. true means the user doesn't have to provide a value. false means the user can't complete sign-up without providing a value. public bool? IsOptional { get { return BackingStore?.Get("isOptional"); } set { BackingStore?.Set("isOptional", value); } } - /// Determines whether the identityUserFlowAttribute requires verification. This is only used for verifying the user's phone number or email address. + /// Determines whether the identityUserFlowAttribute requires verification, and is only used for verifying the user's phone number or email address. public bool? RequiresVerification { get { return BackingStore?.Get("requiresVerification"); } set { BackingStore?.Set("requiresVerification", value); } diff --git a/src/Microsoft.Graph/Generated/Models/IncludeAllAccountTargetContent.cs b/src/Microsoft.Graph/Generated/Models/IncludeAllAccountTargetContent.cs new file mode 100644 index 00000000000..ab2fdf10790 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/IncludeAllAccountTargetContent.cs @@ -0,0 +1,39 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class IncludeAllAccountTargetContent : AccountTargetContent, IParsable { + /// + /// Instantiates a new includeAllAccountTargetContent and sets the default values. + /// + public IncludeAllAccountTargetContent() : base() { + OdataType = "#microsoft.graph.includeAllAccountTargetContent"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new IncludeAllAccountTargetContent CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new IncludeAllAccountTargetContent(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/InsightIdentity.cs b/src/Microsoft.Graph/Generated/Models/InsightIdentity.cs index fa394bf1dd5..3aac033ccdc 100644 --- a/src/Microsoft.Graph/Generated/Models/InsightIdentity.cs +++ b/src/Microsoft.Graph/Generated/Models/InsightIdentity.cs @@ -42,7 +42,7 @@ public string DisplayName { set { BackingStore?.Set("displayName", value); } } #endif - /// The id of the user who shared the item. + /// The ID of the user who shared the item. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Id { diff --git a/src/Microsoft.Graph/Generated/Models/InternalDomainFederation.cs b/src/Microsoft.Graph/Generated/Models/InternalDomainFederation.cs index 8eba6272ad8..347ba355a65 100644 --- a/src/Microsoft.Graph/Generated/Models/InternalDomainFederation.cs +++ b/src/Microsoft.Graph/Generated/Models/InternalDomainFederation.cs @@ -101,8 +101,8 @@ public InternalDomainFederation() : base() { {"isSignedAuthenticationRequestRequired", n => { IsSignedAuthenticationRequestRequired = n.GetBoolValue(); } }, {"nextSigningCertificate", n => { NextSigningCertificate = n.GetStringValue(); } }, {"promptLoginBehavior", n => { PromptLoginBehavior = n.GetEnumValue(); } }, - {"signingCertificateUpdateStatus", n => { SigningCertificateUpdateStatus = n.GetObjectValue(Microsoft.Graph.Models.SigningCertificateUpdateStatus.CreateFromDiscriminatorValue); } }, {"signOutUri", n => { SignOutUri = n.GetStringValue(); } }, + {"signingCertificateUpdateStatus", n => { SigningCertificateUpdateStatus = n.GetObjectValue(Microsoft.Graph.Models.SigningCertificateUpdateStatus.CreateFromDiscriminatorValue); } }, }; } /// diff --git a/src/Microsoft.Graph/Generated/Models/Invitation.cs b/src/Microsoft.Graph/Generated/Models/Invitation.cs index 4128b3173aa..aab575b5eb4 100644 --- a/src/Microsoft.Graph/Generated/Models/Invitation.cs +++ b/src/Microsoft.Graph/Generated/Models/Invitation.cs @@ -34,7 +34,7 @@ public string InvitedUserDisplayName { set { BackingStore?.Set("invitedUserDisplayName", value); } } #endif - /// The email address of the user being invited. Required. The following special characters are not permitted in the email address:Tilde (~)Exclamation point (!)Number sign (#)Dollar sign ($)Percent (%)Circumflex (^)Ampersand (&)Asterisk (*)Parentheses (( ))Plus sign (+)Equal sign (=)Brackets ([ ])Braces ({ })Backslash (/)Slash mark (/)Pipe (/|)Semicolon (;)Colon (:)Quotation marks (')Angle brackets (< >)Question mark (?)Comma (,)However, the following exceptions apply:A period (.) or a hyphen (-) is permitted anywhere in the user name, except at the beginning or end of the name.An underscore (_) is permitted anywhere in the user name. This includes at the beginning or end of the name. + /// The email address of the user being invited. Required. The following special characters aren't permitted in the email address:Tilde (~)Exclamation point (!)Number sign (#)Dollar sign ($)Percent (%)Circumflex (^)Ampersand (&)Asterisk (*)Parentheses (( ))Plus sign (+)Equal sign (=)Brackets ([ ])Braces ({ })Backslash (/)Slash mark (/)Pipe (/|)Semicolon (;)Colon (:)Quotation marks (')Angle brackets (< >)Question mark (?)Comma (,)However, the following exceptions apply:A period (.) or a hyphen (-) is permitted anywhere in the user name, except at the beginning or end of the name.An underscore (_) is permitted anywhere in the user name. This includes at the beginning or end of the name. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? InvitedUserEmailAddress { @@ -62,7 +62,7 @@ public Microsoft.Graph.Models.InvitedUserMessageInfo InvitedUserMessageInfo { set { BackingStore?.Set("invitedUserMessageInfo", value); } } #endif - /// The userType of the user being invited. By default, this is Guest. You can invite as Member if you are a company administrator. + /// The userType of the user being invited. By default, this is Guest. You can invite as Member if you're a company administrator. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? InvitedUserType { @@ -141,13 +141,13 @@ public string Status { /// public new IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { + {"inviteRedeemUrl", n => { InviteRedeemUrl = n.GetStringValue(); } }, + {"inviteRedirectUrl", n => { InviteRedirectUrl = n.GetStringValue(); } }, {"invitedUser", n => { InvitedUser = n.GetObjectValue(User.CreateFromDiscriminatorValue); } }, {"invitedUserDisplayName", n => { InvitedUserDisplayName = n.GetStringValue(); } }, {"invitedUserEmailAddress", n => { InvitedUserEmailAddress = n.GetStringValue(); } }, {"invitedUserMessageInfo", n => { InvitedUserMessageInfo = n.GetObjectValue(Microsoft.Graph.Models.InvitedUserMessageInfo.CreateFromDiscriminatorValue); } }, {"invitedUserType", n => { InvitedUserType = n.GetStringValue(); } }, - {"inviteRedeemUrl", n => { InviteRedeemUrl = n.GetStringValue(); } }, - {"inviteRedirectUrl", n => { InviteRedirectUrl = n.GetStringValue(); } }, {"resetRedemption", n => { ResetRedemption = n.GetBoolValue(); } }, {"sendInvitationMessage", n => { SendInvitationMessage = n.GetBoolValue(); } }, {"status", n => { Status = n.GetStringValue(); } }, diff --git a/src/Microsoft.Graph/Generated/Models/IosGeneralDeviceConfiguration.cs b/src/Microsoft.Graph/Generated/Models/IosGeneralDeviceConfiguration.cs index f83f3abb757..274fb69452b 100644 --- a/src/Microsoft.Graph/Generated/Models/IosGeneralDeviceConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/IosGeneralDeviceConfiguration.cs @@ -859,15 +859,15 @@ public IosGeneralDeviceConfiguration() : base() { {"airDropBlocked", n => { AirDropBlocked = n.GetBoolValue(); } }, {"airDropForceUnmanagedDropTarget", n => { AirDropForceUnmanagedDropTarget = n.GetBoolValue(); } }, {"airPlayForcePairingPasswordForOutgoingRequests", n => { AirPlayForcePairingPasswordForOutgoingRequests = n.GetBoolValue(); } }, - {"appleNewsBlocked", n => { AppleNewsBlocked = n.GetBoolValue(); } }, - {"appleWatchBlockPairing", n => { AppleWatchBlockPairing = n.GetBoolValue(); } }, - {"appleWatchForceWristDetection", n => { AppleWatchForceWristDetection = n.GetBoolValue(); } }, - {"appsSingleAppModeList", n => { AppsSingleAppModeList = n.GetCollectionOfObjectValues(AppListItem.CreateFromDiscriminatorValue)?.ToList(); } }, {"appStoreBlockAutomaticDownloads", n => { AppStoreBlockAutomaticDownloads = n.GetBoolValue(); } }, - {"appStoreBlocked", n => { AppStoreBlocked = n.GetBoolValue(); } }, {"appStoreBlockInAppPurchases", n => { AppStoreBlockInAppPurchases = n.GetBoolValue(); } }, {"appStoreBlockUIAppInstallation", n => { AppStoreBlockUIAppInstallation = n.GetBoolValue(); } }, + {"appStoreBlocked", n => { AppStoreBlocked = n.GetBoolValue(); } }, {"appStoreRequirePassword", n => { AppStoreRequirePassword = n.GetBoolValue(); } }, + {"appleNewsBlocked", n => { AppleNewsBlocked = n.GetBoolValue(); } }, + {"appleWatchBlockPairing", n => { AppleWatchBlockPairing = n.GetBoolValue(); } }, + {"appleWatchForceWristDetection", n => { AppleWatchForceWristDetection = n.GetBoolValue(); } }, + {"appsSingleAppModeList", n => { AppsSingleAppModeList = n.GetCollectionOfObjectValues(AppListItem.CreateFromDiscriminatorValue)?.ToList(); } }, {"appsVisibilityList", n => { AppsVisibilityList = n.GetCollectionOfObjectValues(AppListItem.CreateFromDiscriminatorValue)?.ToList(); } }, {"appsVisibilityListType", n => { AppsVisibilityListType = n.GetEnumValue(); } }, {"bluetoothBlockModification", n => { BluetoothBlockModification = n.GetBoolValue(); } }, @@ -900,8 +900,8 @@ public IosGeneralDeviceConfiguration() : base() { {"gamingBlockGameCenterFriends", n => { GamingBlockGameCenterFriends = n.GetBoolValue(); } }, {"gamingBlockMultiplayer", n => { GamingBlockMultiplayer = n.GetBoolValue(); } }, {"hostPairingBlocked", n => { HostPairingBlocked = n.GetBoolValue(); } }, - {"iBooksStoreBlocked", n => { IBooksStoreBlocked = n.GetBoolValue(); } }, {"iBooksStoreBlockErotica", n => { IBooksStoreBlockErotica = n.GetBoolValue(); } }, + {"iBooksStoreBlocked", n => { IBooksStoreBlocked = n.GetBoolValue(); } }, {"iCloudBlockActivityContinuation", n => { ICloudBlockActivityContinuation = n.GetBoolValue(); } }, {"iCloudBlockBackup", n => { ICloudBlockBackup = n.GetBoolValue(); } }, {"iCloudBlockDocumentSync", n => { ICloudBlockDocumentSync = n.GetBoolValue(); } }, @@ -969,17 +969,17 @@ public IosGeneralDeviceConfiguration() : base() { {"passcodeSignInFailureCountBeforeWipe", n => { PasscodeSignInFailureCountBeforeWipe = n.GetIntValue(); } }, {"podcastsBlocked", n => { PodcastsBlocked = n.GetBoolValue(); } }, {"safariBlockAutofill", n => { SafariBlockAutofill = n.GetBoolValue(); } }, - {"safariBlocked", n => { SafariBlocked = n.GetBoolValue(); } }, {"safariBlockJavaScript", n => { SafariBlockJavaScript = n.GetBoolValue(); } }, {"safariBlockPopups", n => { SafariBlockPopups = n.GetBoolValue(); } }, + {"safariBlocked", n => { SafariBlocked = n.GetBoolValue(); } }, {"safariCookieSettings", n => { SafariCookieSettings = n.GetEnumValue(); } }, {"safariManagedDomains", n => { SafariManagedDomains = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"safariPasswordAutoFillDomains", n => { SafariPasswordAutoFillDomains = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"safariRequireFraudWarning", n => { SafariRequireFraudWarning = n.GetBoolValue(); } }, {"screenCaptureBlocked", n => { ScreenCaptureBlocked = n.GetBoolValue(); } }, + {"siriBlockUserGeneratedContent", n => { SiriBlockUserGeneratedContent = n.GetBoolValue(); } }, {"siriBlocked", n => { SiriBlocked = n.GetBoolValue(); } }, {"siriBlockedWhenLocked", n => { SiriBlockedWhenLocked = n.GetBoolValue(); } }, - {"siriBlockUserGeneratedContent", n => { SiriBlockUserGeneratedContent = n.GetBoolValue(); } }, {"siriRequireProfanityFilter", n => { SiriRequireProfanityFilter = n.GetBoolValue(); } }, {"spotlightBlockInternetResults", n => { SpotlightBlockInternetResults = n.GetBoolValue(); } }, {"voiceDialingBlocked", n => { VoiceDialingBlocked = n.GetBoolValue(); } }, diff --git a/src/Microsoft.Graph/Generated/Models/IosNetworkUsageRule.cs b/src/Microsoft.Graph/Generated/Models/IosNetworkUsageRule.cs index e93d91dba40..8bcd493e279 100644 --- a/src/Microsoft.Graph/Generated/Models/IosNetworkUsageRule.cs +++ b/src/Microsoft.Graph/Generated/Models/IosNetworkUsageRule.cs @@ -75,8 +75,8 @@ public static IosNetworkUsageRule CreateFromDiscriminatorValue(IParseNode parseN /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"cellularDataBlocked", n => { CellularDataBlocked = n.GetBoolValue(); } }, {"cellularDataBlockWhenRoaming", n => { CellularDataBlockWhenRoaming = n.GetBoolValue(); } }, + {"cellularDataBlocked", n => { CellularDataBlocked = n.GetBoolValue(); } }, {"managedApps", n => { ManagedApps = n.GetCollectionOfObjectValues(AppListItem.CreateFromDiscriminatorValue)?.ToList(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; diff --git a/src/Microsoft.Graph/Generated/Models/IosStoreApp.cs b/src/Microsoft.Graph/Generated/Models/IosStoreApp.cs index cea787109b2..7ce55becfba 100644 --- a/src/Microsoft.Graph/Generated/Models/IosStoreApp.cs +++ b/src/Microsoft.Graph/Generated/Models/IosStoreApp.cs @@ -84,8 +84,8 @@ public IosStoreApp() : base() { /// public new IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - {"applicableDeviceType", n => { ApplicableDeviceType = n.GetObjectValue(IosDeviceType.CreateFromDiscriminatorValue); } }, {"appStoreUrl", n => { AppStoreUrl = n.GetStringValue(); } }, + {"applicableDeviceType", n => { ApplicableDeviceType = n.GetObjectValue(IosDeviceType.CreateFromDiscriminatorValue); } }, {"bundleId", n => { BundleId = n.GetStringValue(); } }, {"minimumSupportedOperatingSystem", n => { MinimumSupportedOperatingSystem = n.GetObjectValue(IosMinimumOperatingSystem.CreateFromDiscriminatorValue); } }, }; diff --git a/src/Microsoft.Graph/Generated/Models/IosVppApp.cs b/src/Microsoft.Graph/Generated/Models/IosVppApp.cs index eaabc3b7c45..6863fb20d4c 100644 --- a/src/Microsoft.Graph/Generated/Models/IosVppApp.cs +++ b/src/Microsoft.Graph/Generated/Models/IosVppApp.cs @@ -132,8 +132,8 @@ public IosVppApp() : base() { /// public new IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - {"applicableDeviceType", n => { ApplicableDeviceType = n.GetObjectValue(IosDeviceType.CreateFromDiscriminatorValue); } }, {"appStoreUrl", n => { AppStoreUrl = n.GetStringValue(); } }, + {"applicableDeviceType", n => { ApplicableDeviceType = n.GetObjectValue(IosDeviceType.CreateFromDiscriminatorValue); } }, {"bundleId", n => { BundleId = n.GetStringValue(); } }, {"licensingType", n => { LicensingType = n.GetObjectValue(VppLicensingType.CreateFromDiscriminatorValue); } }, {"releaseDateTime", n => { ReleaseDateTime = n.GetDateTimeOffsetValue(); } }, diff --git a/src/Microsoft.Graph/Generated/Models/IpNamedLocation.cs b/src/Microsoft.Graph/Generated/Models/IpNamedLocation.cs index 448c2007ffb..1fc72009117 100644 --- a/src/Microsoft.Graph/Generated/Models/IpNamedLocation.cs +++ b/src/Microsoft.Graph/Generated/Models/IpNamedLocation.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models { public class IpNamedLocation : NamedLocation, IParsable { - /// List of IP address ranges in IPv4 CIDR format (e.g. 1.2.3.4/32) or any allowable IPv6 format from IETF RFC5969. Required. + /// List of IP address ranges in IPv4 CIDR format (for example, 1.2.3.4/32) or any allowable IPv6 format from IETF RFC5969. Required. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? IpRanges { diff --git a/src/Microsoft.Graph/Generated/Models/LandingPage.cs b/src/Microsoft.Graph/Generated/Models/LandingPage.cs new file mode 100644 index 00000000000..459f1074b7b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/LandingPage.cs @@ -0,0 +1,173 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class LandingPage : Entity, IParsable { + /// The createdBy property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public EmailIdentity? CreatedBy { + get { return BackingStore?.Get("createdBy"); } + set { BackingStore?.Set("createdBy", value); } + } +#nullable restore +#else + public EmailIdentity CreatedBy { + get { return BackingStore?.Get("createdBy"); } + set { BackingStore?.Set("createdBy", value); } + } +#endif + /// The createdDateTime property + public DateTimeOffset? CreatedDateTime { + get { return BackingStore?.Get("createdDateTime"); } + set { BackingStore?.Set("createdDateTime", value); } + } + /// The description property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Description { + get { return BackingStore?.Get("description"); } + set { BackingStore?.Set("description", value); } + } +#nullable restore +#else + public string Description { + get { return BackingStore?.Get("description"); } + set { BackingStore?.Set("description", value); } + } +#endif + /// The details property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Details { + get { return BackingStore?.Get?>("details"); } + set { BackingStore?.Set("details", value); } + } +#nullable restore +#else + public List Details { + get { return BackingStore?.Get>("details"); } + set { BackingStore?.Set("details", value); } + } +#endif + /// The displayName property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#nullable restore +#else + public string DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#endif + /// The lastModifiedBy property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public EmailIdentity? LastModifiedBy { + get { return BackingStore?.Get("lastModifiedBy"); } + set { BackingStore?.Set("lastModifiedBy", value); } + } +#nullable restore +#else + public EmailIdentity LastModifiedBy { + get { return BackingStore?.Get("lastModifiedBy"); } + set { BackingStore?.Set("lastModifiedBy", value); } + } +#endif + /// The lastModifiedDateTime property + public DateTimeOffset? LastModifiedDateTime { + get { return BackingStore?.Get("lastModifiedDateTime"); } + set { BackingStore?.Set("lastModifiedDateTime", value); } + } + /// The locale property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Locale { + get { return BackingStore?.Get("locale"); } + set { BackingStore?.Set("locale", value); } + } +#nullable restore +#else + public string Locale { + get { return BackingStore?.Get("locale"); } + set { BackingStore?.Set("locale", value); } + } +#endif + /// The source property + public SimulationContentSource? Source { + get { return BackingStore?.Get("source"); } + set { BackingStore?.Set("source", value); } + } + /// The status property + public SimulationContentStatus? Status { + get { return BackingStore?.Get("status"); } + set { BackingStore?.Set("status", value); } + } + /// The supportedLocales property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SupportedLocales { + get { return BackingStore?.Get?>("supportedLocales"); } + set { BackingStore?.Set("supportedLocales", value); } + } +#nullable restore +#else + public List SupportedLocales { + get { return BackingStore?.Get>("supportedLocales"); } + set { BackingStore?.Set("supportedLocales", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new LandingPage CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new LandingPage(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"createdBy", n => { CreatedBy = n.GetObjectValue(EmailIdentity.CreateFromDiscriminatorValue); } }, + {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, + {"description", n => { Description = n.GetStringValue(); } }, + {"details", n => { Details = n.GetCollectionOfObjectValues(LandingPageDetail.CreateFromDiscriminatorValue)?.ToList(); } }, + {"displayName", n => { DisplayName = n.GetStringValue(); } }, + {"lastModifiedBy", n => { LastModifiedBy = n.GetObjectValue(EmailIdentity.CreateFromDiscriminatorValue); } }, + {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, + {"locale", n => { Locale = n.GetStringValue(); } }, + {"source", n => { Source = n.GetEnumValue(); } }, + {"status", n => { Status = n.GetEnumValue(); } }, + {"supportedLocales", n => { SupportedLocales = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteObjectValue("createdBy", CreatedBy); + writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); + writer.WriteStringValue("description", Description); + writer.WriteCollectionOfObjectValues("details", Details); + writer.WriteStringValue("displayName", DisplayName); + writer.WriteObjectValue("lastModifiedBy", LastModifiedBy); + writer.WriteDateTimeOffsetValue("lastModifiedDateTime", LastModifiedDateTime); + writer.WriteStringValue("locale", Locale); + writer.WriteEnumValue("source", Source); + writer.WriteEnumValue("status", Status); + writer.WriteCollectionOfPrimitiveValues("supportedLocales", SupportedLocales); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/LandingPageCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/LandingPageCollectionResponse.cs new file mode 100644 index 00000000000..5f0f25b3294 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/LandingPageCollectionResponse.cs @@ -0,0 +1,49 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class LandingPageCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new LandingPageCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new LandingPageCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(LandingPage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/LandingPageDetail.cs b/src/Microsoft.Graph/Generated/Models/LandingPageDetail.cs new file mode 100644 index 00000000000..21c9f0d9e0b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/LandingPageDetail.cs @@ -0,0 +1,72 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class LandingPageDetail : Entity, IParsable { + /// The content property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Content { + get { return BackingStore?.Get("content"); } + set { BackingStore?.Set("content", value); } + } +#nullable restore +#else + public string Content { + get { return BackingStore?.Get("content"); } + set { BackingStore?.Set("content", value); } + } +#endif + /// The isDefaultLangauge property + public bool? IsDefaultLangauge { + get { return BackingStore?.Get("isDefaultLangauge"); } + set { BackingStore?.Set("isDefaultLangauge", value); } + } + /// The language property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Language { + get { return BackingStore?.Get("language"); } + set { BackingStore?.Set("language", value); } + } +#nullable restore +#else + public string Language { + get { return BackingStore?.Get("language"); } + set { BackingStore?.Set("language", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new LandingPageDetail CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new LandingPageDetail(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"content", n => { Content = n.GetStringValue(); } }, + {"isDefaultLangauge", n => { IsDefaultLangauge = n.GetBoolValue(); } }, + {"language", n => { Language = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteStringValue("content", Content); + writer.WriteBoolValue("isDefaultLangauge", IsDefaultLangauge); + writer.WriteStringValue("language", Language); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/LandingPageDetailCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/LandingPageDetailCollectionResponse.cs new file mode 100644 index 00000000000..c8eb0b788ad --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/LandingPageDetailCollectionResponse.cs @@ -0,0 +1,49 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class LandingPageDetailCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new LandingPageDetailCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new LandingPageDetailCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(LandingPageDetail.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/ListInfo.cs b/src/Microsoft.Graph/Generated/Models/ListInfo.cs index 84704f44a50..d166c5dbe8b 100644 --- a/src/Microsoft.Graph/Generated/Models/ListInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/ListInfo.cs @@ -19,7 +19,7 @@ public bool? ContentTypesEnabled { get { return BackingStore?.Get("contentTypesEnabled"); } set { BackingStore?.Set("contentTypesEnabled", value); } } - /// If true, indicates that the list is not normally visible in the SharePoint user experience. + /// If true, indicates that the list isn't normally visible in the SharePoint user experience. public bool? Hidden { get { return BackingStore?.Get("hidden"); } set { BackingStore?.Set("hidden", value); } diff --git a/src/Microsoft.Graph/Generated/Models/LocationConstraint.cs b/src/Microsoft.Graph/Generated/Models/LocationConstraint.cs index d51f76595ec..f2ec2d2becc 100644 --- a/src/Microsoft.Graph/Generated/Models/LocationConstraint.cs +++ b/src/Microsoft.Graph/Generated/Models/LocationConstraint.cs @@ -14,7 +14,7 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The client requests the service to include in the response a meeting location for the meeting. If this is true and all the resources are busy, findMeetingTimes will not return any meeting time suggestions. If this is false and all the resources are busy, findMeetingTimes would still look for meeting times without locations. + /// The client requests the service to include in the response a meeting location for the meeting. If this is true and all the resources are busy, findMeetingTimes won't return any meeting time suggestions. If this is false and all the resources are busy, findMeetingTimes would still look for meeting times without locations. public bool? IsRequired { get { return BackingStore?.Get("isRequired"); } set { BackingStore?.Set("isRequired", value); } diff --git a/src/Microsoft.Graph/Generated/Models/LoginPage.cs b/src/Microsoft.Graph/Generated/Models/LoginPage.cs new file mode 100644 index 00000000000..4743a30bb9f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/LoginPage.cs @@ -0,0 +1,157 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class LoginPage : Entity, IParsable { + /// The content property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Content { + get { return BackingStore?.Get("content"); } + set { BackingStore?.Set("content", value); } + } +#nullable restore +#else + public string Content { + get { return BackingStore?.Get("content"); } + set { BackingStore?.Set("content", value); } + } +#endif + /// The createdBy property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public EmailIdentity? CreatedBy { + get { return BackingStore?.Get("createdBy"); } + set { BackingStore?.Set("createdBy", value); } + } +#nullable restore +#else + public EmailIdentity CreatedBy { + get { return BackingStore?.Get("createdBy"); } + set { BackingStore?.Set("createdBy", value); } + } +#endif + /// The createdDateTime property + public DateTimeOffset? CreatedDateTime { + get { return BackingStore?.Get("createdDateTime"); } + set { BackingStore?.Set("createdDateTime", value); } + } + /// The description property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Description { + get { return BackingStore?.Get("description"); } + set { BackingStore?.Set("description", value); } + } +#nullable restore +#else + public string Description { + get { return BackingStore?.Get("description"); } + set { BackingStore?.Set("description", value); } + } +#endif + /// The displayName property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#nullable restore +#else + public string DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#endif + /// The language property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Language { + get { return BackingStore?.Get("language"); } + set { BackingStore?.Set("language", value); } + } +#nullable restore +#else + public string Language { + get { return BackingStore?.Get("language"); } + set { BackingStore?.Set("language", value); } + } +#endif + /// The lastModifiedBy property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public EmailIdentity? LastModifiedBy { + get { return BackingStore?.Get("lastModifiedBy"); } + set { BackingStore?.Set("lastModifiedBy", value); } + } +#nullable restore +#else + public EmailIdentity LastModifiedBy { + get { return BackingStore?.Get("lastModifiedBy"); } + set { BackingStore?.Set("lastModifiedBy", value); } + } +#endif + /// The lastModifiedDateTime property + public DateTimeOffset? LastModifiedDateTime { + get { return BackingStore?.Get("lastModifiedDateTime"); } + set { BackingStore?.Set("lastModifiedDateTime", value); } + } + /// The source property + public SimulationContentSource? Source { + get { return BackingStore?.Get("source"); } + set { BackingStore?.Set("source", value); } + } + /// The status property + public SimulationContentStatus? Status { + get { return BackingStore?.Get("status"); } + set { BackingStore?.Set("status", value); } + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new LoginPage CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new LoginPage(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"content", n => { Content = n.GetStringValue(); } }, + {"createdBy", n => { CreatedBy = n.GetObjectValue(EmailIdentity.CreateFromDiscriminatorValue); } }, + {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, + {"description", n => { Description = n.GetStringValue(); } }, + {"displayName", n => { DisplayName = n.GetStringValue(); } }, + {"language", n => { Language = n.GetStringValue(); } }, + {"lastModifiedBy", n => { LastModifiedBy = n.GetObjectValue(EmailIdentity.CreateFromDiscriminatorValue); } }, + {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, + {"source", n => { Source = n.GetEnumValue(); } }, + {"status", n => { Status = n.GetEnumValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteStringValue("content", Content); + writer.WriteObjectValue("createdBy", CreatedBy); + writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); + writer.WriteStringValue("description", Description); + writer.WriteStringValue("displayName", DisplayName); + writer.WriteStringValue("language", Language); + writer.WriteObjectValue("lastModifiedBy", LastModifiedBy); + writer.WriteDateTimeOffsetValue("lastModifiedDateTime", LastModifiedDateTime); + writer.WriteEnumValue("source", Source); + writer.WriteEnumValue("status", Status); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/LoginPageCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/LoginPageCollectionResponse.cs new file mode 100644 index 00000000000..2befe35bbf0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/LoginPageCollectionResponse.cs @@ -0,0 +1,49 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class LoginPageCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new LoginPageCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new LoginPageCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(LoginPage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/LongRunningOperation.cs b/src/Microsoft.Graph/Generated/Models/LongRunningOperation.cs index 6a8f097a9ad..d777c74fb04 100644 --- a/src/Microsoft.Graph/Generated/Models/LongRunningOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/LongRunningOperation.cs @@ -57,6 +57,7 @@ public string StatusDetail { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); return mappingValue switch { + "#microsoft.graph.attackSimulationOperation" => new AttackSimulationOperation(), "#microsoft.graph.richLongRunningOperation" => new RichLongRunningOperation(), _ => new LongRunningOperation(), }; diff --git a/src/Microsoft.Graph/Generated/Models/MacOSCompliancePolicy.cs b/src/Microsoft.Graph/Generated/Models/MacOSCompliancePolicy.cs index ecb38a917b0..2dd7b96cae6 100644 --- a/src/Microsoft.Graph/Generated/Models/MacOSCompliancePolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/MacOSCompliancePolicy.cs @@ -134,8 +134,8 @@ public MacOSCompliancePolicy() : base() { {"deviceThreatProtectionEnabled", n => { DeviceThreatProtectionEnabled = n.GetBoolValue(); } }, {"deviceThreatProtectionRequiredSecurityLevel", n => { DeviceThreatProtectionRequiredSecurityLevel = n.GetEnumValue(); } }, {"firewallBlockAllIncoming", n => { FirewallBlockAllIncoming = n.GetBoolValue(); } }, - {"firewallEnabled", n => { FirewallEnabled = n.GetBoolValue(); } }, {"firewallEnableStealthMode", n => { FirewallEnableStealthMode = n.GetBoolValue(); } }, + {"firewallEnabled", n => { FirewallEnabled = n.GetBoolValue(); } }, {"osMaximumVersion", n => { OsMaximumVersion = n.GetStringValue(); } }, {"osMinimumVersion", n => { OsMinimumVersion = n.GetStringValue(); } }, {"passwordBlockSimple", n => { PasswordBlockSimple = n.GetBoolValue(); } }, diff --git a/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfiguration.cs b/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfiguration.cs index fd24a9bb5c1..f19b771b98a 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfiguration.cs @@ -156,13 +156,13 @@ public int? Version { {"assignments", n => { Assignments = n.GetCollectionOfObjectValues(ManagedDeviceMobileAppConfigurationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, - {"deviceStatuses", n => { DeviceStatuses = n.GetCollectionOfObjectValues(ManagedDeviceMobileAppConfigurationDeviceStatus.CreateFromDiscriminatorValue)?.ToList(); } }, {"deviceStatusSummary", n => { DeviceStatusSummary = n.GetObjectValue(ManagedDeviceMobileAppConfigurationDeviceSummary.CreateFromDiscriminatorValue); } }, + {"deviceStatuses", n => { DeviceStatuses = n.GetCollectionOfObjectValues(ManagedDeviceMobileAppConfigurationDeviceStatus.CreateFromDiscriminatorValue)?.ToList(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, {"targetedMobileApps", n => { TargetedMobileApps = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"userStatuses", n => { UserStatuses = n.GetCollectionOfObjectValues(ManagedDeviceMobileAppConfigurationUserStatus.CreateFromDiscriminatorValue)?.ToList(); } }, {"userStatusSummary", n => { UserStatusSummary = n.GetObjectValue(ManagedDeviceMobileAppConfigurationUserSummary.CreateFromDiscriminatorValue); } }, + {"userStatuses", n => { UserStatuses = n.GetCollectionOfObjectValues(ManagedDeviceMobileAppConfigurationUserStatus.CreateFromDiscriminatorValue)?.ToList(); } }, {"version", n => { Version = n.GetIntValue(); } }, }; } diff --git a/src/Microsoft.Graph/Generated/Models/ManagedIOSStoreApp.cs b/src/Microsoft.Graph/Generated/Models/ManagedIOSStoreApp.cs index 57acfdb3be7..fcac1d9e9f1 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedIOSStoreApp.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedIOSStoreApp.cs @@ -84,8 +84,8 @@ public ManagedIOSStoreApp() : base() { /// public new IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - {"applicableDeviceType", n => { ApplicableDeviceType = n.GetObjectValue(IosDeviceType.CreateFromDiscriminatorValue); } }, {"appStoreUrl", n => { AppStoreUrl = n.GetStringValue(); } }, + {"applicableDeviceType", n => { ApplicableDeviceType = n.GetObjectValue(IosDeviceType.CreateFromDiscriminatorValue); } }, {"bundleId", n => { BundleId = n.GetStringValue(); } }, {"minimumSupportedOperatingSystem", n => { MinimumSupportedOperatingSystem = n.GetObjectValue(IosMinimumOperatingSystem.CreateFromDiscriminatorValue); } }, }; diff --git a/src/Microsoft.Graph/Generated/Models/MediaInfo.cs b/src/Microsoft.Graph/Generated/Models/MediaInfo.cs index c7514be8803..062adb134b2 100644 --- a/src/Microsoft.Graph/Generated/Models/MediaInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/MediaInfo.cs @@ -28,7 +28,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// Optional. Used to uniquely identity the resource. If passed in, the prompt uri will be cached against this resourceId as a key. + /// Optional. Used to uniquely identity the resource. If passed in, the prompt uri is against this resourceId as a key. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? ResourceId { @@ -42,7 +42,7 @@ public string ResourceId { set { BackingStore?.Set("resourceId", value); } } #endif - /// Path to the prompt that will be played. Currently supports only Wave file (.wav) format, single-channel, 16-bit samples with a 16,000 (16KHz) sampling rate. + /// Path to the prompt that will be played. Currently supports only Wave file (.wav) format, single-channel, 16-bit samples with a 16,000 (16 KHz) sampling rate. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Uri { diff --git a/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorAuthenticationMethod.cs b/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorAuthenticationMethod.cs index acf12e45638..70ef522af52 100644 --- a/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorAuthenticationMethod.cs +++ b/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorAuthenticationMethod.cs @@ -6,12 +6,12 @@ using System; namespace Microsoft.Graph.Models { public class MicrosoftAuthenticatorAuthenticationMethod : AuthenticationMethod, IParsable { - /// The date and time that this app was registered. This property is null if the device is not registered for passwordless Phone Sign-In. + /// The date and time that this app was registered. This property is null if the device isn't registered for passwordless Phone Sign-In. public DateTimeOffset? CreatedDateTime { get { return BackingStore?.Get("createdDateTime"); } set { BackingStore?.Set("createdDateTime", value); } } - /// The registered device on which Microsoft Authenticator resides. This property is null if the device is not registered for passwordless Phone Sign-In. + /// The registered device on which Microsoft Authenticator resides. This property is null if the device isn't registered for passwordless Phone Sign-In. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public Microsoft.Graph.Models.Device? Device { diff --git a/src/Microsoft.Graph/Generated/Models/MicrosoftCustomTrainingSetting.cs b/src/Microsoft.Graph/Generated/Models/MicrosoftCustomTrainingSetting.cs new file mode 100644 index 00000000000..59fa089c47b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/MicrosoftCustomTrainingSetting.cs @@ -0,0 +1,69 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class MicrosoftCustomTrainingSetting : TrainingSetting, IParsable { + /// The completionDateTime property + public DateTimeOffset? CompletionDateTime { + get { return BackingStore?.Get("completionDateTime"); } + set { BackingStore?.Set("completionDateTime", value); } + } + /// The trainingAssignmentMappings property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? TrainingAssignmentMappings { + get { return BackingStore?.Get?>("trainingAssignmentMappings"); } + set { BackingStore?.Set("trainingAssignmentMappings", value); } + } +#nullable restore +#else + public List TrainingAssignmentMappings { + get { return BackingStore?.Get>("trainingAssignmentMappings"); } + set { BackingStore?.Set("trainingAssignmentMappings", value); } + } +#endif + /// The trainingCompletionDuration property + public Microsoft.Graph.Models.TrainingCompletionDuration? TrainingCompletionDuration { + get { return BackingStore?.Get("trainingCompletionDuration"); } + set { BackingStore?.Set("trainingCompletionDuration", value); } + } + /// + /// Instantiates a new microsoftCustomTrainingSetting and sets the default values. + /// + public MicrosoftCustomTrainingSetting() : base() { + OdataType = "#microsoft.graph.microsoftCustomTrainingSetting"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new MicrosoftCustomTrainingSetting CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new MicrosoftCustomTrainingSetting(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"completionDateTime", n => { CompletionDateTime = n.GetDateTimeOffsetValue(); } }, + {"trainingAssignmentMappings", n => { TrainingAssignmentMappings = n.GetCollectionOfObjectValues(MicrosoftTrainingAssignmentMapping.CreateFromDiscriminatorValue)?.ToList(); } }, + {"trainingCompletionDuration", n => { TrainingCompletionDuration = n.GetEnumValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteDateTimeOffsetValue("completionDateTime", CompletionDateTime); + writer.WriteCollectionOfObjectValues("trainingAssignmentMappings", TrainingAssignmentMappings); + writer.WriteEnumValue("trainingCompletionDuration", TrainingCompletionDuration); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/MicrosoftManagedTrainingSetting.cs b/src/Microsoft.Graph/Generated/Models/MicrosoftManagedTrainingSetting.cs new file mode 100644 index 00000000000..4df6442501b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/MicrosoftManagedTrainingSetting.cs @@ -0,0 +1,53 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class MicrosoftManagedTrainingSetting : TrainingSetting, IParsable { + /// The completionDateTime property + public DateTimeOffset? CompletionDateTime { + get { return BackingStore?.Get("completionDateTime"); } + set { BackingStore?.Set("completionDateTime", value); } + } + /// The trainingCompletionDuration property + public Microsoft.Graph.Models.TrainingCompletionDuration? TrainingCompletionDuration { + get { return BackingStore?.Get("trainingCompletionDuration"); } + set { BackingStore?.Set("trainingCompletionDuration", value); } + } + /// + /// Instantiates a new microsoftManagedTrainingSetting and sets the default values. + /// + public MicrosoftManagedTrainingSetting() : base() { + OdataType = "#microsoft.graph.microsoftManagedTrainingSetting"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new MicrosoftManagedTrainingSetting CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new MicrosoftManagedTrainingSetting(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"completionDateTime", n => { CompletionDateTime = n.GetDateTimeOffsetValue(); } }, + {"trainingCompletionDuration", n => { TrainingCompletionDuration = n.GetEnumValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteDateTimeOffsetValue("completionDateTime", CompletionDateTime); + writer.WriteEnumValue("trainingCompletionDuration", TrainingCompletionDuration); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/MicrosoftTrainingAssignmentMapping.cs b/src/Microsoft.Graph/Generated/Models/MicrosoftTrainingAssignmentMapping.cs new file mode 100644 index 00000000000..b1e92e4b8e4 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/MicrosoftTrainingAssignmentMapping.cs @@ -0,0 +1,71 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class MicrosoftTrainingAssignmentMapping : TrainingSetting, IParsable { + /// The assignedTo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? AssignedTo { + get { return BackingStore?.Get?>("assignedTo"); } + set { BackingStore?.Set("assignedTo", value); } + } +#nullable restore +#else + public List AssignedTo { + get { return BackingStore?.Get>("assignedTo"); } + set { BackingStore?.Set("assignedTo", value); } + } +#endif + /// The training property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.Training? Training { + get { return BackingStore?.Get("training"); } + set { BackingStore?.Set("training", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.Training Training { + get { return BackingStore?.Get("training"); } + set { BackingStore?.Set("training", value); } + } +#endif + /// + /// Instantiates a new microsoftTrainingAssignmentMapping and sets the default values. + /// + public MicrosoftTrainingAssignmentMapping() : base() { + OdataType = "#microsoft.graph.microsoftTrainingAssignmentMapping"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new MicrosoftTrainingAssignmentMapping CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new MicrosoftTrainingAssignmentMapping(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"assignedTo", n => { AssignedTo = n.GetCollectionOfEnumValues()?.ToList(); } }, + {"training", n => { Training = n.GetObjectValue(Microsoft.Graph.Models.Training.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfEnumValues("assignedTo", AssignedTo); + writer.WriteObjectValue("training", Training); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/MobileAppContentCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/MobileAppContentCollectionResponse.cs new file mode 100644 index 00000000000..38bc1cc7054 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/MobileAppContentCollectionResponse.cs @@ -0,0 +1,49 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class MobileAppContentCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new MobileAppContentCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new MobileAppContentCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(MobileAppContent.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/MobileAppContentFileCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/MobileAppContentFileCollectionResponse.cs new file mode 100644 index 00000000000..7c99938b3d2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/MobileAppContentFileCollectionResponse.cs @@ -0,0 +1,49 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class MobileAppContentFileCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new MobileAppContentFileCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new MobileAppContentFileCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(MobileAppContentFile.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/MobileContainedAppCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/MobileContainedAppCollectionResponse.cs new file mode 100644 index 00000000000..400f7e53865 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/MobileContainedAppCollectionResponse.cs @@ -0,0 +1,49 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class MobileContainedAppCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new MobileContainedAppCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new MobileContainedAppCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(MobileContainedApp.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/NoTrainingNotificationSetting.cs b/src/Microsoft.Graph/Generated/Models/NoTrainingNotificationSetting.cs new file mode 100644 index 00000000000..fead327a45b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/NoTrainingNotificationSetting.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class NoTrainingNotificationSetting : EndUserNotificationSetting, IParsable { + /// The simulationNotification property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.SimulationNotification? SimulationNotification { + get { return BackingStore?.Get("simulationNotification"); } + set { BackingStore?.Set("simulationNotification", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.SimulationNotification SimulationNotification { + get { return BackingStore?.Get("simulationNotification"); } + set { BackingStore?.Set("simulationNotification", value); } + } +#endif + /// + /// Instantiates a new noTrainingNotificationSetting and sets the default values. + /// + public NoTrainingNotificationSetting() : base() { + OdataType = "#microsoft.graph.noTrainingNotificationSetting"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new NoTrainingNotificationSetting CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new NoTrainingNotificationSetting(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"simulationNotification", n => { SimulationNotification = n.GetObjectValue(Microsoft.Graph.Models.SimulationNotification.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteObjectValue("simulationNotification", SimulationNotification); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/NoTrainingSetting.cs b/src/Microsoft.Graph/Generated/Models/NoTrainingSetting.cs new file mode 100644 index 00000000000..66f5c42c6f2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/NoTrainingSetting.cs @@ -0,0 +1,39 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class NoTrainingSetting : TrainingSetting, IParsable { + /// + /// Instantiates a new noTrainingSetting and sets the default values. + /// + public NoTrainingSetting() : base() { + OdataType = "#microsoft.graph.noTrainingSetting"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new NoTrainingSetting CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new NoTrainingSetting(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/NotificationDeliveryFrequency.cs b/src/Microsoft.Graph/Generated/Models/NotificationDeliveryFrequency.cs new file mode 100644 index 00000000000..34c3b94c1dd --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/NotificationDeliveryFrequency.cs @@ -0,0 +1,15 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + public enum NotificationDeliveryFrequency { + [EnumMember(Value = "unknown")] + Unknown, + [EnumMember(Value = "weekly")] + Weekly, + [EnumMember(Value = "biWeekly")] + BiWeekly, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/NotificationDeliveryPreference.cs b/src/Microsoft.Graph/Generated/Models/NotificationDeliveryPreference.cs new file mode 100644 index 00000000000..2d3691146c5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/NotificationDeliveryPreference.cs @@ -0,0 +1,15 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + public enum NotificationDeliveryPreference { + [EnumMember(Value = "unknown")] + Unknown, + [EnumMember(Value = "deliverImmedietly")] + DeliverImmedietly, + [EnumMember(Value = "deliverAfterCampaignEnd")] + DeliverAfterCampaignEnd, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/OAuthAppScope.cs b/src/Microsoft.Graph/Generated/Models/OAuthAppScope.cs new file mode 100644 index 00000000000..6f48aaf93ba --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/OAuthAppScope.cs @@ -0,0 +1,25 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + public enum OAuthAppScope { + [EnumMember(Value = "unknown")] + Unknown, + [EnumMember(Value = "readCalendar")] + ReadCalendar, + [EnumMember(Value = "readContact")] + ReadContact, + [EnumMember(Value = "readMail")] + ReadMail, + [EnumMember(Value = "readAllChat")] + ReadAllChat, + [EnumMember(Value = "readAllFile")] + ReadAllFile, + [EnumMember(Value = "readAndWriteMail")] + ReadAndWriteMail, + [EnumMember(Value = "sendMail")] + SendMail, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/ValidateProperties/ValidatePropertiesPostRequestBody.cs b/src/Microsoft.Graph/Generated/Models/OAuthConsentAppDetail.cs similarity index 59% rename from src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/ValidateProperties/ValidatePropertiesPostRequestBody.cs rename to src/Microsoft.Graph/Generated/Models/OAuthConsentAppDetail.cs index 4431ec40544..765925a5f9d 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/ValidateProperties/ValidatePropertiesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Models/OAuthConsentAppDetail.cs @@ -5,66 +5,66 @@ using System.IO; using System.Linq; using System; -namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.ValidateProperties { - public class ValidatePropertiesPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable { +namespace Microsoft.Graph.Models { + public class OAuthConsentAppDetail : IAdditionalDataHolder, IBackedModel, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get { return BackingStore?.Get>("additionalData"); } set { BackingStore?.Set("additionalData", value); } } + /// The appScope property + public OAuthAppScope? AppScope { + get { return BackingStore?.Get("appScope"); } + set { BackingStore?.Set("appScope", value); } + } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The displayName property + /// The displayLogo property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? DisplayName { - get { return BackingStore?.Get("displayName"); } - set { BackingStore?.Set("displayName", value); } + public string? DisplayLogo { + get { return BackingStore?.Get("displayLogo"); } + set { BackingStore?.Set("displayLogo", value); } } #nullable restore #else - public string DisplayName { - get { return BackingStore?.Get("displayName"); } - set { BackingStore?.Set("displayName", value); } + public string DisplayLogo { + get { return BackingStore?.Get("displayLogo"); } + set { BackingStore?.Set("displayLogo", value); } } #endif - /// The entityType property + /// The displayName property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? EntityType { - get { return BackingStore?.Get("entityType"); } - set { BackingStore?.Set("entityType", value); } + public string? DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } } #nullable restore #else - public string EntityType { - get { return BackingStore?.Get("entityType"); } - set { BackingStore?.Set("entityType", value); } + public string DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } } #endif - /// The mailNickname property + /// The OdataType property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? MailNickname { - get { return BackingStore?.Get("mailNickname"); } - set { BackingStore?.Set("mailNickname", value); } + public string? OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } } #nullable restore #else - public string MailNickname { - get { return BackingStore?.Get("mailNickname"); } - set { BackingStore?.Set("mailNickname", value); } + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } } #endif - /// The onBehalfOfUserId property - public Guid? OnBehalfOfUserId { - get { return BackingStore?.Get("onBehalfOfUserId"); } - set { BackingStore?.Set("onBehalfOfUserId", value); } - } /// - /// Instantiates a new validatePropertiesPostRequestBody and sets the default values. + /// Instantiates a new oAuthConsentAppDetail and sets the default values. /// - public ValidatePropertiesPostRequestBody() { + public OAuthConsentAppDetail() { BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); AdditionalData = new Dictionary(); } @@ -72,19 +72,19 @@ public ValidatePropertiesPostRequestBody() { /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static ValidatePropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + public static OAuthConsentAppDetail CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ValidatePropertiesPostRequestBody(); + return new OAuthConsentAppDetail(); } /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"appScope", n => { AppScope = n.GetEnumValue(); } }, + {"displayLogo", n => { DisplayLogo = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, - {"entityType", n => { EntityType = n.GetStringValue(); } }, - {"mailNickname", n => { MailNickname = n.GetStringValue(); } }, - {"onBehalfOfUserId", n => { OnBehalfOfUserId = n.GetGuidValue(); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// @@ -93,10 +93,10 @@ public IDictionary> GetFieldDeserializers() { /// Serialization writer to use to serialize this model public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteEnumValue("appScope", AppScope); + writer.WriteStringValue("displayLogo", DisplayLogo); writer.WriteStringValue("displayName", DisplayName); - writer.WriteStringValue("entityType", EntityType); - writer.WriteStringValue("mailNickname", MailNickname); - writer.WriteGuidValue("onBehalfOfUserId", OnBehalfOfUserId); + writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Microsoft.Graph/Generated/Models/Onenote.cs b/src/Microsoft.Graph/Generated/Models/Onenote.cs index 29c00dad469..8edb41a253e 100644 --- a/src/Microsoft.Graph/Generated/Models/Onenote.cs +++ b/src/Microsoft.Graph/Generated/Models/Onenote.cs @@ -20,7 +20,7 @@ public List Notebooks { set { BackingStore?.Set("notebooks", value); } } #endif - /// The status of OneNote operations. Getting an operations collection is not supported, but you can get the status of long-running operations if the Operation-Location header is returned in the response. Read-only. Nullable. + /// The status of OneNote operations. Getting an operations collection isn't supported, but you can get the status of long-running operations if the Operation-Location header is returned in the response. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Operations { @@ -48,7 +48,7 @@ public List Pages { set { BackingStore?.Set("pages", value); } } #endif - /// The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + /// The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Resources { diff --git a/src/Microsoft.Graph/Generated/Models/OnenoteEntityHierarchyModel.cs b/src/Microsoft.Graph/Generated/Models/OnenoteEntityHierarchyModel.cs index 8c11755ce9f..dc34e890943 100644 --- a/src/Microsoft.Graph/Generated/Models/OnenoteEntityHierarchyModel.cs +++ b/src/Microsoft.Graph/Generated/Models/OnenoteEntityHierarchyModel.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models { public class OnenoteEntityHierarchyModel : OnenoteEntitySchemaObjectModel, IParsable { - /// Identity of the user, device, and application which created the item. Read-only. + /// Identity of the user, device, and application that created the item. Read-only. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public IdentitySet? CreatedBy { @@ -34,7 +34,7 @@ public string DisplayName { set { BackingStore?.Set("displayName", value); } } #endif - /// Identity of the user, device, and application which created the item. Read-only. + /// Identity of the user, device, and application that created the item. Read-only. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public IdentitySet? LastModifiedBy { diff --git a/src/Microsoft.Graph/Generated/Models/OnlineMeeting.cs b/src/Microsoft.Graph/Generated/Models/OnlineMeeting.cs index e46d3de68e6..adbd5aa7758 100644 --- a/src/Microsoft.Graph/Generated/Models/OnlineMeeting.cs +++ b/src/Microsoft.Graph/Generated/Models/OnlineMeeting.cs @@ -238,6 +238,20 @@ public string Subject { get { return BackingStore?.Get("subject"); } set { BackingStore?.Set("subject", value); } } +#endif + /// The transcripts property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Transcripts { + get { return BackingStore?.Get?>("transcripts"); } + set { BackingStore?.Set("transcripts", value); } + } +#nullable restore +#else + public List Transcripts { + get { return BackingStore?.Get>("transcripts"); } + set { BackingStore?.Set("transcripts", value); } + } #endif /// The video teleconferencing ID. Read-only. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -282,10 +296,10 @@ public WatermarkProtectionValues WatermarkProtection { return new Dictionary>(base.GetFieldDeserializers()) { {"allowAttendeeToEnableCamera", n => { AllowAttendeeToEnableCamera = n.GetBoolValue(); } }, {"allowAttendeeToEnableMic", n => { AllowAttendeeToEnableMic = n.GetBoolValue(); } }, - {"allowedPresenters", n => { AllowedPresenters = n.GetEnumValue(); } }, {"allowMeetingChat", n => { AllowMeetingChat = n.GetEnumValue(); } }, {"allowParticipantsToChangeName", n => { AllowParticipantsToChangeName = n.GetBoolValue(); } }, {"allowTeamworkReactions", n => { AllowTeamworkReactions = n.GetBoolValue(); } }, + {"allowedPresenters", n => { AllowedPresenters = n.GetEnumValue(); } }, {"attendanceReports", n => { AttendanceReports = n.GetCollectionOfObjectValues(MeetingAttendanceReport.CreateFromDiscriminatorValue)?.ToList(); } }, {"attendeeReport", n => { AttendeeReport = n.GetByteArrayValue(); } }, {"audioConferencing", n => { AudioConferencing = n.GetObjectValue(Microsoft.Graph.Models.AudioConferencing.CreateFromDiscriminatorValue); } }, @@ -305,6 +319,7 @@ public WatermarkProtectionValues WatermarkProtection { {"shareMeetingChatHistoryDefault", n => { ShareMeetingChatHistoryDefault = n.GetEnumValue(); } }, {"startDateTime", n => { StartDateTime = n.GetDateTimeOffsetValue(); } }, {"subject", n => { Subject = n.GetStringValue(); } }, + {"transcripts", n => { Transcripts = n.GetCollectionOfObjectValues(CallTranscript.CreateFromDiscriminatorValue)?.ToList(); } }, {"videoTeleconferenceId", n => { VideoTeleconferenceId = n.GetStringValue(); } }, {"watermarkProtection", n => { WatermarkProtection = n.GetObjectValue(WatermarkProtectionValues.CreateFromDiscriminatorValue); } }, }; @@ -341,6 +356,7 @@ public WatermarkProtectionValues WatermarkProtection { writer.WriteEnumValue("shareMeetingChatHistoryDefault", ShareMeetingChatHistoryDefault); writer.WriteDateTimeOffsetValue("startDateTime", StartDateTime); writer.WriteStringValue("subject", Subject); + writer.WriteCollectionOfObjectValues("transcripts", Transcripts); writer.WriteStringValue("videoTeleconferenceId", VideoTeleconferenceId); writer.WriteObjectValue("watermarkProtection", WatermarkProtection); } diff --git a/src/Microsoft.Graph/Generated/Models/OrganizationalBrandingProperties.cs b/src/Microsoft.Graph/Generated/Models/OrganizationalBrandingProperties.cs index 730960611fa..e004702f42a 100644 --- a/src/Microsoft.Graph/Generated/Models/OrganizationalBrandingProperties.cs +++ b/src/Microsoft.Graph/Generated/Models/OrganizationalBrandingProperties.cs @@ -451,10 +451,10 @@ public string UsernameHintText { {"bannerLogoRelativeUrl", n => { BannerLogoRelativeUrl = n.GetStringValue(); } }, {"cdnList", n => { CdnList = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"customAccountResetCredentialsUrl", n => { CustomAccountResetCredentialsUrl = n.GetStringValue(); } }, - {"customCannotAccessYourAccountText", n => { CustomCannotAccessYourAccountText = n.GetStringValue(); } }, - {"customCannotAccessYourAccountUrl", n => { CustomCannotAccessYourAccountUrl = n.GetStringValue(); } }, {"customCSS", n => { CustomCSS = n.GetByteArrayValue(); } }, {"customCSSRelativeUrl", n => { CustomCSSRelativeUrl = n.GetStringValue(); } }, + {"customCannotAccessYourAccountText", n => { CustomCannotAccessYourAccountText = n.GetStringValue(); } }, + {"customCannotAccessYourAccountUrl", n => { CustomCannotAccessYourAccountUrl = n.GetStringValue(); } }, {"customForgotMyPasswordText", n => { CustomForgotMyPasswordText = n.GetStringValue(); } }, {"customPrivacyAndCookiesText", n => { CustomPrivacyAndCookiesText = n.GetStringValue(); } }, {"customPrivacyAndCookiesUrl", n => { CustomPrivacyAndCookiesUrl = n.GetStringValue(); } }, diff --git a/src/Microsoft.Graph/Generated/Models/ParticipantInfo.cs b/src/Microsoft.Graph/Generated/Models/ParticipantInfo.cs index e06bbb3d577..571b04f5142 100644 --- a/src/Microsoft.Graph/Generated/Models/ParticipantInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/ParticipantInfo.cs @@ -89,7 +89,7 @@ public string ParticipantId { set { BackingStore?.Set("participantId", value); } } #endif - /// The home region of the participant. This can be a country, a continent, or a larger geographic region. This does not change based on the participant's current physical location. Read-only. + /// The home region of the participant. This can be a country, a continent, or a larger geographic region. This doesn't change based on the participant's current physical location. Read-only. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Region { diff --git a/src/Microsoft.Graph/Generated/Models/Payload.cs b/src/Microsoft.Graph/Generated/Models/Payload.cs new file mode 100644 index 00000000000..c192df3e9ca --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Payload.cs @@ -0,0 +1,250 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class Payload : Entity, IParsable { + /// The brand property + public PayloadBrand? Brand { + get { return BackingStore?.Get("brand"); } + set { BackingStore?.Set("brand", value); } + } + /// The complexity property + public PayloadComplexity? Complexity { + get { return BackingStore?.Get("complexity"); } + set { BackingStore?.Set("complexity", value); } + } + /// The createdBy property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public EmailIdentity? CreatedBy { + get { return BackingStore?.Get("createdBy"); } + set { BackingStore?.Set("createdBy", value); } + } +#nullable restore +#else + public EmailIdentity CreatedBy { + get { return BackingStore?.Get("createdBy"); } + set { BackingStore?.Set("createdBy", value); } + } +#endif + /// The createdDateTime property + public DateTimeOffset? CreatedDateTime { + get { return BackingStore?.Get("createdDateTime"); } + set { BackingStore?.Set("createdDateTime", value); } + } + /// The description property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Description { + get { return BackingStore?.Get("description"); } + set { BackingStore?.Set("description", value); } + } +#nullable restore +#else + public string Description { + get { return BackingStore?.Get("description"); } + set { BackingStore?.Set("description", value); } + } +#endif + /// The detail property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public PayloadDetail? Detail { + get { return BackingStore?.Get("detail"); } + set { BackingStore?.Set("detail", value); } + } +#nullable restore +#else + public PayloadDetail Detail { + get { return BackingStore?.Get("detail"); } + set { BackingStore?.Set("detail", value); } + } +#endif + /// The displayName property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#nullable restore +#else + public string DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#endif + /// The industry property + public PayloadIndustry? Industry { + get { return BackingStore?.Get("industry"); } + set { BackingStore?.Set("industry", value); } + } + /// The isAutomated property + public bool? IsAutomated { + get { return BackingStore?.Get("isAutomated"); } + set { BackingStore?.Set("isAutomated", value); } + } + /// The isControversial property + public bool? IsControversial { + get { return BackingStore?.Get("isControversial"); } + set { BackingStore?.Set("isControversial", value); } + } + /// The isCurrentEvent property + public bool? IsCurrentEvent { + get { return BackingStore?.Get("isCurrentEvent"); } + set { BackingStore?.Set("isCurrentEvent", value); } + } + /// The language property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Language { + get { return BackingStore?.Get("language"); } + set { BackingStore?.Set("language", value); } + } +#nullable restore +#else + public string Language { + get { return BackingStore?.Get("language"); } + set { BackingStore?.Set("language", value); } + } +#endif + /// The lastModifiedBy property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public EmailIdentity? LastModifiedBy { + get { return BackingStore?.Get("lastModifiedBy"); } + set { BackingStore?.Set("lastModifiedBy", value); } + } +#nullable restore +#else + public EmailIdentity LastModifiedBy { + get { return BackingStore?.Get("lastModifiedBy"); } + set { BackingStore?.Set("lastModifiedBy", value); } + } +#endif + /// The lastModifiedDateTime property + public DateTimeOffset? LastModifiedDateTime { + get { return BackingStore?.Get("lastModifiedDateTime"); } + set { BackingStore?.Set("lastModifiedDateTime", value); } + } + /// The payloadTags property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? PayloadTags { + get { return BackingStore?.Get?>("payloadTags"); } + set { BackingStore?.Set("payloadTags", value); } + } +#nullable restore +#else + public List PayloadTags { + get { return BackingStore?.Get>("payloadTags"); } + set { BackingStore?.Set("payloadTags", value); } + } +#endif + /// The platform property + public PayloadDeliveryPlatform? Platform { + get { return BackingStore?.Get("platform"); } + set { BackingStore?.Set("platform", value); } + } + /// The predictedCompromiseRate property + public double? PredictedCompromiseRate { + get { return BackingStore?.Get("predictedCompromiseRate"); } + set { BackingStore?.Set("predictedCompromiseRate", value); } + } + /// The simulationAttackType property + public Microsoft.Graph.Models.SimulationAttackType? SimulationAttackType { + get { return BackingStore?.Get("simulationAttackType"); } + set { BackingStore?.Set("simulationAttackType", value); } + } + /// The source property + public SimulationContentSource? Source { + get { return BackingStore?.Get("source"); } + set { BackingStore?.Set("source", value); } + } + /// The status property + public SimulationContentStatus? Status { + get { return BackingStore?.Get("status"); } + set { BackingStore?.Set("status", value); } + } + /// The technique property + public SimulationAttackTechnique? Technique { + get { return BackingStore?.Get("technique"); } + set { BackingStore?.Set("technique", value); } + } + /// The theme property + public PayloadTheme? Theme { + get { return BackingStore?.Get("theme"); } + set { BackingStore?.Set("theme", value); } + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new Payload CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new Payload(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"brand", n => { Brand = n.GetEnumValue(); } }, + {"complexity", n => { Complexity = n.GetEnumValue(); } }, + {"createdBy", n => { CreatedBy = n.GetObjectValue(EmailIdentity.CreateFromDiscriminatorValue); } }, + {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, + {"description", n => { Description = n.GetStringValue(); } }, + {"detail", n => { Detail = n.GetObjectValue(PayloadDetail.CreateFromDiscriminatorValue); } }, + {"displayName", n => { DisplayName = n.GetStringValue(); } }, + {"industry", n => { Industry = n.GetEnumValue(); } }, + {"isAutomated", n => { IsAutomated = n.GetBoolValue(); } }, + {"isControversial", n => { IsControversial = n.GetBoolValue(); } }, + {"isCurrentEvent", n => { IsCurrentEvent = n.GetBoolValue(); } }, + {"language", n => { Language = n.GetStringValue(); } }, + {"lastModifiedBy", n => { LastModifiedBy = n.GetObjectValue(EmailIdentity.CreateFromDiscriminatorValue); } }, + {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, + {"payloadTags", n => { PayloadTags = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + {"platform", n => { Platform = n.GetEnumValue(); } }, + {"predictedCompromiseRate", n => { PredictedCompromiseRate = n.GetDoubleValue(); } }, + {"simulationAttackType", n => { SimulationAttackType = n.GetEnumValue(); } }, + {"source", n => { Source = n.GetEnumValue(); } }, + {"status", n => { Status = n.GetEnumValue(); } }, + {"technique", n => { Technique = n.GetEnumValue(); } }, + {"theme", n => { Theme = n.GetEnumValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteEnumValue("brand", Brand); + writer.WriteEnumValue("complexity", Complexity); + writer.WriteObjectValue("createdBy", CreatedBy); + writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); + writer.WriteStringValue("description", Description); + writer.WriteObjectValue("detail", Detail); + writer.WriteStringValue("displayName", DisplayName); + writer.WriteEnumValue("industry", Industry); + writer.WriteBoolValue("isAutomated", IsAutomated); + writer.WriteBoolValue("isControversial", IsControversial); + writer.WriteBoolValue("isCurrentEvent", IsCurrentEvent); + writer.WriteStringValue("language", Language); + writer.WriteObjectValue("lastModifiedBy", LastModifiedBy); + writer.WriteDateTimeOffsetValue("lastModifiedDateTime", LastModifiedDateTime); + writer.WriteCollectionOfPrimitiveValues("payloadTags", PayloadTags); + writer.WriteEnumValue("platform", Platform); + writer.WriteDoubleValue("predictedCompromiseRate", PredictedCompromiseRate); + writer.WriteEnumValue("simulationAttackType", SimulationAttackType); + writer.WriteEnumValue("source", Source); + writer.WriteEnumValue("status", Status); + writer.WriteEnumValue("technique", Technique); + writer.WriteEnumValue("theme", Theme); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PayloadBrand.cs b/src/Microsoft.Graph/Generated/Models/PayloadBrand.cs new file mode 100644 index 00000000000..c2d5b2ba24d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PayloadBrand.cs @@ -0,0 +1,49 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + public enum PayloadBrand { + [EnumMember(Value = "unknown")] + Unknown, + [EnumMember(Value = "other")] + Other, + [EnumMember(Value = "americanExpress")] + AmericanExpress, + [EnumMember(Value = "capitalOne")] + CapitalOne, + [EnumMember(Value = "dhl")] + Dhl, + [EnumMember(Value = "docuSign")] + DocuSign, + [EnumMember(Value = "dropbox")] + Dropbox, + [EnumMember(Value = "facebook")] + Facebook, + [EnumMember(Value = "firstAmerican")] + FirstAmerican, + [EnumMember(Value = "microsoft")] + Microsoft, + [EnumMember(Value = "netflix")] + Netflix, + [EnumMember(Value = "scotiabank")] + Scotiabank, + [EnumMember(Value = "sendGrid")] + SendGrid, + [EnumMember(Value = "stewartTitle")] + StewartTitle, + [EnumMember(Value = "tesco")] + Tesco, + [EnumMember(Value = "wellsFargo")] + WellsFargo, + [EnumMember(Value = "syrinxCloud")] + SyrinxCloud, + [EnumMember(Value = "adobe")] + Adobe, + [EnumMember(Value = "teams")] + Teams, + [EnumMember(Value = "zoom")] + Zoom, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PayloadCoachmark.cs b/src/Microsoft.Graph/Generated/Models/PayloadCoachmark.cs new file mode 100644 index 00000000000..024435930d4 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PayloadCoachmark.cs @@ -0,0 +1,151 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class PayloadCoachmark : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The coachmarkLocation property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.CoachmarkLocation? CoachmarkLocation { + get { return BackingStore?.Get("coachmarkLocation"); } + set { BackingStore?.Set("coachmarkLocation", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.CoachmarkLocation CoachmarkLocation { + get { return BackingStore?.Get("coachmarkLocation"); } + set { BackingStore?.Set("coachmarkLocation", value); } + } +#endif + /// The description property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Description { + get { return BackingStore?.Get("description"); } + set { BackingStore?.Set("description", value); } + } +#nullable restore +#else + public string Description { + get { return BackingStore?.Get("description"); } + set { BackingStore?.Set("description", value); } + } +#endif + /// The indicator property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Indicator { + get { return BackingStore?.Get("indicator"); } + set { BackingStore?.Set("indicator", value); } + } +#nullable restore +#else + public string Indicator { + get { return BackingStore?.Get("indicator"); } + set { BackingStore?.Set("indicator", value); } + } +#endif + /// The isValid property + public bool? IsValid { + get { return BackingStore?.Get("isValid"); } + set { BackingStore?.Set("isValid", value); } + } + /// The language property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Language { + get { return BackingStore?.Get("language"); } + set { BackingStore?.Set("language", value); } + } +#nullable restore +#else + public string Language { + get { return BackingStore?.Get("language"); } + set { BackingStore?.Set("language", value); } + } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#nullable restore +#else + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#endif + /// The order property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Order { + get { return BackingStore?.Get("order"); } + set { BackingStore?.Set("order", value); } + } +#nullable restore +#else + public string Order { + get { return BackingStore?.Get("order"); } + set { BackingStore?.Set("order", value); } + } +#endif + /// + /// Instantiates a new payloadCoachmark and sets the default values. + /// + public PayloadCoachmark() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static PayloadCoachmark CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PayloadCoachmark(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"coachmarkLocation", n => { CoachmarkLocation = n.GetObjectValue(Microsoft.Graph.Models.CoachmarkLocation.CreateFromDiscriminatorValue); } }, + {"description", n => { Description = n.GetStringValue(); } }, + {"indicator", n => { Indicator = n.GetStringValue(); } }, + {"isValid", n => { IsValid = n.GetBoolValue(); } }, + {"language", n => { Language = n.GetStringValue(); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"order", n => { Order = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("coachmarkLocation", CoachmarkLocation); + writer.WriteStringValue("description", Description); + writer.WriteStringValue("indicator", Indicator); + writer.WriteBoolValue("isValid", IsValid); + writer.WriteStringValue("language", Language); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("order", Order); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PayloadCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PayloadCollectionResponse.cs new file mode 100644 index 00000000000..d729dbe2d8f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PayloadCollectionResponse.cs @@ -0,0 +1,49 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class PayloadCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PayloadCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PayloadCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Payload.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PayloadComplexity.cs b/src/Microsoft.Graph/Generated/Models/PayloadComplexity.cs new file mode 100644 index 00000000000..fa37a866a87 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PayloadComplexity.cs @@ -0,0 +1,17 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + public enum PayloadComplexity { + [EnumMember(Value = "unknown")] + Unknown, + [EnumMember(Value = "low")] + Low, + [EnumMember(Value = "medium")] + Medium, + [EnumMember(Value = "high")] + High, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PayloadDetail.cs b/src/Microsoft.Graph/Generated/Models/PayloadDetail.cs new file mode 100644 index 00000000000..b63cd4d893e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PayloadDetail.cs @@ -0,0 +1,116 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class PayloadDetail : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The coachmarks property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Coachmarks { + get { return BackingStore?.Get?>("coachmarks"); } + set { BackingStore?.Set("coachmarks", value); } + } +#nullable restore +#else + public List Coachmarks { + get { return BackingStore?.Get>("coachmarks"); } + set { BackingStore?.Set("coachmarks", value); } + } +#endif + /// The content property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Content { + get { return BackingStore?.Get("content"); } + set { BackingStore?.Set("content", value); } + } +#nullable restore +#else + public string Content { + get { return BackingStore?.Get("content"); } + set { BackingStore?.Set("content", value); } + } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#nullable restore +#else + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#endif + /// The phishingUrl property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PhishingUrl { + get { return BackingStore?.Get("phishingUrl"); } + set { BackingStore?.Set("phishingUrl", value); } + } +#nullable restore +#else + public string PhishingUrl { + get { return BackingStore?.Get("phishingUrl"); } + set { BackingStore?.Set("phishingUrl", value); } + } +#endif + /// + /// Instantiates a new payloadDetail and sets the default values. + /// + public PayloadDetail() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static PayloadDetail CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch { + "#microsoft.graph.emailPayloadDetail" => new EmailPayloadDetail(), + _ => new PayloadDetail(), + }; + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"coachmarks", n => { Coachmarks = n.GetCollectionOfObjectValues(PayloadCoachmark.CreateFromDiscriminatorValue)?.ToList(); } }, + {"content", n => { Content = n.GetStringValue(); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"phishingUrl", n => { PhishingUrl = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteCollectionOfObjectValues("coachmarks", Coachmarks); + writer.WriteStringValue("content", Content); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("phishingUrl", PhishingUrl); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PayloadIndustry.cs b/src/Microsoft.Graph/Generated/Models/PayloadIndustry.cs new file mode 100644 index 00000000000..7f859e0ba3d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PayloadIndustry.cs @@ -0,0 +1,51 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + public enum PayloadIndustry { + [EnumMember(Value = "unknown")] + Unknown, + [EnumMember(Value = "other")] + Other, + [EnumMember(Value = "banking")] + Banking, + [EnumMember(Value = "businessServices")] + BusinessServices, + [EnumMember(Value = "consumerServices")] + ConsumerServices, + [EnumMember(Value = "education")] + Education, + [EnumMember(Value = "energy")] + Energy, + [EnumMember(Value = "construction")] + Construction, + [EnumMember(Value = "consulting")] + Consulting, + [EnumMember(Value = "financialServices")] + FinancialServices, + [EnumMember(Value = "government")] + Government, + [EnumMember(Value = "hospitality")] + Hospitality, + [EnumMember(Value = "insurance")] + Insurance, + [EnumMember(Value = "legal")] + Legal, + [EnumMember(Value = "courierServices")] + CourierServices, + [EnumMember(Value = "IT")] + IT, + [EnumMember(Value = "healthcare")] + Healthcare, + [EnumMember(Value = "manufacturing")] + Manufacturing, + [EnumMember(Value = "retail")] + Retail, + [EnumMember(Value = "telecom")] + Telecom, + [EnumMember(Value = "realEstate")] + RealEstate, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PayloadTheme.cs b/src/Microsoft.Graph/Generated/Models/PayloadTheme.cs new file mode 100644 index 00000000000..adb72bcddbe --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PayloadTheme.cs @@ -0,0 +1,71 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + public enum PayloadTheme { + [EnumMember(Value = "unknown")] + Unknown, + [EnumMember(Value = "other")] + Other, + [EnumMember(Value = "accountActivation")] + AccountActivation, + [EnumMember(Value = "accountVerification")] + AccountVerification, + [EnumMember(Value = "billing")] + Billing, + [EnumMember(Value = "cleanUpMail")] + CleanUpMail, + [EnumMember(Value = "controversial")] + Controversial, + [EnumMember(Value = "documentReceived")] + DocumentReceived, + [EnumMember(Value = "expense")] + Expense, + [EnumMember(Value = "fax")] + Fax, + [EnumMember(Value = "financeReport")] + FinanceReport, + [EnumMember(Value = "incomingMessages")] + IncomingMessages, + [EnumMember(Value = "invoice")] + Invoice, + [EnumMember(Value = "itemReceived")] + ItemReceived, + [EnumMember(Value = "loginAlert")] + LoginAlert, + [EnumMember(Value = "mailReceived")] + MailReceived, + [EnumMember(Value = "password")] + Password, + [EnumMember(Value = "payment")] + Payment, + [EnumMember(Value = "payroll")] + Payroll, + [EnumMember(Value = "personalizedOffer")] + PersonalizedOffer, + [EnumMember(Value = "quarantine")] + Quarantine, + [EnumMember(Value = "remoteWork")] + RemoteWork, + [EnumMember(Value = "reviewMessage")] + ReviewMessage, + [EnumMember(Value = "securityUpdate")] + SecurityUpdate, + [EnumMember(Value = "serviceSuspended")] + ServiceSuspended, + [EnumMember(Value = "signatureRequired")] + SignatureRequired, + [EnumMember(Value = "upgradeMailboxStorage")] + UpgradeMailboxStorage, + [EnumMember(Value = "verifyMailbox")] + VerifyMailbox, + [EnumMember(Value = "voicemail")] + Voicemail, + [EnumMember(Value = "advertisement")] + Advertisement, + [EnumMember(Value = "employeeEngagement")] + EmployeeEngagement, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PermissionGrantConditionSet.cs b/src/Microsoft.Graph/Generated/Models/PermissionGrantConditionSet.cs index 841842c334e..73d28004f32 100644 --- a/src/Microsoft.Graph/Generated/Models/PermissionGrantConditionSet.cs +++ b/src/Microsoft.Graph/Generated/Models/PermissionGrantConditionSet.cs @@ -34,7 +34,7 @@ public List ClientApplicationPublisherIds { set { BackingStore?.Set("clientApplicationPublisherIds", value); } } #endif - /// Set to true to only match on client applications with a verified publisher. Set to false to match on any client app, even if it does not have a verified publisher. Default is false. + /// Set to true to only match on client applications with a verified publisher. Set to false to match on any client app, even if it doesn't have a verified publisher. Default is false. public bool? ClientApplicationsFromVerifiedPublisherOnly { get { return BackingStore?.Get("clientApplicationsFromVerifiedPublisherOnly"); } set { BackingStore?.Set("clientApplicationsFromVerifiedPublisherOnly", value); } @@ -53,7 +53,7 @@ public List ClientApplicationTenantIds { set { BackingStore?.Set("clientApplicationTenantIds", value); } } #endif - /// The permission classification for the permission being granted, or all to match with any permission classification (including permissions which are not classified). Default is all. + /// The permission classification for the permission being granted, or all to match with any permission classification (including permissions that aren't classified). Default is all. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? PermissionClassification { @@ -81,12 +81,12 @@ public List Permissions { set { BackingStore?.Set("permissions", value); } } #endif - /// The permission type of the permission being granted. Possible values: application for application permissions (e.g. app roles), or delegated for delegated permissions. The value delegatedUserConsentable indicates delegated permissions which have not been configured by the API publisher to require admin consent—this value may be used in built-in permission grant policies, but cannot be used in custom permission grant policies. Required. + /// The permission type of the permission being granted. Possible values: application for application permissions (for example app roles), or delegated for delegated permissions. The value delegatedUserConsentable indicates delegated permissions that haven't been configured by the API publisher to require admin consent—this value may be used in built-in permission grant policies, but can't be used in custom permission grant policies. Required. public Microsoft.Graph.Models.PermissionType? PermissionType { get { return BackingStore?.Get("permissionType"); } set { BackingStore?.Set("permissionType", value); } } - /// The appId of the resource application (e.g. the API) for which a permission is being granted, or any to match with any resource application or API. Default is any. + /// The appId of the resource application (for example the API) for which a permission is being granted, or any to match with any resource application or API. Default is any. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? ResourceApplication { @@ -115,11 +115,11 @@ public string ResourceApplication { return new Dictionary>(base.GetFieldDeserializers()) { {"clientApplicationIds", n => { ClientApplicationIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"clientApplicationPublisherIds", n => { ClientApplicationPublisherIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"clientApplicationsFromVerifiedPublisherOnly", n => { ClientApplicationsFromVerifiedPublisherOnly = n.GetBoolValue(); } }, {"clientApplicationTenantIds", n => { ClientApplicationTenantIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + {"clientApplicationsFromVerifiedPublisherOnly", n => { ClientApplicationsFromVerifiedPublisherOnly = n.GetBoolValue(); } }, {"permissionClassification", n => { PermissionClassification = n.GetStringValue(); } }, - {"permissions", n => { Permissions = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"permissionType", n => { PermissionType = n.GetEnumValue(); } }, + {"permissions", n => { Permissions = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"resourceApplication", n => { ResourceApplication = n.GetStringValue(); } }, }; } diff --git a/src/Microsoft.Graph/Generated/Models/Pkcs12CertificateInformation.cs b/src/Microsoft.Graph/Generated/Models/Pkcs12CertificateInformation.cs index 13f5243490b..a8fdfb63c64 100644 --- a/src/Microsoft.Graph/Generated/Models/Pkcs12CertificateInformation.cs +++ b/src/Microsoft.Graph/Generated/Models/Pkcs12CertificateInformation.cs @@ -14,7 +14,7 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// Represents whether the certificate is the active certificate to be used for calling the API connector. The active certificate is the most recently uploaded certificate which is not yet expired but whose notBefore time is in the past. + /// Represents whether the certificate is the active certificate to be used for calling the API connector. The active certificate is the most recently uploaded certificate that isn't yet expired but whose notBefore time is in the past. public bool? IsActive { get { return BackingStore?.Get("isActive"); } set { BackingStore?.Set("isActive", value); } diff --git a/src/Microsoft.Graph/Generated/Models/PlannerPlan.cs b/src/Microsoft.Graph/Generated/Models/PlannerPlan.cs index 49c924db7ea..80447ada33b 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerPlan.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerPlan.cs @@ -20,7 +20,7 @@ public List Buckets { set { BackingStore?.Set("buckets", value); } } #endif - /// Identifies the container of the plan. Specify only the url, the containerId and type, or all properties. After it is set, this property can’t be updated. Required. + /// Identifies the container of the plan. Specify only the url, the containerId and type, or all properties. After it's set, this property can’t be updated. Required. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public PlannerPlanContainer? Container { @@ -53,7 +53,7 @@ public DateTimeOffset? CreatedDateTime { get { return BackingStore?.Get("createdDateTime"); } set { BackingStore?.Set("createdDateTime", value); } } - /// Read-only. Nullable. Additional details about the plan. + /// Read-only. Nullable. Extra details about the plan. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public PlannerPlanDetails? Details { diff --git a/src/Microsoft.Graph/Generated/Models/PositiveReinforcementNotification.cs b/src/Microsoft.Graph/Generated/Models/PositiveReinforcementNotification.cs new file mode 100644 index 00000000000..44e2a04c992 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PositiveReinforcementNotification.cs @@ -0,0 +1,46 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class PositiveReinforcementNotification : BaseEndUserNotification, IParsable { + /// The deliveryPreference property + public NotificationDeliveryPreference? DeliveryPreference { + get { return BackingStore?.Get("deliveryPreference"); } + set { BackingStore?.Set("deliveryPreference", value); } + } + /// + /// Instantiates a new positiveReinforcementNotification and sets the default values. + /// + public PositiveReinforcementNotification() : base() { + OdataType = "#microsoft.graph.positiveReinforcementNotification"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PositiveReinforcementNotification CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PositiveReinforcementNotification(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"deliveryPreference", n => { DeliveryPreference = n.GetEnumValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteEnumValue("deliveryPreference", DeliveryPreference); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Presence.cs b/src/Microsoft.Graph/Generated/Models/Presence.cs index a9162356cff..bf05a289b5e 100644 --- a/src/Microsoft.Graph/Generated/Models/Presence.cs +++ b/src/Microsoft.Graph/Generated/Models/Presence.cs @@ -34,7 +34,7 @@ public string Availability { set { BackingStore?.Set("availability", value); } } #endif - /// The statusMessage property + /// The presence status message of a user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public PresenceStatusMessage? StatusMessage { diff --git a/src/Microsoft.Graph/Generated/Models/PresenceStatusMessage.cs b/src/Microsoft.Graph/Generated/Models/PresenceStatusMessage.cs index be383932bce..d7812536a58 100644 --- a/src/Microsoft.Graph/Generated/Models/PresenceStatusMessage.cs +++ b/src/Microsoft.Graph/Generated/Models/PresenceStatusMessage.cs @@ -14,7 +14,7 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The expiryDateTime property + /// Time in which the status message expires.If not provided, the status message does not expire.expiryDateTime.dateTime should not include time zone.expiryDateTime is not available when you request the presence of another user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public DateTimeTimeZone? ExpiryDateTime { @@ -28,7 +28,7 @@ public DateTimeTimeZone ExpiryDateTime { set { BackingStore?.Set("expiryDateTime", value); } } #endif - /// The message property + /// Status message item. The only supported format currently is message.contentType = 'text'. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public ItemBody? Message { @@ -56,7 +56,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// The publishedDateTime property + /// Time in which the status message was published.Read-only.publishedDateTime is not available when you request the presence of another user. public DateTimeOffset? PublishedDateTime { get { return BackingStore?.Get("publishedDateTime"); } set { BackingStore?.Set("publishedDateTime", value); } diff --git a/src/Microsoft.Graph/Generated/Models/PrinterBase.cs b/src/Microsoft.Graph/Generated/Models/PrinterBase.cs index a1086ca88e5..ef0a81712cb 100644 --- a/src/Microsoft.Graph/Generated/Models/PrinterBase.cs +++ b/src/Microsoft.Graph/Generated/Models/PrinterBase.cs @@ -48,7 +48,7 @@ public string DisplayName { set { BackingStore?.Set("displayName", value); } } #endif - /// Whether the printer/printerShare is currently accepting new print jobs. + /// Specifies whether the printer/printerShare is currently accepting new print jobs. public bool? IsAcceptingJobs { get { return BackingStore?.Get("isAcceptingJobs"); } set { BackingStore?.Set("isAcceptingJobs", value); } diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroup.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroup.cs new file mode 100644 index 00000000000..a4e740e0dd9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroup.cs @@ -0,0 +1,145 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class PrivilegedAccessGroup : Entity, IParsable { + /// The assignmentApprovals property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? AssignmentApprovals { + get { return BackingStore?.Get?>("assignmentApprovals"); } + set { BackingStore?.Set("assignmentApprovals", value); } + } +#nullable restore +#else + public List AssignmentApprovals { + get { return BackingStore?.Get>("assignmentApprovals"); } + set { BackingStore?.Set("assignmentApprovals", value); } + } +#endif + /// The assignmentScheduleInstances property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? AssignmentScheduleInstances { + get { return BackingStore?.Get?>("assignmentScheduleInstances"); } + set { BackingStore?.Set("assignmentScheduleInstances", value); } + } +#nullable restore +#else + public List AssignmentScheduleInstances { + get { return BackingStore?.Get>("assignmentScheduleInstances"); } + set { BackingStore?.Set("assignmentScheduleInstances", value); } + } +#endif + /// The assignmentScheduleRequests property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? AssignmentScheduleRequests { + get { return BackingStore?.Get?>("assignmentScheduleRequests"); } + set { BackingStore?.Set("assignmentScheduleRequests", value); } + } +#nullable restore +#else + public List AssignmentScheduleRequests { + get { return BackingStore?.Get>("assignmentScheduleRequests"); } + set { BackingStore?.Set("assignmentScheduleRequests", value); } + } +#endif + /// The assignmentSchedules property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? AssignmentSchedules { + get { return BackingStore?.Get?>("assignmentSchedules"); } + set { BackingStore?.Set("assignmentSchedules", value); } + } +#nullable restore +#else + public List AssignmentSchedules { + get { return BackingStore?.Get>("assignmentSchedules"); } + set { BackingStore?.Set("assignmentSchedules", value); } + } +#endif + /// The eligibilityScheduleInstances property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? EligibilityScheduleInstances { + get { return BackingStore?.Get?>("eligibilityScheduleInstances"); } + set { BackingStore?.Set("eligibilityScheduleInstances", value); } + } +#nullable restore +#else + public List EligibilityScheduleInstances { + get { return BackingStore?.Get>("eligibilityScheduleInstances"); } + set { BackingStore?.Set("eligibilityScheduleInstances", value); } + } +#endif + /// The eligibilityScheduleRequests property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? EligibilityScheduleRequests { + get { return BackingStore?.Get?>("eligibilityScheduleRequests"); } + set { BackingStore?.Set("eligibilityScheduleRequests", value); } + } +#nullable restore +#else + public List EligibilityScheduleRequests { + get { return BackingStore?.Get>("eligibilityScheduleRequests"); } + set { BackingStore?.Set("eligibilityScheduleRequests", value); } + } +#endif + /// The eligibilitySchedules property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? EligibilitySchedules { + get { return BackingStore?.Get?>("eligibilitySchedules"); } + set { BackingStore?.Set("eligibilitySchedules", value); } + } +#nullable restore +#else + public List EligibilitySchedules { + get { return BackingStore?.Get>("eligibilitySchedules"); } + set { BackingStore?.Set("eligibilitySchedules", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PrivilegedAccessGroup CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PrivilegedAccessGroup(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"assignmentApprovals", n => { AssignmentApprovals = n.GetCollectionOfObjectValues(Approval.CreateFromDiscriminatorValue)?.ToList(); } }, + {"assignmentScheduleInstances", n => { AssignmentScheduleInstances = n.GetCollectionOfObjectValues(PrivilegedAccessGroupAssignmentScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, + {"assignmentScheduleRequests", n => { AssignmentScheduleRequests = n.GetCollectionOfObjectValues(PrivilegedAccessGroupAssignmentScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, + {"assignmentSchedules", n => { AssignmentSchedules = n.GetCollectionOfObjectValues(PrivilegedAccessGroupAssignmentSchedule.CreateFromDiscriminatorValue)?.ToList(); } }, + {"eligibilityScheduleInstances", n => { EligibilityScheduleInstances = n.GetCollectionOfObjectValues(PrivilegedAccessGroupEligibilityScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, + {"eligibilityScheduleRequests", n => { EligibilityScheduleRequests = n.GetCollectionOfObjectValues(PrivilegedAccessGroupEligibilityScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, + {"eligibilitySchedules", n => { EligibilitySchedules = n.GetCollectionOfObjectValues(PrivilegedAccessGroupEligibilitySchedule.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("assignmentApprovals", AssignmentApprovals); + writer.WriteCollectionOfObjectValues("assignmentScheduleInstances", AssignmentScheduleInstances); + writer.WriteCollectionOfObjectValues("assignmentScheduleRequests", AssignmentScheduleRequests); + writer.WriteCollectionOfObjectValues("assignmentSchedules", AssignmentSchedules); + writer.WriteCollectionOfObjectValues("eligibilityScheduleInstances", EligibilityScheduleInstances); + writer.WriteCollectionOfObjectValues("eligibilityScheduleRequests", EligibilityScheduleRequests); + writer.WriteCollectionOfObjectValues("eligibilitySchedules", EligibilitySchedules); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentSchedule.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentSchedule.cs new file mode 100644 index 00000000000..d2f11e65999 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentSchedule.cs @@ -0,0 +1,140 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class PrivilegedAccessGroupAssignmentSchedule : PrivilegedAccessSchedule, IParsable { + /// The accessId property + public PrivilegedAccessGroupRelationships? AccessId { + get { return BackingStore?.Get("accessId"); } + set { BackingStore?.Set("accessId", value); } + } + /// The activatedUsing property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public PrivilegedAccessGroupEligibilitySchedule? ActivatedUsing { + get { return BackingStore?.Get("activatedUsing"); } + set { BackingStore?.Set("activatedUsing", value); } + } +#nullable restore +#else + public PrivilegedAccessGroupEligibilitySchedule ActivatedUsing { + get { return BackingStore?.Get("activatedUsing"); } + set { BackingStore?.Set("activatedUsing", value); } + } +#endif + /// The assignmentType property + public PrivilegedAccessGroupAssignmentType? AssignmentType { + get { return BackingStore?.Get("assignmentType"); } + set { BackingStore?.Set("assignmentType", value); } + } + /// The group property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.Group? Group { + get { return BackingStore?.Get("group"); } + set { BackingStore?.Set("group", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.Group Group { + get { return BackingStore?.Get("group"); } + set { BackingStore?.Set("group", value); } + } +#endif + /// The groupId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? GroupId { + get { return BackingStore?.Get("groupId"); } + set { BackingStore?.Set("groupId", value); } + } +#nullable restore +#else + public string GroupId { + get { return BackingStore?.Get("groupId"); } + set { BackingStore?.Set("groupId", value); } + } +#endif + /// The memberType property + public PrivilegedAccessGroupMemberType? MemberType { + get { return BackingStore?.Get("memberType"); } + set { BackingStore?.Set("memberType", value); } + } + /// The principal property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public DirectoryObject? Principal { + get { return BackingStore?.Get("principal"); } + set { BackingStore?.Set("principal", value); } + } +#nullable restore +#else + public DirectoryObject Principal { + get { return BackingStore?.Get("principal"); } + set { BackingStore?.Set("principal", value); } + } +#endif + /// The principalId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PrincipalId { + get { return BackingStore?.Get("principalId"); } + set { BackingStore?.Set("principalId", value); } + } +#nullable restore +#else + public string PrincipalId { + get { return BackingStore?.Get("principalId"); } + set { BackingStore?.Set("principalId", value); } + } +#endif + /// + /// Instantiates a new privilegedAccessGroupAssignmentSchedule and sets the default values. + /// + public PrivilegedAccessGroupAssignmentSchedule() : base() { + OdataType = "#microsoft.graph.privilegedAccessGroupAssignmentSchedule"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PrivilegedAccessGroupAssignmentSchedule CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PrivilegedAccessGroupAssignmentSchedule(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"accessId", n => { AccessId = n.GetEnumValue(); } }, + {"activatedUsing", n => { ActivatedUsing = n.GetObjectValue(PrivilegedAccessGroupEligibilitySchedule.CreateFromDiscriminatorValue); } }, + {"assignmentType", n => { AssignmentType = n.GetEnumValue(); } }, + {"group", n => { Group = n.GetObjectValue(Microsoft.Graph.Models.Group.CreateFromDiscriminatorValue); } }, + {"groupId", n => { GroupId = n.GetStringValue(); } }, + {"memberType", n => { MemberType = n.GetEnumValue(); } }, + {"principal", n => { Principal = n.GetObjectValue(DirectoryObject.CreateFromDiscriminatorValue); } }, + {"principalId", n => { PrincipalId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteEnumValue("accessId", AccessId); + writer.WriteObjectValue("activatedUsing", ActivatedUsing); + writer.WriteEnumValue("assignmentType", AssignmentType); + writer.WriteObjectValue("group", Group); + writer.WriteStringValue("groupId", GroupId); + writer.WriteEnumValue("memberType", MemberType); + writer.WriteObjectValue("principal", Principal); + writer.WriteStringValue("principalId", PrincipalId); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleCollectionResponse.cs new file mode 100644 index 00000000000..5f8e3efe0ec --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleCollectionResponse.cs @@ -0,0 +1,49 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class PrivilegedAccessGroupAssignmentScheduleCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PrivilegedAccessGroupAssignmentScheduleCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PrivilegedAccessGroupAssignmentScheduleCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupAssignmentSchedule.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleInstance.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleInstance.cs new file mode 100644 index 00000000000..8701a44c861 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleInstance.cs @@ -0,0 +1,156 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class PrivilegedAccessGroupAssignmentScheduleInstance : PrivilegedAccessScheduleInstance, IParsable { + /// The accessId property + public PrivilegedAccessGroupRelationships? AccessId { + get { return BackingStore?.Get("accessId"); } + set { BackingStore?.Set("accessId", value); } + } + /// The activatedUsing property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public PrivilegedAccessGroupEligibilityScheduleInstance? ActivatedUsing { + get { return BackingStore?.Get("activatedUsing"); } + set { BackingStore?.Set("activatedUsing", value); } + } +#nullable restore +#else + public PrivilegedAccessGroupEligibilityScheduleInstance ActivatedUsing { + get { return BackingStore?.Get("activatedUsing"); } + set { BackingStore?.Set("activatedUsing", value); } + } +#endif + /// The assignmentScheduleId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? AssignmentScheduleId { + get { return BackingStore?.Get("assignmentScheduleId"); } + set { BackingStore?.Set("assignmentScheduleId", value); } + } +#nullable restore +#else + public string AssignmentScheduleId { + get { return BackingStore?.Get("assignmentScheduleId"); } + set { BackingStore?.Set("assignmentScheduleId", value); } + } +#endif + /// The assignmentType property + public PrivilegedAccessGroupAssignmentType? AssignmentType { + get { return BackingStore?.Get("assignmentType"); } + set { BackingStore?.Set("assignmentType", value); } + } + /// The group property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.Group? Group { + get { return BackingStore?.Get("group"); } + set { BackingStore?.Set("group", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.Group Group { + get { return BackingStore?.Get("group"); } + set { BackingStore?.Set("group", value); } + } +#endif + /// The groupId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? GroupId { + get { return BackingStore?.Get("groupId"); } + set { BackingStore?.Set("groupId", value); } + } +#nullable restore +#else + public string GroupId { + get { return BackingStore?.Get("groupId"); } + set { BackingStore?.Set("groupId", value); } + } +#endif + /// The memberType property + public PrivilegedAccessGroupMemberType? MemberType { + get { return BackingStore?.Get("memberType"); } + set { BackingStore?.Set("memberType", value); } + } + /// The principal property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public DirectoryObject? Principal { + get { return BackingStore?.Get("principal"); } + set { BackingStore?.Set("principal", value); } + } +#nullable restore +#else + public DirectoryObject Principal { + get { return BackingStore?.Get("principal"); } + set { BackingStore?.Set("principal", value); } + } +#endif + /// The principalId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PrincipalId { + get { return BackingStore?.Get("principalId"); } + set { BackingStore?.Set("principalId", value); } + } +#nullable restore +#else + public string PrincipalId { + get { return BackingStore?.Get("principalId"); } + set { BackingStore?.Set("principalId", value); } + } +#endif + /// + /// Instantiates a new privilegedAccessGroupAssignmentScheduleInstance and sets the default values. + /// + public PrivilegedAccessGroupAssignmentScheduleInstance() : base() { + OdataType = "#microsoft.graph.privilegedAccessGroupAssignmentScheduleInstance"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PrivilegedAccessGroupAssignmentScheduleInstance CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PrivilegedAccessGroupAssignmentScheduleInstance(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"accessId", n => { AccessId = n.GetEnumValue(); } }, + {"activatedUsing", n => { ActivatedUsing = n.GetObjectValue(PrivilegedAccessGroupEligibilityScheduleInstance.CreateFromDiscriminatorValue); } }, + {"assignmentScheduleId", n => { AssignmentScheduleId = n.GetStringValue(); } }, + {"assignmentType", n => { AssignmentType = n.GetEnumValue(); } }, + {"group", n => { Group = n.GetObjectValue(Microsoft.Graph.Models.Group.CreateFromDiscriminatorValue); } }, + {"groupId", n => { GroupId = n.GetStringValue(); } }, + {"memberType", n => { MemberType = n.GetEnumValue(); } }, + {"principal", n => { Principal = n.GetObjectValue(DirectoryObject.CreateFromDiscriminatorValue); } }, + {"principalId", n => { PrincipalId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteEnumValue("accessId", AccessId); + writer.WriteObjectValue("activatedUsing", ActivatedUsing); + writer.WriteStringValue("assignmentScheduleId", AssignmentScheduleId); + writer.WriteEnumValue("assignmentType", AssignmentType); + writer.WriteObjectValue("group", Group); + writer.WriteStringValue("groupId", GroupId); + writer.WriteEnumValue("memberType", MemberType); + writer.WriteObjectValue("principal", Principal); + writer.WriteStringValue("principalId", PrincipalId); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleInstanceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleInstanceCollectionResponse.cs new file mode 100644 index 00000000000..65e94e8e3bb --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleInstanceCollectionResponse.cs @@ -0,0 +1,49 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class PrivilegedAccessGroupAssignmentScheduleInstanceCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PrivilegedAccessGroupAssignmentScheduleInstanceCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PrivilegedAccessGroupAssignmentScheduleInstanceCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupAssignmentScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleRequest.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleRequest.cs new file mode 100644 index 00000000000..bc748d4329a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleRequest.cs @@ -0,0 +1,158 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class PrivilegedAccessGroupAssignmentScheduleRequest : PrivilegedAccessScheduleRequest, IParsable { + /// The accessId property + public PrivilegedAccessGroupRelationships? AccessId { + get { return BackingStore?.Get("accessId"); } + set { BackingStore?.Set("accessId", value); } + } + /// The activatedUsing property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public PrivilegedAccessGroupEligibilitySchedule? ActivatedUsing { + get { return BackingStore?.Get("activatedUsing"); } + set { BackingStore?.Set("activatedUsing", value); } + } +#nullable restore +#else + public PrivilegedAccessGroupEligibilitySchedule ActivatedUsing { + get { return BackingStore?.Get("activatedUsing"); } + set { BackingStore?.Set("activatedUsing", value); } + } +#endif + /// The group property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.Group? Group { + get { return BackingStore?.Get("group"); } + set { BackingStore?.Set("group", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.Group Group { + get { return BackingStore?.Get("group"); } + set { BackingStore?.Set("group", value); } + } +#endif + /// The groupId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? GroupId { + get { return BackingStore?.Get("groupId"); } + set { BackingStore?.Set("groupId", value); } + } +#nullable restore +#else + public string GroupId { + get { return BackingStore?.Get("groupId"); } + set { BackingStore?.Set("groupId", value); } + } +#endif + /// The principal property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public DirectoryObject? Principal { + get { return BackingStore?.Get("principal"); } + set { BackingStore?.Set("principal", value); } + } +#nullable restore +#else + public DirectoryObject Principal { + get { return BackingStore?.Get("principal"); } + set { BackingStore?.Set("principal", value); } + } +#endif + /// The principalId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PrincipalId { + get { return BackingStore?.Get("principalId"); } + set { BackingStore?.Set("principalId", value); } + } +#nullable restore +#else + public string PrincipalId { + get { return BackingStore?.Get("principalId"); } + set { BackingStore?.Set("principalId", value); } + } +#endif + /// The targetSchedule property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public PrivilegedAccessGroupEligibilitySchedule? TargetSchedule { + get { return BackingStore?.Get("targetSchedule"); } + set { BackingStore?.Set("targetSchedule", value); } + } +#nullable restore +#else + public PrivilegedAccessGroupEligibilitySchedule TargetSchedule { + get { return BackingStore?.Get("targetSchedule"); } + set { BackingStore?.Set("targetSchedule", value); } + } +#endif + /// The targetScheduleId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TargetScheduleId { + get { return BackingStore?.Get("targetScheduleId"); } + set { BackingStore?.Set("targetScheduleId", value); } + } +#nullable restore +#else + public string TargetScheduleId { + get { return BackingStore?.Get("targetScheduleId"); } + set { BackingStore?.Set("targetScheduleId", value); } + } +#endif + /// + /// Instantiates a new privilegedAccessGroupAssignmentScheduleRequest and sets the default values. + /// + public PrivilegedAccessGroupAssignmentScheduleRequest() : base() { + OdataType = "#microsoft.graph.privilegedAccessGroupAssignmentScheduleRequest"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PrivilegedAccessGroupAssignmentScheduleRequest CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PrivilegedAccessGroupAssignmentScheduleRequest(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"accessId", n => { AccessId = n.GetEnumValue(); } }, + {"activatedUsing", n => { ActivatedUsing = n.GetObjectValue(PrivilegedAccessGroupEligibilitySchedule.CreateFromDiscriminatorValue); } }, + {"group", n => { Group = n.GetObjectValue(Microsoft.Graph.Models.Group.CreateFromDiscriminatorValue); } }, + {"groupId", n => { GroupId = n.GetStringValue(); } }, + {"principal", n => { Principal = n.GetObjectValue(DirectoryObject.CreateFromDiscriminatorValue); } }, + {"principalId", n => { PrincipalId = n.GetStringValue(); } }, + {"targetSchedule", n => { TargetSchedule = n.GetObjectValue(PrivilegedAccessGroupEligibilitySchedule.CreateFromDiscriminatorValue); } }, + {"targetScheduleId", n => { TargetScheduleId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteEnumValue("accessId", AccessId); + writer.WriteObjectValue("activatedUsing", ActivatedUsing); + writer.WriteObjectValue("group", Group); + writer.WriteStringValue("groupId", GroupId); + writer.WriteObjectValue("principal", Principal); + writer.WriteStringValue("principalId", PrincipalId); + writer.WriteObjectValue("targetSchedule", TargetSchedule); + writer.WriteStringValue("targetScheduleId", TargetScheduleId); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleRequestCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleRequestCollectionResponse.cs new file mode 100644 index 00000000000..0c2ebbf086d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleRequestCollectionResponse.cs @@ -0,0 +1,49 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class PrivilegedAccessGroupAssignmentScheduleRequestCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PrivilegedAccessGroupAssignmentScheduleRequestCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PrivilegedAccessGroupAssignmentScheduleRequestCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupAssignmentScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentType.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentType.cs new file mode 100644 index 00000000000..0dddc7c21a2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentType.cs @@ -0,0 +1,13 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + public enum PrivilegedAccessGroupAssignmentType { + [EnumMember(Value = "assigned")] + Assigned, + [EnumMember(Value = "activated")] + Activated, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilitySchedule.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilitySchedule.cs new file mode 100644 index 00000000000..3e84d614a0d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilitySchedule.cs @@ -0,0 +1,117 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class PrivilegedAccessGroupEligibilitySchedule : PrivilegedAccessSchedule, IParsable { + /// The accessId property + public PrivilegedAccessGroupRelationships? AccessId { + get { return BackingStore?.Get("accessId"); } + set { BackingStore?.Set("accessId", value); } + } + /// The group property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.Group? Group { + get { return BackingStore?.Get("group"); } + set { BackingStore?.Set("group", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.Group Group { + get { return BackingStore?.Get("group"); } + set { BackingStore?.Set("group", value); } + } +#endif + /// The groupId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? GroupId { + get { return BackingStore?.Get("groupId"); } + set { BackingStore?.Set("groupId", value); } + } +#nullable restore +#else + public string GroupId { + get { return BackingStore?.Get("groupId"); } + set { BackingStore?.Set("groupId", value); } + } +#endif + /// The memberType property + public PrivilegedAccessGroupMemberType? MemberType { + get { return BackingStore?.Get("memberType"); } + set { BackingStore?.Set("memberType", value); } + } + /// The principal property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public DirectoryObject? Principal { + get { return BackingStore?.Get("principal"); } + set { BackingStore?.Set("principal", value); } + } +#nullable restore +#else + public DirectoryObject Principal { + get { return BackingStore?.Get("principal"); } + set { BackingStore?.Set("principal", value); } + } +#endif + /// The principalId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PrincipalId { + get { return BackingStore?.Get("principalId"); } + set { BackingStore?.Set("principalId", value); } + } +#nullable restore +#else + public string PrincipalId { + get { return BackingStore?.Get("principalId"); } + set { BackingStore?.Set("principalId", value); } + } +#endif + /// + /// Instantiates a new privilegedAccessGroupEligibilitySchedule and sets the default values. + /// + public PrivilegedAccessGroupEligibilitySchedule() : base() { + OdataType = "#microsoft.graph.privilegedAccessGroupEligibilitySchedule"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PrivilegedAccessGroupEligibilitySchedule CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PrivilegedAccessGroupEligibilitySchedule(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"accessId", n => { AccessId = n.GetEnumValue(); } }, + {"group", n => { Group = n.GetObjectValue(Microsoft.Graph.Models.Group.CreateFromDiscriminatorValue); } }, + {"groupId", n => { GroupId = n.GetStringValue(); } }, + {"memberType", n => { MemberType = n.GetEnumValue(); } }, + {"principal", n => { Principal = n.GetObjectValue(DirectoryObject.CreateFromDiscriminatorValue); } }, + {"principalId", n => { PrincipalId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteEnumValue("accessId", AccessId); + writer.WriteObjectValue("group", Group); + writer.WriteStringValue("groupId", GroupId); + writer.WriteEnumValue("memberType", MemberType); + writer.WriteObjectValue("principal", Principal); + writer.WriteStringValue("principalId", PrincipalId); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleCollectionResponse.cs new file mode 100644 index 00000000000..1ff345567fa --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleCollectionResponse.cs @@ -0,0 +1,49 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class PrivilegedAccessGroupEligibilityScheduleCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PrivilegedAccessGroupEligibilityScheduleCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PrivilegedAccessGroupEligibilityScheduleCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupEligibilitySchedule.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleInstance.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleInstance.cs new file mode 100644 index 00000000000..1d85365e71f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleInstance.cs @@ -0,0 +1,133 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class PrivilegedAccessGroupEligibilityScheduleInstance : PrivilegedAccessScheduleInstance, IParsable { + /// The accessId property + public PrivilegedAccessGroupRelationships? AccessId { + get { return BackingStore?.Get("accessId"); } + set { BackingStore?.Set("accessId", value); } + } + /// The eligibilityScheduleId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? EligibilityScheduleId { + get { return BackingStore?.Get("eligibilityScheduleId"); } + set { BackingStore?.Set("eligibilityScheduleId", value); } + } +#nullable restore +#else + public string EligibilityScheduleId { + get { return BackingStore?.Get("eligibilityScheduleId"); } + set { BackingStore?.Set("eligibilityScheduleId", value); } + } +#endif + /// The group property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.Group? Group { + get { return BackingStore?.Get("group"); } + set { BackingStore?.Set("group", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.Group Group { + get { return BackingStore?.Get("group"); } + set { BackingStore?.Set("group", value); } + } +#endif + /// The groupId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? GroupId { + get { return BackingStore?.Get("groupId"); } + set { BackingStore?.Set("groupId", value); } + } +#nullable restore +#else + public string GroupId { + get { return BackingStore?.Get("groupId"); } + set { BackingStore?.Set("groupId", value); } + } +#endif + /// The memberType property + public PrivilegedAccessGroupMemberType? MemberType { + get { return BackingStore?.Get("memberType"); } + set { BackingStore?.Set("memberType", value); } + } + /// The principal property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public DirectoryObject? Principal { + get { return BackingStore?.Get("principal"); } + set { BackingStore?.Set("principal", value); } + } +#nullable restore +#else + public DirectoryObject Principal { + get { return BackingStore?.Get("principal"); } + set { BackingStore?.Set("principal", value); } + } +#endif + /// The principalId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PrincipalId { + get { return BackingStore?.Get("principalId"); } + set { BackingStore?.Set("principalId", value); } + } +#nullable restore +#else + public string PrincipalId { + get { return BackingStore?.Get("principalId"); } + set { BackingStore?.Set("principalId", value); } + } +#endif + /// + /// Instantiates a new privilegedAccessGroupEligibilityScheduleInstance and sets the default values. + /// + public PrivilegedAccessGroupEligibilityScheduleInstance() : base() { + OdataType = "#microsoft.graph.privilegedAccessGroupEligibilityScheduleInstance"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PrivilegedAccessGroupEligibilityScheduleInstance CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PrivilegedAccessGroupEligibilityScheduleInstance(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"accessId", n => { AccessId = n.GetEnumValue(); } }, + {"eligibilityScheduleId", n => { EligibilityScheduleId = n.GetStringValue(); } }, + {"group", n => { Group = n.GetObjectValue(Microsoft.Graph.Models.Group.CreateFromDiscriminatorValue); } }, + {"groupId", n => { GroupId = n.GetStringValue(); } }, + {"memberType", n => { MemberType = n.GetEnumValue(); } }, + {"principal", n => { Principal = n.GetObjectValue(DirectoryObject.CreateFromDiscriminatorValue); } }, + {"principalId", n => { PrincipalId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteEnumValue("accessId", AccessId); + writer.WriteStringValue("eligibilityScheduleId", EligibilityScheduleId); + writer.WriteObjectValue("group", Group); + writer.WriteStringValue("groupId", GroupId); + writer.WriteEnumValue("memberType", MemberType); + writer.WriteObjectValue("principal", Principal); + writer.WriteStringValue("principalId", PrincipalId); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleInstanceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleInstanceCollectionResponse.cs new file mode 100644 index 00000000000..079967c7a80 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleInstanceCollectionResponse.cs @@ -0,0 +1,49 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class PrivilegedAccessGroupEligibilityScheduleInstanceCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PrivilegedAccessGroupEligibilityScheduleInstanceCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PrivilegedAccessGroupEligibilityScheduleInstanceCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupEligibilityScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleRequest.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleRequest.cs new file mode 100644 index 00000000000..c794581d826 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleRequest.cs @@ -0,0 +1,142 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class PrivilegedAccessGroupEligibilityScheduleRequest : PrivilegedAccessScheduleRequest, IParsable { + /// The accessId property + public PrivilegedAccessGroupRelationships? AccessId { + get { return BackingStore?.Get("accessId"); } + set { BackingStore?.Set("accessId", value); } + } + /// The group property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.Group? Group { + get { return BackingStore?.Get("group"); } + set { BackingStore?.Set("group", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.Group Group { + get { return BackingStore?.Get("group"); } + set { BackingStore?.Set("group", value); } + } +#endif + /// The groupId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? GroupId { + get { return BackingStore?.Get("groupId"); } + set { BackingStore?.Set("groupId", value); } + } +#nullable restore +#else + public string GroupId { + get { return BackingStore?.Get("groupId"); } + set { BackingStore?.Set("groupId", value); } + } +#endif + /// The principal property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public DirectoryObject? Principal { + get { return BackingStore?.Get("principal"); } + set { BackingStore?.Set("principal", value); } + } +#nullable restore +#else + public DirectoryObject Principal { + get { return BackingStore?.Get("principal"); } + set { BackingStore?.Set("principal", value); } + } +#endif + /// The principalId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PrincipalId { + get { return BackingStore?.Get("principalId"); } + set { BackingStore?.Set("principalId", value); } + } +#nullable restore +#else + public string PrincipalId { + get { return BackingStore?.Get("principalId"); } + set { BackingStore?.Set("principalId", value); } + } +#endif + /// The targetSchedule property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public PrivilegedAccessGroupEligibilitySchedule? TargetSchedule { + get { return BackingStore?.Get("targetSchedule"); } + set { BackingStore?.Set("targetSchedule", value); } + } +#nullable restore +#else + public PrivilegedAccessGroupEligibilitySchedule TargetSchedule { + get { return BackingStore?.Get("targetSchedule"); } + set { BackingStore?.Set("targetSchedule", value); } + } +#endif + /// The targetScheduleId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TargetScheduleId { + get { return BackingStore?.Get("targetScheduleId"); } + set { BackingStore?.Set("targetScheduleId", value); } + } +#nullable restore +#else + public string TargetScheduleId { + get { return BackingStore?.Get("targetScheduleId"); } + set { BackingStore?.Set("targetScheduleId", value); } + } +#endif + /// + /// Instantiates a new privilegedAccessGroupEligibilityScheduleRequest and sets the default values. + /// + public PrivilegedAccessGroupEligibilityScheduleRequest() : base() { + OdataType = "#microsoft.graph.privilegedAccessGroupEligibilityScheduleRequest"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PrivilegedAccessGroupEligibilityScheduleRequest CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PrivilegedAccessGroupEligibilityScheduleRequest(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"accessId", n => { AccessId = n.GetEnumValue(); } }, + {"group", n => { Group = n.GetObjectValue(Microsoft.Graph.Models.Group.CreateFromDiscriminatorValue); } }, + {"groupId", n => { GroupId = n.GetStringValue(); } }, + {"principal", n => { Principal = n.GetObjectValue(DirectoryObject.CreateFromDiscriminatorValue); } }, + {"principalId", n => { PrincipalId = n.GetStringValue(); } }, + {"targetSchedule", n => { TargetSchedule = n.GetObjectValue(PrivilegedAccessGroupEligibilitySchedule.CreateFromDiscriminatorValue); } }, + {"targetScheduleId", n => { TargetScheduleId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteEnumValue("accessId", AccessId); + writer.WriteObjectValue("group", Group); + writer.WriteStringValue("groupId", GroupId); + writer.WriteObjectValue("principal", Principal); + writer.WriteStringValue("principalId", PrincipalId); + writer.WriteObjectValue("targetSchedule", TargetSchedule); + writer.WriteStringValue("targetScheduleId", TargetScheduleId); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleRequestCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleRequestCollectionResponse.cs new file mode 100644 index 00000000000..fd98ecde21d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleRequestCollectionResponse.cs @@ -0,0 +1,49 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class PrivilegedAccessGroupEligibilityScheduleRequestCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PrivilegedAccessGroupEligibilityScheduleRequestCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PrivilegedAccessGroupEligibilityScheduleRequestCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupEligibilityScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupMemberType.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupMemberType.cs new file mode 100644 index 00000000000..265630416dd --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupMemberType.cs @@ -0,0 +1,13 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + public enum PrivilegedAccessGroupMemberType { + [EnumMember(Value = "direct")] + Direct, + [EnumMember(Value = "group")] + Group, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupRelationships.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupRelationships.cs new file mode 100644 index 00000000000..d8046e29d1f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupRelationships.cs @@ -0,0 +1,13 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + public enum PrivilegedAccessGroupRelationships { + [EnumMember(Value = "owner")] + Owner, + [EnumMember(Value = "member")] + Member, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessRoot.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessRoot.cs new file mode 100644 index 00000000000..4ef1a23add2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessRoot.cs @@ -0,0 +1,49 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class PrivilegedAccessRoot : Entity, IParsable { + /// The group property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public PrivilegedAccessGroup? Group { + get { return BackingStore?.Get("group"); } + set { BackingStore?.Set("group", value); } + } +#nullable restore +#else + public PrivilegedAccessGroup Group { + get { return BackingStore?.Get("group"); } + set { BackingStore?.Set("group", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PrivilegedAccessRoot CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PrivilegedAccessRoot(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"group", n => { Group = n.GetObjectValue(PrivilegedAccessGroup.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteObjectValue("group", Group); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessSchedule.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessSchedule.cs new file mode 100644 index 00000000000..11eb912fe81 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessSchedule.cs @@ -0,0 +1,100 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class PrivilegedAccessSchedule : Entity, IParsable { + /// The createdDateTime property + public DateTimeOffset? CreatedDateTime { + get { return BackingStore?.Get("createdDateTime"); } + set { BackingStore?.Set("createdDateTime", value); } + } + /// The createdUsing property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? CreatedUsing { + get { return BackingStore?.Get("createdUsing"); } + set { BackingStore?.Set("createdUsing", value); } + } +#nullable restore +#else + public string CreatedUsing { + get { return BackingStore?.Get("createdUsing"); } + set { BackingStore?.Set("createdUsing", value); } + } +#endif + /// The modifiedDateTime property + public DateTimeOffset? ModifiedDateTime { + get { return BackingStore?.Get("modifiedDateTime"); } + set { BackingStore?.Set("modifiedDateTime", value); } + } + /// The scheduleInfo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestSchedule? ScheduleInfo { + get { return BackingStore?.Get("scheduleInfo"); } + set { BackingStore?.Set("scheduleInfo", value); } + } +#nullable restore +#else + public RequestSchedule ScheduleInfo { + get { return BackingStore?.Get("scheduleInfo"); } + set { BackingStore?.Set("scheduleInfo", value); } + } +#endif + /// The status property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Status { + get { return BackingStore?.Get("status"); } + set { BackingStore?.Set("status", value); } + } +#nullable restore +#else + public string Status { + get { return BackingStore?.Get("status"); } + set { BackingStore?.Set("status", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PrivilegedAccessSchedule CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch { + "#microsoft.graph.privilegedAccessGroupAssignmentSchedule" => new PrivilegedAccessGroupAssignmentSchedule(), + "#microsoft.graph.privilegedAccessGroupEligibilitySchedule" => new PrivilegedAccessGroupEligibilitySchedule(), + _ => new PrivilegedAccessSchedule(), + }; + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, + {"createdUsing", n => { CreatedUsing = n.GetStringValue(); } }, + {"modifiedDateTime", n => { ModifiedDateTime = n.GetDateTimeOffsetValue(); } }, + {"scheduleInfo", n => { ScheduleInfo = n.GetObjectValue(RequestSchedule.CreateFromDiscriminatorValue); } }, + {"status", n => { Status = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); + writer.WriteStringValue("createdUsing", CreatedUsing); + writer.WriteDateTimeOffsetValue("modifiedDateTime", ModifiedDateTime); + writer.WriteObjectValue("scheduleInfo", ScheduleInfo); + writer.WriteStringValue("status", Status); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessScheduleInstance.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessScheduleInstance.cs new file mode 100644 index 00000000000..3c94c46f38b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessScheduleInstance.cs @@ -0,0 +1,52 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class PrivilegedAccessScheduleInstance : Entity, IParsable { + /// The endDateTime property + public DateTimeOffset? EndDateTime { + get { return BackingStore?.Get("endDateTime"); } + set { BackingStore?.Set("endDateTime", value); } + } + /// The startDateTime property + public DateTimeOffset? StartDateTime { + get { return BackingStore?.Get("startDateTime"); } + set { BackingStore?.Set("startDateTime", value); } + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PrivilegedAccessScheduleInstance CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch { + "#microsoft.graph.privilegedAccessGroupAssignmentScheduleInstance" => new PrivilegedAccessGroupAssignmentScheduleInstance(), + "#microsoft.graph.privilegedAccessGroupEligibilityScheduleInstance" => new PrivilegedAccessGroupEligibilityScheduleInstance(), + _ => new PrivilegedAccessScheduleInstance(), + }; + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"endDateTime", n => { EndDateTime = n.GetDateTimeOffsetValue(); } }, + {"startDateTime", n => { StartDateTime = n.GetDateTimeOffsetValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteDateTimeOffsetValue("endDateTime", EndDateTime); + writer.WriteDateTimeOffsetValue("startDateTime", StartDateTime); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessScheduleRequest.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessScheduleRequest.cs new file mode 100644 index 00000000000..0b9e01a9c86 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessScheduleRequest.cs @@ -0,0 +1,100 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class PrivilegedAccessScheduleRequest : Request, IParsable { + /// The action property + public ScheduleRequestActions? Action { + get { return BackingStore?.Get("action"); } + set { BackingStore?.Set("action", value); } + } + /// The isValidationOnly property + public bool? IsValidationOnly { + get { return BackingStore?.Get("isValidationOnly"); } + set { BackingStore?.Set("isValidationOnly", value); } + } + /// The justification property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Justification { + get { return BackingStore?.Get("justification"); } + set { BackingStore?.Set("justification", value); } + } +#nullable restore +#else + public string Justification { + get { return BackingStore?.Get("justification"); } + set { BackingStore?.Set("justification", value); } + } +#endif + /// The scheduleInfo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestSchedule? ScheduleInfo { + get { return BackingStore?.Get("scheduleInfo"); } + set { BackingStore?.Set("scheduleInfo", value); } + } +#nullable restore +#else + public RequestSchedule ScheduleInfo { + get { return BackingStore?.Get("scheduleInfo"); } + set { BackingStore?.Set("scheduleInfo", value); } + } +#endif + /// The ticketInfo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.TicketInfo? TicketInfo { + get { return BackingStore?.Get("ticketInfo"); } + set { BackingStore?.Set("ticketInfo", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.TicketInfo TicketInfo { + get { return BackingStore?.Get("ticketInfo"); } + set { BackingStore?.Set("ticketInfo", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PrivilegedAccessScheduleRequest CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch { + "#microsoft.graph.privilegedAccessGroupAssignmentScheduleRequest" => new PrivilegedAccessGroupAssignmentScheduleRequest(), + "#microsoft.graph.privilegedAccessGroupEligibilityScheduleRequest" => new PrivilegedAccessGroupEligibilityScheduleRequest(), + _ => new PrivilegedAccessScheduleRequest(), + }; + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"action", n => { Action = n.GetEnumValue(); } }, + {"isValidationOnly", n => { IsValidationOnly = n.GetBoolValue(); } }, + {"justification", n => { Justification = n.GetStringValue(); } }, + {"scheduleInfo", n => { ScheduleInfo = n.GetObjectValue(RequestSchedule.CreateFromDiscriminatorValue); } }, + {"ticketInfo", n => { TicketInfo = n.GetObjectValue(Microsoft.Graph.Models.TicketInfo.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteEnumValue("action", Action); + writer.WriteBoolValue("isValidationOnly", IsValidationOnly); + writer.WriteStringValue("justification", Justification); + writer.WriteObjectValue("scheduleInfo", ScheduleInfo); + writer.WriteObjectValue("ticketInfo", TicketInfo); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/ProvisioningErrorInfo.cs b/src/Microsoft.Graph/Generated/Models/ProvisioningErrorInfo.cs index 7f0aadc7b76..5bf724e50c2 100644 --- a/src/Microsoft.Graph/Generated/Models/ProvisioningErrorInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/ProvisioningErrorInfo.cs @@ -12,7 +12,7 @@ public IDictionary AdditionalData { get { return BackingStore?.Get>("additionalData"); } set { BackingStore?.Set("additionalData", value); } } - /// Additional details in case of error. + /// Additional details if there's error. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? AdditionalDetails { diff --git a/src/Microsoft.Graph/Generated/Models/RbacApplication.cs b/src/Microsoft.Graph/Generated/Models/RbacApplication.cs index eb3d08baf95..4b5c3f965d7 100644 --- a/src/Microsoft.Graph/Generated/Models/RbacApplication.cs +++ b/src/Microsoft.Graph/Generated/Models/RbacApplication.cs @@ -146,10 +146,10 @@ public List RoleEligibilitySchedules { public new IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"resourceNamespaces", n => { ResourceNamespaces = n.GetCollectionOfObjectValues(UnifiedRbacResourceNamespace.CreateFromDiscriminatorValue)?.ToList(); } }, - {"roleAssignments", n => { RoleAssignments = n.GetCollectionOfObjectValues(UnifiedRoleAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, {"roleAssignmentScheduleInstances", n => { RoleAssignmentScheduleInstances = n.GetCollectionOfObjectValues(UnifiedRoleAssignmentScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, {"roleAssignmentScheduleRequests", n => { RoleAssignmentScheduleRequests = n.GetCollectionOfObjectValues(UnifiedRoleAssignmentScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, {"roleAssignmentSchedules", n => { RoleAssignmentSchedules = n.GetCollectionOfObjectValues(UnifiedRoleAssignmentSchedule.CreateFromDiscriminatorValue)?.ToList(); } }, + {"roleAssignments", n => { RoleAssignments = n.GetCollectionOfObjectValues(UnifiedRoleAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, {"roleDefinitions", n => { RoleDefinitions = n.GetCollectionOfObjectValues(UnifiedRoleDefinition.CreateFromDiscriminatorValue)?.ToList(); } }, {"roleEligibilityScheduleInstances", n => { RoleEligibilityScheduleInstances = n.GetCollectionOfObjectValues(UnifiedRoleEligibilityScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, {"roleEligibilityScheduleRequests", n => { RoleEligibilityScheduleRequests = n.GetCollectionOfObjectValues(UnifiedRoleEligibilityScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, diff --git a/src/Microsoft.Graph/Generated/Models/Request.cs b/src/Microsoft.Graph/Generated/Models/Request.cs index cdb79abfaae..c2e6b23940e 100644 --- a/src/Microsoft.Graph/Generated/Models/Request.cs +++ b/src/Microsoft.Graph/Generated/Models/Request.cs @@ -80,6 +80,9 @@ public string Status { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); return mappingValue switch { + "#microsoft.graph.privilegedAccessGroupAssignmentScheduleRequest" => new PrivilegedAccessGroupAssignmentScheduleRequest(), + "#microsoft.graph.privilegedAccessGroupEligibilityScheduleRequest" => new PrivilegedAccessGroupEligibilityScheduleRequest(), + "#microsoft.graph.privilegedAccessScheduleRequest" => new PrivilegedAccessScheduleRequest(), "#microsoft.graph.unifiedRoleAssignmentScheduleRequest" => new UnifiedRoleAssignmentScheduleRequest(), "#microsoft.graph.unifiedRoleEligibilityScheduleRequest" => new UnifiedRoleEligibilityScheduleRequest(), "#microsoft.graph.userConsentRequest" => new UserConsentRequest(), diff --git a/src/Microsoft.Graph/Generated/Models/ResellerDelegatedAdminRelationship.cs b/src/Microsoft.Graph/Generated/Models/ResellerDelegatedAdminRelationship.cs new file mode 100644 index 00000000000..447575c0e11 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/ResellerDelegatedAdminRelationship.cs @@ -0,0 +1,56 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class ResellerDelegatedAdminRelationship : DelegatedAdminRelationship, IParsable { + /// The tenant ID of the indirect provider partner who created the relationship for the indirect reseller partner. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? IndirectProviderTenantId { + get { return BackingStore?.Get("indirectProviderTenantId"); } + set { BackingStore?.Set("indirectProviderTenantId", value); } + } +#nullable restore +#else + public string IndirectProviderTenantId { + get { return BackingStore?.Get("indirectProviderTenantId"); } + set { BackingStore?.Set("indirectProviderTenantId", value); } + } +#endif + /// Indicates the indirect reseller partner consent status. true indicates that the partner has yet to review the relationship; false indicates that the partner has already provided consent by approving or rejecting the relationship. + public bool? IsPartnerConsentPending { + get { return BackingStore?.Get("isPartnerConsentPending"); } + set { BackingStore?.Set("isPartnerConsentPending", value); } + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new ResellerDelegatedAdminRelationship CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new ResellerDelegatedAdminRelationship(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"indirectProviderTenantId", n => { IndirectProviderTenantId = n.GetStringValue(); } }, + {"isPartnerConsentPending", n => { IsPartnerConsentPending = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteStringValue("indirectProviderTenantId", IndirectProviderTenantId); + writer.WriteBoolValue("isPartnerConsentPending", IsPartnerConsentPending); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/ResourceVisualization.cs b/src/Microsoft.Graph/Generated/Models/ResourceVisualization.cs index d58cc8d1787..d75377f2da1 100644 --- a/src/Microsoft.Graph/Generated/Models/ResourceVisualization.cs +++ b/src/Microsoft.Graph/Generated/Models/ResourceVisualization.cs @@ -56,7 +56,7 @@ public string ContainerWebUrl { set { BackingStore?.Set("containerWebUrl", value); } } #endif - /// The item's media type. Can be used for filtering for a specific type of file based on supported IANA Media Mime Types. Note that not all Media Mime Types are supported. + /// The item's media type. Can be used for filtering for a specific type of file based on supported IANA Media Mime Types. Not all Media Mime Types are supported. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? MediaType { @@ -126,7 +126,7 @@ public string Title { set { BackingStore?.Set("title", value); } } #endif - /// The item's media type. Can be used for filtering for a specific file based on a specific type. See below for supported types. + /// The item's media type. Can be used for filtering for a specific file based on a specific type. See the section Type property values for supported types. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Type { diff --git a/src/Microsoft.Graph/Generated/Models/RubricLevel.cs b/src/Microsoft.Graph/Generated/Models/RubricLevel.cs index 8c67cbaa8f2..e4a6ecdf113 100644 --- a/src/Microsoft.Graph/Generated/Models/RubricLevel.cs +++ b/src/Microsoft.Graph/Generated/Models/RubricLevel.cs @@ -42,7 +42,7 @@ public string DisplayName { set { BackingStore?.Set("displayName", value); } } #endif - /// Null if this is a no-points rubric; educationAssignmentPointsGradeType if it is a points rubric. + /// Null if this is a no-points rubric; educationAssignmentPointsGradeType if it's a points rubric. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public EducationAssignmentGradeType? Grading { diff --git a/src/Microsoft.Graph/Generated/Models/Schedule.cs b/src/Microsoft.Graph/Generated/Models/Schedule.cs index 7d4b3149d87..36130704e78 100644 --- a/src/Microsoft.Graph/Generated/Models/Schedule.cs +++ b/src/Microsoft.Graph/Generated/Models/Schedule.cs @@ -238,8 +238,8 @@ public List WorkforceIntegrationIds { {"timeOffReasons", n => { TimeOffReasons = n.GetCollectionOfObjectValues(TimeOffReason.CreateFromDiscriminatorValue)?.ToList(); } }, {"timeOffRequests", n => { TimeOffRequests = n.GetCollectionOfObjectValues(TimeOffRequest.CreateFromDiscriminatorValue)?.ToList(); } }, {"timeOffRequestsEnabled", n => { TimeOffRequestsEnabled = n.GetBoolValue(); } }, - {"timesOff", n => { TimesOff = n.GetCollectionOfObjectValues(TimeOff.CreateFromDiscriminatorValue)?.ToList(); } }, {"timeZone", n => { TimeZone = n.GetStringValue(); } }, + {"timesOff", n => { TimesOff = n.GetCollectionOfObjectValues(TimeOff.CreateFromDiscriminatorValue)?.ToList(); } }, {"workforceIntegrationIds", n => { WorkforceIntegrationIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } diff --git a/src/Microsoft.Graph/Generated/Models/ScheduleRequestActions.cs b/src/Microsoft.Graph/Generated/Models/ScheduleRequestActions.cs new file mode 100644 index 00000000000..e286dba9b4f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/ScheduleRequestActions.cs @@ -0,0 +1,27 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + public enum ScheduleRequestActions { + [EnumMember(Value = "adminAssign")] + AdminAssign, + [EnumMember(Value = "adminUpdate")] + AdminUpdate, + [EnumMember(Value = "adminRemove")] + AdminRemove, + [EnumMember(Value = "selfActivate")] + SelfActivate, + [EnumMember(Value = "selfDeactivate")] + SelfDeactivate, + [EnumMember(Value = "adminExtend")] + AdminExtend, + [EnumMember(Value = "adminRenew")] + AdminRenew, + [EnumMember(Value = "selfExtend")] + SelfExtend, + [EnumMember(Value = "selfRenew")] + SelfRenew, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/SearchAlterationOptions.cs b/src/Microsoft.Graph/Generated/Models/SearchAlterationOptions.cs index 90076a7e463..1cf32333486 100644 --- a/src/Microsoft.Graph/Generated/Models/SearchAlterationOptions.cs +++ b/src/Microsoft.Graph/Generated/Models/SearchAlterationOptions.cs @@ -14,12 +14,12 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// Indicates whether spelling modifications are enabled. If enabled, the user will get the search results for the corrected query in case of no results for the original query with typos. The response will also include the spelling modification information in the queryAlterationResponse property. Optional. + /// Indicates whether spelling modifications are enabled. If enabled, the user gets the search results for the corrected query if there were no results for the original query with typos. The response will also include the spelling modification information in the queryAlterationResponse property. Optional. public bool? EnableModification { get { return BackingStore?.Get("enableModification"); } set { BackingStore?.Set("enableModification", value); } } - /// Indicates whether spelling suggestions are enabled. If enabled, the user will get the search results for the original search query and suggestions for spelling correction in the queryAlterationResponse property of the response for the typos in the query. Optional. + /// Indicates whether spelling suggestions are enabled. If enabled, the user gets the search results for the original search query and suggestions for spelling correction in the queryAlterationResponse property of the response for the typos in the query. Optional. public bool? EnableSuggestion { get { return BackingStore?.Get("enableSuggestion"); } set { BackingStore?.Set("enableSuggestion", value); } diff --git a/src/Microsoft.Graph/Generated/Models/SearchHitsContainer.cs b/src/Microsoft.Graph/Generated/Models/SearchHitsContainer.cs index 21d5e88f65b..42ee1e32ee2 100644 --- a/src/Microsoft.Graph/Generated/Models/SearchHitsContainer.cs +++ b/src/Microsoft.Graph/Generated/Models/SearchHitsContainer.cs @@ -61,7 +61,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// The total number of results. Note this is not the number of results on the page, but the total number of results satisfying the query. + /// The total number of results. Note this isn't the number of results on the page, but the total number of results satisfying the query. public int? Total { get { return BackingStore?.Get("total"); } set { BackingStore?.Set("total", value); } diff --git a/src/Microsoft.Graph/Generated/Models/Security/Alert.cs b/src/Microsoft.Graph/Generated/Models/Security/Alert.cs index 3bdc1d38d2a..9b1109c09da 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/Alert.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/Alert.cs @@ -114,7 +114,7 @@ public string Description { set { BackingStore?.Set("description", value); } } #endif - /// Detection technology or sensor that identified the notable component or activity. Possible values are: unknown, microsoftDefenderForEndpoint, antivirus, smartScreen, customTi, microsoftDefenderForOffice365, automatedInvestigation, microsoftThreatExperts, customDetection, microsoftDefenderForIdentity, cloudAppSecurity, microsoft365Defender, azureAdIdentityProtection, manual, microsoftDataLossPrevention, appGovernancePolicy, appGovernanceDetection, unknownFutureValue, microsoftDefenderForCloud. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: microsoftDefenderForCloud. + /// Detection technology or sensor that identified the notable component or activity. Possible values are: unknown, microsoftDefenderForEndpoint, antivirus, smartScreen, customTi, microsoftDefenderForOffice365, automatedInvestigation, microsoftThreatExperts, customDetection, microsoftDefenderForIdentity, cloudAppSecurity, microsoft365Defender, azureAdIdentityProtection, manual, microsoftDataLossPrevention, appGovernancePolicy, appGovernanceDetection, unknownFutureValue, microsoftDefenderForCloud. You must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: microsoftDefenderForCloud. public Microsoft.Graph.Models.Security.DetectionSource? DetectionSource { get { return BackingStore?.Get("detectionSource"); } set { BackingStore?.Set("detectionSource", value); } diff --git a/src/Microsoft.Graph/Generated/Models/Security/AlertEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/AlertEvidence.cs index 53e2ee2d185..2dc766fbbba 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/AlertEvidence.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/AlertEvidence.cs @@ -66,7 +66,7 @@ public string RemediationStatusDetails { set { BackingStore?.Set("remediationStatusDetails", value); } } #endif - /// The role/s that an evidence entity represents in an alert, e.g., an IP address that is associated with an attacker will have the evidence role Attacker. + /// The role/s that an evidence entity represents in an alert, for example, an IP address that is associated with an attacker has the evidence role Attacker. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Roles { diff --git a/src/Microsoft.Graph/Generated/Models/Security/Artifact.cs b/src/Microsoft.Graph/Generated/Models/Security/Artifact.cs index 7369d6ecd1c..30b1b5199e1 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/Artifact.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/Artifact.cs @@ -18,9 +18,11 @@ public class Artifact : Entity, IParsable { "#microsoft.graph.security.hostComponent" => new HostComponent(), "#microsoft.graph.security.hostCookie" => new HostCookie(), "#microsoft.graph.security.hostname" => new Hostname(), + "#microsoft.graph.security.hostSslCertificate" => new HostSslCertificate(), "#microsoft.graph.security.hostTracker" => new HostTracker(), "#microsoft.graph.security.ipAddress" => new IpAddress(), "#microsoft.graph.security.passiveDnsRecord" => new PassiveDnsRecord(), + "#microsoft.graph.security.sslCertificate" => new SslCertificate(), "#microsoft.graph.security.unclassifiedArtifact" => new UnclassifiedArtifact(), _ => new Artifact(), }; diff --git a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryExportOperation.cs b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryExportOperation.cs index 294097af6c6..47d2cc83cc7 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryExportOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryExportOperation.cs @@ -34,12 +34,12 @@ public List ExportFileMetada set { BackingStore?.Set("exportFileMetadata", value); } } #endif - /// The options provided for the export. For more details, see reviewSet: export. Possible values are: originalFiles, text, pdfReplacement, tags. + /// The options provided for the export. For more information, see reviewSet: export. Possible values are: originalFiles, text, pdfReplacement, tags. public Microsoft.Graph.Models.Security.ExportOptions? ExportOptions { get { return BackingStore?.Get("exportOptions"); } set { BackingStore?.Set("exportOptions", value); } } - /// The options provided that specify the structure of the export. For more details, see reviewSet: export. Possible values are: none, directory, pst. + /// The options that specify the structure of the export. For more information, see reviewSet: export. Possible values are: none, directory, pst. public ExportFileStructure? ExportStructure { get { return BackingStore?.Get("exportStructure"); } set { BackingStore?.Set("exportStructure", value); } @@ -72,7 +72,7 @@ public EdiscoveryReviewSet ReviewSet { set { BackingStore?.Set("reviewSet", value); } } #endif - /// The review set query which is used to filter the documents for export. + /// The review set query that is used to filter the documents for export. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public EdiscoveryReviewSetQuery? ReviewSetQuery { diff --git a/src/Microsoft.Graph/Generated/Models/Security/EdiscoverySearch.cs b/src/Microsoft.Graph/Generated/Models/Security/EdiscoverySearch.cs index dad7f410130..27a0f82cd3a 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/EdiscoverySearch.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/EdiscoverySearch.cs @@ -100,8 +100,8 @@ public EdiscoverySearch() : base() { /// public new IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - {"additionalSources", n => { AdditionalSources = n.GetCollectionOfObjectValues(DataSource.CreateFromDiscriminatorValue)?.ToList(); } }, {"addToReviewSetOperation", n => { AddToReviewSetOperation = n.GetObjectValue(EdiscoveryAddToReviewSetOperation.CreateFromDiscriminatorValue); } }, + {"additionalSources", n => { AdditionalSources = n.GetCollectionOfObjectValues(DataSource.CreateFromDiscriminatorValue)?.ToList(); } }, {"custodianSources", n => { CustodianSources = n.GetCollectionOfObjectValues(DataSource.CreateFromDiscriminatorValue)?.ToList(); } }, {"dataSourceScopes", n => { DataSourceScopes = n.GetEnumValue(); } }, {"lastEstimateStatisticsOperation", n => { LastEstimateStatisticsOperation = n.GetObjectValue(EdiscoveryEstimateOperation.CreateFromDiscriminatorValue); } }, diff --git a/src/Microsoft.Graph/Generated/Models/Security/Host.cs b/src/Microsoft.Graph/Generated/Models/Security/Host.cs index 3d157470fa7..e3793180a45 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/Host.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/Host.cs @@ -6,6 +6,20 @@ using System; namespace Microsoft.Graph.Models.Security { public class Host : Artifact, IParsable { + /// The hostPairs that are resources associated with a host, where that host is the parentHost and has an outgoing pairing to a cihldHost. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? ChildHostPairs { + get { return BackingStore?.Get?>("childHostPairs"); } + set { BackingStore?.Set("childHostPairs", value); } + } +#nullable restore +#else + public List ChildHostPairs { + get { return BackingStore?.Get>("childHostPairs"); } + set { BackingStore?.Set("childHostPairs", value); } + } +#endif /// The hostComponents that are associated with this host. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -34,16 +48,44 @@ public List Cookies { set { BackingStore?.Set("cookies", value); } } #endif - /// The first date and time this host was observed. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z. + /// The first date and time when this host was observed. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? FirstSeenDateTime { get { return BackingStore?.Get("firstSeenDateTime"); } set { BackingStore?.Set("firstSeenDateTime", value); } } - /// The most recent date and time when this host was observed. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z. + /// The hostPairs that are associated with this host, where this host is either the parentHost or childHost. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? HostPairs { + get { return BackingStore?.Get?>("hostPairs"); } + set { BackingStore?.Set("hostPairs", value); } + } +#nullable restore +#else + public List HostPairs { + get { return BackingStore?.Get>("hostPairs"); } + set { BackingStore?.Set("hostPairs", value); } + } +#endif + /// The most recent date and time when this host was observed. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? LastSeenDateTime { get { return BackingStore?.Get("lastSeenDateTime"); } set { BackingStore?.Set("lastSeenDateTime", value); } } + /// The hostPairs that are associated with a host, where that host is the childHost and has an incoming pairing with a parentHost. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? ParentHostPairs { + get { return BackingStore?.Get?>("parentHostPairs"); } + set { BackingStore?.Set("parentHostPairs", value); } + } +#nullable restore +#else + public List ParentHostPairs { + get { return BackingStore?.Get>("parentHostPairs"); } + set { BackingStore?.Set("parentHostPairs", value); } + } +#endif /// Passive DNS retrieval about this host. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -85,6 +127,34 @@ public HostReputation Reputation { get { return BackingStore?.Get("reputation"); } set { BackingStore?.Set("reputation", value); } } +#endif + /// The hostSslCertificates that are associated with this host. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SslCertificates { + get { return BackingStore?.Get?>("sslCertificates"); } + set { BackingStore?.Set("sslCertificates", value); } + } +#nullable restore +#else + public List SslCertificates { + get { return BackingStore?.Get>("sslCertificates"); } + set { BackingStore?.Set("sslCertificates", value); } + } +#endif + /// The subdomains that are associated with this host. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Subdomains { + get { return BackingStore?.Get?>("subdomains"); } + set { BackingStore?.Set("subdomains", value); } + } +#nullable restore +#else + public List Subdomains { + get { return BackingStore?.Get>("subdomains"); } + set { BackingStore?.Set("subdomains", value); } + } #endif /// The hostTrackers that are associated with this host. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -99,6 +169,20 @@ public List Trackers { get { return BackingStore?.Get>("trackers"); } set { BackingStore?.Set("trackers", value); } } +#endif + /// The most recent whoisRecord for this host. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public WhoisRecord? Whois { + get { return BackingStore?.Get("whois"); } + set { BackingStore?.Set("whois", value); } + } +#nullable restore +#else + public WhoisRecord Whois { + get { return BackingStore?.Get("whois"); } + set { BackingStore?.Set("whois", value); } + } #endif /// /// Instantiates a new host and sets the default values. @@ -124,14 +208,20 @@ public Host() : base() { /// public new IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { + {"childHostPairs", n => { ChildHostPairs = n.GetCollectionOfObjectValues(HostPair.CreateFromDiscriminatorValue)?.ToList(); } }, {"components", n => { Components = n.GetCollectionOfObjectValues(HostComponent.CreateFromDiscriminatorValue)?.ToList(); } }, {"cookies", n => { Cookies = n.GetCollectionOfObjectValues(HostCookie.CreateFromDiscriminatorValue)?.ToList(); } }, {"firstSeenDateTime", n => { FirstSeenDateTime = n.GetDateTimeOffsetValue(); } }, + {"hostPairs", n => { HostPairs = n.GetCollectionOfObjectValues(HostPair.CreateFromDiscriminatorValue)?.ToList(); } }, {"lastSeenDateTime", n => { LastSeenDateTime = n.GetDateTimeOffsetValue(); } }, + {"parentHostPairs", n => { ParentHostPairs = n.GetCollectionOfObjectValues(HostPair.CreateFromDiscriminatorValue)?.ToList(); } }, {"passiveDns", n => { PassiveDns = n.GetCollectionOfObjectValues(PassiveDnsRecord.CreateFromDiscriminatorValue)?.ToList(); } }, {"passiveDnsReverse", n => { PassiveDnsReverse = n.GetCollectionOfObjectValues(PassiveDnsRecord.CreateFromDiscriminatorValue)?.ToList(); } }, {"reputation", n => { Reputation = n.GetObjectValue(HostReputation.CreateFromDiscriminatorValue); } }, + {"sslCertificates", n => { SslCertificates = n.GetCollectionOfObjectValues(HostSslCertificate.CreateFromDiscriminatorValue)?.ToList(); } }, + {"subdomains", n => { Subdomains = n.GetCollectionOfObjectValues(Subdomain.CreateFromDiscriminatorValue)?.ToList(); } }, {"trackers", n => { Trackers = n.GetCollectionOfObjectValues(HostTracker.CreateFromDiscriminatorValue)?.ToList(); } }, + {"whois", n => { Whois = n.GetObjectValue(WhoisRecord.CreateFromDiscriminatorValue); } }, }; } /// @@ -141,14 +231,20 @@ public Host() : base() { public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); + writer.WriteCollectionOfObjectValues("childHostPairs", ChildHostPairs); writer.WriteCollectionOfObjectValues("components", Components); writer.WriteCollectionOfObjectValues("cookies", Cookies); writer.WriteDateTimeOffsetValue("firstSeenDateTime", FirstSeenDateTime); + writer.WriteCollectionOfObjectValues("hostPairs", HostPairs); writer.WriteDateTimeOffsetValue("lastSeenDateTime", LastSeenDateTime); + writer.WriteCollectionOfObjectValues("parentHostPairs", ParentHostPairs); writer.WriteCollectionOfObjectValues("passiveDns", PassiveDns); writer.WriteCollectionOfObjectValues("passiveDnsReverse", PassiveDnsReverse); writer.WriteObjectValue("reputation", Reputation); + writer.WriteCollectionOfObjectValues("sslCertificates", SslCertificates); + writer.WriteCollectionOfObjectValues("subdomains", Subdomains); writer.WriteCollectionOfObjectValues("trackers", Trackers); + writer.WriteObjectValue("whois", Whois); } } } diff --git a/src/Microsoft.Graph/Generated/Models/Security/HostComponent.cs b/src/Microsoft.Graph/Generated/Models/Security/HostComponent.cs index aba09eb7594..c5b264c4099 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/HostComponent.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/HostComponent.cs @@ -58,7 +58,7 @@ public string Name { set { BackingStore?.Set("name", value); } } #endif - /// The component version running on the artifact, for example, v8.5. This should not be assumed to be strictly numerical. + /// The component version running on the artifact, for example, v8.5. This shouldn't be assumed to be strictly numerical. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Version { diff --git a/src/Microsoft.Graph/Generated/Models/Security/HostPair.cs b/src/Microsoft.Graph/Generated/Models/Security/HostPair.cs new file mode 100644 index 00000000000..c0d29507b7d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/HostPair.cs @@ -0,0 +1,95 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class HostPair : Entity, IParsable { + /// The childHost property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Host? ChildHost { + get { return BackingStore?.Get("childHost"); } + set { BackingStore?.Set("childHost", value); } + } +#nullable restore +#else + public Host ChildHost { + get { return BackingStore?.Get("childHost"); } + set { BackingStore?.Set("childHost", value); } + } +#endif + /// The date and time when Microsoft Defender Threat Intelligence first observed the hostPair. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + public DateTimeOffset? FirstSeenDateTime { + get { return BackingStore?.Get("firstSeenDateTime"); } + set { BackingStore?.Set("firstSeenDateTime", value); } + } + /// The date and time when Microsoft Defender Threat Intelligence last observed the hostPair. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + public DateTimeOffset? LastSeenDateTime { + get { return BackingStore?.Get("lastSeenDateTime"); } + set { BackingStore?.Set("lastSeenDateTime", value); } + } + /// The reason that two hosts are identified as hostPair. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? LinkKind { + get { return BackingStore?.Get("linkKind"); } + set { BackingStore?.Set("linkKind", value); } + } +#nullable restore +#else + public string LinkKind { + get { return BackingStore?.Get("linkKind"); } + set { BackingStore?.Set("linkKind", value); } + } +#endif + /// The parentHost property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Host? ParentHost { + get { return BackingStore?.Get("parentHost"); } + set { BackingStore?.Set("parentHost", value); } + } +#nullable restore +#else + public Host ParentHost { + get { return BackingStore?.Get("parentHost"); } + set { BackingStore?.Set("parentHost", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new HostPair CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new HostPair(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"childHost", n => { ChildHost = n.GetObjectValue(Host.CreateFromDiscriminatorValue); } }, + {"firstSeenDateTime", n => { FirstSeenDateTime = n.GetDateTimeOffsetValue(); } }, + {"lastSeenDateTime", n => { LastSeenDateTime = n.GetDateTimeOffsetValue(); } }, + {"linkKind", n => { LinkKind = n.GetStringValue(); } }, + {"parentHost", n => { ParentHost = n.GetObjectValue(Host.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteObjectValue("childHost", ChildHost); + writer.WriteDateTimeOffsetValue("firstSeenDateTime", FirstSeenDateTime); + writer.WriteDateTimeOffsetValue("lastSeenDateTime", LastSeenDateTime); + writer.WriteStringValue("linkKind", LinkKind); + writer.WriteObjectValue("parentHost", ParentHost); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/HostPairCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/HostPairCollectionResponse.cs new file mode 100644 index 00000000000..1554392f5b6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/HostPairCollectionResponse.cs @@ -0,0 +1,49 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class HostPairCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new HostPairCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new HostPairCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(HostPair.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/HostSslCertificate.cs b/src/Microsoft.Graph/Generated/Models/Security/HostSslCertificate.cs new file mode 100644 index 00000000000..8c9259f5d4a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/HostSslCertificate.cs @@ -0,0 +1,101 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class HostSslCertificate : Artifact, IParsable { + /// The first date and time when this hostSslCertificate was observed. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + public DateTimeOffset? FirstSeenDateTime { + get { return BackingStore?.Get("firstSeenDateTime"); } + set { BackingStore?.Set("firstSeenDateTime", value); } + } + /// The host for this hostSslCertificate. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.Security.Host? Host { + get { return BackingStore?.Get("host"); } + set { BackingStore?.Set("host", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.Security.Host Host { + get { return BackingStore?.Get("host"); } + set { BackingStore?.Set("host", value); } + } +#endif + /// The most recent date and time when this hostSslCertificate was observed. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + public DateTimeOffset? LastSeenDateTime { + get { return BackingStore?.Get("lastSeenDateTime"); } + set { BackingStore?.Set("lastSeenDateTime", value); } + } + /// The ports related with this hostSslCertificate. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Ports { + get { return BackingStore?.Get?>("ports"); } + set { BackingStore?.Set("ports", value); } + } +#nullable restore +#else + public List Ports { + get { return BackingStore?.Get>("ports"); } + set { BackingStore?.Set("ports", value); } + } +#endif + /// The sslCertificate for this hostSslCertificate. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.Security.SslCertificate? SslCertificate { + get { return BackingStore?.Get("sslCertificate"); } + set { BackingStore?.Set("sslCertificate", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.Security.SslCertificate SslCertificate { + get { return BackingStore?.Get("sslCertificate"); } + set { BackingStore?.Set("sslCertificate", value); } + } +#endif + /// + /// Instantiates a new hostSslCertificate and sets the default values. + /// + public HostSslCertificate() : base() { + OdataType = "#microsoft.graph.security.hostSslCertificate"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new HostSslCertificate CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new HostSslCertificate(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"firstSeenDateTime", n => { FirstSeenDateTime = n.GetDateTimeOffsetValue(); } }, + {"host", n => { Host = n.GetObjectValue(Microsoft.Graph.Models.Security.Host.CreateFromDiscriminatorValue); } }, + {"lastSeenDateTime", n => { LastSeenDateTime = n.GetDateTimeOffsetValue(); } }, + {"ports", n => { Ports = n.GetCollectionOfObjectValues(HostSslCertificatePort.CreateFromDiscriminatorValue)?.ToList(); } }, + {"sslCertificate", n => { SslCertificate = n.GetObjectValue(Microsoft.Graph.Models.Security.SslCertificate.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteDateTimeOffsetValue("firstSeenDateTime", FirstSeenDateTime); + writer.WriteObjectValue("host", Host); + writer.WriteDateTimeOffsetValue("lastSeenDateTime", LastSeenDateTime); + writer.WriteCollectionOfObjectValues("ports", Ports); + writer.WriteObjectValue("sslCertificate", SslCertificate); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/HostSslCertificateCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/HostSslCertificateCollectionResponse.cs new file mode 100644 index 00000000000..a93ac5afda6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/HostSslCertificateCollectionResponse.cs @@ -0,0 +1,49 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class HostSslCertificateCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new HostSslCertificateCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new HostSslCertificateCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(HostSslCertificate.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/HostSslCertificatePort.cs b/src/Microsoft.Graph/Generated/Models/Security/HostSslCertificatePort.cs new file mode 100644 index 00000000000..00b6b123238 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/HostSslCertificatePort.cs @@ -0,0 +1,85 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class HostSslCertificatePort : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The first date and time when this port was observed. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + public DateTimeOffset? FirstSeenDateTime { + get { return BackingStore?.Get("firstSeenDateTime"); } + set { BackingStore?.Set("firstSeenDateTime", value); } + } + /// The most recent date and time when this port was observed. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + public DateTimeOffset? LastSeenDateTime { + get { return BackingStore?.Get("lastSeenDateTime"); } + set { BackingStore?.Set("lastSeenDateTime", value); } + } + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#nullable restore +#else + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#endif + /// The port number. + public int? Port { + get { return BackingStore?.Get("port"); } + set { BackingStore?.Set("port", value); } + } + /// + /// Instantiates a new hostSslCertificatePort and sets the default values. + /// + public HostSslCertificatePort() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static HostSslCertificatePort CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new HostSslCertificatePort(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"firstSeenDateTime", n => { FirstSeenDateTime = n.GetDateTimeOffsetValue(); } }, + {"lastSeenDateTime", n => { LastSeenDateTime = n.GetDateTimeOffsetValue(); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"port", n => { Port = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteDateTimeOffsetValue("firstSeenDateTime", FirstSeenDateTime); + writer.WriteDateTimeOffsetValue("lastSeenDateTime", LastSeenDateTime); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteIntValue("port", Port); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/Incident.cs b/src/Microsoft.Graph/Generated/Models/Security/Incident.cs index 94f067b0803..b2f9563a7f4 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/Incident.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/Incident.cs @@ -71,6 +71,20 @@ public List CustomTags { get { return BackingStore?.Get>("customTags"); } set { BackingStore?.Set("customTags", value); } } +#endif + /// The description property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Description { + get { return BackingStore?.Get("description"); } + set { BackingStore?.Set("description", value); } + } +#nullable restore +#else + public string Description { + get { return BackingStore?.Get("description"); } + set { BackingStore?.Set("description", value); } + } #endif /// Specifies the determination of the incident. Possible values are: unknown, apt, malware, securityPersonnel, securityTesting, unwantedSoftware, other, multiStagedAttack, compromisedUser, phishing, maliciousUserActivity, clean, insufficientData, confirmedUserActivity, lineOfBusinessApplication, unknownFutureValue. public AlertDetermination? Determination { @@ -148,6 +162,20 @@ public IncidentStatus? Status { get { return BackingStore?.Get("status"); } set { BackingStore?.Set("status", value); } } + /// The systemTags property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SystemTags { + get { return BackingStore?.Get?>("systemTags"); } + set { BackingStore?.Set("systemTags", value); } + } +#nullable restore +#else + public List SystemTags { + get { return BackingStore?.Get>("systemTags"); } + set { BackingStore?.Set("systemTags", value); } + } +#endif /// The Azure Active Directory tenant in which the alert was created. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -181,6 +209,7 @@ public string TenantId { {"comments", n => { Comments = n.GetCollectionOfObjectValues(AlertComment.CreateFromDiscriminatorValue)?.ToList(); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"customTags", n => { CustomTags = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + {"description", n => { Description = n.GetStringValue(); } }, {"determination", n => { Determination = n.GetEnumValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"incidentWebUrl", n => { IncidentWebUrl = n.GetStringValue(); } }, @@ -189,6 +218,7 @@ public string TenantId { {"redirectIncidentId", n => { RedirectIncidentId = n.GetStringValue(); } }, {"severity", n => { Severity = n.GetEnumValue(); } }, {"status", n => { Status = n.GetEnumValue(); } }, + {"systemTags", n => { SystemTags = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"tenantId", n => { TenantId = n.GetStringValue(); } }, }; } @@ -205,6 +235,7 @@ public string TenantId { writer.WriteCollectionOfObjectValues("comments", Comments); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteCollectionOfPrimitiveValues("customTags", CustomTags); + writer.WriteStringValue("description", Description); writer.WriteEnumValue("determination", Determination); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("incidentWebUrl", IncidentWebUrl); @@ -213,6 +244,7 @@ public string TenantId { writer.WriteStringValue("redirectIncidentId", RedirectIncidentId); writer.WriteEnumValue("severity", Severity); writer.WriteEnumValue("status", Status); + writer.WriteCollectionOfPrimitiveValues("systemTags", SystemTags); writer.WriteStringValue("tenantId", TenantId); } } diff --git a/src/Microsoft.Graph/Generated/Models/Security/IpAddress.cs b/src/Microsoft.Graph/Generated/Models/Security/IpAddress.cs index f1e7b11f77a..3e379e43df6 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/IpAddress.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/IpAddress.cs @@ -20,7 +20,7 @@ public Microsoft.Graph.Models.Security.AutonomousSystem AutonomousSystem { set { BackingStore?.Set("autonomousSystem", value); } } #endif - /// The country or region for this IP address. + /// The country/region for this IP address. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? CountryOrRegion { diff --git a/src/Microsoft.Graph/Generated/Models/Security/IpEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/IpEvidence.cs index 6495ba520f9..499f3e0931a 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/IpEvidence.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/IpEvidence.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models.Security { public class IpEvidence : AlertEvidence, IParsable { - /// The two-letter country code according to ISO 3166 format, for example: US, UK, CA, etc..). + /// The two-letter country code according to ISO 3166 format, for example: US, UK, CA, etc. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? CountryLetterCode { diff --git a/src/Microsoft.Graph/Generated/Models/Security/Security.cs b/src/Microsoft.Graph/Generated/Models/Security/Security.cs index e02ef542dce..5b4b093a934 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/Security.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/Security.cs @@ -182,8 +182,8 @@ public TriggerTypesRoot TriggerTypes { {"secureScores", n => { SecureScores = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.SecureScore.CreateFromDiscriminatorValue)?.ToList(); } }, {"subjectRightsRequests", n => { SubjectRightsRequests = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.SubjectRightsRequest.CreateFromDiscriminatorValue)?.ToList(); } }, {"threatIntelligence", n => { ThreatIntelligence = n.GetObjectValue(Microsoft.Graph.Models.Security.ThreatIntelligence.CreateFromDiscriminatorValue); } }, - {"triggers", n => { Triggers = n.GetObjectValue(TriggersRoot.CreateFromDiscriminatorValue); } }, {"triggerTypes", n => { TriggerTypes = n.GetObjectValue(TriggerTypesRoot.CreateFromDiscriminatorValue); } }, + {"triggers", n => { Triggers = n.GetObjectValue(TriggersRoot.CreateFromDiscriminatorValue); } }, }; } /// diff --git a/src/Microsoft.Graph/Generated/Models/Security/SslCertificate.cs b/src/Microsoft.Graph/Generated/Models/Security/SslCertificate.cs new file mode 100644 index 00000000000..fcde91c975e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/SslCertificate.cs @@ -0,0 +1,163 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class SslCertificate : Artifact, IParsable { + /// The date and time when a certificate expires. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + public DateTimeOffset? ExpirationDateTime { + get { return BackingStore?.Get("expirationDateTime"); } + set { BackingStore?.Set("expirationDateTime", value); } + } + /// A hash of the certificate calculated on the data and signature. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Fingerprint { + get { return BackingStore?.Get("fingerprint"); } + set { BackingStore?.Set("fingerprint", value); } + } +#nullable restore +#else + public string Fingerprint { + get { return BackingStore?.Get("fingerprint"); } + set { BackingStore?.Set("fingerprint", value); } + } +#endif + /// The first date and time when this sslCertificate was observed. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + public DateTimeOffset? FirstSeenDateTime { + get { return BackingStore?.Get("firstSeenDateTime"); } + set { BackingStore?.Set("firstSeenDateTime", value); } + } + /// The date and time when a certificate was issued. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + public DateTimeOffset? IssueDateTime { + get { return BackingStore?.Get("issueDateTime"); } + set { BackingStore?.Set("issueDateTime", value); } + } + /// The entity that grants this certificate. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public SslCertificateEntity? Issuer { + get { return BackingStore?.Get("issuer"); } + set { BackingStore?.Set("issuer", value); } + } +#nullable restore +#else + public SslCertificateEntity Issuer { + get { return BackingStore?.Get("issuer"); } + set { BackingStore?.Set("issuer", value); } + } +#endif + /// The most recent date and time when this sslCertificate was observed. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + public DateTimeOffset? LastSeenDateTime { + get { return BackingStore?.Get("lastSeenDateTime"); } + set { BackingStore?.Set("lastSeenDateTime", value); } + } + /// The hosts related with this sslCertificate. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? RelatedHosts { + get { return BackingStore?.Get?>("relatedHosts"); } + set { BackingStore?.Set("relatedHosts", value); } + } +#nullable restore +#else + public List RelatedHosts { + get { return BackingStore?.Get>("relatedHosts"); } + set { BackingStore?.Set("relatedHosts", value); } + } +#endif + /// The serial number associated with an SSL certificate. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? SerialNumber { + get { return BackingStore?.Get("serialNumber"); } + set { BackingStore?.Set("serialNumber", value); } + } +#nullable restore +#else + public string SerialNumber { + get { return BackingStore?.Get("serialNumber"); } + set { BackingStore?.Set("serialNumber", value); } + } +#endif + /// A SHA-1 hash of the certificate. Note: This is not the signature. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Sha1 { + get { return BackingStore?.Get("sha1"); } + set { BackingStore?.Set("sha1", value); } + } +#nullable restore +#else + public string Sha1 { + get { return BackingStore?.Get("sha1"); } + set { BackingStore?.Set("sha1", value); } + } +#endif + /// The person, site, machine, and so on, this certificate is for. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public SslCertificateEntity? Subject { + get { return BackingStore?.Get("subject"); } + set { BackingStore?.Set("subject", value); } + } +#nullable restore +#else + public SslCertificateEntity Subject { + get { return BackingStore?.Get("subject"); } + set { BackingStore?.Set("subject", value); } + } +#endif + /// + /// Instantiates a new sslCertificate and sets the default values. + /// + public SslCertificate() : base() { + OdataType = "#microsoft.graph.security.sslCertificate"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new SslCertificate CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new SslCertificate(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"expirationDateTime", n => { ExpirationDateTime = n.GetDateTimeOffsetValue(); } }, + {"fingerprint", n => { Fingerprint = n.GetStringValue(); } }, + {"firstSeenDateTime", n => { FirstSeenDateTime = n.GetDateTimeOffsetValue(); } }, + {"issueDateTime", n => { IssueDateTime = n.GetDateTimeOffsetValue(); } }, + {"issuer", n => { Issuer = n.GetObjectValue(SslCertificateEntity.CreateFromDiscriminatorValue); } }, + {"lastSeenDateTime", n => { LastSeenDateTime = n.GetDateTimeOffsetValue(); } }, + {"relatedHosts", n => { RelatedHosts = n.GetCollectionOfObjectValues(Host.CreateFromDiscriminatorValue)?.ToList(); } }, + {"serialNumber", n => { SerialNumber = n.GetStringValue(); } }, + {"sha1", n => { Sha1 = n.GetStringValue(); } }, + {"subject", n => { Subject = n.GetObjectValue(SslCertificateEntity.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteDateTimeOffsetValue("expirationDateTime", ExpirationDateTime); + writer.WriteStringValue("fingerprint", Fingerprint); + writer.WriteDateTimeOffsetValue("firstSeenDateTime", FirstSeenDateTime); + writer.WriteDateTimeOffsetValue("issueDateTime", IssueDateTime); + writer.WriteObjectValue("issuer", Issuer); + writer.WriteDateTimeOffsetValue("lastSeenDateTime", LastSeenDateTime); + writer.WriteCollectionOfObjectValues("relatedHosts", RelatedHosts); + writer.WriteStringValue("serialNumber", SerialNumber); + writer.WriteStringValue("sha1", Sha1); + writer.WriteObjectValue("subject", Subject); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/SslCertificateCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/SslCertificateCollectionResponse.cs new file mode 100644 index 00000000000..d6f589a2a13 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/SslCertificateCollectionResponse.cs @@ -0,0 +1,49 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class SslCertificateCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new SslCertificateCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new SslCertificateCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(SslCertificate.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/SslCertificateEntity.cs b/src/Microsoft.Graph/Generated/Models/Security/SslCertificateEntity.cs new file mode 100644 index 00000000000..8b201ba67c9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/SslCertificateEntity.cs @@ -0,0 +1,208 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class SslCertificateEntity : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// A physical address of the entity. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.PhysicalAddress? Address { + get { return BackingStore?.Get("address"); } + set { BackingStore?.Set("address", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.PhysicalAddress Address { + get { return BackingStore?.Get("address"); } + set { BackingStore?.Set("address", value); } + } +#endif + /// Alternate names for this entity that are part of the certificate. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? AlternateNames { + get { return BackingStore?.Get?>("alternateNames"); } + set { BackingStore?.Set("alternateNames", value); } + } +#nullable restore +#else + public List AlternateNames { + get { return BackingStore?.Get>("alternateNames"); } + set { BackingStore?.Set("alternateNames", value); } + } +#endif + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// A common name for this entity. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? CommonName { + get { return BackingStore?.Get("commonName"); } + set { BackingStore?.Set("commonName", value); } + } +#nullable restore +#else + public string CommonName { + get { return BackingStore?.Get("commonName"); } + set { BackingStore?.Set("commonName", value); } + } +#endif + /// An email for this entity. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Email { + get { return BackingStore?.Get("email"); } + set { BackingStore?.Set("email", value); } + } +#nullable restore +#else + public string Email { + get { return BackingStore?.Get("email"); } + set { BackingStore?.Set("email", value); } + } +#endif + /// If the entity is a person, this is the person's given name (first name). +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? GivenName { + get { return BackingStore?.Get("givenName"); } + set { BackingStore?.Set("givenName", value); } + } +#nullable restore +#else + public string GivenName { + get { return BackingStore?.Get("givenName"); } + set { BackingStore?.Set("givenName", value); } + } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#nullable restore +#else + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#endif + /// If the entity is an organization, this is the name of the organization. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OrganizationName { + get { return BackingStore?.Get("organizationName"); } + set { BackingStore?.Set("organizationName", value); } + } +#nullable restore +#else + public string OrganizationName { + get { return BackingStore?.Get("organizationName"); } + set { BackingStore?.Set("organizationName", value); } + } +#endif + /// If the entity is an organization, this communicates if a unit in the organization is named on the entity. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OrganizationUnitName { + get { return BackingStore?.Get("organizationUnitName"); } + set { BackingStore?.Set("organizationUnitName", value); } + } +#nullable restore +#else + public string OrganizationUnitName { + get { return BackingStore?.Get("organizationUnitName"); } + set { BackingStore?.Set("organizationUnitName", value); } + } +#endif + /// A serial number assigned to the entity; usually only available if the entity is the issuer. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? SerialNumber { + get { return BackingStore?.Get("serialNumber"); } + set { BackingStore?.Set("serialNumber", value); } + } +#nullable restore +#else + public string SerialNumber { + get { return BackingStore?.Get("serialNumber"); } + set { BackingStore?.Set("serialNumber", value); } + } +#endif + /// If the entity is a person, this is the person's surname (last name). +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Surname { + get { return BackingStore?.Get("surname"); } + set { BackingStore?.Set("surname", value); } + } +#nullable restore +#else + public string Surname { + get { return BackingStore?.Get("surname"); } + set { BackingStore?.Set("surname", value); } + } +#endif + /// + /// Instantiates a new sslCertificateEntity and sets the default values. + /// + public SslCertificateEntity() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static SslCertificateEntity CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new SslCertificateEntity(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"address", n => { Address = n.GetObjectValue(Microsoft.Graph.Models.PhysicalAddress.CreateFromDiscriminatorValue); } }, + {"alternateNames", n => { AlternateNames = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + {"commonName", n => { CommonName = n.GetStringValue(); } }, + {"email", n => { Email = n.GetStringValue(); } }, + {"givenName", n => { GivenName = n.GetStringValue(); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"organizationName", n => { OrganizationName = n.GetStringValue(); } }, + {"organizationUnitName", n => { OrganizationUnitName = n.GetStringValue(); } }, + {"serialNumber", n => { SerialNumber = n.GetStringValue(); } }, + {"surname", n => { Surname = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("address", Address); + writer.WriteCollectionOfPrimitiveValues("alternateNames", AlternateNames); + writer.WriteStringValue("commonName", CommonName); + writer.WriteStringValue("email", Email); + writer.WriteStringValue("givenName", GivenName); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("organizationName", OrganizationName); + writer.WriteStringValue("organizationUnitName", OrganizationUnitName); + writer.WriteStringValue("serialNumber", SerialNumber); + writer.WriteStringValue("surname", Surname); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/Subdomain.cs b/src/Microsoft.Graph/Generated/Models/Security/Subdomain.cs new file mode 100644 index 00000000000..a187afbddc5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/Subdomain.cs @@ -0,0 +1,56 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class Subdomain : Entity, IParsable { + /// The date and time when Microsoft Defender Threat Intelligence first observed the subdomain. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + public DateTimeOffset? FirstSeenDateTime { + get { return BackingStore?.Get("firstSeenDateTime"); } + set { BackingStore?.Set("firstSeenDateTime", value); } + } + /// The host property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.Security.Host? Host { + get { return BackingStore?.Get("host"); } + set { BackingStore?.Set("host", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.Security.Host Host { + get { return BackingStore?.Get("host"); } + set { BackingStore?.Set("host", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new Subdomain CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new Subdomain(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"firstSeenDateTime", n => { FirstSeenDateTime = n.GetDateTimeOffsetValue(); } }, + {"host", n => { Host = n.GetObjectValue(Microsoft.Graph.Models.Security.Host.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteDateTimeOffsetValue("firstSeenDateTime", FirstSeenDateTime); + writer.WriteObjectValue("host", Host); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/SubdomainCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/SubdomainCollectionResponse.cs new file mode 100644 index 00000000000..bc9cf7129fd --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/SubdomainCollectionResponse.cs @@ -0,0 +1,49 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class SubdomainCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new SubdomainCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new SubdomainCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Subdomain.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/ThreatIntelligence.cs b/src/Microsoft.Graph/Generated/Models/Security/ThreatIntelligence.cs index 7f3b45b5247..08f49de721c 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/ThreatIntelligence.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/ThreatIntelligence.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models.Security { public class ThreatIntelligence : Entity, IParsable { - /// Refers to indicators of threat or compromise highlighted in an microsoft.graph.security.article.Note: List retrieval is not yet supported. + /// Refers to indicators of threat or compromise highlighted in an article.Note: List retrieval is not yet supported. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? ArticleIndicators { @@ -34,7 +34,7 @@ public List
Articles { set { BackingStore?.Set("articles", value); } } #endif - /// Retrieve details about microsoft.graph.security.hostComponent objects.Note: List retrieval is not yet supported. + /// Retrieve details about hostComponent objects.Note: List retrieval is not yet supported. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? HostComponents { @@ -48,7 +48,7 @@ public List HostComponents { set { BackingStore?.Set("hostComponents", value); } } #endif - /// Retrieve details about microsoft.graph.security.hostCookie objects.Note: List retrieval is not yet supported. + /// Retrieve details about hostCookie objects.Note: List retrieval is not yet supported. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? HostCookies { @@ -62,7 +62,21 @@ public List HostCookies { set { BackingStore?.Set("hostCookies", value); } } #endif - /// Refers to microsoft.graph.security.host objects that Microsoft Threat Intelligence has observed.Note: List retrieval is not yet supported. + /// Retrieve details about hostTracker objects.Note: List retrieval is not yet supported. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? HostPairs { + get { return BackingStore?.Get?>("hostPairs"); } + set { BackingStore?.Set("hostPairs", value); } + } +#nullable restore +#else + public List HostPairs { + get { return BackingStore?.Get>("hostPairs"); } + set { BackingStore?.Set("hostPairs", value); } + } +#endif + /// Refers to host objects that Microsoft Threat Intelligence has observed.Note: List retrieval is not yet supported. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Hosts { @@ -76,7 +90,21 @@ public List Hosts { set { BackingStore?.Set("hosts", value); } } #endif - /// Retrieve details about microsoft.graph.security.hostTracker objects.Note: List retrieval is not yet supported. + /// Retrieve details about hostSslCertificate objects.Note: List retrieval is not yet supported. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? HostSslCertificates { + get { return BackingStore?.Get?>("hostSslCertificates"); } + set { BackingStore?.Set("hostSslCertificates", value); } + } +#nullable restore +#else + public List HostSslCertificates { + get { return BackingStore?.Get>("hostSslCertificates"); } + set { BackingStore?.Set("hostSslCertificates", value); } + } +#endif + /// Retrieve details about hostTracker objects.Note: List retrieval is not yet supported. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? HostTrackers { @@ -118,7 +146,7 @@ public List IntelProfiles { set { BackingStore?.Set("intelProfiles", value); } } #endif - /// Retrieve details about microsoft.graph.security.passiveDnsRecord objects.Note: List retrieval is not yet supported. + /// Retrieve details about passiveDnsRecord objects.Note: List retrieval is not yet supported. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? PassiveDnsRecords { @@ -132,7 +160,35 @@ public List PassiveDnsRecords { set { BackingStore?.Set("passiveDnsRecords", value); } } #endif - /// Retrieve details about microsoft.graph.security.vulnerabilities.Note: List retrieval is not yet supported. + /// Retrieve details about sslCertificate objects.Note: List retrieval is not yet supported. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SslCertificates { + get { return BackingStore?.Get?>("sslCertificates"); } + set { BackingStore?.Set("sslCertificates", value); } + } +#nullable restore +#else + public List SslCertificates { + get { return BackingStore?.Get>("sslCertificates"); } + set { BackingStore?.Set("sslCertificates", value); } + } +#endif + /// Retrieve details about the subdomain.Note: List retrieval is not yet supported. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Subdomains { + get { return BackingStore?.Get?>("subdomains"); } + set { BackingStore?.Set("subdomains", value); } + } +#nullable restore +#else + public List Subdomains { + get { return BackingStore?.Get>("subdomains"); } + set { BackingStore?.Set("subdomains", value); } + } +#endif + /// Retrieve details about vulnerabilities.Note: List retrieval is not yet supported. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Vulnerabilities { @@ -145,6 +201,34 @@ public List Vulnerabilities { get { return BackingStore?.Get>("vulnerabilities"); } set { BackingStore?.Set("vulnerabilities", value); } } +#endif + /// Retrieve details about whoisHistoryRecord objects.Note: List retrieval is not yet supported. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? WhoisHistoryRecords { + get { return BackingStore?.Get?>("whoisHistoryRecords"); } + set { BackingStore?.Set("whoisHistoryRecords", value); } + } +#nullable restore +#else + public List WhoisHistoryRecords { + get { return BackingStore?.Get>("whoisHistoryRecords"); } + set { BackingStore?.Set("whoisHistoryRecords", value); } + } +#endif + /// A list of whoisRecord objects. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? WhoisRecords { + get { return BackingStore?.Get?>("whoisRecords"); } + set { BackingStore?.Set("whoisRecords", value); } + } +#nullable restore +#else + public List WhoisRecords { + get { return BackingStore?.Get>("whoisRecords"); } + set { BackingStore?.Set("whoisRecords", value); } + } #endif /// /// Creates a new instance of the appropriate class based on discriminator value @@ -163,12 +247,18 @@ public List Vulnerabilities { {"articles", n => { Articles = n.GetCollectionOfObjectValues
(Article.CreateFromDiscriminatorValue)?.ToList(); } }, {"hostComponents", n => { HostComponents = n.GetCollectionOfObjectValues(HostComponent.CreateFromDiscriminatorValue)?.ToList(); } }, {"hostCookies", n => { HostCookies = n.GetCollectionOfObjectValues(HostCookie.CreateFromDiscriminatorValue)?.ToList(); } }, - {"hosts", n => { Hosts = n.GetCollectionOfObjectValues(Host.CreateFromDiscriminatorValue)?.ToList(); } }, + {"hostPairs", n => { HostPairs = n.GetCollectionOfObjectValues(HostPair.CreateFromDiscriminatorValue)?.ToList(); } }, + {"hostSslCertificates", n => { HostSslCertificates = n.GetCollectionOfObjectValues(HostSslCertificate.CreateFromDiscriminatorValue)?.ToList(); } }, {"hostTrackers", n => { HostTrackers = n.GetCollectionOfObjectValues(HostTracker.CreateFromDiscriminatorValue)?.ToList(); } }, - {"intelligenceProfileIndicators", n => { IntelligenceProfileIndicators = n.GetCollectionOfObjectValues(IntelligenceProfileIndicator.CreateFromDiscriminatorValue)?.ToList(); } }, + {"hosts", n => { Hosts = n.GetCollectionOfObjectValues(Host.CreateFromDiscriminatorValue)?.ToList(); } }, {"intelProfiles", n => { IntelProfiles = n.GetCollectionOfObjectValues(IntelligenceProfile.CreateFromDiscriminatorValue)?.ToList(); } }, + {"intelligenceProfileIndicators", n => { IntelligenceProfileIndicators = n.GetCollectionOfObjectValues(IntelligenceProfileIndicator.CreateFromDiscriminatorValue)?.ToList(); } }, {"passiveDnsRecords", n => { PassiveDnsRecords = n.GetCollectionOfObjectValues(PassiveDnsRecord.CreateFromDiscriminatorValue)?.ToList(); } }, + {"sslCertificates", n => { SslCertificates = n.GetCollectionOfObjectValues(SslCertificate.CreateFromDiscriminatorValue)?.ToList(); } }, + {"subdomains", n => { Subdomains = n.GetCollectionOfObjectValues(Subdomain.CreateFromDiscriminatorValue)?.ToList(); } }, {"vulnerabilities", n => { Vulnerabilities = n.GetCollectionOfObjectValues(Vulnerability.CreateFromDiscriminatorValue)?.ToList(); } }, + {"whoisHistoryRecords", n => { WhoisHistoryRecords = n.GetCollectionOfObjectValues(WhoisHistoryRecord.CreateFromDiscriminatorValue)?.ToList(); } }, + {"whoisRecords", n => { WhoisRecords = n.GetCollectionOfObjectValues(WhoisRecord.CreateFromDiscriminatorValue)?.ToList(); } }, }; } /// @@ -182,12 +272,18 @@ public List Vulnerabilities { writer.WriteCollectionOfObjectValues
("articles", Articles); writer.WriteCollectionOfObjectValues("hostComponents", HostComponents); writer.WriteCollectionOfObjectValues("hostCookies", HostCookies); + writer.WriteCollectionOfObjectValues("hostPairs", HostPairs); writer.WriteCollectionOfObjectValues("hosts", Hosts); + writer.WriteCollectionOfObjectValues("hostSslCertificates", HostSslCertificates); writer.WriteCollectionOfObjectValues("hostTrackers", HostTrackers); writer.WriteCollectionOfObjectValues("intelligenceProfileIndicators", IntelligenceProfileIndicators); writer.WriteCollectionOfObjectValues("intelProfiles", IntelProfiles); writer.WriteCollectionOfObjectValues("passiveDnsRecords", PassiveDnsRecords); + writer.WriteCollectionOfObjectValues("sslCertificates", SslCertificates); + writer.WriteCollectionOfObjectValues("subdomains", Subdomains); writer.WriteCollectionOfObjectValues("vulnerabilities", Vulnerabilities); + writer.WriteCollectionOfObjectValues("whoisHistoryRecords", WhoisHistoryRecords); + writer.WriteCollectionOfObjectValues("whoisRecords", WhoisRecords); } } } diff --git a/src/Microsoft.Graph/Generated/Models/Security/WhoisBaseRecord.cs b/src/Microsoft.Graph/Generated/Models/Security/WhoisBaseRecord.cs new file mode 100644 index 00000000000..4984ea675a7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/WhoisBaseRecord.cs @@ -0,0 +1,281 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class WhoisBaseRecord : Entity, IParsable { + /// The contact information for the abuse contact. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public WhoisContact? Abuse { + get { return BackingStore?.Get("abuse"); } + set { BackingStore?.Set("abuse", value); } + } +#nullable restore +#else + public WhoisContact Abuse { + get { return BackingStore?.Get("abuse"); } + set { BackingStore?.Set("abuse", value); } + } +#endif + /// The contact information for the admin contact. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public WhoisContact? Admin { + get { return BackingStore?.Get("admin"); } + set { BackingStore?.Set("admin", value); } + } +#nullable restore +#else + public WhoisContact Admin { + get { return BackingStore?.Get("admin"); } + set { BackingStore?.Set("admin", value); } + } +#endif + /// The contact information for the billing contact. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public WhoisContact? Billing { + get { return BackingStore?.Get("billing"); } + set { BackingStore?.Set("billing", value); } + } +#nullable restore +#else + public WhoisContact Billing { + get { return BackingStore?.Get("billing"); } + set { BackingStore?.Set("billing", value); } + } +#endif + /// The domain status for this WHOIS object. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DomainStatus { + get { return BackingStore?.Get("domainStatus"); } + set { BackingStore?.Set("domainStatus", value); } + } +#nullable restore +#else + public string DomainStatus { + get { return BackingStore?.Get("domainStatus"); } + set { BackingStore?.Set("domainStatus", value); } + } +#endif + /// The date and time when this WHOIS record expires with the registrar. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + public DateTimeOffset? ExpirationDateTime { + get { return BackingStore?.Get("expirationDateTime"); } + set { BackingStore?.Set("expirationDateTime", value); } + } + /// The first seen date and time of this WHOIS record. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + public DateTimeOffset? FirstSeenDateTime { + get { return BackingStore?.Get("firstSeenDateTime"); } + set { BackingStore?.Set("firstSeenDateTime", value); } + } + /// The host property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.Security.Host? Host { + get { return BackingStore?.Get("host"); } + set { BackingStore?.Set("host", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.Security.Host Host { + get { return BackingStore?.Get("host"); } + set { BackingStore?.Set("host", value); } + } +#endif + /// The last seen date and time of this WHOIS record. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + public DateTimeOffset? LastSeenDateTime { + get { return BackingStore?.Get("lastSeenDateTime"); } + set { BackingStore?.Set("lastSeenDateTime", value); } + } + /// The date and time when this WHOIS record was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + public DateTimeOffset? LastUpdateDateTime { + get { return BackingStore?.Get("lastUpdateDateTime"); } + set { BackingStore?.Set("lastUpdateDateTime", value); } + } + /// The nameservers for this WHOIS object. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Nameservers { + get { return BackingStore?.Get?>("nameservers"); } + set { BackingStore?.Set("nameservers", value); } + } +#nullable restore +#else + public List Nameservers { + get { return BackingStore?.Get>("nameservers"); } + set { BackingStore?.Set("nameservers", value); } + } +#endif + /// The contact information for the noc contact. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public WhoisContact? Noc { + get { return BackingStore?.Get("noc"); } + set { BackingStore?.Set("noc", value); } + } +#nullable restore +#else + public WhoisContact Noc { + get { return BackingStore?.Get("noc"); } + set { BackingStore?.Set("noc", value); } + } +#endif + /// The raw WHOIS details for this WHOIS object. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? RawWhoisText { + get { return BackingStore?.Get("rawWhoisText"); } + set { BackingStore?.Set("rawWhoisText", value); } + } +#nullable restore +#else + public string RawWhoisText { + get { return BackingStore?.Get("rawWhoisText"); } + set { BackingStore?.Set("rawWhoisText", value); } + } +#endif + /// The contact information for the registrant contact. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public WhoisContact? Registrant { + get { return BackingStore?.Get("registrant"); } + set { BackingStore?.Set("registrant", value); } + } +#nullable restore +#else + public WhoisContact Registrant { + get { return BackingStore?.Get("registrant"); } + set { BackingStore?.Set("registrant", value); } + } +#endif + /// The contact information for the registrar contact. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public WhoisContact? Registrar { + get { return BackingStore?.Get("registrar"); } + set { BackingStore?.Set("registrar", value); } + } +#nullable restore +#else + public WhoisContact Registrar { + get { return BackingStore?.Get("registrar"); } + set { BackingStore?.Set("registrar", value); } + } +#endif + /// The date and time when this WHOIS record was registered with a registrar. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + public DateTimeOffset? RegistrationDateTime { + get { return BackingStore?.Get("registrationDateTime"); } + set { BackingStore?.Set("registrationDateTime", value); } + } + /// The contact information for the technical contact. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public WhoisContact? Technical { + get { return BackingStore?.Get("technical"); } + set { BackingStore?.Set("technical", value); } + } +#nullable restore +#else + public WhoisContact Technical { + get { return BackingStore?.Get("technical"); } + set { BackingStore?.Set("technical", value); } + } +#endif + /// The WHOIS server that provides the details. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? WhoisServer { + get { return BackingStore?.Get("whoisServer"); } + set { BackingStore?.Set("whoisServer", value); } + } +#nullable restore +#else + public string WhoisServer { + get { return BackingStore?.Get("whoisServer"); } + set { BackingStore?.Set("whoisServer", value); } + } +#endif + /// The contact information for the zone contact. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public WhoisContact? Zone { + get { return BackingStore?.Get("zone"); } + set { BackingStore?.Set("zone", value); } + } +#nullable restore +#else + public WhoisContact Zone { + get { return BackingStore?.Get("zone"); } + set { BackingStore?.Set("zone", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new WhoisBaseRecord CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch { + "#microsoft.graph.security.whoisHistoryRecord" => new WhoisHistoryRecord(), + "#microsoft.graph.security.whoisRecord" => new WhoisRecord(), + _ => new WhoisBaseRecord(), + }; + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"abuse", n => { Abuse = n.GetObjectValue(WhoisContact.CreateFromDiscriminatorValue); } }, + {"admin", n => { Admin = n.GetObjectValue(WhoisContact.CreateFromDiscriminatorValue); } }, + {"billing", n => { Billing = n.GetObjectValue(WhoisContact.CreateFromDiscriminatorValue); } }, + {"domainStatus", n => { DomainStatus = n.GetStringValue(); } }, + {"expirationDateTime", n => { ExpirationDateTime = n.GetDateTimeOffsetValue(); } }, + {"firstSeenDateTime", n => { FirstSeenDateTime = n.GetDateTimeOffsetValue(); } }, + {"host", n => { Host = n.GetObjectValue(Microsoft.Graph.Models.Security.Host.CreateFromDiscriminatorValue); } }, + {"lastSeenDateTime", n => { LastSeenDateTime = n.GetDateTimeOffsetValue(); } }, + {"lastUpdateDateTime", n => { LastUpdateDateTime = n.GetDateTimeOffsetValue(); } }, + {"nameservers", n => { Nameservers = n.GetCollectionOfObjectValues(WhoisNameserver.CreateFromDiscriminatorValue)?.ToList(); } }, + {"noc", n => { Noc = n.GetObjectValue(WhoisContact.CreateFromDiscriminatorValue); } }, + {"rawWhoisText", n => { RawWhoisText = n.GetStringValue(); } }, + {"registrant", n => { Registrant = n.GetObjectValue(WhoisContact.CreateFromDiscriminatorValue); } }, + {"registrar", n => { Registrar = n.GetObjectValue(WhoisContact.CreateFromDiscriminatorValue); } }, + {"registrationDateTime", n => { RegistrationDateTime = n.GetDateTimeOffsetValue(); } }, + {"technical", n => { Technical = n.GetObjectValue(WhoisContact.CreateFromDiscriminatorValue); } }, + {"whoisServer", n => { WhoisServer = n.GetStringValue(); } }, + {"zone", n => { Zone = n.GetObjectValue(WhoisContact.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteObjectValue("abuse", Abuse); + writer.WriteObjectValue("admin", Admin); + writer.WriteObjectValue("billing", Billing); + writer.WriteStringValue("domainStatus", DomainStatus); + writer.WriteDateTimeOffsetValue("expirationDateTime", ExpirationDateTime); + writer.WriteDateTimeOffsetValue("firstSeenDateTime", FirstSeenDateTime); + writer.WriteObjectValue("host", Host); + writer.WriteDateTimeOffsetValue("lastSeenDateTime", LastSeenDateTime); + writer.WriteDateTimeOffsetValue("lastUpdateDateTime", LastUpdateDateTime); + writer.WriteCollectionOfObjectValues("nameservers", Nameservers); + writer.WriteObjectValue("noc", Noc); + writer.WriteStringValue("rawWhoisText", RawWhoisText); + writer.WriteObjectValue("registrant", Registrant); + writer.WriteObjectValue("registrar", Registrar); + writer.WriteDateTimeOffsetValue("registrationDateTime", RegistrationDateTime); + writer.WriteObjectValue("technical", Technical); + writer.WriteStringValue("whoisServer", WhoisServer); + writer.WriteObjectValue("zone", Zone); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/WhoisContact.cs b/src/Microsoft.Graph/Generated/Models/Security/WhoisContact.cs new file mode 100644 index 00000000000..e1984cab9f9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/WhoisContact.cs @@ -0,0 +1,160 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class WhoisContact : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// The physical address of the entity. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.PhysicalAddress? Address { + get { return BackingStore?.Get("address"); } + set { BackingStore?.Set("address", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.PhysicalAddress Address { + get { return BackingStore?.Get("address"); } + set { BackingStore?.Set("address", value); } + } +#endif + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The email of this WHOIS contact. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Email { + get { return BackingStore?.Get("email"); } + set { BackingStore?.Set("email", value); } + } +#nullable restore +#else + public string Email { + get { return BackingStore?.Get("email"); } + set { BackingStore?.Set("email", value); } + } +#endif + /// The fax of this WHOIS contact. No format is guaranteed. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Fax { + get { return BackingStore?.Get("fax"); } + set { BackingStore?.Set("fax", value); } + } +#nullable restore +#else + public string Fax { + get { return BackingStore?.Get("fax"); } + set { BackingStore?.Set("fax", value); } + } +#endif + /// The name of this WHOIS contact. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Name { + get { return BackingStore?.Get("name"); } + set { BackingStore?.Set("name", value); } + } +#nullable restore +#else + public string Name { + get { return BackingStore?.Get("name"); } + set { BackingStore?.Set("name", value); } + } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#nullable restore +#else + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#endif + /// The organization of this WHOIS contact. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Organization { + get { return BackingStore?.Get("organization"); } + set { BackingStore?.Set("organization", value); } + } +#nullable restore +#else + public string Organization { + get { return BackingStore?.Get("organization"); } + set { BackingStore?.Set("organization", value); } + } +#endif + /// The telephone of this WHOIS contact. No format is guaranteed. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Telephone { + get { return BackingStore?.Get("telephone"); } + set { BackingStore?.Set("telephone", value); } + } +#nullable restore +#else + public string Telephone { + get { return BackingStore?.Get("telephone"); } + set { BackingStore?.Set("telephone", value); } + } +#endif + /// + /// Instantiates a new whoisContact and sets the default values. + /// + public WhoisContact() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static WhoisContact CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new WhoisContact(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"address", n => { Address = n.GetObjectValue(Microsoft.Graph.Models.PhysicalAddress.CreateFromDiscriminatorValue); } }, + {"email", n => { Email = n.GetStringValue(); } }, + {"fax", n => { Fax = n.GetStringValue(); } }, + {"name", n => { Name = n.GetStringValue(); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"organization", n => { Organization = n.GetStringValue(); } }, + {"telephone", n => { Telephone = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("address", Address); + writer.WriteStringValue("email", Email); + writer.WriteStringValue("fax", Fax); + writer.WriteStringValue("name", Name); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("organization", Organization); + writer.WriteStringValue("telephone", Telephone); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/WhoisHistoryRecord.cs b/src/Microsoft.Graph/Generated/Models/Security/WhoisHistoryRecord.cs new file mode 100644 index 00000000000..ff05632e099 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/WhoisHistoryRecord.cs @@ -0,0 +1,39 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class WhoisHistoryRecord : WhoisBaseRecord, IParsable { + /// + /// Instantiates a new whoisHistoryRecord and sets the default values. + /// + public WhoisHistoryRecord() : base() { + OdataType = "#microsoft.graph.security.whoisHistoryRecord"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new WhoisHistoryRecord CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new WhoisHistoryRecord(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/WhoisHistoryRecordCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/WhoisHistoryRecordCollectionResponse.cs new file mode 100644 index 00000000000..c55ebbe0089 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/WhoisHistoryRecordCollectionResponse.cs @@ -0,0 +1,49 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class WhoisHistoryRecordCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new WhoisHistoryRecordCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new WhoisHistoryRecordCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(WhoisHistoryRecord.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/WhoisNameserver.cs b/src/Microsoft.Graph/Generated/Models/Security/WhoisNameserver.cs new file mode 100644 index 00000000000..122915fda82 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/WhoisNameserver.cs @@ -0,0 +1,94 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class WhoisNameserver : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The first seen date and time of this WHOIS contact. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + public DateTimeOffset? FirstSeenDateTime { + get { return BackingStore?.Get("firstSeenDateTime"); } + set { BackingStore?.Set("firstSeenDateTime", value); } + } + /// The host property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.Security.Host? Host { + get { return BackingStore?.Get("host"); } + set { BackingStore?.Set("host", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.Security.Host Host { + get { return BackingStore?.Get("host"); } + set { BackingStore?.Set("host", value); } + } +#endif + /// The last seen date and time of this WHOIS contact. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + public DateTimeOffset? LastSeenDateTime { + get { return BackingStore?.Get("lastSeenDateTime"); } + set { BackingStore?.Set("lastSeenDateTime", value); } + } + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#nullable restore +#else + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#endif + /// + /// Instantiates a new whoisNameserver and sets the default values. + /// + public WhoisNameserver() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static WhoisNameserver CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new WhoisNameserver(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"firstSeenDateTime", n => { FirstSeenDateTime = n.GetDateTimeOffsetValue(); } }, + {"host", n => { Host = n.GetObjectValue(Microsoft.Graph.Models.Security.Host.CreateFromDiscriminatorValue); } }, + {"lastSeenDateTime", n => { LastSeenDateTime = n.GetDateTimeOffsetValue(); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteDateTimeOffsetValue("firstSeenDateTime", FirstSeenDateTime); + writer.WriteObjectValue("host", Host); + writer.WriteDateTimeOffsetValue("lastSeenDateTime", LastSeenDateTime); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/WhoisRecord.cs b/src/Microsoft.Graph/Generated/Models/Security/WhoisRecord.cs new file mode 100644 index 00000000000..f8cadc99a2d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/WhoisRecord.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class WhoisRecord : WhoisBaseRecord, IParsable { + /// The collection of historical records associated to this WHOIS object. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? History { + get { return BackingStore?.Get?>("history"); } + set { BackingStore?.Set("history", value); } + } +#nullable restore +#else + public List History { + get { return BackingStore?.Get>("history"); } + set { BackingStore?.Set("history", value); } + } +#endif + /// + /// Instantiates a new whoisRecord and sets the default values. + /// + public WhoisRecord() : base() { + OdataType = "#microsoft.graph.security.whoisRecord"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new WhoisRecord CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new WhoisRecord(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"history", n => { History = n.GetCollectionOfObjectValues(WhoisHistoryRecord.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("history", History); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/WhoisRecordCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/WhoisRecordCollectionResponse.cs new file mode 100644 index 00000000000..247ba54f377 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/WhoisRecordCollectionResponse.cs @@ -0,0 +1,49 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class WhoisRecordCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new WhoisRecordCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new WhoisRecordCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(WhoisRecord.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/SelfServiceSignUpAuthenticationFlowConfiguration.cs b/src/Microsoft.Graph/Generated/Models/SelfServiceSignUpAuthenticationFlowConfiguration.cs index a8af4770078..bde6a93aa81 100644 --- a/src/Microsoft.Graph/Generated/Models/SelfServiceSignUpAuthenticationFlowConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/SelfServiceSignUpAuthenticationFlowConfiguration.cs @@ -14,7 +14,7 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// Indicates whether self-service sign-up flow is enabled or disabled. The default value is false. This property is not a key. Required. + /// Indicates whether self-service sign-up flow is enabled or disabled. The default value is false. This property isn't a key. Required. public bool? IsEnabled { get { return BackingStore?.Get("isEnabled"); } set { BackingStore?.Set("isEnabled", value); } diff --git a/src/Microsoft.Graph/Generated/Models/ServicePrincipal.cs b/src/Microsoft.Graph/Generated/Models/ServicePrincipal.cs index 6423b00f5cc..ca8124eda69 100644 --- a/src/Microsoft.Graph/Generated/Models/ServicePrincipal.cs +++ b/src/Microsoft.Graph/Generated/Models/ServicePrincipal.cs @@ -709,13 +709,13 @@ public ServicePrincipal() : base() { {"appDescription", n => { AppDescription = n.GetStringValue(); } }, {"appDisplayName", n => { AppDisplayName = n.GetStringValue(); } }, {"appId", n => { AppId = n.GetStringValue(); } }, - {"applicationTemplateId", n => { ApplicationTemplateId = n.GetStringValue(); } }, {"appManagementPolicies", n => { AppManagementPolicies = n.GetCollectionOfObjectValues(AppManagementPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, {"appOwnerOrganizationId", n => { AppOwnerOrganizationId = n.GetGuidValue(); } }, {"appRoleAssignedTo", n => { AppRoleAssignedTo = n.GetCollectionOfObjectValues(AppRoleAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, {"appRoleAssignmentRequired", n => { AppRoleAssignmentRequired = n.GetBoolValue(); } }, {"appRoleAssignments", n => { AppRoleAssignments = n.GetCollectionOfObjectValues(AppRoleAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, {"appRoles", n => { AppRoles = n.GetCollectionOfObjectValues(AppRole.CreateFromDiscriminatorValue)?.ToList(); } }, + {"applicationTemplateId", n => { ApplicationTemplateId = n.GetStringValue(); } }, {"claimsMappingPolicies", n => { ClaimsMappingPolicies = n.GetCollectionOfObjectValues(ClaimsMappingPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, {"createdObjects", n => { CreatedObjects = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, {"customSecurityAttributes", n => { CustomSecurityAttributes = n.GetObjectValue(CustomSecurityAttributeValue.CreateFromDiscriminatorValue); } }, @@ -725,8 +725,8 @@ public ServicePrincipal() : base() { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"endpoints", n => { Endpoints = n.GetCollectionOfObjectValues(Endpoint.CreateFromDiscriminatorValue)?.ToList(); } }, {"federatedIdentityCredentials", n => { FederatedIdentityCredentials = n.GetCollectionOfObjectValues(FederatedIdentityCredential.CreateFromDiscriminatorValue)?.ToList(); } }, - {"homepage", n => { Homepage = n.GetStringValue(); } }, {"homeRealmDiscoveryPolicies", n => { HomeRealmDiscoveryPolicies = n.GetCollectionOfObjectValues(HomeRealmDiscoveryPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, + {"homepage", n => { Homepage = n.GetStringValue(); } }, {"info", n => { Info = n.GetObjectValue(InformationalUrl.CreateFromDiscriminatorValue); } }, {"keyCredentials", n => { KeyCredentials = n.GetCollectionOfObjectValues(KeyCredential.CreateFromDiscriminatorValue)?.ToList(); } }, {"loginUrl", n => { LoginUrl = n.GetStringValue(); } }, diff --git a/src/Microsoft.Graph/Generated/Models/ServiceProvisioningErrorCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ServiceProvisioningErrorCollectionResponse.cs new file mode 100644 index 00000000000..68950fb7037 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/ServiceProvisioningErrorCollectionResponse.cs @@ -0,0 +1,49 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class ServiceProvisioningErrorCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new ServiceProvisioningErrorCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new ServiceProvisioningErrorCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ServiceProvisioningError.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/SharedPCConfiguration.cs b/src/Microsoft.Graph/Generated/Models/SharedPCConfiguration.cs index c0521ac014e..e2b4c8e19d7 100644 --- a/src/Microsoft.Graph/Generated/Models/SharedPCConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/SharedPCConfiguration.cs @@ -117,8 +117,8 @@ public SharedPCConfiguration() : base() { public new IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"accountManagerPolicy", n => { AccountManagerPolicy = n.GetObjectValue(SharedPCAccountManagerPolicy.CreateFromDiscriminatorValue); } }, - {"allowedAccounts", n => { AllowedAccounts = n.GetEnumValue(); } }, {"allowLocalStorage", n => { AllowLocalStorage = n.GetBoolValue(); } }, + {"allowedAccounts", n => { AllowedAccounts = n.GetEnumValue(); } }, {"disableAccountManager", n => { DisableAccountManager = n.GetBoolValue(); } }, {"disableEduPolicies", n => { DisableEduPolicies = n.GetBoolValue(); } }, {"disablePowerPolicies", n => { DisablePowerPolicies = n.GetBoolValue(); } }, diff --git a/src/Microsoft.Graph/Generated/Models/SignIn.cs b/src/Microsoft.Graph/Generated/Models/SignIn.cs index 4cc5e62d99a..4f2ebd74d16 100644 --- a/src/Microsoft.Graph/Generated/Models/SignIn.cs +++ b/src/Microsoft.Graph/Generated/Models/SignIn.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models { public class SignIn : Entity, IParsable { - /// App name displayed in the Azure portal. Supports $filter (eq, startsWith). + /// App name displayed in the Microsoft Entra admin center. Supports $filter (eq, startsWith). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? AppDisplayName { diff --git a/src/Microsoft.Graph/Generated/Models/Simulation.cs b/src/Microsoft.Graph/Generated/Models/Simulation.cs index ea7e070cdfb..44a6d08023d 100644 --- a/src/Microsoft.Graph/Generated/Models/Simulation.cs +++ b/src/Microsoft.Graph/Generated/Models/Simulation.cs @@ -81,12 +81,73 @@ public string DisplayName { get { return BackingStore?.Get("displayName"); } set { BackingStore?.Set("displayName", value); } } +#endif + /// The durationInDays property + public int? DurationInDays { + get { return BackingStore?.Get("durationInDays"); } + set { BackingStore?.Set("durationInDays", value); } + } + /// The endUserNotificationSetting property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.EndUserNotificationSetting? EndUserNotificationSetting { + get { return BackingStore?.Get("endUserNotificationSetting"); } + set { BackingStore?.Set("endUserNotificationSetting", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.EndUserNotificationSetting EndUserNotificationSetting { + get { return BackingStore?.Get("endUserNotificationSetting"); } + set { BackingStore?.Set("endUserNotificationSetting", value); } + } +#endif + /// The excludedAccountTarget property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public AccountTargetContent? ExcludedAccountTarget { + get { return BackingStore?.Get("excludedAccountTarget"); } + set { BackingStore?.Set("excludedAccountTarget", value); } + } +#nullable restore +#else + public AccountTargetContent ExcludedAccountTarget { + get { return BackingStore?.Get("excludedAccountTarget"); } + set { BackingStore?.Set("excludedAccountTarget", value); } + } +#endif + /// The includedAccountTarget property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public AccountTargetContent? IncludedAccountTarget { + get { return BackingStore?.Get("includedAccountTarget"); } + set { BackingStore?.Set("includedAccountTarget", value); } + } +#nullable restore +#else + public AccountTargetContent IncludedAccountTarget { + get { return BackingStore?.Get("includedAccountTarget"); } + set { BackingStore?.Set("includedAccountTarget", value); } + } #endif /// Flag that represents if the attack simulation and training campaign was created from a simulation automation flow. Supports $filter and $orderby. public bool? IsAutomated { get { return BackingStore?.Get("isAutomated"); } set { BackingStore?.Set("isAutomated", value); } } + /// The landingPage property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.LandingPage? LandingPage { + get { return BackingStore?.Get("landingPage"); } + set { BackingStore?.Set("landingPage", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.LandingPage LandingPage { + get { return BackingStore?.Get("landingPage"); } + set { BackingStore?.Set("landingPage", value); } + } +#endif /// Identity of the user who most recently modified the attack simulation and training campaign. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -111,6 +172,48 @@ public DateTimeOffset? LaunchDateTime { get { return BackingStore?.Get("launchDateTime"); } set { BackingStore?.Set("launchDateTime", value); } } + /// The loginPage property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.LoginPage? LoginPage { + get { return BackingStore?.Get("loginPage"); } + set { BackingStore?.Set("loginPage", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.LoginPage LoginPage { + get { return BackingStore?.Get("loginPage"); } + set { BackingStore?.Set("loginPage", value); } + } +#endif + /// The oAuthConsentAppDetail property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.OAuthConsentAppDetail? OAuthConsentAppDetail { + get { return BackingStore?.Get("oAuthConsentAppDetail"); } + set { BackingStore?.Set("oAuthConsentAppDetail", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.OAuthConsentAppDetail OAuthConsentAppDetail { + get { return BackingStore?.Get("oAuthConsentAppDetail"); } + set { BackingStore?.Set("oAuthConsentAppDetail", value); } + } +#endif + /// The payload property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.Payload? Payload { + get { return BackingStore?.Get("payload"); } + set { BackingStore?.Set("payload", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.Payload Payload { + get { return BackingStore?.Get("payload"); } + set { BackingStore?.Set("payload", value); } + } +#endif /// Method of delivery of the phishing payload used in the attack simulation and training campaign. Possible values are: unknown, sms, email, teams, unknownFutureValue. public Microsoft.Graph.Models.PayloadDeliveryPlatform? PayloadDeliveryPlatform { get { return BackingStore?.Get("payloadDeliveryPlatform"); } @@ -135,6 +238,20 @@ public SimulationStatus? Status { get { return BackingStore?.Get("status"); } set { BackingStore?.Set("status", value); } } + /// The trainingSetting property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.TrainingSetting? TrainingSetting { + get { return BackingStore?.Get("trainingSetting"); } + set { BackingStore?.Set("trainingSetting", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.TrainingSetting TrainingSetting { + get { return BackingStore?.Get("trainingSetting"); } + set { BackingStore?.Set("trainingSetting", value); } + } +#endif /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -156,13 +273,22 @@ public SimulationStatus? Status { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, + {"durationInDays", n => { DurationInDays = n.GetIntValue(); } }, + {"endUserNotificationSetting", n => { EndUserNotificationSetting = n.GetObjectValue(Microsoft.Graph.Models.EndUserNotificationSetting.CreateFromDiscriminatorValue); } }, + {"excludedAccountTarget", n => { ExcludedAccountTarget = n.GetObjectValue(AccountTargetContent.CreateFromDiscriminatorValue); } }, + {"includedAccountTarget", n => { IncludedAccountTarget = n.GetObjectValue(AccountTargetContent.CreateFromDiscriminatorValue); } }, {"isAutomated", n => { IsAutomated = n.GetBoolValue(); } }, + {"landingPage", n => { LandingPage = n.GetObjectValue(Microsoft.Graph.Models.LandingPage.CreateFromDiscriminatorValue); } }, {"lastModifiedBy", n => { LastModifiedBy = n.GetObjectValue(EmailIdentity.CreateFromDiscriminatorValue); } }, {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, {"launchDateTime", n => { LaunchDateTime = n.GetDateTimeOffsetValue(); } }, + {"loginPage", n => { LoginPage = n.GetObjectValue(Microsoft.Graph.Models.LoginPage.CreateFromDiscriminatorValue); } }, + {"oAuthConsentAppDetail", n => { OAuthConsentAppDetail = n.GetObjectValue(Microsoft.Graph.Models.OAuthConsentAppDetail.CreateFromDiscriminatorValue); } }, + {"payload", n => { Payload = n.GetObjectValue(Microsoft.Graph.Models.Payload.CreateFromDiscriminatorValue); } }, {"payloadDeliveryPlatform", n => { PayloadDeliveryPlatform = n.GetEnumValue(); } }, {"report", n => { Report = n.GetObjectValue(SimulationReport.CreateFromDiscriminatorValue); } }, {"status", n => { Status = n.GetEnumValue(); } }, + {"trainingSetting", n => { TrainingSetting = n.GetObjectValue(Microsoft.Graph.Models.TrainingSetting.CreateFromDiscriminatorValue); } }, }; } /// @@ -180,13 +306,22 @@ public SimulationStatus? Status { writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteStringValue("description", Description); writer.WriteStringValue("displayName", DisplayName); + writer.WriteIntValue("durationInDays", DurationInDays); + writer.WriteObjectValue("endUserNotificationSetting", EndUserNotificationSetting); + writer.WriteObjectValue("excludedAccountTarget", ExcludedAccountTarget); + writer.WriteObjectValue("includedAccountTarget", IncludedAccountTarget); writer.WriteBoolValue("isAutomated", IsAutomated); + writer.WriteObjectValue("landingPage", LandingPage); writer.WriteObjectValue("lastModifiedBy", LastModifiedBy); writer.WriteDateTimeOffsetValue("lastModifiedDateTime", LastModifiedDateTime); writer.WriteDateTimeOffsetValue("launchDateTime", LaunchDateTime); + writer.WriteObjectValue("loginPage", LoginPage); + writer.WriteObjectValue("oAuthConsentAppDetail", OAuthConsentAppDetail); + writer.WriteObjectValue("payload", Payload); writer.WriteEnumValue("payloadDeliveryPlatform", PayloadDeliveryPlatform); writer.WriteObjectValue("report", Report); writer.WriteEnumValue("status", Status); + writer.WriteObjectValue("trainingSetting", TrainingSetting); } } } diff --git a/src/Microsoft.Graph/Generated/Models/SimulationContentSource.cs b/src/Microsoft.Graph/Generated/Models/SimulationContentSource.cs new file mode 100644 index 00000000000..d60f00cc348 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/SimulationContentSource.cs @@ -0,0 +1,15 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + public enum SimulationContentSource { + [EnumMember(Value = "unknown")] + Unknown, + [EnumMember(Value = "global")] + Global, + [EnumMember(Value = "tenant")] + Tenant, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/SimulationContentStatus.cs b/src/Microsoft.Graph/Generated/Models/SimulationContentStatus.cs new file mode 100644 index 00000000000..5066d4e2729 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/SimulationContentStatus.cs @@ -0,0 +1,19 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + public enum SimulationContentStatus { + [EnumMember(Value = "unknown")] + Unknown, + [EnumMember(Value = "draft")] + Draft, + [EnumMember(Value = "ready")] + Ready, + [EnumMember(Value = "archive")] + Archive, + [EnumMember(Value = "delete")] + Delete, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/SimulationNotification.cs b/src/Microsoft.Graph/Generated/Models/SimulationNotification.cs new file mode 100644 index 00000000000..7ca6a6f5211 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/SimulationNotification.cs @@ -0,0 +1,46 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class SimulationNotification : BaseEndUserNotification, IParsable { + /// The targettedUserType property + public Microsoft.Graph.Models.TargettedUserType? TargettedUserType { + get { return BackingStore?.Get("targettedUserType"); } + set { BackingStore?.Set("targettedUserType", value); } + } + /// + /// Instantiates a new simulationNotification and sets the default values. + /// + public SimulationNotification() : base() { + OdataType = "#microsoft.graph.simulationNotification"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new SimulationNotification CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new SimulationNotification(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"targettedUserType", n => { TargettedUserType = n.GetEnumValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteEnumValue("targettedUserType", TargettedUserType); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequest.cs b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequest.cs index a0d7156fd1f..1dba83f709f 100644 --- a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequest.cs +++ b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequest.cs @@ -209,18 +209,18 @@ public DateTimeOffset? LastModifiedDateTime { get { return BackingStore?.Get("lastModifiedDateTime"); } set { BackingStore?.Set("lastModifiedDateTime", value); } } - /// The mailboxlocations property + /// The mailboxLocations property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SubjectRightsRequestMailboxLocation? Mailboxlocations { - get { return BackingStore?.Get("mailboxlocations"); } - set { BackingStore?.Set("mailboxlocations", value); } + public SubjectRightsRequestMailboxLocation? MailboxLocations { + get { return BackingStore?.Get("mailboxLocations"); } + set { BackingStore?.Set("mailboxLocations", value); } } #nullable restore #else - public SubjectRightsRequestMailboxLocation Mailboxlocations { - get { return BackingStore?.Get("mailboxlocations"); } - set { BackingStore?.Set("mailboxlocations", value); } + public SubjectRightsRequestMailboxLocation MailboxLocations { + get { return BackingStore?.Get("mailboxLocations"); } + set { BackingStore?.Set("mailboxLocations", value); } } #endif /// List of notes associated with the request. @@ -256,18 +256,18 @@ public List Regulations { set { BackingStore?.Set("regulations", value); } } #endif - /// The sitelocations property + /// The siteLocations property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SubjectRightsRequestSiteLocation? Sitelocations { - get { return BackingStore?.Get("sitelocations"); } - set { BackingStore?.Set("sitelocations", value); } + public SubjectRightsRequestSiteLocation? SiteLocations { + get { return BackingStore?.Get("siteLocations"); } + set { BackingStore?.Set("siteLocations", value); } } #nullable restore #else - public SubjectRightsRequestSiteLocation Sitelocations { - get { return BackingStore?.Get("sitelocations"); } - set { BackingStore?.Set("sitelocations", value); } + public SubjectRightsRequestSiteLocation SiteLocations { + get { return BackingStore?.Get("siteLocations"); } + set { BackingStore?.Set("siteLocations", value); } } #endif /// Information about the different stages for the request. @@ -340,11 +340,11 @@ public SubjectRightsRequestType? Type { {"internalDueDateTime", n => { InternalDueDateTime = n.GetDateTimeOffsetValue(); } }, {"lastModifiedBy", n => { LastModifiedBy = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, - {"mailboxlocations", n => { Mailboxlocations = n.GetObjectValue(SubjectRightsRequestMailboxLocation.CreateFromDiscriminatorValue); } }, + {"mailboxLocations", n => { MailboxLocations = n.GetObjectValue(SubjectRightsRequestMailboxLocation.CreateFromDiscriminatorValue); } }, {"notes", n => { Notes = n.GetCollectionOfObjectValues(AuthoredNote.CreateFromDiscriminatorValue)?.ToList(); } }, {"pauseAfterEstimate", n => { PauseAfterEstimate = n.GetBoolValue(); } }, {"regulations", n => { Regulations = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"sitelocations", n => { Sitelocations = n.GetObjectValue(SubjectRightsRequestSiteLocation.CreateFromDiscriminatorValue); } }, + {"siteLocations", n => { SiteLocations = n.GetObjectValue(SubjectRightsRequestSiteLocation.CreateFromDiscriminatorValue); } }, {"stages", n => { Stages = n.GetCollectionOfObjectValues(SubjectRightsRequestStageDetail.CreateFromDiscriminatorValue)?.ToList(); } }, {"status", n => { Status = n.GetEnumValue(); } }, {"team", n => { Team = n.GetObjectValue(Microsoft.Graph.Models.Team.CreateFromDiscriminatorValue); } }, @@ -377,11 +377,11 @@ public SubjectRightsRequestType? Type { writer.WriteDateTimeOffsetValue("internalDueDateTime", InternalDueDateTime); writer.WriteObjectValue("lastModifiedBy", LastModifiedBy); writer.WriteDateTimeOffsetValue("lastModifiedDateTime", LastModifiedDateTime); - writer.WriteObjectValue("mailboxlocations", Mailboxlocations); + writer.WriteObjectValue("mailboxLocations", MailboxLocations); writer.WriteCollectionOfObjectValues("notes", Notes); writer.WriteBoolValue("pauseAfterEstimate", PauseAfterEstimate); writer.WriteCollectionOfPrimitiveValues("regulations", Regulations); - writer.WriteObjectValue("sitelocations", Sitelocations); + writer.WriteObjectValue("siteLocations", SiteLocations); writer.WriteCollectionOfObjectValues("stages", Stages); writer.WriteEnumValue("status", Status); writer.WriteObjectValue("team", Team); diff --git a/src/Microsoft.Graph/Generated/Models/Subscription.cs b/src/Microsoft.Graph/Generated/Models/Subscription.cs index 5a650200e82..10c8d5948b7 100644 --- a/src/Microsoft.Graph/Generated/Models/Subscription.cs +++ b/src/Microsoft.Graph/Generated/Models/Subscription.cs @@ -34,7 +34,7 @@ public string ChangeType { set { BackingStore?.Set("changeType", value); } } #endif - /// Required. Specifies the value of the clientState property sent by the service in each change notification. The maximum length is 128 characters. The client can check that the change notification came from the service by comparing the value of the clientState property sent with the subscription with the value of the clientState property received with each change notification. + /// Optional. Specifies the value of the clientState property sent by the service in each change notification. The maximum length is 128 characters. The client can check that the change notification came from the service by comparing the value of the clientState property sent with the subscription with the value of the clientState property received with each change notification. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? ClientState { diff --git a/src/Microsoft.Graph/Generated/Models/Synchronization.cs b/src/Microsoft.Graph/Generated/Models/Synchronization.cs index c92b812202f..54bb5a4ffde 100644 --- a/src/Microsoft.Graph/Generated/Models/Synchronization.cs +++ b/src/Microsoft.Graph/Generated/Models/Synchronization.cs @@ -34,7 +34,7 @@ public List Secrets { set { BackingStore?.Set("secrets", value); } } #endif - /// Pre-configured synchronization settings for a particular application. + /// Preconfigured synchronization settings for a particular application. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Templates { diff --git a/src/Microsoft.Graph/Generated/Models/SynchronizationJobRestartCriteria.cs b/src/Microsoft.Graph/Generated/Models/SynchronizationJobRestartCriteria.cs index 5bbcee1e296..b6f3f4cb5b8 100644 --- a/src/Microsoft.Graph/Generated/Models/SynchronizationJobRestartCriteria.cs +++ b/src/Microsoft.Graph/Generated/Models/SynchronizationJobRestartCriteria.cs @@ -28,7 +28,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// Comma-separated combination of the following values: None, ConnectorDataStore, Escrows, Watermark, QuarantineState, Full, ForceDeletes. The property can also be empty. None: Starts a paused or quarantined provisioning job. DO NOT USE. Use the Start synchronizationJob API instead.ConnectorDataStore - Clears the underlying cache for all users. DO NOT USE. Contact Microsoft Support for guidance.Escrows - Provisioning failures are marked as escrows and retried. Clearing escrows will stop the service from retrying failures.Watermark - Removing the watermark causes the service to re-evaluate all the users again, rather than just processing changes.QuarantineState - Temporarily lifts the quarantine.Use Full if you want all of the options.ForceDeletes - Forces the system to delete the pending deleted users when using the accidental deletions prevention feature and the deletion threshold is exceeded. Leaving this property empty emulates the Restart provisioning option in the Azure portal. It is similar to setting the resetScope to include QuarantineState, Watermark, and Escrows. This option meets most customer needs. + /// Comma-separated combination of the following values: None, ConnectorDataStore, Escrows, Watermark, QuarantineState, Full, ForceDeletes. The property can also be empty. None: Starts a paused or quarantined provisioning job. DO NOT USE. Use the Start synchronizationJob API instead.ConnectorDataStore - Clears the underlying cache for all users. DO NOT USE. Contact Microsoft Support for guidance.Escrows - Provisioning failures are marked as escrows and retried. Clearing escrows will stop the service from retrying failures.Watermark - Removing the watermark causes the service to reevaluate all the users again, rather than just processing changes.QuarantineState - Temporarily lifts the quarantine.Use Full if you want all of the options.ForceDeletes - Forces the system to delete the pending deleted users when using the accidental deletions prevention feature and the deletion threshold is exceeded. Leaving this property empty emulates the Restart provisioning option in the Microsoft Entra admin center. It is similar to setting the resetScope to include QuarantineState, Watermark, and Escrows. This option meets most customer needs. public SynchronizationJobRestartScope? ResetScope { get { return BackingStore?.Get("resetScope"); } set { BackingStore?.Set("resetScope", value); } diff --git a/src/Microsoft.Graph/Generated/Models/SynchronizationRule.cs b/src/Microsoft.Graph/Generated/Models/SynchronizationRule.cs index bcdffaa929a..b59deeef2ec 100644 --- a/src/Microsoft.Graph/Generated/Models/SynchronizationRule.cs +++ b/src/Microsoft.Graph/Generated/Models/SynchronizationRule.cs @@ -28,7 +28,7 @@ public Microsoft.Graph.Models.ContainerFilter ContainerFilter { set { BackingStore?.Set("containerFilter", value); } } #endif - /// true if the synchronization rule can be customized; false if this rule is read-only and should not be changed. + /// true if the synchronization rule can be customized; false if this rule is read-only and shouldn't be changed. public bool? Editable { get { return BackingStore?.Get("editable"); } set { BackingStore?.Set("editable", value); } @@ -61,7 +61,7 @@ public string Id { set { BackingStore?.Set("id", value); } } #endif - /// Additional extension properties. Unless instructed explicitly by the support team, metadata values should not be changed. + /// Additional extension properties. Unless instructed explicitly by the support team, metadata values shouldn't be changed. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Metadata { diff --git a/src/Microsoft.Graph/Generated/Models/SynchronizationSchedule.cs b/src/Microsoft.Graph/Generated/Models/SynchronizationSchedule.cs index cca22acdd66..f03e930eff6 100644 --- a/src/Microsoft.Graph/Generated/Models/SynchronizationSchedule.cs +++ b/src/Microsoft.Graph/Generated/Models/SynchronizationSchedule.cs @@ -14,12 +14,12 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// Date and time when this job will expire. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + /// Date and time when this job expires. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? Expiration { get { return BackingStore?.Get("expiration"); } set { BackingStore?.Set("expiration", value); } } - /// The interval between synchronization iterations. The value is represented in ISO 8601 format for durations. For example, PT1M represents a period of 1 month. + /// The interval between synchronization iterations. The value is represented in ISO 8601 format for durations. For example, PT1M represents a period of one month. public TimeSpan? Interval { get { return BackingStore?.Get("interval"); } set { BackingStore?.Set("interval", value); } diff --git a/src/Microsoft.Graph/Generated/Models/TargettedUserType.cs b/src/Microsoft.Graph/Generated/Models/TargettedUserType.cs new file mode 100644 index 00000000000..25abd6dd23f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/TargettedUserType.cs @@ -0,0 +1,17 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + public enum TargettedUserType { + [EnumMember(Value = "unknown")] + Unknown, + [EnumMember(Value = "clicked")] + Clicked, + [EnumMember(Value = "compromised")] + Compromised, + [EnumMember(Value = "allUsers")] + AllUsers, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Team.cs b/src/Microsoft.Graph/Generated/Models/Team.cs index fa45a842104..9c9649b91bd 100644 --- a/src/Microsoft.Graph/Generated/Models/Team.cs +++ b/src/Microsoft.Graph/Generated/Models/Team.cs @@ -388,8 +388,8 @@ public string WebUrl { {"installedApps", n => { InstalledApps = n.GetCollectionOfObjectValues(TeamsAppInstallation.CreateFromDiscriminatorValue)?.ToList(); } }, {"internalId", n => { InternalId = n.GetStringValue(); } }, {"isArchived", n => { IsArchived = n.GetBoolValue(); } }, - {"members", n => { Members = n.GetCollectionOfObjectValues(ConversationMember.CreateFromDiscriminatorValue)?.ToList(); } }, {"memberSettings", n => { MemberSettings = n.GetObjectValue(TeamMemberSettings.CreateFromDiscriminatorValue); } }, + {"members", n => { Members = n.GetCollectionOfObjectValues(ConversationMember.CreateFromDiscriminatorValue)?.ToList(); } }, {"messagingSettings", n => { MessagingSettings = n.GetObjectValue(TeamMessagingSettings.CreateFromDiscriminatorValue); } }, {"operations", n => { Operations = n.GetCollectionOfObjectValues(TeamsAsyncOperation.CreateFromDiscriminatorValue)?.ToList(); } }, {"permissionGrants", n => { PermissionGrants = n.GetCollectionOfObjectValues(ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue)?.ToList(); } }, diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAppSettings.cs b/src/Microsoft.Graph/Generated/Models/TeamsAppSettings.cs index a381b65dc23..efa1373f7b4 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsAppSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsAppSettings.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models { public class TeamsAppSettings : Entity, IParsable { - /// The allowUserRequestsForAppAccess property + /// Indicates whether users are allowed to request access to the unavailable Teams apps. public bool? AllowUserRequestsForAppAccess { get { return BackingStore?.Get("allowUserRequestsForAppAccess"); } set { BackingStore?.Set("allowUserRequestsForAppAccess", value); } diff --git a/src/Microsoft.Graph/Generated/Models/TeamsTab.cs b/src/Microsoft.Graph/Generated/Models/TeamsTab.cs index c685eb7756c..82056081e72 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsTab.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsTab.cs @@ -34,7 +34,7 @@ public string DisplayName { set { BackingStore?.Set("displayName", value); } } #endif - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public Microsoft.Graph.Models.TeamsApp? TeamsApp { diff --git a/src/Microsoft.Graph/Generated/Models/Teamwork.cs b/src/Microsoft.Graph/Generated/Models/Teamwork.cs index 483d65e4f2d..e01baa1c3be 100644 --- a/src/Microsoft.Graph/Generated/Models/Teamwork.cs +++ b/src/Microsoft.Graph/Generated/Models/Teamwork.cs @@ -20,7 +20,7 @@ public List DeletedTeams { set { BackingStore?.Set("deletedTeams", value); } } #endif - /// The teamsAppSettings property + /// Represents tenant-wide settings for all Teams apps in the tenant. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public Microsoft.Graph.Models.TeamsAppSettings? TeamsAppSettings { diff --git a/src/Microsoft.Graph/Generated/Models/TeamworkActivityTopic.cs b/src/Microsoft.Graph/Generated/Models/TeamworkActivityTopic.cs index 0e81695bd34..942fa9aed19 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamworkActivityTopic.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamworkActivityTopic.cs @@ -33,7 +33,7 @@ public TeamworkActivityTopicSource? Source { get { return BackingStore?.Get("source"); } set { BackingStore?.Set("source", value); } } - /// The topic value. If the value of the source property is entityUrl, this must be a Microsoft Graph URL. If the vaule is text, this must be a plain text value. + /// The topic value. If the value of the source property is entityUrl, this must be a Microsoft Graph URL. If the value is text, this must be a plain text value. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Value { diff --git a/src/Microsoft.Graph/Generated/Models/TeamworkTag.cs b/src/Microsoft.Graph/Generated/Models/TeamworkTag.cs index 4fe24b7f2de..8f91f558d40 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamworkTag.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamworkTag.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models { public class TeamworkTag : Entity, IParsable { - /// The description of the tag as it will appear to the user in Microsoft Teams. A teamworkTag can't have more than 200 teamworkTagMembers. + /// The description of the tag as it appears to the user in Microsoft Teams. A teamworkTag can't have more than 200 teamworkTagMembers. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Description { @@ -20,7 +20,7 @@ public string Description { set { BackingStore?.Set("description", value); } } #endif - /// The name of the tag as it will appear to the user in Microsoft Teams. + /// The name of the tag as it appears to the user in Microsoft Teams. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DisplayName { diff --git a/src/Microsoft.Graph/Generated/Models/TermsExpiration.cs b/src/Microsoft.Graph/Generated/Models/TermsExpiration.cs index 2d203cd7116..a689f562ce2 100644 --- a/src/Microsoft.Graph/Generated/Models/TermsExpiration.cs +++ b/src/Microsoft.Graph/Generated/Models/TermsExpiration.cs @@ -14,7 +14,7 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// Represents the frequency at which the terms will expire, after its first expiration as set in startDateTime. The value is represented in ISO 8601 format for durations. For example, PT1M represents a time period of 1 month. + /// Represents the frequency at which the terms will expire, after its first expiration as set in startDateTime. The value is represented in ISO 8601 format for durations. For example, PT1M represents a time period of one month. public TimeSpan? Frequency { get { return BackingStore?.Get("frequency"); } set { BackingStore?.Set("frequency", value); } diff --git a/src/Microsoft.Graph/Generated/Models/TodoTask.cs b/src/Microsoft.Graph/Generated/Models/TodoTask.cs index 23b2605b307..512b9546267 100644 --- a/src/Microsoft.Graph/Generated/Models/TodoTask.cs +++ b/src/Microsoft.Graph/Generated/Models/TodoTask.cs @@ -236,8 +236,8 @@ public string Title { /// public new IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - {"attachments", n => { Attachments = n.GetCollectionOfObjectValues(AttachmentBase.CreateFromDiscriminatorValue)?.ToList(); } }, {"attachmentSessions", n => { AttachmentSessions = n.GetCollectionOfObjectValues(AttachmentSession.CreateFromDiscriminatorValue)?.ToList(); } }, + {"attachments", n => { Attachments = n.GetCollectionOfObjectValues(AttachmentBase.CreateFromDiscriminatorValue)?.ToList(); } }, {"body", n => { Body = n.GetObjectValue(ItemBody.CreateFromDiscriminatorValue); } }, {"bodyLastModifiedDateTime", n => { BodyLastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, {"categories", n => { Categories = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, diff --git a/src/Microsoft.Graph/Generated/Models/Training.cs b/src/Microsoft.Graph/Generated/Models/Training.cs new file mode 100644 index 00000000000..b6481cf00de --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Training.cs @@ -0,0 +1,194 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class Training : Entity, IParsable { + /// The availabilityStatus property + public TrainingAvailabilityStatus? AvailabilityStatus { + get { return BackingStore?.Get("availabilityStatus"); } + set { BackingStore?.Set("availabilityStatus", value); } + } + /// The createdBy property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public EmailIdentity? CreatedBy { + get { return BackingStore?.Get("createdBy"); } + set { BackingStore?.Set("createdBy", value); } + } +#nullable restore +#else + public EmailIdentity CreatedBy { + get { return BackingStore?.Get("createdBy"); } + set { BackingStore?.Set("createdBy", value); } + } +#endif + /// The createdDateTime property + public DateTimeOffset? CreatedDateTime { + get { return BackingStore?.Get("createdDateTime"); } + set { BackingStore?.Set("createdDateTime", value); } + } + /// The description property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Description { + get { return BackingStore?.Get("description"); } + set { BackingStore?.Set("description", value); } + } +#nullable restore +#else + public string Description { + get { return BackingStore?.Get("description"); } + set { BackingStore?.Set("description", value); } + } +#endif + /// The displayName property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#nullable restore +#else + public string DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#endif + /// The durationInMinutes property + public int? DurationInMinutes { + get { return BackingStore?.Get("durationInMinutes"); } + set { BackingStore?.Set("durationInMinutes", value); } + } + /// The hasEvaluation property + public bool? HasEvaluation { + get { return BackingStore?.Get("hasEvaluation"); } + set { BackingStore?.Set("hasEvaluation", value); } + } + /// The languageDetails property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? LanguageDetails { + get { return BackingStore?.Get?>("languageDetails"); } + set { BackingStore?.Set("languageDetails", value); } + } +#nullable restore +#else + public List LanguageDetails { + get { return BackingStore?.Get>("languageDetails"); } + set { BackingStore?.Set("languageDetails", value); } + } +#endif + /// The lastModifiedBy property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public EmailIdentity? LastModifiedBy { + get { return BackingStore?.Get("lastModifiedBy"); } + set { BackingStore?.Set("lastModifiedBy", value); } + } +#nullable restore +#else + public EmailIdentity LastModifiedBy { + get { return BackingStore?.Get("lastModifiedBy"); } + set { BackingStore?.Set("lastModifiedBy", value); } + } +#endif + /// The lastModifiedDateTime property + public DateTimeOffset? LastModifiedDateTime { + get { return BackingStore?.Get("lastModifiedDateTime"); } + set { BackingStore?.Set("lastModifiedDateTime", value); } + } + /// The source property + public SimulationContentSource? Source { + get { return BackingStore?.Get("source"); } + set { BackingStore?.Set("source", value); } + } + /// The supportedLocales property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SupportedLocales { + get { return BackingStore?.Get?>("supportedLocales"); } + set { BackingStore?.Set("supportedLocales", value); } + } +#nullable restore +#else + public List SupportedLocales { + get { return BackingStore?.Get>("supportedLocales"); } + set { BackingStore?.Set("supportedLocales", value); } + } +#endif + /// The tags property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Tags { + get { return BackingStore?.Get?>("tags"); } + set { BackingStore?.Set("tags", value); } + } +#nullable restore +#else + public List Tags { + get { return BackingStore?.Get>("tags"); } + set { BackingStore?.Set("tags", value); } + } +#endif + /// The type property + public TrainingType? Type { + get { return BackingStore?.Get("type"); } + set { BackingStore?.Set("type", value); } + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new Training CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new Training(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"availabilityStatus", n => { AvailabilityStatus = n.GetEnumValue(); } }, + {"createdBy", n => { CreatedBy = n.GetObjectValue(EmailIdentity.CreateFromDiscriminatorValue); } }, + {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, + {"description", n => { Description = n.GetStringValue(); } }, + {"displayName", n => { DisplayName = n.GetStringValue(); } }, + {"durationInMinutes", n => { DurationInMinutes = n.GetIntValue(); } }, + {"hasEvaluation", n => { HasEvaluation = n.GetBoolValue(); } }, + {"languageDetails", n => { LanguageDetails = n.GetCollectionOfObjectValues(TrainingLanguageDetail.CreateFromDiscriminatorValue)?.ToList(); } }, + {"lastModifiedBy", n => { LastModifiedBy = n.GetObjectValue(EmailIdentity.CreateFromDiscriminatorValue); } }, + {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, + {"source", n => { Source = n.GetEnumValue(); } }, + {"supportedLocales", n => { SupportedLocales = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + {"tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + {"type", n => { Type = n.GetEnumValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteEnumValue("availabilityStatus", AvailabilityStatus); + writer.WriteObjectValue("createdBy", CreatedBy); + writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); + writer.WriteStringValue("description", Description); + writer.WriteStringValue("displayName", DisplayName); + writer.WriteIntValue("durationInMinutes", DurationInMinutes); + writer.WriteBoolValue("hasEvaluation", HasEvaluation); + writer.WriteCollectionOfObjectValues("languageDetails", LanguageDetails); + writer.WriteObjectValue("lastModifiedBy", LastModifiedBy); + writer.WriteDateTimeOffsetValue("lastModifiedDateTime", LastModifiedDateTime); + writer.WriteEnumValue("source", Source); + writer.WriteCollectionOfPrimitiveValues("supportedLocales", SupportedLocales); + writer.WriteCollectionOfPrimitiveValues("tags", Tags); + writer.WriteEnumValue("type", Type); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/TrainingAssignedTo.cs b/src/Microsoft.Graph/Generated/Models/TrainingAssignedTo.cs new file mode 100644 index 00000000000..9cd8155ce48 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/TrainingAssignedTo.cs @@ -0,0 +1,23 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + public enum TrainingAssignedTo { + [EnumMember(Value = "none")] + None, + [EnumMember(Value = "allUsers")] + AllUsers, + [EnumMember(Value = "clickedPayload")] + ClickedPayload, + [EnumMember(Value = "compromised")] + Compromised, + [EnumMember(Value = "reportedPhish")] + ReportedPhish, + [EnumMember(Value = "readButNotClicked")] + ReadButNotClicked, + [EnumMember(Value = "didNothing")] + DidNothing, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/TrainingAvailabilityStatus.cs b/src/Microsoft.Graph/Generated/Models/TrainingAvailabilityStatus.cs new file mode 100644 index 00000000000..f0e2543abf4 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/TrainingAvailabilityStatus.cs @@ -0,0 +1,19 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + public enum TrainingAvailabilityStatus { + [EnumMember(Value = "unknown")] + Unknown, + [EnumMember(Value = "notAvailable")] + NotAvailable, + [EnumMember(Value = "available")] + Available, + [EnumMember(Value = "archive")] + Archive, + [EnumMember(Value = "delete")] + Delete, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/TrainingCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TrainingCollectionResponse.cs new file mode 100644 index 00000000000..9e7e708b88f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/TrainingCollectionResponse.cs @@ -0,0 +1,49 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class TrainingCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new TrainingCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new TrainingCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Training.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/TrainingCompletionDuration.cs b/src/Microsoft.Graph/Generated/Models/TrainingCompletionDuration.cs new file mode 100644 index 00000000000..2eeebd7ff91 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/TrainingCompletionDuration.cs @@ -0,0 +1,15 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + public enum TrainingCompletionDuration { + [EnumMember(Value = "week")] + Week, + [EnumMember(Value = "fortnite")] + Fortnite, + [EnumMember(Value = "month")] + Month, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/TrainingLanguageDetail.cs b/src/Microsoft.Graph/Generated/Models/TrainingLanguageDetail.cs new file mode 100644 index 00000000000..5e9d736ddb1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/TrainingLanguageDetail.cs @@ -0,0 +1,150 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class TrainingLanguageDetail : Entity, IParsable { + /// The content property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Content { + get { return BackingStore?.Get("content"); } + set { BackingStore?.Set("content", value); } + } +#nullable restore +#else + public string Content { + get { return BackingStore?.Get("content"); } + set { BackingStore?.Set("content", value); } + } +#endif + /// The createdBy property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public EmailIdentity? CreatedBy { + get { return BackingStore?.Get("createdBy"); } + set { BackingStore?.Set("createdBy", value); } + } +#nullable restore +#else + public EmailIdentity CreatedBy { + get { return BackingStore?.Get("createdBy"); } + set { BackingStore?.Set("createdBy", value); } + } +#endif + /// The createdDateTime property + public DateTimeOffset? CreatedDateTime { + get { return BackingStore?.Get("createdDateTime"); } + set { BackingStore?.Set("createdDateTime", value); } + } + /// The description property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Description { + get { return BackingStore?.Get("description"); } + set { BackingStore?.Set("description", value); } + } +#nullable restore +#else + public string Description { + get { return BackingStore?.Get("description"); } + set { BackingStore?.Set("description", value); } + } +#endif + /// The displayName property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#nullable restore +#else + public string DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#endif + /// The isDefaultLangauge property + public bool? IsDefaultLangauge { + get { return BackingStore?.Get("isDefaultLangauge"); } + set { BackingStore?.Set("isDefaultLangauge", value); } + } + /// The lastModifiedBy property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public EmailIdentity? LastModifiedBy { + get { return BackingStore?.Get("lastModifiedBy"); } + set { BackingStore?.Set("lastModifiedBy", value); } + } +#nullable restore +#else + public EmailIdentity LastModifiedBy { + get { return BackingStore?.Get("lastModifiedBy"); } + set { BackingStore?.Set("lastModifiedBy", value); } + } +#endif + /// The lastModifiedDateTime property + public DateTimeOffset? LastModifiedDateTime { + get { return BackingStore?.Get("lastModifiedDateTime"); } + set { BackingStore?.Set("lastModifiedDateTime", value); } + } + /// The locale property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Locale { + get { return BackingStore?.Get("locale"); } + set { BackingStore?.Set("locale", value); } + } +#nullable restore +#else + public string Locale { + get { return BackingStore?.Get("locale"); } + set { BackingStore?.Set("locale", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new TrainingLanguageDetail CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new TrainingLanguageDetail(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"content", n => { Content = n.GetStringValue(); } }, + {"createdBy", n => { CreatedBy = n.GetObjectValue(EmailIdentity.CreateFromDiscriminatorValue); } }, + {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, + {"description", n => { Description = n.GetStringValue(); } }, + {"displayName", n => { DisplayName = n.GetStringValue(); } }, + {"isDefaultLangauge", n => { IsDefaultLangauge = n.GetBoolValue(); } }, + {"lastModifiedBy", n => { LastModifiedBy = n.GetObjectValue(EmailIdentity.CreateFromDiscriminatorValue); } }, + {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, + {"locale", n => { Locale = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteStringValue("content", Content); + writer.WriteObjectValue("createdBy", CreatedBy); + writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); + writer.WriteStringValue("description", Description); + writer.WriteStringValue("displayName", DisplayName); + writer.WriteBoolValue("isDefaultLangauge", IsDefaultLangauge); + writer.WriteObjectValue("lastModifiedBy", LastModifiedBy); + writer.WriteDateTimeOffsetValue("lastModifiedDateTime", LastModifiedDateTime); + writer.WriteStringValue("locale", Locale); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/TrainingLanguageDetailCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TrainingLanguageDetailCollectionResponse.cs new file mode 100644 index 00000000000..380f2da17ae --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/TrainingLanguageDetailCollectionResponse.cs @@ -0,0 +1,49 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class TrainingLanguageDetailCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new TrainingLanguageDetailCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new TrainingLanguageDetailCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(TrainingLanguageDetail.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/TrainingNotificationSetting.cs b/src/Microsoft.Graph/Generated/Models/TrainingNotificationSetting.cs new file mode 100644 index 00000000000..ed6c599f265 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/TrainingNotificationSetting.cs @@ -0,0 +1,71 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class TrainingNotificationSetting : EndUserNotificationSetting, IParsable { + /// The trainingAssignment property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public BaseEndUserNotification? TrainingAssignment { + get { return BackingStore?.Get("trainingAssignment"); } + set { BackingStore?.Set("trainingAssignment", value); } + } +#nullable restore +#else + public BaseEndUserNotification TrainingAssignment { + get { return BackingStore?.Get("trainingAssignment"); } + set { BackingStore?.Set("trainingAssignment", value); } + } +#endif + /// The trainingReminder property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public TrainingReminderNotification? TrainingReminder { + get { return BackingStore?.Get("trainingReminder"); } + set { BackingStore?.Set("trainingReminder", value); } + } +#nullable restore +#else + public TrainingReminderNotification TrainingReminder { + get { return BackingStore?.Get("trainingReminder"); } + set { BackingStore?.Set("trainingReminder", value); } + } +#endif + /// + /// Instantiates a new trainingNotificationSetting and sets the default values. + /// + public TrainingNotificationSetting() : base() { + OdataType = "#microsoft.graph.trainingNotificationSetting"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new TrainingNotificationSetting CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new TrainingNotificationSetting(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"trainingAssignment", n => { TrainingAssignment = n.GetObjectValue(BaseEndUserNotification.CreateFromDiscriminatorValue); } }, + {"trainingReminder", n => { TrainingReminder = n.GetObjectValue(TrainingReminderNotification.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteObjectValue("trainingAssignment", TrainingAssignment); + writer.WriteObjectValue("trainingReminder", TrainingReminder); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/TrainingReminderNotification.cs b/src/Microsoft.Graph/Generated/Models/TrainingReminderNotification.cs new file mode 100644 index 00000000000..acd234233ce --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/TrainingReminderNotification.cs @@ -0,0 +1,46 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class TrainingReminderNotification : BaseEndUserNotification, IParsable { + /// The deliveryFrequency property + public NotificationDeliveryFrequency? DeliveryFrequency { + get { return BackingStore?.Get("deliveryFrequency"); } + set { BackingStore?.Set("deliveryFrequency", value); } + } + /// + /// Instantiates a new trainingReminderNotification and sets the default values. + /// + public TrainingReminderNotification() : base() { + OdataType = "#microsoft.graph.trainingReminderNotification"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new TrainingReminderNotification CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new TrainingReminderNotification(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"deliveryFrequency", n => { DeliveryFrequency = n.GetEnumValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteEnumValue("deliveryFrequency", DeliveryFrequency); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/TrainingSetting.cs b/src/Microsoft.Graph/Generated/Models/TrainingSetting.cs new file mode 100644 index 00000000000..daccac852c3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/TrainingSetting.cs @@ -0,0 +1,79 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class TrainingSetting : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#nullable restore +#else + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#endif + /// The settingType property + public TrainingSettingType? SettingType { + get { return BackingStore?.Get("settingType"); } + set { BackingStore?.Set("settingType", value); } + } + /// + /// Instantiates a new trainingSetting and sets the default values. + /// + public TrainingSetting() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static TrainingSetting CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch { + "#microsoft.graph.customTrainingSetting" => new CustomTrainingSetting(), + "#microsoft.graph.microsoftCustomTrainingSetting" => new MicrosoftCustomTrainingSetting(), + "#microsoft.graph.microsoftManagedTrainingSetting" => new MicrosoftManagedTrainingSetting(), + "#microsoft.graph.microsoftTrainingAssignmentMapping" => new MicrosoftTrainingAssignmentMapping(), + "#microsoft.graph.noTrainingSetting" => new NoTrainingSetting(), + _ => new TrainingSetting(), + }; + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"settingType", n => { SettingType = n.GetEnumValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteEnumValue("settingType", SettingType); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/TrainingSettingType.cs b/src/Microsoft.Graph/Generated/Models/TrainingSettingType.cs new file mode 100644 index 00000000000..6ae9dd3c32c --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/TrainingSettingType.cs @@ -0,0 +1,17 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + public enum TrainingSettingType { + [EnumMember(Value = "microsoftCustom")] + MicrosoftCustom, + [EnumMember(Value = "microsoftManaged")] + MicrosoftManaged, + [EnumMember(Value = "noTraining")] + NoTraining, + [EnumMember(Value = "custom")] + Custom, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/TrainingType.cs b/src/Microsoft.Graph/Generated/Models/TrainingType.cs new file mode 100644 index 00000000000..bafb156c9fc --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/TrainingType.cs @@ -0,0 +1,13 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + public enum TrainingType { + [EnumMember(Value = "unknown")] + Unknown, + [EnumMember(Value = "phishing")] + Phishing, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyAuthenticationContextRule.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyAuthenticationContextRule.cs index f988fb27b81..f1b4bd96ee7 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyAuthenticationContextRule.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyAuthenticationContextRule.cs @@ -20,7 +20,7 @@ public string ClaimValue { set { BackingStore?.Set("claimValue", value); } } #endif - /// Whether this rule is enabled. + /// Determines whether this rule is enabled. public bool? IsEnabled { get { return BackingStore?.Get("isEnabled"); } set { BackingStore?.Set("isEnabled", value); } diff --git a/src/Microsoft.Graph/Generated/Models/UploadSession.cs b/src/Microsoft.Graph/Generated/Models/UploadSession.cs index 647c587dd4a..b4b64463c11 100644 --- a/src/Microsoft.Graph/Generated/Models/UploadSession.cs +++ b/src/Microsoft.Graph/Generated/Models/UploadSession.cs @@ -19,7 +19,7 @@ public DateTimeOffset? ExpirationDateTime { get { return BackingStore?.Get("expirationDateTime"); } set { BackingStore?.Set("expirationDateTime", value); } } - /// A collection of byte ranges that the server is missing for the file. These ranges are zero indexed and of the format 'start-end' (e.g. '0-26' to indicate the first 27 bytes of the file). When uploading files as Outlook attachments, instead of a collection of ranges, this property always indicates a single value '{start}', the location in the file where the next upload should begin. + /// A collection of byte ranges that the server is missing for the file. These ranges are zero indexed and of the format 'start-end' (for example '0-26' to indicate the first 27 bytes of the file). When uploading files as Outlook attachments, instead of a collection of ranges, this property always indicates a single value '{start}', the location in the file where the next upload should begin. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? NextExpectedRanges { diff --git a/src/Microsoft.Graph/Generated/Models/UsageDetails.cs b/src/Microsoft.Graph/Generated/Models/UsageDetails.cs index 6f4ae6cbac8..f3395783026 100644 --- a/src/Microsoft.Graph/Generated/Models/UsageDetails.cs +++ b/src/Microsoft.Graph/Generated/Models/UsageDetails.cs @@ -19,7 +19,7 @@ public DateTimeOffset? LastAccessedDateTime { get { return BackingStore?.Get("lastAccessedDateTime"); } set { BackingStore?.Set("lastAccessedDateTime", value); } } - /// The date and time the resource was last modified by the user. The timestamp represents date and time information using ISO 8601 format and is always in UTC time.For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. + /// The date and time the resource was last modified by the user. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. public DateTimeOffset? LastModifiedDateTime { get { return BackingStore?.Get("lastModifiedDateTime"); } set { BackingStore?.Set("lastModifiedDateTime", value); } diff --git a/src/Microsoft.Graph/Generated/Models/User.cs b/src/Microsoft.Graph/Generated/Models/User.cs index 1071c53c0bb..08d72a3df71 100644 --- a/src/Microsoft.Graph/Generated/Models/User.cs +++ b/src/Microsoft.Graph/Generated/Models/User.cs @@ -1354,7 +1354,7 @@ public List ProxyAddresses { set { BackingStore?.Set("proxyAddresses", value); } } #endif - /// Devices that are registered for the user. Read-only. Nullable. Supports $expand. + /// Devices that are registered for the user. Read-only. Nullable. Supports $expand and returns up to 100 objects. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? RegisteredDevices { @@ -1649,8 +1649,8 @@ public User() : base() { {"businessPhones", n => { BusinessPhones = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"calendar", n => { Calendar = n.GetObjectValue(Microsoft.Graph.Models.Calendar.CreateFromDiscriminatorValue); } }, {"calendarGroups", n => { CalendarGroups = n.GetCollectionOfObjectValues(CalendarGroup.CreateFromDiscriminatorValue)?.ToList(); } }, - {"calendars", n => { Calendars = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Calendar.CreateFromDiscriminatorValue)?.ToList(); } }, {"calendarView", n => { CalendarView = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + {"calendars", n => { Calendars = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Calendar.CreateFromDiscriminatorValue)?.ToList(); } }, {"chats", n => { Chats = n.GetCollectionOfObjectValues(Chat.CreateFromDiscriminatorValue)?.ToList(); } }, {"city", n => { City = n.GetStringValue(); } }, {"companyName", n => { CompanyName = n.GetStringValue(); } }, @@ -1696,9 +1696,9 @@ public User() : base() { {"licenseAssignmentStates", n => { LicenseAssignmentStates = n.GetCollectionOfObjectValues(LicenseAssignmentState.CreateFromDiscriminatorValue)?.ToList(); } }, {"licenseDetails", n => { LicenseDetails = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.LicenseDetails.CreateFromDiscriminatorValue)?.ToList(); } }, {"mail", n => { Mail = n.GetStringValue(); } }, - {"mailboxSettings", n => { MailboxSettings = n.GetObjectValue(Microsoft.Graph.Models.MailboxSettings.CreateFromDiscriminatorValue); } }, {"mailFolders", n => { MailFolders = n.GetCollectionOfObjectValues(MailFolder.CreateFromDiscriminatorValue)?.ToList(); } }, {"mailNickname", n => { MailNickname = n.GetStringValue(); } }, + {"mailboxSettings", n => { MailboxSettings = n.GetObjectValue(Microsoft.Graph.Models.MailboxSettings.CreateFromDiscriminatorValue); } }, {"managedAppRegistrations", n => { ManagedAppRegistrations = n.GetCollectionOfObjectValues(ManagedAppRegistration.CreateFromDiscriminatorValue)?.ToList(); } }, {"managedDevices", n => { ManagedDevices = n.GetCollectionOfObjectValues(ManagedDevice.CreateFromDiscriminatorValue)?.ToList(); } }, {"manager", n => { Manager = n.GetObjectValue(DirectoryObject.CreateFromDiscriminatorValue); } }, @@ -1708,8 +1708,6 @@ public User() : base() { {"mySite", n => { MySite = n.GetStringValue(); } }, {"oauth2PermissionGrants", n => { Oauth2PermissionGrants = n.GetCollectionOfObjectValues(OAuth2PermissionGrant.CreateFromDiscriminatorValue)?.ToList(); } }, {"officeLocation", n => { OfficeLocation = n.GetStringValue(); } }, - {"onenote", n => { Onenote = n.GetObjectValue(Microsoft.Graph.Models.Onenote.CreateFromDiscriminatorValue); } }, - {"onlineMeetings", n => { OnlineMeetings = n.GetCollectionOfObjectValues(OnlineMeeting.CreateFromDiscriminatorValue)?.ToList(); } }, {"onPremisesDistinguishedName", n => { OnPremisesDistinguishedName = n.GetStringValue(); } }, {"onPremisesDomainName", n => { OnPremisesDomainName = n.GetStringValue(); } }, {"onPremisesExtensionAttributes", n => { OnPremisesExtensionAttributes = n.GetObjectValue(Microsoft.Graph.Models.OnPremisesExtensionAttributes.CreateFromDiscriminatorValue); } }, @@ -1720,6 +1718,8 @@ public User() : base() { {"onPremisesSecurityIdentifier", n => { OnPremisesSecurityIdentifier = n.GetStringValue(); } }, {"onPremisesSyncEnabled", n => { OnPremisesSyncEnabled = n.GetBoolValue(); } }, {"onPremisesUserPrincipalName", n => { OnPremisesUserPrincipalName = n.GetStringValue(); } }, + {"onenote", n => { Onenote = n.GetObjectValue(Microsoft.Graph.Models.Onenote.CreateFromDiscriminatorValue); } }, + {"onlineMeetings", n => { OnlineMeetings = n.GetCollectionOfObjectValues(OnlineMeeting.CreateFromDiscriminatorValue)?.ToList(); } }, {"otherMails", n => { OtherMails = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"outlook", n => { Outlook = n.GetObjectValue(OutlookUser.CreateFromDiscriminatorValue); } }, {"ownedDevices", n => { OwnedDevices = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, diff --git a/src/Microsoft.Graph/Generated/Models/UserFlowLanguageConfiguration.cs b/src/Microsoft.Graph/Generated/Models/UserFlowLanguageConfiguration.cs index d65e8fa1d1b..19c445d5a42 100644 --- a/src/Microsoft.Graph/Generated/Models/UserFlowLanguageConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/UserFlowLanguageConfiguration.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models { public class UserFlowLanguageConfiguration : Entity, IParsable { - /// Collection of pages with the default content to display in a user flow for a specified language. This collection does not allow any kind of modification. + /// Collection of pages with the default content to display in a user flow for a specified language. This collection doesn't allow any kind of modification. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? DefaultPages { @@ -39,7 +39,7 @@ public bool? IsEnabled { get { return BackingStore?.Get("isEnabled"); } set { BackingStore?.Set("isEnabled", value); } } - /// Collection of pages with the overrides messages to display in a user flow for a specified language. This collection only allows to modify the content of the page, any other modification is not allowed (creation or deletion of pages). + /// Collection of pages with the overrides messages to display in a user flow for a specified language. This collection only allows you to modify the content of the page, any other modification isn't allowed (creation or deletion of pages). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? OverridesPages { diff --git a/src/Microsoft.Graph/Generated/Models/WebApplication.cs b/src/Microsoft.Graph/Generated/Models/WebApplication.cs index d12ea1dea11..e3c3723f96c 100644 --- a/src/Microsoft.Graph/Generated/Models/WebApplication.cs +++ b/src/Microsoft.Graph/Generated/Models/WebApplication.cs @@ -122,8 +122,8 @@ public IDictionary> GetFieldDeserializers() { {"implicitGrantSettings", n => { ImplicitGrantSettings = n.GetObjectValue(Microsoft.Graph.Models.ImplicitGrantSettings.CreateFromDiscriminatorValue); } }, {"logoutUrl", n => { LogoutUrl = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, - {"redirectUris", n => { RedirectUris = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"redirectUriSettings", n => { RedirectUriSettings = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.RedirectUriSettings.CreateFromDiscriminatorValue)?.ToList(); } }, + {"redirectUris", n => { RedirectUris = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } /// diff --git a/src/Microsoft.Graph/Generated/Models/Windows10EndpointProtectionConfiguration.cs b/src/Microsoft.Graph/Generated/Models/Windows10EndpointProtectionConfiguration.cs index f8909ef3093..ab00354e19d 100644 --- a/src/Microsoft.Graph/Generated/Models/Windows10EndpointProtectionConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/Windows10EndpointProtectionConfiguration.cs @@ -289,6 +289,7 @@ public Windows10EndpointProtectionConfiguration() : base() { /// public new IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { + {"appLockerApplicationControl", n => { AppLockerApplicationControl = n.GetEnumValue(); } }, {"applicationGuardAllowPersistence", n => { ApplicationGuardAllowPersistence = n.GetBoolValue(); } }, {"applicationGuardAllowPrintToLocalPrinters", n => { ApplicationGuardAllowPrintToLocalPrinters = n.GetBoolValue(); } }, {"applicationGuardAllowPrintToNetworkPrinters", n => { ApplicationGuardAllowPrintToNetworkPrinters = n.GetBoolValue(); } }, @@ -299,7 +300,6 @@ public Windows10EndpointProtectionConfiguration() : base() { {"applicationGuardBlockNonEnterpriseContent", n => { ApplicationGuardBlockNonEnterpriseContent = n.GetBoolValue(); } }, {"applicationGuardEnabled", n => { ApplicationGuardEnabled = n.GetBoolValue(); } }, {"applicationGuardForceAuditing", n => { ApplicationGuardForceAuditing = n.GetBoolValue(); } }, - {"appLockerApplicationControl", n => { AppLockerApplicationControl = n.GetEnumValue(); } }, {"bitLockerDisableWarningForOtherDiskEncryption", n => { BitLockerDisableWarningForOtherDiskEncryption = n.GetBoolValue(); } }, {"bitLockerEnableStorageCardEncryptionOnMobile", n => { BitLockerEnableStorageCardEncryptionOnMobile = n.GetBoolValue(); } }, {"bitLockerEncryptDevice", n => { BitLockerEncryptDevice = n.GetBoolValue(); } }, @@ -312,11 +312,11 @@ public Windows10EndpointProtectionConfiguration() : base() { {"defenderSecurityCenterBlockExploitProtectionOverride", n => { DefenderSecurityCenterBlockExploitProtectionOverride = n.GetBoolValue(); } }, {"firewallBlockStatefulFTP", n => { FirewallBlockStatefulFTP = n.GetBoolValue(); } }, {"firewallCertificateRevocationListCheckMethod", n => { FirewallCertificateRevocationListCheckMethod = n.GetEnumValue(); } }, - {"firewallIdleTimeoutForSecurityAssociationInSeconds", n => { FirewallIdleTimeoutForSecurityAssociationInSeconds = n.GetIntValue(); } }, {"firewallIPSecExemptionsAllowDHCP", n => { FirewallIPSecExemptionsAllowDHCP = n.GetBoolValue(); } }, {"firewallIPSecExemptionsAllowICMP", n => { FirewallIPSecExemptionsAllowICMP = n.GetBoolValue(); } }, {"firewallIPSecExemptionsAllowNeighborDiscovery", n => { FirewallIPSecExemptionsAllowNeighborDiscovery = n.GetBoolValue(); } }, {"firewallIPSecExemptionsAllowRouterDiscovery", n => { FirewallIPSecExemptionsAllowRouterDiscovery = n.GetBoolValue(); } }, + {"firewallIdleTimeoutForSecurityAssociationInSeconds", n => { FirewallIdleTimeoutForSecurityAssociationInSeconds = n.GetIntValue(); } }, {"firewallMergeKeyingModuleSettings", n => { FirewallMergeKeyingModuleSettings = n.GetBoolValue(); } }, {"firewallPacketQueueingMethod", n => { FirewallPacketQueueingMethod = n.GetEnumValue(); } }, {"firewallPreSharedKeyEncodingMethod", n => { FirewallPreSharedKeyEncodingMethod = n.GetEnumValue(); } }, diff --git a/src/Microsoft.Graph/Generated/Models/Windows10GeneralConfiguration.cs b/src/Microsoft.Graph/Generated/Models/Windows10GeneralConfiguration.cs index 6bacc5ffe2d..416c93889b6 100644 --- a/src/Microsoft.Graph/Generated/Models/Windows10GeneralConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/Windows10GeneralConfiguration.cs @@ -1221,8 +1221,8 @@ public Windows10GeneralConfiguration() : base() { {"bluetoothAllowedServices", n => { BluetoothAllowedServices = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"bluetoothBlockAdvertising", n => { BluetoothBlockAdvertising = n.GetBoolValue(); } }, {"bluetoothBlockDiscoverableMode", n => { BluetoothBlockDiscoverableMode = n.GetBoolValue(); } }, - {"bluetoothBlocked", n => { BluetoothBlocked = n.GetBoolValue(); } }, {"bluetoothBlockPrePairing", n => { BluetoothBlockPrePairing = n.GetBoolValue(); } }, + {"bluetoothBlocked", n => { BluetoothBlocked = n.GetBoolValue(); } }, {"cameraBlocked", n => { CameraBlocked = n.GetBoolValue(); } }, {"cellularBlockDataWhenRoaming", n => { CellularBlockDataWhenRoaming = n.GetBoolValue(); } }, {"cellularBlockVpn", n => { CellularBlockVpn = n.GetBoolValue(); } }, @@ -1267,7 +1267,6 @@ public Windows10GeneralConfiguration() : base() { {"edgeBlockAutofill", n => { EdgeBlockAutofill = n.GetBoolValue(); } }, {"edgeBlockCompatibilityList", n => { EdgeBlockCompatibilityList = n.GetBoolValue(); } }, {"edgeBlockDeveloperTools", n => { EdgeBlockDeveloperTools = n.GetBoolValue(); } }, - {"edgeBlocked", n => { EdgeBlocked = n.GetBoolValue(); } }, {"edgeBlockExtensions", n => { EdgeBlockExtensions = n.GetBoolValue(); } }, {"edgeBlockInPrivateBrowsing", n => { EdgeBlockInPrivateBrowsing = n.GetBoolValue(); } }, {"edgeBlockJavaScript", n => { EdgeBlockJavaScript = n.GetBoolValue(); } }, @@ -1277,6 +1276,7 @@ public Windows10GeneralConfiguration() : base() { {"edgeBlockSearchSuggestions", n => { EdgeBlockSearchSuggestions = n.GetBoolValue(); } }, {"edgeBlockSendingDoNotTrackHeader", n => { EdgeBlockSendingDoNotTrackHeader = n.GetBoolValue(); } }, {"edgeBlockSendingIntranetTrafficToInternetExplorer", n => { EdgeBlockSendingIntranetTrafficToInternetExplorer = n.GetBoolValue(); } }, + {"edgeBlocked", n => { EdgeBlocked = n.GetBoolValue(); } }, {"edgeClearBrowsingDataOnExit", n => { EdgeClearBrowsingDataOnExit = n.GetBoolValue(); } }, {"edgeCookiePolicy", n => { EdgeCookiePolicy = n.GetEnumValue(); } }, {"edgeDisableFirstRunPage", n => { EdgeDisableFirstRunPage = n.GetBoolValue(); } }, @@ -1305,8 +1305,8 @@ public Windows10GeneralConfiguration() : base() { {"lockScreenBlockToastNotifications", n => { LockScreenBlockToastNotifications = n.GetBoolValue(); } }, {"lockScreenTimeoutInSeconds", n => { LockScreenTimeoutInSeconds = n.GetIntValue(); } }, {"logonBlockFastUserSwitching", n => { LogonBlockFastUserSwitching = n.GetBoolValue(); } }, - {"microsoftAccountBlocked", n => { MicrosoftAccountBlocked = n.GetBoolValue(); } }, {"microsoftAccountBlockSettingsSync", n => { MicrosoftAccountBlockSettingsSync = n.GetBoolValue(); } }, + {"microsoftAccountBlocked", n => { MicrosoftAccountBlocked = n.GetBoolValue(); } }, {"networkProxyApplySettingsDeviceWide", n => { NetworkProxyApplySettingsDeviceWide = n.GetBoolValue(); } }, {"networkProxyAutomaticConfigurationUrl", n => { NetworkProxyAutomaticConfigurationUrl = n.GetStringValue(); } }, {"networkProxyDisableAutoDetect", n => { NetworkProxyDisableAutoDetect = n.GetBoolValue(); } }, @@ -1319,9 +1319,9 @@ public Windows10GeneralConfiguration() : base() { {"passwordMinimumLength", n => { PasswordMinimumLength = n.GetIntValue(); } }, {"passwordMinutesOfInactivityBeforeScreenTimeout", n => { PasswordMinutesOfInactivityBeforeScreenTimeout = n.GetIntValue(); } }, {"passwordPreviousPasswordBlockCount", n => { PasswordPreviousPasswordBlockCount = n.GetIntValue(); } }, + {"passwordRequireWhenResumeFromIdleState", n => { PasswordRequireWhenResumeFromIdleState = n.GetBoolValue(); } }, {"passwordRequired", n => { PasswordRequired = n.GetBoolValue(); } }, {"passwordRequiredType", n => { PasswordRequiredType = n.GetEnumValue(); } }, - {"passwordRequireWhenResumeFromIdleState", n => { PasswordRequireWhenResumeFromIdleState = n.GetBoolValue(); } }, {"passwordSignInFailureCountBeforeFactoryReset", n => { PasswordSignInFailureCountBeforeFactoryReset = n.GetIntValue(); } }, {"personalizationDesktopImageUrl", n => { PersonalizationDesktopImageUrl = n.GetStringValue(); } }, {"personalizationLockScreenImageUrl", n => { PersonalizationLockScreenImageUrl = n.GetStringValue(); } }, @@ -1398,16 +1398,16 @@ public Windows10GeneralConfiguration() : base() { {"voiceRecordingBlocked", n => { VoiceRecordingBlocked = n.GetBoolValue(); } }, {"webRtcBlockLocalhostIpAddress", n => { WebRtcBlockLocalhostIpAddress = n.GetBoolValue(); } }, {"wiFiBlockAutomaticConnectHotspots", n => { WiFiBlockAutomaticConnectHotspots = n.GetBoolValue(); } }, - {"wiFiBlocked", n => { WiFiBlocked = n.GetBoolValue(); } }, {"wiFiBlockManualConfiguration", n => { WiFiBlockManualConfiguration = n.GetBoolValue(); } }, + {"wiFiBlocked", n => { WiFiBlocked = n.GetBoolValue(); } }, {"wiFiScanInterval", n => { WiFiScanInterval = n.GetIntValue(); } }, {"windowsSpotlightBlockConsumerSpecificFeatures", n => { WindowsSpotlightBlockConsumerSpecificFeatures = n.GetBoolValue(); } }, - {"windowsSpotlightBlocked", n => { WindowsSpotlightBlocked = n.GetBoolValue(); } }, {"windowsSpotlightBlockOnActionCenter", n => { WindowsSpotlightBlockOnActionCenter = n.GetBoolValue(); } }, {"windowsSpotlightBlockTailoredExperiences", n => { WindowsSpotlightBlockTailoredExperiences = n.GetBoolValue(); } }, {"windowsSpotlightBlockThirdPartyNotifications", n => { WindowsSpotlightBlockThirdPartyNotifications = n.GetBoolValue(); } }, {"windowsSpotlightBlockWelcomeExperience", n => { WindowsSpotlightBlockWelcomeExperience = n.GetBoolValue(); } }, {"windowsSpotlightBlockWindowsTips", n => { WindowsSpotlightBlockWindowsTips = n.GetBoolValue(); } }, + {"windowsSpotlightBlocked", n => { WindowsSpotlightBlocked = n.GetBoolValue(); } }, {"windowsSpotlightConfigureOnLockScreen", n => { WindowsSpotlightConfigureOnLockScreen = n.GetEnumValue(); } }, {"windowsStoreBlockAutoUpdate", n => { WindowsStoreBlockAutoUpdate = n.GetBoolValue(); } }, {"windowsStoreBlocked", n => { WindowsStoreBlocked = n.GetBoolValue(); } }, diff --git a/src/Microsoft.Graph/Generated/Models/Windows10MobileCompliancePolicy.cs b/src/Microsoft.Graph/Generated/Models/Windows10MobileCompliancePolicy.cs index 3cdc4aad4db..0564ff2292e 100644 --- a/src/Microsoft.Graph/Generated/Models/Windows10MobileCompliancePolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/Windows10MobileCompliancePolicy.cs @@ -137,9 +137,9 @@ public Windows10MobileCompliancePolicy() : base() { {"passwordMinimumLength", n => { PasswordMinimumLength = n.GetIntValue(); } }, {"passwordMinutesOfInactivityBeforeLock", n => { PasswordMinutesOfInactivityBeforeLock = n.GetIntValue(); } }, {"passwordPreviousPasswordBlockCount", n => { PasswordPreviousPasswordBlockCount = n.GetIntValue(); } }, + {"passwordRequireToUnlockFromIdle", n => { PasswordRequireToUnlockFromIdle = n.GetBoolValue(); } }, {"passwordRequired", n => { PasswordRequired = n.GetBoolValue(); } }, {"passwordRequiredType", n => { PasswordRequiredType = n.GetEnumValue(); } }, - {"passwordRequireToUnlockFromIdle", n => { PasswordRequireToUnlockFromIdle = n.GetBoolValue(); } }, {"secureBootEnabled", n => { SecureBootEnabled = n.GetBoolValue(); } }, {"storageRequireEncryption", n => { StorageRequireEncryption = n.GetBoolValue(); } }, }; diff --git a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtection.cs b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtection.cs index 6deb23ff578..85bcc8ea398 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtection.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtection.cs @@ -298,9 +298,9 @@ public WindowsInformationProtection() : base() { {"dataRecoveryCertificate", n => { DataRecoveryCertificate = n.GetObjectValue(WindowsInformationProtectionDataRecoveryCertificate.CreateFromDiscriminatorValue); } }, {"enforcementLevel", n => { EnforcementLevel = n.GetEnumValue(); } }, {"enterpriseDomain", n => { EnterpriseDomain = n.GetStringValue(); } }, - {"enterpriseInternalProxyServers", n => { EnterpriseInternalProxyServers = n.GetCollectionOfObjectValues(WindowsInformationProtectionResourceCollection.CreateFromDiscriminatorValue)?.ToList(); } }, {"enterpriseIPRanges", n => { EnterpriseIPRanges = n.GetCollectionOfObjectValues(WindowsInformationProtectionIPRangeCollection.CreateFromDiscriminatorValue)?.ToList(); } }, {"enterpriseIPRangesAreAuthoritative", n => { EnterpriseIPRangesAreAuthoritative = n.GetBoolValue(); } }, + {"enterpriseInternalProxyServers", n => { EnterpriseInternalProxyServers = n.GetCollectionOfObjectValues(WindowsInformationProtectionResourceCollection.CreateFromDiscriminatorValue)?.ToList(); } }, {"enterpriseNetworkDomainNames", n => { EnterpriseNetworkDomainNames = n.GetCollectionOfObjectValues(WindowsInformationProtectionResourceCollection.CreateFromDiscriminatorValue)?.ToList(); } }, {"enterpriseProtectedDomainNames", n => { EnterpriseProtectedDomainNames = n.GetCollectionOfObjectValues(WindowsInformationProtectionResourceCollection.CreateFromDiscriminatorValue)?.ToList(); } }, {"enterpriseProxiedDomains", n => { EnterpriseProxiedDomains = n.GetCollectionOfObjectValues(WindowsInformationProtectionProxiedDomainCollection.CreateFromDiscriminatorValue)?.ToList(); } }, diff --git a/src/Microsoft.Graph/Generated/Models/WindowsPhone81GeneralConfiguration.cs b/src/Microsoft.Graph/Generated/Models/WindowsPhone81GeneralConfiguration.cs index 1cb7bd2b820..3dc3e535d2e 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsPhone81GeneralConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsPhone81GeneralConfiguration.cs @@ -208,8 +208,8 @@ public WindowsPhone81GeneralConfiguration() : base() { {"storageRequireEncryption", n => { StorageRequireEncryption = n.GetBoolValue(); } }, {"webBrowserBlocked", n => { WebBrowserBlocked = n.GetBoolValue(); } }, {"wifiBlockAutomaticConnectHotspots", n => { WifiBlockAutomaticConnectHotspots = n.GetBoolValue(); } }, - {"wifiBlocked", n => { WifiBlocked = n.GetBoolValue(); } }, {"wifiBlockHotspotReporting", n => { WifiBlockHotspotReporting = n.GetBoolValue(); } }, + {"wifiBlocked", n => { WifiBlocked = n.GetBoolValue(); } }, {"windowsStoreBlocked", n => { WindowsStoreBlocked = n.GetBoolValue(); } }, }; } diff --git a/src/Microsoft.Graph/Generated/Models/WindowsUpdateForBusinessConfiguration.cs b/src/Microsoft.Graph/Generated/Models/WindowsUpdateForBusinessConfiguration.cs index 848edcd556e..75e468c78e3 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsUpdateForBusinessConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsUpdateForBusinessConfiguration.cs @@ -219,8 +219,8 @@ public WindowsUpdateForBusinessConfiguration() : base() { public new IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"allowWindows11Upgrade", n => { AllowWindows11Upgrade = n.GetBoolValue(); } }, - {"automaticUpdateMode", n => { AutomaticUpdateMode = n.GetEnumValue(); } }, {"autoRestartNotificationDismissal", n => { AutoRestartNotificationDismissal = n.GetEnumValue(); } }, + {"automaticUpdateMode", n => { AutomaticUpdateMode = n.GetEnumValue(); } }, {"businessReadyUpdatesOnly", n => { BusinessReadyUpdatesOnly = n.GetEnumValue(); } }, {"deadlineForFeatureUpdatesInDays", n => { DeadlineForFeatureUpdatesInDays = n.GetIntValue(); } }, {"deadlineForQualityUpdatesInDays", n => { DeadlineForQualityUpdatesInDays = n.GetIntValue(); } }, @@ -231,9 +231,9 @@ public WindowsUpdateForBusinessConfiguration() : base() { {"engagedRestartSnoozeScheduleInDays", n => { EngagedRestartSnoozeScheduleInDays = n.GetIntValue(); } }, {"engagedRestartTransitionScheduleInDays", n => { EngagedRestartTransitionScheduleInDays = n.GetIntValue(); } }, {"featureUpdatesDeferralPeriodInDays", n => { FeatureUpdatesDeferralPeriodInDays = n.GetIntValue(); } }, - {"featureUpdatesPaused", n => { FeatureUpdatesPaused = n.GetBoolValue(); } }, {"featureUpdatesPauseExpiryDateTime", n => { FeatureUpdatesPauseExpiryDateTime = n.GetDateTimeOffsetValue(); } }, {"featureUpdatesPauseStartDate", n => { FeatureUpdatesPauseStartDate = n.GetDateValue(); } }, + {"featureUpdatesPaused", n => { FeatureUpdatesPaused = n.GetBoolValue(); } }, {"featureUpdatesRollbackStartDateTime", n => { FeatureUpdatesRollbackStartDateTime = n.GetDateTimeOffsetValue(); } }, {"featureUpdatesRollbackWindowInDays", n => { FeatureUpdatesRollbackWindowInDays = n.GetIntValue(); } }, {"featureUpdatesWillBeRolledBack", n => { FeatureUpdatesWillBeRolledBack = n.GetBoolValue(); } }, @@ -242,9 +242,9 @@ public WindowsUpdateForBusinessConfiguration() : base() { {"postponeRebootUntilAfterDeadline", n => { PostponeRebootUntilAfterDeadline = n.GetBoolValue(); } }, {"prereleaseFeatures", n => { PrereleaseFeatures = n.GetEnumValue(); } }, {"qualityUpdatesDeferralPeriodInDays", n => { QualityUpdatesDeferralPeriodInDays = n.GetIntValue(); } }, - {"qualityUpdatesPaused", n => { QualityUpdatesPaused = n.GetBoolValue(); } }, {"qualityUpdatesPauseExpiryDateTime", n => { QualityUpdatesPauseExpiryDateTime = n.GetDateTimeOffsetValue(); } }, {"qualityUpdatesPauseStartDate", n => { QualityUpdatesPauseStartDate = n.GetDateValue(); } }, + {"qualityUpdatesPaused", n => { QualityUpdatesPaused = n.GetBoolValue(); } }, {"qualityUpdatesRollbackStartDateTime", n => { QualityUpdatesRollbackStartDateTime = n.GetDateTimeOffsetValue(); } }, {"qualityUpdatesWillBeRolledBack", n => { QualityUpdatesWillBeRolledBack = n.GetBoolValue(); } }, {"scheduleImminentRestartWarningInMinutes", n => { ScheduleImminentRestartWarningInMinutes = n.GetIntValue(); } }, diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookChartFont.cs b/src/Microsoft.Graph/Generated/Models/WorkbookChartFont.cs index 54f211f8ef1..b4fd645dea9 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookChartFont.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookChartFont.cs @@ -11,7 +11,7 @@ public bool? Bold { get { return BackingStore?.Get("bold"); } set { BackingStore?.Set("bold", value); } } - /// HTML color code representation of the text color. E.g. #FF0000 represents Red. + /// HTML color code representation of the text color. for example #FF0000 represents Red. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Color { @@ -30,7 +30,7 @@ public bool? Italic { get { return BackingStore?.Get("italic"); } set { BackingStore?.Set("italic", value); } } - /// Font name (e.g. 'Calibri') + /// Font name (for example 'Calibri') #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Name { @@ -44,7 +44,7 @@ public string Name { set { BackingStore?.Set("name", value); } } #endif - /// Size of the font (e.g. 11) + /// Size of the font (for example 11) public double? Size { get { return BackingStore?.Get("size"); } set { BackingStore?.Set("size", value); } diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookChartPointFormat.cs b/src/Microsoft.Graph/Generated/Models/WorkbookChartPointFormat.cs index 2ae0087fab9..362d3f06101 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookChartPointFormat.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookChartPointFormat.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models { public class WorkbookChartPointFormat : Entity, IParsable { - /// Represents the fill format of a chart, which includes background formating information. Read-only. + /// Represents the fill format of a chart, which includes background formatting information. Read-only. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public WorkbookChartFill? Fill { diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookChartSeriesFormat.cs b/src/Microsoft.Graph/Generated/Models/WorkbookChartSeriesFormat.cs index 865982525e8..c7ea66c7975 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookChartSeriesFormat.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookChartSeriesFormat.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models { public class WorkbookChartSeriesFormat : Entity, IParsable { - /// Represents the fill format of a chart series, which includes background formating information. Read-only. + /// Represents the fill format of a chart series, which includes background formatting information. Read-only. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public WorkbookChartFill? Fill { diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookChartTitle.cs b/src/Microsoft.Graph/Generated/Models/WorkbookChartTitle.cs index 9a8a19782d0..f10f790c187 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookChartTitle.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookChartTitle.cs @@ -39,7 +39,7 @@ public string Text { set { BackingStore?.Set("text", value); } } #endif - /// A boolean value the represents the visibility of a chart title object. + /// A boolean value that represents the visibility of a chart title object. public bool? Visible { get { return BackingStore?.Get("visible"); } set { BackingStore?.Set("visible", value); } diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookRange.cs b/src/Microsoft.Graph/Generated/Models/WorkbookRange.cs index 0ba29504d01..b1aa033a35e 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookRange.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookRange.cs @@ -244,8 +244,8 @@ public WorkbookWorksheet Worksheet { {"rowIndex", n => { RowIndex = n.GetIntValue(); } }, {"sort", n => { Sort = n.GetObjectValue(WorkbookRangeSort.CreateFromDiscriminatorValue); } }, {"text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"valueTypes", n => { ValueTypes = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"worksheet", n => { Worksheet = n.GetObjectValue(WorkbookWorksheet.CreateFromDiscriminatorValue); } }, }; } diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookRangeFill.cs b/src/Microsoft.Graph/Generated/Models/WorkbookRangeFill.cs index 3ad1cb489b6..8cfc558b552 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookRangeFill.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookRangeFill.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models { public class WorkbookRangeFill : Entity, IParsable { - /// HTML color code representing the color of the border line, of the form #RRGGBB (e.g. 'FFA500') or as a named HTML color (e.g. 'orange') + /// HTML color code representing the color of the border line, of the form #RRGGBB (for example 'FFA500') or as a named HTML color (for example 'orange') #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Color { diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookRangeFont.cs b/src/Microsoft.Graph/Generated/Models/WorkbookRangeFont.cs index 317c63ed176..360444c5536 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookRangeFont.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookRangeFont.cs @@ -11,7 +11,7 @@ public bool? Bold { get { return BackingStore?.Get("bold"); } set { BackingStore?.Set("bold", value); } } - /// HTML color code representation of the text color. E.g. #FF0000 represents Red. + /// HTML color code representation of the text color. for example #FF0000 represents Red. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Color { @@ -30,7 +30,7 @@ public bool? Italic { get { return BackingStore?.Get("italic"); } set { BackingStore?.Set("italic", value); } } - /// Font name (e.g. 'Calibri') + /// Font name (for example 'Calibri') #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Name { diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookRangeFormat.cs b/src/Microsoft.Graph/Generated/Models/WorkbookRangeFormat.cs index 91b809b98be..579546370fc 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookRangeFormat.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookRangeFormat.cs @@ -20,7 +20,7 @@ public List Borders { set { BackingStore?.Set("borders", value); } } #endif - /// Gets or sets the width of all colums within the range. If the column widths are not uniform, null will be returned. + /// Gets or sets the width of all columns within the range. If the column widths aren't uniform, null will be returned. public double? ColumnWidth { get { return BackingStore?.Get("columnWidth"); } set { BackingStore?.Set("columnWidth", value); } @@ -81,7 +81,7 @@ public WorkbookFormatProtection Protection { set { BackingStore?.Set("protection", value); } } #endif - /// Gets or sets the height of all rows in the range. If the row heights are not uniform null will be returned. + /// Gets or sets the height of all rows in the range. If the row heights aren't uniform null will be returned. public double? RowHeight { get { return BackingStore?.Get("rowHeight"); } set { BackingStore?.Set("rowHeight", value); } diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookRangeView.cs b/src/Microsoft.Graph/Generated/Models/WorkbookRangeView.cs index c3114b125f4..d57806f2d41 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookRangeView.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookRangeView.cs @@ -105,7 +105,7 @@ public List Rows { set { BackingStore?.Set("rows", value); } } #endif - /// Text values of the specified range. The Text value will not depend on the cell width. The # sign substitution that happens in Excel UI will not affect the text value returned by the API. Read-only. + /// Text values of the specified range. The Text value won't depend on the cell width. The # sign substitution that happens in Excel UI won't affect the text value returned by the API. Read-only. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public Json? Text { @@ -119,7 +119,7 @@ public Json Text { set { BackingStore?.Set("text", value); } } #endif - /// Represents the raw values of the specified range view. The data returned could be of type string, number, or a boolean. Cell that contain an error will return the error string. + /// Represents the raw values of the specified range view. The data returned could be of type string, number, or a boolean. Cell that contains an error returns the error string. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public Json? Values { @@ -170,8 +170,8 @@ public Json ValueTypes { {"rowCount", n => { RowCount = n.GetIntValue(); } }, {"rows", n => { Rows = n.GetCollectionOfObjectValues(WorkbookRangeView.CreateFromDiscriminatorValue)?.ToList(); } }, {"text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"valueTypes", n => { ValueTypes = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; } /// diff --git a/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..7ba6bd537bd --- /dev/null +++ b/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Oauth2PermissionGrants.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(OAuth2PermissionGrant.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Delta/DeltaRequestBuilder.cs index 1b16a894c8e..7b7e79c8a0b 100644 --- a/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Delta/DeltaResponse.cs index b5d6a994277..01cdecac0c5 100644 --- a/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Oauth2PermissionGrants.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(OAuth2PermissionGrant.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Item/OAuth2PermissionGrantItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Item/OAuth2PermissionGrantItemRequestBuilder.cs index c006f63125a..899d3051829 100644 --- a/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Item/OAuth2PermissionGrantItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Item/OAuth2PermissionGrantItemRequestBuilder.cs @@ -29,7 +29,7 @@ public OAuth2PermissionGrantItemRequestBuilder(Dictionary pathPa public OAuth2PermissionGrantItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/oauth2PermissionGrants/{oAuth2PermissionGrant%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a delegated permission grant, represented by an oAuth2PermissionGrant object. When a delegated permission grant is deleted, the access it granted is revoked. Existing access tokens will continue to be valid for their lifetime, but new access tokens will not be granted for the delegated permissions identified in the deleted oAuth2PermissionGrant. + /// Delete a delegated permission grant, represented by an oAuth2PermissionGrant object. When a delegated permission grant is deleted, the access it granted is revoked. Existing access tokens will continue to be valid for their lifetime, but new access tokens will not be granted for the delegated permissions identified in the deleted oAuth2PermissionGrant. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties of a single delegated permission grant represented by an oAuth2PermissionGrant object. An oAuth2PermissionGrant represents delegated permissions which have been granted for a client application to access an API on behalf of a signed-in user. + /// Retrieve the properties of a single delegated permission grant represented by an oAuth2PermissionGrant object. An oAuth2PermissionGrant represents delegated permissions which have been granted for a client application to access an API on behalf of a signed-in user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, OAuth2PermissionGrant.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of oAuth2PermissionGrant object, representing a delegated permission grant. An oAuth2PermissionGrant can be updated to change which delegated permissions are granted, by adding or removing items from the list in scopes. + /// Update the properties of oAuth2PermissionGrant object, representing a delegated permission grant. An oAuth2PermissionGrant can be updated to change which delegated permissions are granted, by adding or removing items from the list in scopes. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(OAuth2PermissionGrant body, return await RequestAdapter.SendAsync(requestInfo, OAuth2PermissionGrant.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a delegated permission grant, represented by an oAuth2PermissionGrant object. When a delegated permission grant is deleted, the access it granted is revoked. Existing access tokens will continue to be valid for their lifetime, but new access tokens will not be granted for the delegated permissions identified in the deleted oAuth2PermissionGrant. + /// Delete a delegated permission grant, represented by an oAuth2PermissionGrant object. When a delegated permission grant is deleted, the access it granted is revoked. Existing access tokens will continue to be valid for their lifetime, but new access tokens will not be granted for the delegated permissions identified in the deleted oAuth2PermissionGrant. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties of a single delegated permission grant represented by an oAuth2PermissionGrant object. An oAuth2PermissionGrant represents delegated permissions which have been granted for a client application to access an API on behalf of a signed-in user. + /// Retrieve the properties of a single delegated permission grant represented by an oAuth2PermissionGrant object. An oAuth2PermissionGrant represents delegated permissions which have been granted for a client application to access an API on behalf of a signed-in user. This API is supported in the following national cloud deployments. ///
/// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of oAuth2PermissionGrant object, representing a delegated permission grant. An oAuth2PermissionGrant can be updated to change which delegated permissions are granted, by adding or removing items from the list in scopes. + /// Update the properties of oAuth2PermissionGrant object, representing a delegated permission grant. An oAuth2PermissionGrant can be updated to change which delegated permissions are granted, by adding or removing items from the list in scopes. This API is supported in the following national cloud deployments. ///
/// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public OAuth2PermissionGrantItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties of a single delegated permission grant represented by an oAuth2PermissionGrant object. An oAuth2PermissionGrant represents delegated permissions which have been granted for a client application to access an API on behalf of a signed-in user. + /// Retrieve the properties of a single delegated permission grant represented by an oAuth2PermissionGrant object. An oAuth2PermissionGrant represents delegated permissions which have been granted for a client application to access an API on behalf of a signed-in user. This API is supported in the following national cloud deployments. /// public class OAuth2PermissionGrantItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.cs index 3238dbff989..3b0456a3cc2 100644 --- a/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.cs @@ -47,7 +47,7 @@ public Oauth2PermissionGrantsRequestBuilder(Dictionary pathParam public Oauth2PermissionGrantsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/oauth2PermissionGrants{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of oAuth2PermissionGrant objects, representing delegated permissions which have been granted for client applications to access APIs on behalf of signed-in users. + /// Retrieve a list of oAuth2PermissionGrant objects, representing delegated permissions which have been granted for client applications to access APIs on behalf of signed-in users. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, OAuth2PermissionGrantCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a delegated permission grant represented by an oAuth2PermissionGrant object. A delegated permission grant authorizes a client service principal (representing a client application) to access a resource service principal (representing an API), on behalf of a signed-in user, for the level of access limited by the delegated permissions which were granted. + /// Create a delegated permission grant represented by an oAuth2PermissionGrant object. A delegated permission grant authorizes a client service principal (representing a client application) to access a resource service principal (representing an API), on behalf of a signed-in user, for the level of access limited by the delegated permissions which were granted. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(OAuth2PermissionGrant body, A return await RequestAdapter.SendAsync(requestInfo, OAuth2PermissionGrant.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of oAuth2PermissionGrant objects, representing delegated permissions which have been granted for client applications to access APIs on behalf of signed-in users. + /// Retrieve a list of oAuth2PermissionGrant objects, representing delegated permissions which have been granted for client applications to access APIs on behalf of signed-in users. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a delegated permission grant represented by an oAuth2PermissionGrant object. A delegated permission grant authorizes a client service principal (representing a client application) to access a resource service principal (representing an API), on behalf of a signed-in user, for the level of access limited by the delegated permissions which were granted. + /// Create a delegated permission grant represented by an oAuth2PermissionGrant object. A delegated permission grant authorizes a client service principal (representing a client application) to access a resource service principal (representing an API), on behalf of a signed-in user, for the level of access limited by the delegated permissions which were granted. This API is supported in the following national cloud deployments. ///
/// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public Oauth2PermissionGrantsRequestBuilder WithUrl(string rawUrl) { return new Oauth2PermissionGrantsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of oAuth2PermissionGrant objects, representing delegated permissions which have been granted for client applications to access APIs on behalf of signed-in users. + /// Retrieve a list of oAuth2PermissionGrant objects, representing delegated permissions which have been granted for client applications to access APIs on behalf of signed-in users. This API is supported in the following national cloud deployments. /// public class Oauth2PermissionGrantsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Organization/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Organization/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..e5db8ad7efb --- /dev/null +++ b/src/Microsoft.Graph/Generated/Organization/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Organization.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Organization/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Delta/DeltaRequestBuilder.cs index 4725f2fcd5d..670d4ff75e1 100644 --- a/src/Microsoft.Graph/Generated/Organization/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Organization/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Organization/Delta/DeltaResponse.cs index 657f4f898ca..fe78c0969e3 100644 --- a/src/Microsoft.Graph/Generated/Organization/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Organization/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Organization.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Organization/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/Organization/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs new file mode 100644 index 00000000000..09cf31f00aa --- /dev/null +++ b/src/Microsoft.Graph/Generated/Organization/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Organization.GetAvailableExtensionProperties { + public class GetAvailableExtensionPropertiesPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAvailableExtensionPropertiesPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Organization/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index f598a56d7de..0980c15495e 100644 --- a/src/Microsoft.Graph/Generated/Organization/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -28,13 +28,36 @@ public GetAvailableExtensionPropertiesRequestBuilder(Dictionary public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/organization/getAvailableExtensionProperties", rawUrl) { } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetAvailableExtensionPropertiesPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetAvailabl return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Organization/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/Organization/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index b4ff5a722ba..16915785aa3 100644 --- a/src/Microsoft.Graph/Generated/Organization/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/Organization/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Organization.GetAvailableExtensionProperties { - public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAvailableExtensionPropertiesPostResponse instead.")] + public class GetAvailableExtensionPropertiesResponse : GetAvailableExtensionPropertiesPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Organization/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/Organization/GetByIds/GetByIdsPostResponse.cs new file mode 100644 index 00000000000..d84f415279e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Organization/GetByIds/GetByIdsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Organization.GetByIds { + public class GetByIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetByIdsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Organization/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/GetByIds/GetByIdsRequestBuilder.cs index 2fca035df37..606a804d16c 100644 --- a/src/Microsoft.Graph/Generated/Organization/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/GetByIds/GetByIdsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetByIdsRequestBuilder(Dictionary pathParameters, IReques public GetByIdsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/organization/getByIds", rawUrl) { } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetByIdsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetByIdsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetByIdsPostRequestBody body, Acti return await RequestAdapter.SendAsync(requestInfo, GetByIdsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Organization/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/Organization/GetByIds/GetByIdsResponse.cs index 8cb9a802a21..5ace9cda5dd 100644 --- a/src/Microsoft.Graph/Generated/Organization/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/Organization/GetByIds/GetByIdsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Organization.GetByIds { - public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getByIdsPostResponse instead.")] + public class GetByIdsResponse : GetByIdsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Organization/Item/Branding/BrandingRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/Branding/BrandingRequestBuilder.cs index 1f83de0fcad..35674617f0d 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/Branding/BrandingRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/Branding/BrandingRequestBuilder.cs @@ -69,7 +69,7 @@ public BrandingRequestBuilder(Dictionary pathParameters, IReques public BrandingRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/organization/{organization%2Did}/branding{?%24select,%24expand}", rawUrl) { } /// - /// Delete the default organizational branding object. To delete the organizationalBranding object, all images (Stream types) must first be removed from the object. + /// Delete the default organizational branding object. To delete the organizationalBranding object, all images (Stream types) must first be removed from the object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task DeleteAsync(Action - /// Retrieve the default organizational branding object, if the Accept-Language header is set to 0 or default. If no default organizational branding object exists, this method returns a 404 Not Found error. If the Accept-Language header is set to an existing locale identified by the value of its id, this method retrieves the branding for the specified locale. This method retrieves only non-Stream properties, for example, usernameHintText and signInPageText. To retrieve Stream types of the default branding, for example, bannerLogo and backgroundImage, use the GET organizationalBrandingLocalization method. + /// Retrieve the default organizational branding object, if the Accept-Language header is set to 0 or default. If no default organizational branding object exists, this method returns a 404 Not Found error. If the Accept-Language header is set to an existing locale identified by the value of its id, this method retrieves the branding for the specified locale. This method retrieves only non-Stream properties, for example, usernameHintText and signInPageText. To retrieve Stream types of the default branding, for example, bannerLogo and backgroundImage, use the GET organizationalBrandingLocalization method. This API is supported in the following national cloud deployments. /// Find more info here ///
/// Cancellation token to use when cancelling requests @@ -109,7 +109,7 @@ public async Task GetAsync(Action(requestInfo, OrganizationalBranding.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of the default branding object specified by the organizationalBranding resource. + /// Update the properties of the default branding object specified by the organizationalBranding resource. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -131,7 +131,7 @@ public async Task PatchAsync(OrganizationalBranding body return await RequestAdapter.SendAsync(requestInfo, OrganizationalBranding.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete the default organizational branding object. To delete the organizationalBranding object, all images (Stream types) must first be removed from the object. + /// Delete the default organizational branding object. To delete the organizationalBranding object, all images (Stream types) must first be removed from the object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -155,7 +155,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the default organizational branding object, if the Accept-Language header is set to 0 or default. If no default organizational branding object exists, this method returns a 404 Not Found error. If the Accept-Language header is set to an existing locale identified by the value of its id, this method retrieves the branding for the specified locale. This method retrieves only non-Stream properties, for example, usernameHintText and signInPageText. To retrieve Stream types of the default branding, for example, bannerLogo and backgroundImage, use the GET organizationalBrandingLocalization method. + /// Retrieve the default organizational branding object, if the Accept-Language header is set to 0 or default. If no default organizational branding object exists, this method returns a 404 Not Found error. If the Accept-Language header is set to an existing locale identified by the value of its id, this method retrieves the branding for the specified locale. This method retrieves only non-Stream properties, for example, usernameHintText and signInPageText. To retrieve Stream types of the default branding, for example, bannerLogo and backgroundImage, use the GET organizationalBrandingLocalization method. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -181,7 +181,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of the default branding object specified by the organizationalBranding resource. + /// Update the properties of the default branding object specified by the organizationalBranding resource. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -232,7 +232,7 @@ public BrandingRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the default organizational branding object, if the Accept-Language header is set to 0 or default. If no default organizational branding object exists, this method returns a 404 Not Found error. If the Accept-Language header is set to an existing locale identified by the value of its id, this method retrieves the branding for the specified locale. This method retrieves only non-Stream properties, for example, usernameHintText and signInPageText. To retrieve Stream types of the default branding, for example, bannerLogo and backgroundImage, use the GET organizationalBrandingLocalization method. + /// Retrieve the default organizational branding object, if the Accept-Language header is set to 0 or default. If no default organizational branding object exists, this method returns a 404 Not Found error. If the Accept-Language header is set to an existing locale identified by the value of its id, this method retrieves the branding for the specified locale. This method retrieves only non-Stream properties, for example, usernameHintText and signInPageText. To retrieve Stream types of the default branding, for example, bannerLogo and backgroundImage, use the GET organizationalBrandingLocalization method. This API is supported in the following national cloud deployments. /// public class BrandingRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/OrganizationalBrandingLocalizationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/OrganizationalBrandingLocalizationItemRequestBuilder.cs index b617af4a84a..1fc6d4da07c 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/OrganizationalBrandingLocalizationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/OrganizationalBrandingLocalizationItemRequestBuilder.cs @@ -64,7 +64,7 @@ public OrganizationalBrandingLocalizationItemRequestBuilder(Dictionary - /// Delete a localized branding object. To delete the organizationalBrandingLocalization object, all images (Stream types) must first be removed from the object. + /// Delete a localized branding object. To delete the organizationalBrandingLocalization object, all images (Stream types) must first be removed from the object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an organizationalBrandingLocalization object. To retrieve a localization branding object, specify the value of id in the URL. + /// Read the properties and relationships of an organizationalBrandingLocalization object. To retrieve a localization branding object, specify the value of id in the URL. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -104,7 +104,7 @@ public async Task GetAsync(Action(requestInfo, OrganizationalBrandingLocalization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an organizationalBrandingLocalization object for a specific localization. + /// Update the properties of an organizationalBrandingLocalization object for a specific localization. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -126,7 +126,7 @@ public async Task PatchAsync(OrganizationalB return await RequestAdapter.SendAsync(requestInfo, OrganizationalBrandingLocalization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a localized branding object. To delete the organizationalBrandingLocalization object, all images (Stream types) must first be removed from the object. + /// Delete a localized branding object. To delete the organizationalBrandingLocalization object, all images (Stream types) must first be removed from the object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -150,7 +150,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an organizationalBrandingLocalization object. To retrieve a localization branding object, specify the value of id in the URL. + /// Read the properties and relationships of an organizationalBrandingLocalization object. To retrieve a localization branding object, specify the value of id in the URL. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -176,7 +176,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an organizationalBrandingLocalization object for a specific localization. + /// Update the properties of an organizationalBrandingLocalization object for a specific localization. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -227,7 +227,7 @@ public OrganizationalBrandingLocalizationItemRequestBuilderDeleteRequestConfigur } } /// - /// Read the properties and relationships of an organizationalBrandingLocalization object. To retrieve a localization branding object, specify the value of id in the URL. + /// Read the properties and relationships of an organizationalBrandingLocalization object. To retrieve a localization branding object, specify the value of id in the URL. This API is supported in the following national cloud deployments. /// public class OrganizationalBrandingLocalizationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/LocalizationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/LocalizationsRequestBuilder.cs index 083d5a7dbd7..bb6a012ac9d 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/LocalizationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/LocalizationsRequestBuilder.cs @@ -42,7 +42,7 @@ public LocalizationsRequestBuilder(Dictionary pathParameters, IR public LocalizationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/organization/{organization%2Did}/branding/localizations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve all localization branding objects, including the default branding. + /// Retrieve all localization branding objects, including the default branding. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync return await RequestAdapter.SendAsync(requestInfo, OrganizationalBrandingLocalizationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new organizationalBrandingLocalization object. This creates a localized branding and at the same time, the default branding if it doesn't exist. The default branding is created only once. It's loaded when a localized branding isn't configured for the user's browser language. To retrieve the default branding, see Get branding. + /// Create a new organizationalBrandingLocalization object. This creates a localized branding and at the same time, the default branding if it doesn't exist. The default branding is created only once. It's loaded when a localized branding isn't configured for the user's browser language. To retrieve the default branding, see Get branding. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OrganizationalBr return await RequestAdapter.SendAsync(requestInfo, OrganizationalBrandingLocalization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve all localization branding objects, including the default branding. + /// Retrieve all localization branding objects, including the default branding. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new organizationalBrandingLocalization object. This creates a localized branding and at the same time, the default branding if it doesn't exist. The default branding is created only once. It's loaded when a localized branding isn't configured for the user's browser language. To retrieve the default branding, see Get branding. + /// Create a new organizationalBrandingLocalization object. This creates a localized branding and at the same time, the default branding if it doesn't exist. The default branding is created only once. It's loaded when a localized branding isn't configured for the user's browser language. To retrieve the default branding, see Get branding. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public LocalizationsRequestBuilder WithUrl(string rawUrl) { return new LocalizationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve all localization branding objects, including the default branding. + /// Retrieve all localization branding objects, including the default branding. This API is supported in the following national cloud deployments. /// public class LocalizationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Organization/Item/CertificateBasedAuthConfiguration/CertificateBasedAuthConfigurationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/CertificateBasedAuthConfiguration/CertificateBasedAuthConfigurationRequestBuilder.cs index 2e99e54e17a..4c7e824e73f 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/CertificateBasedAuthConfiguration/CertificateBasedAuthConfigurationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/CertificateBasedAuthConfiguration/CertificateBasedAuthConfigurationRequestBuilder.cs @@ -42,7 +42,7 @@ public CertificateBasedAuthConfigurationRequestBuilder(Dictionary - /// Get a list of certificateBasedAuthConfiguration objects. + /// Get a list of certificateBasedAuthConfiguration objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync( return await RequestAdapter.SendAsync(requestInfo, CertificateBasedAuthConfigurationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new certificateBasedAuthConfiguration object. + /// Create a new certificateBasedAuthConfiguration object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task GetAsync( return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.CertificateBasedAuthConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of certificateBasedAuthConfiguration objects. + /// Get a list of certificateBasedAuthConfiguration objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new certificateBasedAuthConfiguration object. + /// Create a new certificateBasedAuthConfiguration object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public CertificateBasedAuthConfigurationRequestBuilder WithUrl(string rawUrl) { return new CertificateBasedAuthConfigurationRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of certificateBasedAuthConfiguration objects. + /// Get a list of certificateBasedAuthConfiguration objects. This API is supported in the following national cloud deployments. /// public class CertificateBasedAuthConfigurationRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Organization/Item/CertificateBasedAuthConfiguration/Item/CertificateBasedAuthConfigurationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/CertificateBasedAuthConfiguration/Item/CertificateBasedAuthConfigurationItemRequestBuilder.cs index 37fb0956761..557f5dd7b8f 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/CertificateBasedAuthConfiguration/Item/CertificateBasedAuthConfigurationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/CertificateBasedAuthConfiguration/Item/CertificateBasedAuthConfigurationItemRequestBuilder.cs @@ -29,7 +29,7 @@ public CertificateBasedAuthConfigurationItemRequestBuilder(Dictionary - /// Delete a certificateBasedAuthConfiguration object. + /// Delete a certificateBasedAuthConfiguration object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get the properties of a certificateBasedAuthConfiguration object. + /// Get the properties of a certificateBasedAuthConfiguration object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.CertificateBasedAuthConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a certificateBasedAuthConfiguration object. + /// Delete a certificateBasedAuthConfiguration object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -93,7 +93,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties of a certificateBasedAuthConfiguration object. + /// Get the properties of a certificateBasedAuthConfiguration object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -142,7 +142,7 @@ public CertificateBasedAuthConfigurationItemRequestBuilderDeleteRequestConfigura } } /// - /// Get the properties of a certificateBasedAuthConfiguration object. + /// Get the properties of a certificateBasedAuthConfiguration object. This API is supported in the following national cloud deployments. /// public class CertificateBasedAuthConfigurationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..c8b2fd1e36c --- /dev/null +++ b/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Organization.Item.CheckMemberGroups { + public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index 3adcf2ffd42..a31ec2f71b6 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/organization/{organization%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index e3351e9d019..9993e775acd 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Organization.Item.CheckMemberGroups { - public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberGroupsPostResponse instead.")] + public class CheckMemberGroupsResponse : CheckMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..d5fcb38a0ab --- /dev/null +++ b/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Organization.Item.CheckMemberObjects { + public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index 1c5f855738e..88c50a934c0 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -34,6 +34,28 @@ public CheckMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAd /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action checkMemberObjects + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index a5aa6b0730c..6185299a21d 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Organization.Item.CheckMemberObjects { - public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberObjectsPostResponse instead.")] + public class CheckMemberObjectsResponse : CheckMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Organization/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Organization/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..eb3b3feced2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Organization/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Organization.Item.GetMemberGroups { + public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Organization/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index 4369827a44f..cb833b64589 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberGroupsRequestBuilder(Dictionary pathParameters, public GetMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/organization/{organization%2Did}/getMemberGroups", rawUrl) { } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberGroupsPostRequestB return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Organization/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Organization/Item/GetMemberGroups/GetMemberGroupsResponse.cs index 3828f907b96..eb8bb80890f 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Organization.Item.GetMemberGroups { - public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberGroupsPostResponse instead.")] + public class GetMemberGroupsResponse : GetMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Organization/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Organization/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..8ba151b3e79 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Organization/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Organization.Item.GetMemberObjects { + public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Organization/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index 518738054f8..3c6b57d65eb 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberObjectsRequestBuilder(Dictionary pathParameters, public GetMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/organization/{organization%2Did}/getMemberObjects", rawUrl) { } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberObjectsPostReques return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Organization/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Organization/Item/GetMemberObjects/GetMemberObjectsResponse.cs index f018513d8ba..fd753d1f036 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Organization.Item.GetMemberObjects { - public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberObjectsPostResponse instead.")] + public class GetMemberObjectsResponse : GetMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Organization/Item/OrganizationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/OrganizationItemRequestBuilder.cs index 8221852fdd4..fb4f53a69c4 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/OrganizationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/OrganizationItemRequestBuilder.cs @@ -93,7 +93,7 @@ public async Task DeleteAsync(Action - /// Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. + /// Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,8 +113,8 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Organization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a organization object. - /// Find more info here + /// Update the properties of the currently authenticated organization. In this case, organization is defined as a collection of exactly one record, and so its ID must be specified in the request. The ID is also known as the tenantId of the organization. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -159,7 +159,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. + /// Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -185,7 +185,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a organization object. + /// Update the properties of the currently authenticated organization. In this case, organization is defined as a collection of exactly one record, and so its ID must be specified in the request. The ID is also known as the tenantId of the organization. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -236,7 +236,7 @@ public OrganizationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. + /// Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. This API is supported in the following national cloud deployments. /// public class OrganizationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Organization/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/Restore/RestoreRequestBuilder.cs index a336f6b8624..7c385d8f22d 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/Restore/RestoreRequestBuilder.cs @@ -29,7 +29,7 @@ public RestoreRequestBuilder(Dictionary pathParameters, IRequest public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/organization/{organization%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs b/src/Microsoft.Graph/Generated/Organization/Item/SetMobileDeviceManagementAuthority/SetMobileDeviceManagementAuthorityPostResponse.cs similarity index 67% rename from src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs rename to src/Microsoft.Graph/Generated/Organization/Item/SetMobileDeviceManagementAuthority/SetMobileDeviceManagementAuthorityPostResponse.cs index 8920837ef1e..13381fa9df3 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/SetMobileDeviceManagementAuthority/SetMobileDeviceManagementAuthorityPostResponse.cs @@ -5,8 +5,8 @@ using System.IO; using System.Linq; using System; -namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.GetAvailableExtensionProperties { - public class GetAvailableExtensionPropertiesPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable { +namespace Microsoft.Graph.Organization.Item.SetMobileDeviceManagementAuthority { + public class SetMobileDeviceManagementAuthorityPostResponse : IAdditionalDataHolder, IBackedModel, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get { return BackingStore?.Get>("additionalData"); } @@ -14,15 +14,15 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The isSyncedFromOnPremises property - public bool? IsSyncedFromOnPremises { - get { return BackingStore?.Get("isSyncedFromOnPremises"); } - set { BackingStore?.Set("isSyncedFromOnPremises", value); } + /// The value property + public int? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } } /// - /// Instantiates a new getAvailableExtensionPropertiesPostRequestBody and sets the default values. + /// Instantiates a new setMobileDeviceManagementAuthorityPostResponse and sets the default values. /// - public GetAvailableExtensionPropertiesPostRequestBody() { + public SetMobileDeviceManagementAuthorityPostResponse() { BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); AdditionalData = new Dictionary(); } @@ -30,16 +30,16 @@ public GetAvailableExtensionPropertiesPostRequestBody() { /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static GetAvailableExtensionPropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + public static SetMobileDeviceManagementAuthorityPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetAvailableExtensionPropertiesPostRequestBody(); + return new SetMobileDeviceManagementAuthorityPostResponse(); } /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"isSyncedFromOnPremises", n => { IsSyncedFromOnPremises = n.GetBoolValue(); } }, + {"value", n => { Value = n.GetIntValue(); } }, }; } /// @@ -48,7 +48,7 @@ public IDictionary> GetFieldDeserializers() { /// Serialization writer to use to serialize this model public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("isSyncedFromOnPremises", IsSyncedFromOnPremises); + writer.WriteIntValue("value", Value); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Microsoft.Graph/Generated/Organization/Item/SetMobileDeviceManagementAuthority/SetMobileDeviceManagementAuthorityRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/SetMobileDeviceManagementAuthority/SetMobileDeviceManagementAuthorityRequestBuilder.cs index 52296a866cf..b87c7f195be 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/SetMobileDeviceManagementAuthority/SetMobileDeviceManagementAuthorityRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/SetMobileDeviceManagementAuthority/SetMobileDeviceManagementAuthorityRequestBuilder.cs @@ -34,6 +34,27 @@ public SetMobileDeviceManagementAuthorityRequestBuilder(string rawUrl, IRequestA /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsSetMobileDeviceManagementAuthorityPostResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsSetMobileDeviceManagementAuthorityPostResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, SetMobileDeviceManagementAuthorityPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Set mobile device management authority + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsSetMobileDeviceManagementAuthorityPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Organization/Item/SetMobileDeviceManagementAuthority/SetMobileDeviceManagementAuthorityResponse.cs b/src/Microsoft.Graph/Generated/Organization/Item/SetMobileDeviceManagementAuthority/SetMobileDeviceManagementAuthorityResponse.cs index 41095fbfddb..aa3c68aa14e 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/SetMobileDeviceManagementAuthority/SetMobileDeviceManagementAuthorityResponse.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/SetMobileDeviceManagementAuthority/SetMobileDeviceManagementAuthorityResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Organization.Item.SetMobileDeviceManagementAuthority { - public class SetMobileDeviceManagementAuthorityResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public int? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new setMobileDeviceManagementAuthorityResponse and sets the default values. - /// - public SetMobileDeviceManagementAuthorityResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use setMobileDeviceManagementAuthorityPostResponse instead.")] + public class SetMobileDeviceManagementAuthorityResponse : SetMobileDeviceManagementAuthorityPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static SetMobileDeviceManagementAuthorityResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new SetMobileDeviceManagementAuthorityResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SetMobileDeviceManagementAuthorityResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetIntValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteIntValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Organization/OrganizationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/OrganizationRequestBuilder.cs index 62e96d957c0..70b121dd405 100644 --- a/src/Microsoft.Graph/Generated/Organization/OrganizationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/OrganizationRequestBuilder.cs @@ -62,8 +62,8 @@ public OrganizationRequestBuilder(Dictionary pathParameters, IRe public OrganizationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/organization{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of organization objects. - /// Find more info here + /// List properties and relationships of the organization objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -103,7 +103,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Organization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of organization objects. + /// List properties and relationships of the organization objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,7 +164,7 @@ public OrganizationRequestBuilder WithUrl(string rawUrl) { return new OrganizationRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of organization objects. + /// List properties and relationships of the organization objects. /// public class OrganizationRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Organization/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/ValidateProperties/ValidatePropertiesRequestBuilder.cs index df499479772..bb30a62cac1 100644 --- a/src/Microsoft.Graph/Generated/Organization/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -28,7 +28,7 @@ public ValidatePropertiesRequestBuilder(Dictionary pathParameter public ValidatePropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/organization/validateProperties", rawUrl) { } /// - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ValidatePropertiesPostRequestBody body, Action - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..18970e0697e --- /dev/null +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.PermissionGrants.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Delta/DeltaRequestBuilder.cs index f26399fecff..6cf967d6ff3 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Delta/DeltaResponse.cs index 07597357d09..a3162976c37 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.PermissionGrants.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs new file mode 100644 index 00000000000..b22be39ea17 --- /dev/null +++ b/src/Microsoft.Graph/Generated/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.PermissionGrants.GetAvailableExtensionProperties { + public class GetAvailableExtensionPropertiesPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAvailableExtensionPropertiesPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index 69a5f00edc9..c00969e9338 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -28,13 +28,36 @@ public GetAvailableExtensionPropertiesRequestBuilder(Dictionary public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/permissionGrants/getAvailableExtensionProperties", rawUrl) { } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetAvailableExtensionPropertiesPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetAvailabl return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index af049e36ff9..8f94177de12 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.PermissionGrants.GetAvailableExtensionProperties { - public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAvailableExtensionPropertiesPostResponse instead.")] + public class GetAvailableExtensionPropertiesResponse : GetAvailableExtensionPropertiesPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/PermissionGrants/GetByIds/GetByIdsPostResponse.cs new file mode 100644 index 00000000000..ed1133bd030 --- /dev/null +++ b/src/Microsoft.Graph/Generated/PermissionGrants/GetByIds/GetByIdsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.PermissionGrants.GetByIds { + public class GetByIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetByIdsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs index 54e46a72b81..47d9972ca9b 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetByIdsRequestBuilder(Dictionary pathParameters, IReques public GetByIdsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/permissionGrants/getByIds", rawUrl) { } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetByIdsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetByIdsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetByIdsPostRequestBody body, Acti return await RequestAdapter.SendAsync(requestInfo, GetByIdsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/PermissionGrants/GetByIds/GetByIdsResponse.cs index 50834c7d0c0..5626af37ee5 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/GetByIds/GetByIdsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.PermissionGrants.GetByIds { - public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getByIdsPostResponse instead.")] + public class GetByIdsResponse : GetByIdsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..ee5bc561878 --- /dev/null +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.PermissionGrants.Item.CheckMemberGroups { + public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index 67651050dd5..d7aa15b54c4 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index e2e74a9318c..58c221f1729 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.PermissionGrants.Item.CheckMemberGroups { - public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberGroupsPostResponse instead.")] + public class CheckMemberGroupsResponse : CheckMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..c937481c4ee --- /dev/null +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.PermissionGrants.Item.CheckMemberObjects { + public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index 41431c0126c..5f9b7a6e9ff 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -34,6 +34,28 @@ public CheckMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAd /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action checkMemberObjects + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index 73bc348e97c..416e47b5b47 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.PermissionGrants.Item.CheckMemberObjects { - public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberObjectsPostResponse instead.")] + public class CheckMemberObjectsResponse : CheckMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..ff4b703802b --- /dev/null +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.PermissionGrants.Item.GetMemberGroups { + public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index 9107a042ade..021777e34ca 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberGroupsRequestBuilder(Dictionary pathParameters, public GetMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/getMemberGroups", rawUrl) { } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberGroupsPostRequestB return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs index d8fe8ae0c94..e38abfd36ca 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.PermissionGrants.Item.GetMemberGroups { - public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberGroupsPostResponse instead.")] + public class GetMemberGroupsResponse : GetMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..4816caf599d --- /dev/null +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.PermissionGrants.Item.GetMemberObjects { + public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index e57bb29431f..6f6a9039c13 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberObjectsRequestBuilder(Dictionary pathParameters, public GetMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/getMemberObjects", rawUrl) { } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberObjectsPostReques return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs index 205265a5c5a..c658eb1618d 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.PermissionGrants.Item.GetMemberObjects { - public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberObjectsPostResponse instead.")] + public class GetMemberObjectsResponse : GetMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs index 61b77fd0bf7..959b91906af 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs @@ -29,7 +29,7 @@ public RestoreRequestBuilder(Dictionary pathParameters, IRequest public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs index 9f317252e93..e2f6800334b 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -28,7 +28,7 @@ public ValidatePropertiesRequestBuilder(Dictionary pathParameter public ValidatePropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/permissionGrants/validateProperties", rawUrl) { } /// - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ValidatePropertiesPostRequestBody body, Action - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/GraphRoomListRequestBuilder.cs b/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/GraphRoomListRequestBuilder.cs index a5cf9970558..ba9e83f2a76 100644 --- a/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/GraphRoomListRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/GraphRoomListRequestBuilder.cs @@ -1,6 +1,7 @@ // using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; +using Microsoft.Graph.Places.Item.GraphRoomList.Rooms; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -14,6 +15,10 @@ namespace Microsoft.Graph.Places.Item.GraphRoomList { /// Casts the previous resource to roomList. /// public class GraphRoomListRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the rooms property of the microsoft.graph.roomList entity. + public RoomsRequestBuilder Rooms { get => + new RoomsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new GraphRoomListRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/Rooms/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/Rooms/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..8a187f941ea --- /dev/null +++ b/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/Rooms/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Places.Item.GraphRoomList.Rooms.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/rooms/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/rooms/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/Rooms/Item/RoomItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/Rooms/Item/RoomItemRequestBuilder.cs new file mode 100644 index 00000000000..a879801e3be --- /dev/null +++ b/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/Rooms/Item/RoomItemRequestBuilder.cs @@ -0,0 +1,251 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Places.Item.GraphRoomList.Rooms.Item { + /// + /// Provides operations to manage the rooms property of the microsoft.graph.roomList entity. + /// + public class RoomItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new RoomItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RoomItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/rooms/{room%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new RoomItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RoomItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/rooms/{room%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property rooms for places + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get rooms from places + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Room.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property rooms in places + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(Room body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(Room body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Room.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property rooms for places + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new RoomItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get rooms from places + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new RoomItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property rooms in places + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(Room body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(Room body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new RoomItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public RoomItemRequestBuilder WithUrl(string rawUrl) { + return new RoomItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class RoomItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new RoomItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public RoomItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get rooms from places + /// + public class RoomItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class RoomItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public RoomItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new RoomItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new RoomItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public RoomItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class RoomItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new RoomItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public RoomItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/Rooms/RoomsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/Rooms/RoomsRequestBuilder.cs new file mode 100644 index 00000000000..a1c297b2d24 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/Rooms/RoomsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Places.Item.GraphRoomList.Rooms.Count; +using Microsoft.Graph.Places.Item.GraphRoomList.Rooms.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Places.Item.GraphRoomList.Rooms { + /// + /// Provides operations to manage the rooms property of the microsoft.graph.roomList entity. + /// + public class RoomsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the rooms property of the microsoft.graph.roomList entity. + /// The unique identifier of room + public RoomItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("room%2Did", position); + return new RoomItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new RoomsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RoomsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/rooms{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new RoomsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RoomsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/rooms{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get rooms from places + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, RoomCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to rooms for places + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Room body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(Room body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Room.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get rooms from places + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new RoomsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to rooms for places + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Room body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Room body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new RoomsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public RoomsRequestBuilder WithUrl(string rawUrl) { + return new RoomsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get rooms from places + /// + public class RoomsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class RoomsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public RoomsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new RoomsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new roomsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public RoomsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class RoomsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new roomsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public RoomsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Places/Item/PlaceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Places/Item/PlaceItemRequestBuilder.cs index 88da4ac6ff1..218a972cae3 100644 --- a/src/Microsoft.Graph/Generated/Places/Item/PlaceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Places/Item/PlaceItemRequestBuilder.cs @@ -58,7 +58,7 @@ public async Task DeleteAsync(Action - /// Update the properties of place object, which can be a room or roomList. You can identify the room or roomList by specifying the id or emailAddress property. + /// Update the properties of place object, which can be a room or roomList. You can identify the room or roomList by specifying the id or emailAddress property. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -104,7 +104,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Update the properties of place object, which can be a room or roomList. You can identify the room or roomList by specifying the id or emailAddress property. + /// Update the properties of place object, which can be a room or roomList. You can identify the room or roomList by specifying the id or emailAddress property. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Planner/Buckets/BucketsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Buckets/BucketsRequestBuilder.cs index 9863f96ddaf..32bd3d3c687 100644 --- a/src/Microsoft.Graph/Generated/Planner/Buckets/BucketsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Buckets/BucketsRequestBuilder.cs @@ -42,7 +42,7 @@ public BucketsRequestBuilder(Dictionary pathParameters, IRequest public BucketsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/planner/buckets{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of plannerbucket objects. + /// Retrieve a list of plannerbucket objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, PlannerBucketCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new plannerBucket object. + /// Create a new plannerBucket object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(PlannerBucket body, Action(requestInfo, PlannerBucket.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of plannerbucket objects. + /// Retrieve a list of plannerbucket objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new plannerBucket object. + /// Create a new plannerBucket object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public BucketsRequestBuilder WithUrl(string rawUrl) { return new BucketsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of plannerbucket objects. + /// Retrieve a list of plannerbucket objects. This API is supported in the following national cloud deployments. /// public class BucketsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Planner/Buckets/Item/PlannerBucketItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Buckets/Item/PlannerBucketItemRequestBuilder.cs index 3e7280f8aeb..b6b2d7d34a5 100644 --- a/src/Microsoft.Graph/Generated/Planner/Buckets/Item/PlannerBucketItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Buckets/Item/PlannerBucketItemRequestBuilder.cs @@ -34,7 +34,7 @@ public PlannerBucketItemRequestBuilder(Dictionary pathParameters public PlannerBucketItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/planner/buckets/{plannerBucket%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete plannerBucket. + /// Delete plannerBucket. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a plannerBucket object. + /// Retrieve the properties and relationships of a plannerBucket object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -96,7 +96,7 @@ public async Task PatchAsync(PlannerBucket body, Action(requestInfo, PlannerBucket.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete plannerBucket. + /// Delete plannerBucket. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a plannerBucket object. + /// Retrieve the properties and relationships of a plannerBucket object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -197,7 +197,7 @@ public PlannerBucketItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a plannerBucket object. + /// Retrieve the properties and relationships of a plannerBucket object. This API is supported in the following national cloud deployments. /// public class PlannerBucketItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs index 4628b425a8b..9ea17593051 100644 --- a/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public AssignedToTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class AssignedToTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs index 7906ec02d96..2e367e18ade 100644 --- a/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public BucketTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class BucketTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs index 307d7f52dec..4c19a04d881 100644 --- a/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public DetailsRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// public class DetailsRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs index 51a128f0a24..2291012266e 100644 --- a/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public ProgressTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class ProgressTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/TasksRequestBuilder.cs index 97e0a656fd5..7e5654c1d5e 100644 --- a/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/TasksRequestBuilder.cs @@ -42,7 +42,7 @@ public TasksRequestBuilder(Dictionary pathParameters, IRequestAd public TasksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/planner/buckets/{plannerBucket%2Did}/tasks{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of plannerTask objects associated to a plannerBucket object. + /// Retrieve a list of plannerTask objects associated to a plannerBucket object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(PlannerTask body, Action(requestInfo, PlannerTask.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of plannerTask objects associated to a plannerBucket object. + /// Retrieve a list of plannerTask objects associated to a plannerBucket object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public TasksRequestBuilder WithUrl(string rawUrl) { return new TasksRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of plannerTask objects associated to a plannerBucket object. + /// Retrieve a list of plannerTask objects associated to a plannerBucket object. This API is supported in the following national cloud deployments. /// public class TasksRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs index 8ba46b9fcf2..a0a70c2b7e2 100644 --- a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs @@ -42,7 +42,7 @@ public BucketsRequestBuilder(Dictionary pathParameters, IRequest public BucketsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/planner/plans/{plannerPlan%2Did}/buckets{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of plannerBucket objects contained by a plannerPlan object. + /// Retrieve a list of plannerBucket objects contained by a plannerPlan object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(PlannerBucket body, Action(requestInfo, PlannerBucket.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of plannerBucket objects contained by a plannerPlan object. + /// Retrieve a list of plannerBucket objects contained by a plannerPlan object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public BucketsRequestBuilder WithUrl(string rawUrl) { return new BucketsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of plannerBucket objects contained by a plannerPlan object. + /// Retrieve a list of plannerBucket objects contained by a plannerPlan object. This API is supported in the following national cloud deployments. /// public class BucketsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs index 08c7a7888d2..a4824e21814 100644 --- a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public AssignedToTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class AssignedToTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs index 98c7bf4a1e2..9f67d90095f 100644 --- a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public BucketTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class BucketTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs index adf04afb874..17924d6e7ef 100644 --- a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public DetailsRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// public class DetailsRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs index b11a2395547..994dd646cad 100644 --- a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public ProgressTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class ProgressTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs index 1dae4a17dd0..1f857348326 100644 --- a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs @@ -42,7 +42,7 @@ public TasksRequestBuilder(Dictionary pathParameters, IRequestAd public TasksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%2Did}/tasks{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of plannerTask objects associated to a plannerBucket object. + /// Retrieve a list of plannerTask objects associated to a plannerBucket object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(PlannerTask body, Action(requestInfo, PlannerTask.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of plannerTask objects associated to a plannerBucket object. + /// Retrieve a list of plannerTask objects associated to a plannerBucket object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public TasksRequestBuilder WithUrl(string rawUrl) { return new TasksRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of plannerTask objects associated to a plannerBucket object. + /// Retrieve a list of plannerTask objects associated to a plannerBucket object. This API is supported in the following national cloud deployments. /// public class TasksRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Details/DetailsRequestBuilder.cs index 7b9ff079567..9c378d8d95c 100644 --- a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Details/DetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Details/DetailsRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a plannerPlanDetails object. + /// Retrieve the properties and relationships of a plannerPlanDetails object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a plannerPlanDetails object. + /// Retrieve the properties and relationships of a plannerPlanDetails object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public DetailsRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a plannerPlanDetails object. + /// Retrieve the properties and relationships of a plannerPlanDetails object. This API is supported in the following national cloud deployments. /// public class DetailsRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Planner/Plans/Item/PlannerPlanItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Plans/Item/PlannerPlanItemRequestBuilder.cs index 5164ac42ff7..152371be30d 100644 --- a/src/Microsoft.Graph/Generated/Planner/Plans/Item/PlannerPlanItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Plans/Item/PlannerPlanItemRequestBuilder.cs @@ -44,7 +44,7 @@ public PlannerPlanItemRequestBuilder(Dictionary pathParameters, public PlannerPlanItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/planner/plans/{plannerPlan%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a plannerPlan object. + /// Delete a plannerPlan object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -64,7 +64,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a plannerplan object. + /// Retrieve the properties and relationships of a plannerplan object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, PlannerPlan.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a plannerPlan object. + /// Update the properties of a plannerPlan object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -106,7 +106,7 @@ public async Task PatchAsync(PlannerPlan body, Action(requestInfo, PlannerPlan.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a plannerPlan object. + /// Delete a plannerPlan object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a plannerplan object. + /// Retrieve the properties and relationships of a plannerplan object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -156,7 +156,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a plannerPlan object. + /// Update the properties of a plannerPlan object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -207,7 +207,7 @@ public PlannerPlanItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a plannerplan object. + /// Retrieve the properties and relationships of a plannerplan object. This API is supported in the following national cloud deployments. /// public class PlannerPlanItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs index db64789fc6d..1d00f110412 100644 --- a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public AssignedToTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class AssignedToTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs index f4ace3f3722..c729adc8f2d 100644 --- a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public BucketTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class BucketTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.cs index a4f2a63b77b..bfb7375ec1a 100644 --- a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public DetailsRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// public class DetailsRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs index de6cdd0200f..9bb1f94fbf2 100644 --- a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public ProgressTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class ProgressTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs index 139636db20b..000454c60d5 100644 --- a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs @@ -42,7 +42,7 @@ public TasksRequestBuilder(Dictionary pathParameters, IRequestAd public TasksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/planner/plans/{plannerPlan%2Did}/tasks{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of plannerTask objects associated with a plannerPlan object. + /// Retrieve a list of plannerTask objects associated with a plannerPlan object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(PlannerTask body, Action(requestInfo, PlannerTask.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of plannerTask objects associated with a plannerPlan object. + /// Retrieve a list of plannerTask objects associated with a plannerPlan object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public TasksRequestBuilder WithUrl(string rawUrl) { return new TasksRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of plannerTask objects associated with a plannerPlan object. + /// Retrieve a list of plannerTask objects associated with a plannerPlan object. This API is supported in the following national cloud deployments. /// public class TasksRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Planner/Plans/PlansRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Plans/PlansRequestBuilder.cs index f5464875a85..994612c1b6a 100644 --- a/src/Microsoft.Graph/Generated/Planner/Plans/PlansRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Plans/PlansRequestBuilder.cs @@ -42,7 +42,7 @@ public PlansRequestBuilder(Dictionary pathParameters, IRequestAd public PlansRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/planner/plans{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of plannerPlan objects. + /// Get a list of plannerPlan objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, PlannerPlanCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to create a new plannerPlan. + /// Use this API to create a new plannerPlan. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(PlannerPlan body, Action(requestInfo, PlannerPlan.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of plannerPlan objects. + /// Get a list of plannerPlan objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new plannerPlan. + /// Use this API to create a new plannerPlan. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PlansRequestBuilder WithUrl(string rawUrl) { return new PlansRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of plannerPlan objects. + /// Get a list of plannerPlan objects. This API is supported in the following national cloud deployments. /// public class PlansRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Planner/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs index 3fbf12e9649..3fa3436f880 100644 --- a/src/Microsoft.Graph/Generated/Planner/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public AssignedToTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class AssignedToTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Planner/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs index 2e4c01d82af..806fd40e0e8 100644 --- a/src/Microsoft.Graph/Generated/Planner/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public BucketTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class BucketTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Planner/Tasks/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Tasks/Item/Details/DetailsRequestBuilder.cs index 940173cc5ce..68d8eb43ae9 100644 --- a/src/Microsoft.Graph/Generated/Planner/Tasks/Item/Details/DetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Tasks/Item/Details/DetailsRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public DetailsRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// public class DetailsRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Planner/Tasks/Item/PlannerTaskItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Tasks/Item/PlannerTaskItemRequestBuilder.cs index e780c20470a..1e9ee31b2b6 100644 --- a/src/Microsoft.Graph/Generated/Planner/Tasks/Item/PlannerTaskItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Tasks/Item/PlannerTaskItemRequestBuilder.cs @@ -49,7 +49,7 @@ public PlannerTaskItemRequestBuilder(Dictionary pathParameters, public PlannerTaskItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/planner/tasks/{plannerTask%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a plannerTask object. + /// Delete a plannerTask object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of plannerTask object. + /// Retrieve the properties and relationships of plannerTask object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -111,7 +111,7 @@ public async Task PatchAsync(PlannerTask body, Action(requestInfo, PlannerTask.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a plannerTask object. + /// Delete a plannerTask object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -135,7 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of plannerTask object. + /// Retrieve the properties and relationships of plannerTask object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -212,7 +212,7 @@ public PlannerTaskItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of plannerTask object. + /// Retrieve the properties and relationships of plannerTask object. This API is supported in the following national cloud deployments. /// public class PlannerTaskItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Planner/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs index 63c6d007730..48f9672d5e6 100644 --- a/src/Microsoft.Graph/Generated/Planner/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public ProgressTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class ProgressTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Planner/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Tasks/TasksRequestBuilder.cs index a4c048cc4d7..27e3cf7a850 100644 --- a/src/Microsoft.Graph/Generated/Planner/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Tasks/TasksRequestBuilder.cs @@ -42,7 +42,7 @@ public TasksRequestBuilder(Dictionary pathParameters, IRequestAd public TasksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/planner/tasks{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of plannertask objects. + /// Retrieve a list of plannertask objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, PlannerTaskCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new plannerTask. + /// Create a new plannerTask. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(PlannerTask body, Action(requestInfo, PlannerTask.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of plannertask objects. + /// Retrieve a list of plannertask objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new plannerTask. + /// Create a new plannerTask. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public TasksRequestBuilder WithUrl(string rawUrl) { return new TasksRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of plannertask objects. + /// Retrieve a list of plannertask objects. This API is supported in the following national cloud deployments. /// public class TasksRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Policies/ActivityBasedTimeoutPolicies/ActivityBasedTimeoutPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/ActivityBasedTimeoutPolicies/ActivityBasedTimeoutPoliciesRequestBuilder.cs index d084b6f9d2a..f22efa787fa 100644 --- a/src/Microsoft.Graph/Generated/Policies/ActivityBasedTimeoutPolicies/ActivityBasedTimeoutPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/ActivityBasedTimeoutPolicies/ActivityBasedTimeoutPoliciesRequestBuilder.cs @@ -42,7 +42,7 @@ public ActivityBasedTimeoutPoliciesRequestBuilder(Dictionary pat public ActivityBasedTimeoutPoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/activityBasedTimeoutPolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of activityBasedTimeoutPolicy objects. + /// Get a list of activityBasedTimeoutPolicy objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action< return await RequestAdapter.SendAsync(requestInfo, ActivityBasedTimeoutPolicyCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new activityBasedTimeoutPolicy object. + /// Create a new activityBasedTimeoutPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(ActivityBasedTimeoutPoli return await RequestAdapter.SendAsync(requestInfo, ActivityBasedTimeoutPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of activityBasedTimeoutPolicy objects. + /// Get a list of activityBasedTimeoutPolicy objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new activityBasedTimeoutPolicy object. + /// Create a new activityBasedTimeoutPolicy object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ActivityBasedTimeoutPoliciesRequestBuilder WithUrl(string rawUrl) { return new ActivityBasedTimeoutPoliciesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of activityBasedTimeoutPolicy objects. + /// Get a list of activityBasedTimeoutPolicy objects. This API is supported in the following national cloud deployments. /// public class ActivityBasedTimeoutPoliciesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Policies/ActivityBasedTimeoutPolicies/Item/ActivityBasedTimeoutPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/ActivityBasedTimeoutPolicies/Item/ActivityBasedTimeoutPolicyItemRequestBuilder.cs index eefc1b48b0b..2046e23a9f5 100644 --- a/src/Microsoft.Graph/Generated/Policies/ActivityBasedTimeoutPolicies/Item/ActivityBasedTimeoutPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/ActivityBasedTimeoutPolicies/Item/ActivityBasedTimeoutPolicyItemRequestBuilder.cs @@ -34,7 +34,7 @@ public ActivityBasedTimeoutPolicyItemRequestBuilder(Dictionary p public ActivityBasedTimeoutPolicyItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/activityBasedTimeoutPolicies/{activityBasedTimeoutPolicy%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an activityBasedTimeoutPolicy object. + /// Delete an activityBasedTimeoutPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Get the properties of an activityBasedTimeoutPolicy object. + /// Get the properties of an activityBasedTimeoutPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, ActivityBasedTimeoutPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an activityBasedTimeoutPolicy object. + /// Update the properties of an activityBasedTimeoutPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(ActivityBasedTimeoutPol return await RequestAdapter.SendAsync(requestInfo, ActivityBasedTimeoutPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an activityBasedTimeoutPolicy object. + /// Delete an activityBasedTimeoutPolicy object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties of an activityBasedTimeoutPolicy object. + /// Get the properties of an activityBasedTimeoutPolicy object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an activityBasedTimeoutPolicy object. + /// Update the properties of an activityBasedTimeoutPolicy object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public ActivityBasedTimeoutPolicyItemRequestBuilderDeleteRequestConfiguration() } } /// - /// Get the properties of an activityBasedTimeoutPolicy object. + /// Get the properties of an activityBasedTimeoutPolicy object. This API is supported in the following national cloud deployments. /// public class ActivityBasedTimeoutPolicyItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Policies/AdminConsentRequestPolicy/AdminConsentRequestPolicyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AdminConsentRequestPolicy/AdminConsentRequestPolicyRequestBuilder.cs index 53d60408379..198509cea1b 100644 --- a/src/Microsoft.Graph/Generated/Policies/AdminConsentRequestPolicy/AdminConsentRequestPolicyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AdminConsentRequestPolicy/AdminConsentRequestPolicyRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an adminConsentRequestPolicy object. + /// Read the properties and relationships of an adminConsentRequestPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an adminConsentRequestPolicy object. + /// Read the properties and relationships of an adminConsentRequestPolicy object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public AdminConsentRequestPolicyRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of an adminConsentRequestPolicy object. + /// Read the properties and relationships of an adminConsentRequestPolicy object. This API is supported in the following national cloud deployments. /// public class AdminConsentRequestPolicyRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/AppManagementPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/AppManagementPoliciesRequestBuilder.cs index 54f1cb84885..1706cb5574d 100644 --- a/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/AppManagementPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/AppManagementPoliciesRequestBuilder.cs @@ -42,7 +42,7 @@ public AppManagementPoliciesRequestBuilder(Dictionary pathParame public AppManagementPoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/appManagementPolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of appManagementPolicy objects. + /// Retrieve a list of appManagementPolicy objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, AppManagementPolicyCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an appManagementPolicy object. + /// Create an appManagementPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(AppManagementPolicy body, Actio return await RequestAdapter.SendAsync(requestInfo, AppManagementPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of appManagementPolicy objects. + /// Retrieve a list of appManagementPolicy objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an appManagementPolicy object. + /// Create an appManagementPolicy object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public AppManagementPoliciesRequestBuilder WithUrl(string rawUrl) { return new AppManagementPoliciesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of appManagementPolicy objects. + /// Retrieve a list of appManagementPolicy objects. This API is supported in the following national cloud deployments. /// public class AppManagementPoliciesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/Item/AppManagementPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/Item/AppManagementPolicyItemRequestBuilder.cs index 39c61defd5f..bc25ec4a02e 100644 --- a/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/Item/AppManagementPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/Item/AppManagementPolicyItemRequestBuilder.cs @@ -34,7 +34,7 @@ public AppManagementPolicyItemRequestBuilder(Dictionary pathPara public AppManagementPolicyItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/appManagementPolicies/{appManagementPolicy%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an appManagementPolicy object. + /// Delete an appManagementPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Read the properties of an appManagementPolicy object. + /// Read the properties of an appManagementPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, AppManagementPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update an appManagementPolicy object. + /// Update an appManagementPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(AppManagementPolicy body, Acti return await RequestAdapter.SendAsync(requestInfo, AppManagementPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an appManagementPolicy object. + /// Delete an appManagementPolicy object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties of an appManagementPolicy object. + /// Read the properties of an appManagementPolicy object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update an appManagementPolicy object. + /// Update an appManagementPolicy object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public AppManagementPolicyItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties of an appManagementPolicy object. + /// Read the properties of an appManagementPolicy object. This API is supported in the following national cloud deployments. /// public class AppManagementPolicyItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/Item/AppliesTo/AppliesToRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/Item/AppliesTo/AppliesToRequestBuilder.cs index 91c69eddddd..db8b683c355 100644 --- a/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/Item/AppliesTo/AppliesToRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/Item/AppliesTo/AppliesToRequestBuilder.cs @@ -42,7 +42,7 @@ public AppliesToRequestBuilder(Dictionary pathParameters, IReque public AppliesToRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/appManagementPolicies/{appManagementPolicy%2Did}/appliesTo{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List application and service principal objects that are assigned an appManagementPolicy policy object. + /// List application and service principal objects that are assigned an appManagementPolicy policy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, DirectoryObjectCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List application and service principal objects that are assigned an appManagementPolicy policy object. + /// List application and service principal objects that are assigned an appManagementPolicy policy object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public AppliesToRequestBuilder WithUrl(string rawUrl) { return new AppliesToRequestBuilder(rawUrl, RequestAdapter); } /// - /// List application and service principal objects that are assigned an appManagementPolicy policy object. + /// List application and service principal objects that are assigned an appManagementPolicy policy object. This API is supported in the following national cloud deployments. /// public class AppliesToRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Policies/AuthenticationFlowsPolicy/AuthenticationFlowsPolicyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AuthenticationFlowsPolicy/AuthenticationFlowsPolicyRequestBuilder.cs index 20b72642b9f..07608e128f4 100644 --- a/src/Microsoft.Graph/Generated/Policies/AuthenticationFlowsPolicy/AuthenticationFlowsPolicyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AuthenticationFlowsPolicy/AuthenticationFlowsPolicyRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an authenticationFlowsPolicy object. + /// Read the properties and relationships of an authenticationFlowsPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.AuthenticationFlowsPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the selfServiceSignUp property of an authenticationFlowsPolicy object. The properties id, type, and description cannot be modified. + /// Update the selfServiceSignUp property of an authenticationFlowsPolicy object. The properties id, type, and description cannot be modified. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an authenticationFlowsPolicy object. + /// Read the properties and relationships of an authenticationFlowsPolicy object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the selfServiceSignUp property of an authenticationFlowsPolicy object. The properties id, type, and description cannot be modified. + /// Update the selfServiceSignUp property of an authenticationFlowsPolicy object. The properties id, type, and description cannot be modified. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -191,7 +191,7 @@ public AuthenticationFlowsPolicyRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of an authenticationFlowsPolicy object. + /// Read the properties and relationships of an authenticationFlowsPolicy object. This API is supported in the following national cloud deployments. /// public class AuthenticationFlowsPolicyRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodsPolicyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodsPolicyRequestBuilder.cs index 795071fd339..9a79650e5ab 100644 --- a/src/Microsoft.Graph/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodsPolicyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodsPolicyRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an authenticationMethodsPolicy object. + /// Read the properties and relationships of an authenticationMethodsPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -73,7 +73,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.AuthenticationMethodsPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an authenticationMethodsPolicy object. + /// Update the properties of an authenticationMethodsPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -119,7 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an authenticationMethodsPolicy object. + /// Read the properties and relationships of an authenticationMethodsPolicy object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -145,7 +145,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an authenticationMethodsPolicy object. + /// Update the properties of an authenticationMethodsPolicy object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -196,7 +196,7 @@ public AuthenticationMethodsPolicyRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of an authenticationMethodsPolicy object. + /// Read the properties and relationships of an authenticationMethodsPolicy object. This API is supported in the following national cloud deployments. /// public class AuthenticationMethodsPolicyRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/AuthenticationStrengthPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/AuthenticationStrengthPoliciesRequestBuilder.cs index e6adfd3b30f..ec9059a4862 100644 --- a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/AuthenticationStrengthPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/AuthenticationStrengthPoliciesRequestBuilder.cs @@ -42,7 +42,7 @@ public AuthenticationStrengthPoliciesRequestBuilder(Dictionary p public AuthenticationStrengthPoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/authenticationStrengthPolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the authenticationStrengthPolicy objects and their properties. This API returns both built-in and custom policies. + /// Get a list of the authenticationStrengthPolicy objects and their properties. This API returns both built-in and custom policies. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Actio return await RequestAdapter.SendAsync(requestInfo, AuthenticationStrengthPolicyCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new custom authenticationStrengthPolicy object. + /// Create a new custom authenticationStrengthPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(AuthenticationStrength return await RequestAdapter.SendAsync(requestInfo, AuthenticationStrengthPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the authenticationStrengthPolicy objects and their properties. This API returns both built-in and custom policies. + /// Get a list of the authenticationStrengthPolicy objects and their properties. This API returns both built-in and custom policies. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new custom authenticationStrengthPolicy object. + /// Create a new custom authenticationStrengthPolicy object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public AuthenticationStrengthPoliciesRequestBuilder WithUrl(string rawUrl) { return new AuthenticationStrengthPoliciesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the authenticationStrengthPolicy objects and their properties. This API returns both built-in and custom policies. + /// Get a list of the authenticationStrengthPolicy objects and their properties. This API returns both built-in and custom policies. This API is supported in the following national cloud deployments. /// public class AuthenticationStrengthPoliciesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/AuthenticationStrengthPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/AuthenticationStrengthPolicyItemRequestBuilder.cs index df69ba1634a..377b2601ef1 100644 --- a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/AuthenticationStrengthPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/AuthenticationStrengthPolicyItemRequestBuilder.cs @@ -44,7 +44,7 @@ public AuthenticationStrengthPolicyItemRequestBuilder(Dictionary public AuthenticationStrengthPolicyItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/authenticationStrengthPolicies/{authenticationStrengthPolicy%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a custom authenticationStrengthPolicy object. + /// Delete a custom authenticationStrengthPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -64,7 +64,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an authenticationStrengthPolicy object. + /// Read the properties and relationships of an authenticationStrengthPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, AuthenticationStrengthPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an authenticationStrengthPolicy object. You cannot update the allowed auth method combinations using this request. To do so, use the Update allowed combinations action. + /// Update the properties of an authenticationStrengthPolicy object. You cannot update the allowed auth method combinations using this request. To do so, use the Update allowed combinations action. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -106,7 +106,7 @@ public async Task PatchAsync(AuthenticationStrengt return await RequestAdapter.SendAsync(requestInfo, AuthenticationStrengthPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a custom authenticationStrengthPolicy object. + /// Delete a custom authenticationStrengthPolicy object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an authenticationStrengthPolicy object. + /// Read the properties and relationships of an authenticationStrengthPolicy object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -156,7 +156,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an authenticationStrengthPolicy object. You cannot update the allowed auth method combinations using this request. To do so, use the Update allowed combinations action. + /// Update the properties of an authenticationStrengthPolicy object. You cannot update the allowed auth method combinations using this request. To do so, use the Update allowed combinations action. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -207,7 +207,7 @@ public AuthenticationStrengthPolicyItemRequestBuilderDeleteRequestConfiguration( } } /// - /// Read the properties and relationships of an authenticationStrengthPolicy object. + /// Read the properties and relationships of an authenticationStrengthPolicy object. This API is supported in the following national cloud deployments. /// public class AuthenticationStrengthPolicyItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.cs index 331280a2373..eb79ad1c222 100644 --- a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.cs @@ -42,7 +42,7 @@ public CombinationConfigurationsRequestBuilder(Dictionary pathPa public CombinationConfigurationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/authenticationStrengthPolicies/{authenticationStrengthPolicy%2Did}/combinationConfigurations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the authenticationCombinationConfiguration objects for an authentication strength policy. authenticationCombinationConfiguration represents requirements placed on specific authentication method combinations that require specified variants of those authentication methods to be used when authenticating. Currently, only fido2combinationConfigurations objects are supported. authenticationCombinationConfiguration objects are supported only for custom authentication strengths. + /// Get the authenticationCombinationConfiguration objects for an authentication strength policy. authenticationCombinationConfiguration represents requirements placed on specific authentication method combinations that require specified variants of those authentication methods to be used when authenticating. Currently, only fido2combinationConfigurations objects are supported. authenticationCombinationConfiguration objects are supported only for custom authentication strengths. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetA return await RequestAdapter.SendAsync(requestInfo, AuthenticationCombinationConfigurationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be created, and these may only be created for custom authentication strength policies. + /// Create a new authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be created, and these may only be created for custom authentication strength policies. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(Authenticati return await RequestAdapter.SendAsync(requestInfo, AuthenticationCombinationConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the authenticationCombinationConfiguration objects for an authentication strength policy. authenticationCombinationConfiguration represents requirements placed on specific authentication method combinations that require specified variants of those authentication methods to be used when authenticating. Currently, only fido2combinationConfigurations objects are supported. authenticationCombinationConfiguration objects are supported only for custom authentication strengths. + /// Get the authenticationCombinationConfiguration objects for an authentication strength policy. authenticationCombinationConfiguration represents requirements placed on specific authentication method combinations that require specified variants of those authentication methods to be used when authenticating. Currently, only fido2combinationConfigurations objects are supported. authenticationCombinationConfiguration objects are supported only for custom authentication strengths. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be created, and these may only be created for custom authentication strength policies. + /// Create a new authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be created, and these may only be created for custom authentication strength policies. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public CombinationConfigurationsRequestBuilder WithUrl(string rawUrl) { return new CombinationConfigurationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the authenticationCombinationConfiguration objects for an authentication strength policy. authenticationCombinationConfiguration represents requirements placed on specific authentication method combinations that require specified variants of those authentication methods to be used when authenticating. Currently, only fido2combinationConfigurations objects are supported. authenticationCombinationConfiguration objects are supported only for custom authentication strengths. + /// Get the authenticationCombinationConfiguration objects for an authentication strength policy. authenticationCombinationConfiguration represents requirements placed on specific authentication method combinations that require specified variants of those authentication methods to be used when authenticating. Currently, only fido2combinationConfigurations objects are supported. authenticationCombinationConfiguration objects are supported only for custom authentication strengths. This API is supported in the following national cloud deployments. /// public class CombinationConfigurationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.cs index f0eec7feb4c..35ada8a5c82 100644 --- a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AuthenticationCombinationConfigurationItemRequestBuilder(Dictionary - /// Delete an authenticationCombinationConfiguration for a custom authenticationStrengthPolicy object. + /// Delete an authenticationCombinationConfiguration for a custom authenticationStrengthPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an authenticationCombinationConfiguration object. + /// Read the properties and relationships of an authenticationCombinationConfiguration object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, AuthenticationCombinationConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be updated as they are the only type of authenticationCombinationConfiguration that may be created. + /// Update the properties of an authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be updated as they're the only type of authenticationCombinationConfiguration that may be created. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(Authenticat return await RequestAdapter.SendAsync(requestInfo, AuthenticationCombinationConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an authenticationCombinationConfiguration for a custom authenticationStrengthPolicy object. + /// Delete an authenticationCombinationConfiguration for a custom authenticationStrengthPolicy object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an authenticationCombinationConfiguration object. + /// Read the properties and relationships of an authenticationCombinationConfiguration object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be updated as they are the only type of authenticationCombinationConfiguration that may be created. + /// Update the properties of an authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be updated as they're the only type of authenticationCombinationConfiguration that may be created. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public AuthenticationCombinationConfigurationItemRequestBuilderDeleteRequestConf } } /// - /// Read the properties and relationships of an authenticationCombinationConfiguration object. + /// Read the properties and relationships of an authenticationCombinationConfiguration object. This API is supported in the following national cloud deployments. /// public class AuthenticationCombinationConfigurationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsRequestBuilder.cs index a6950aa7a5e..d25fd577fee 100644 --- a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsRequestBuilder.cs @@ -29,7 +29,7 @@ public UpdateAllowedCombinationsRequestBuilder(Dictionary pathPa public UpdateAllowedCombinationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/authenticationStrengthPolicies/{authenticationStrengthPolicy%2Did}/updateAllowedCombinations", rawUrl) { } /// - /// Update the allowedCombinations property of an authenticationStrengthPolicy object. To update other properties of an authenticationStrengthPolicy object, use the Update authenticationStrengthPolicy method. + /// Update the allowedCombinations property of an authenticationStrengthPolicy object. To update other properties of an authenticationStrengthPolicy object, use the Update authenticationStrengthPolicy method. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(UpdateAllowedCombin return await RequestAdapter.SendAsync(requestInfo, UpdateAllowedCombinationsResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the allowedCombinations property of an authenticationStrengthPolicy object. To update other properties of an authenticationStrengthPolicy object, use the Update authenticationStrengthPolicy method. + /// Update the allowedCombinations property of an authenticationStrengthPolicy object. To update other properties of an authenticationStrengthPolicy object, use the Update authenticationStrengthPolicy method. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Policies/AuthorizationPolicy/AuthorizationPolicyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AuthorizationPolicy/AuthorizationPolicyRequestBuilder.cs index bb0f1091170..13202a9ee26 100644 --- a/src/Microsoft.Graph/Generated/Policies/AuthorizationPolicy/AuthorizationPolicyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AuthorizationPolicy/AuthorizationPolicyRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties of an authorizationPolicy object. + /// Retrieve the properties of an authorizationPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.AuthorizationPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an authorizationPolicy object. + /// Update the properties of an authorizationPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties of an authorizationPolicy object. + /// Retrieve the properties of an authorizationPolicy object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an authorizationPolicy object. + /// Update the properties of an authorizationPolicy object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -191,7 +191,7 @@ public AuthorizationPolicyRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties of an authorizationPolicy object. + /// Retrieve the properties of an authorizationPolicy object. This API is supported in the following national cloud deployments. /// public class AuthorizationPolicyRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Policies/ClaimsMappingPolicies/ClaimsMappingPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/ClaimsMappingPolicies/ClaimsMappingPoliciesRequestBuilder.cs index cf31ab63ba1..af122c2d741 100644 --- a/src/Microsoft.Graph/Generated/Policies/ClaimsMappingPolicies/ClaimsMappingPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/ClaimsMappingPolicies/ClaimsMappingPoliciesRequestBuilder.cs @@ -42,7 +42,7 @@ public ClaimsMappingPoliciesRequestBuilder(Dictionary pathParame public ClaimsMappingPoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/claimsMappingPolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of claimsMappingPolicy objects. + /// Get a list of claimsMappingPolicy objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ClaimsMappingPolicyCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new claimsMappingPolicy object. + /// Create a new claimsMappingPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(ClaimsMappingPolicy body, Actio return await RequestAdapter.SendAsync(requestInfo, ClaimsMappingPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of claimsMappingPolicy objects. + /// Get a list of claimsMappingPolicy objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new claimsMappingPolicy object. + /// Create a new claimsMappingPolicy object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ClaimsMappingPoliciesRequestBuilder WithUrl(string rawUrl) { return new ClaimsMappingPoliciesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of claimsMappingPolicy objects. + /// Get a list of claimsMappingPolicy objects. This API is supported in the following national cloud deployments. /// public class ClaimsMappingPoliciesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Policies/ClaimsMappingPolicies/Item/ClaimsMappingPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/ClaimsMappingPolicies/Item/ClaimsMappingPolicyItemRequestBuilder.cs index 219fe52e873..404595b68d6 100644 --- a/src/Microsoft.Graph/Generated/Policies/ClaimsMappingPolicies/Item/ClaimsMappingPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/ClaimsMappingPolicies/Item/ClaimsMappingPolicyItemRequestBuilder.cs @@ -34,7 +34,7 @@ public ClaimsMappingPolicyItemRequestBuilder(Dictionary pathPara public ClaimsMappingPolicyItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/claimsMappingPolicies/{claimsMappingPolicy%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a claimsMappingPolicy object. + /// Delete a claimsMappingPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a claimsMappingPolicy object. + /// Retrieve the properties and relationships of a claimsMappingPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, ClaimsMappingPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a claimsMappingPolicy object. + /// Update the properties of a claimsMappingPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(ClaimsMappingPolicy body, Acti return await RequestAdapter.SendAsync(requestInfo, ClaimsMappingPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a claimsMappingPolicy object. + /// Delete a claimsMappingPolicy object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a claimsMappingPolicy object. + /// Retrieve the properties and relationships of a claimsMappingPolicy object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a claimsMappingPolicy object. + /// Update the properties of a claimsMappingPolicy object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public ClaimsMappingPolicyItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a claimsMappingPolicy object. + /// Retrieve the properties and relationships of a claimsMappingPolicy object. This API is supported in the following national cloud deployments. /// public class ClaimsMappingPolicyItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/CrossTenantAccessPolicyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/CrossTenantAccessPolicyRequestBuilder.cs index 655705586c5..e404cdbeb68 100644 --- a/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/CrossTenantAccessPolicyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/CrossTenantAccessPolicyRequestBuilder.cs @@ -58,7 +58,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a crossTenantAccessPolicy object. + /// Read the properties and relationships of a crossTenantAccessPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -78,7 +78,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.CrossTenantAccessPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a cross-tenant access policy. + /// Update the properties of a cross-tenant access policy. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -124,7 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a crossTenantAccessPolicy object. + /// Read the properties and relationships of a crossTenantAccessPolicy object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -150,7 +150,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a cross-tenant access policy. + /// Update the properties of a cross-tenant access policy. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -201,7 +201,7 @@ public CrossTenantAccessPolicyRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a crossTenantAccessPolicy object. + /// Read the properties and relationships of a crossTenantAccessPolicy object. This API is supported in the following national cloud deployments. /// public class CrossTenantAccessPolicyRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Default/DefaultRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Default/DefaultRequestBuilder.cs index 232e79a7502..7452364bdbd 100644 --- a/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Default/DefaultRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Default/DefaultRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Read the default configuration of a cross-tenant access policy. This default configuration may be the service default assigned by Azure AD (isServiceDefault is true) or may be customized in your tenant (isServiceDefault is false). + /// Read the default configuration of a cross-tenant access policy. This default configuration may be the service default assigned by Azure AD (isServiceDefault is true) or may be customized in your tenant (isServiceDefault is false). This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -73,7 +73,7 @@ public async Task GetAsync(Action(requestInfo, CrossTenantAccessPolicyConfigurationDefault.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the default configuration of a cross-tenant access policy. + /// Update the default configuration of a cross-tenant access policy. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -119,7 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the default configuration of a cross-tenant access policy. This default configuration may be the service default assigned by Azure AD (isServiceDefault is true) or may be customized in your tenant (isServiceDefault is false). + /// Read the default configuration of a cross-tenant access policy. This default configuration may be the service default assigned by Azure AD (isServiceDefault is true) or may be customized in your tenant (isServiceDefault is false). This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -145,7 +145,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the default configuration of a cross-tenant access policy. + /// Update the default configuration of a cross-tenant access policy. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -196,7 +196,7 @@ public DefaultRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the default configuration of a cross-tenant access policy. This default configuration may be the service default assigned by Azure AD (isServiceDefault is true) or may be customized in your tenant (isServiceDefault is false). + /// Read the default configuration of a cross-tenant access policy. This default configuration may be the service default assigned by Azure AD (isServiceDefault is true) or may be customized in your tenant (isServiceDefault is false). This API is supported in the following national cloud deployments. /// public class DefaultRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Default/ResetToSystemDefault/ResetToSystemDefaultRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Default/ResetToSystemDefault/ResetToSystemDefaultRequestBuilder.cs index e1941ba4497..2ac6fe5811f 100644 --- a/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Default/ResetToSystemDefault/ResetToSystemDefaultRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Default/ResetToSystemDefault/ResetToSystemDefaultRequestBuilder.cs @@ -28,7 +28,7 @@ public ResetToSystemDefaultRequestBuilder(Dictionary pathParamet public ResetToSystemDefaultRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/crossTenantAccessPolicy/default/resetToSystemDefault", rawUrl) { } /// - /// Reset any changes made to the default configuration in a cross-tenant access policy back to the system default. + /// Reset any changes made to the default configuration in a cross-tenant access policy back to the system default. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Reset any changes made to the default configuration in a cross-tenant access policy back to the system default. + /// Reset any changes made to the default configuration in a cross-tenant access policy back to the system default. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/Item/CrossTenantAccessPolicyConfigurationPartnerTenantItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/Item/CrossTenantAccessPolicyConfigurationPartnerTenantItemRequestBuilder.cs index 26284bc3bd6..1289cce01fc 100644 --- a/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/Item/CrossTenantAccessPolicyConfigurationPartnerTenantItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/Item/CrossTenantAccessPolicyConfigurationPartnerTenantItemRequestBuilder.cs @@ -34,7 +34,7 @@ public CrossTenantAccessPolicyConfigurationPartnerTenantItemRequestBuilder(Dicti public CrossTenantAccessPolicyConfigurationPartnerTenantItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/crossTenantAccessPolicy/partners/{crossTenantAccessPolicyConfigurationPartner%2DtenantId}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a partner-specific configuration in a cross-tenant access policy. If a configuration includes a user synchronization policy, you must first delete the user synchronization policy before you can delete the partner-specific configuration. + /// Delete a partner-specific configuration in a cross-tenant access policy. If a configuration includes a user synchronization policy, you must first delete the user synchronization policy before you can delete the partner-specific configuration. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a partner-specific configuration. + /// Read the properties and relationships of a partner-specific configuration. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, CrossTenantAccessPolicyConfigurationPartner.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a partner-specific configuration. + /// Update the properties of a partner-specific configuration. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(CrossT return await RequestAdapter.SendAsync(requestInfo, CrossTenantAccessPolicyConfigurationPartner.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a partner-specific configuration in a cross-tenant access policy. If a configuration includes a user synchronization policy, you must first delete the user synchronization policy before you can delete the partner-specific configuration. + /// Delete a partner-specific configuration in a cross-tenant access policy. If a configuration includes a user synchronization policy, you must first delete the user synchronization policy before you can delete the partner-specific configuration. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a partner-specific configuration. + /// Read the properties and relationships of a partner-specific configuration. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a partner-specific configuration. + /// Update the properties of a partner-specific configuration. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public CrossTenantAccessPolicyConfigurationPartnerTenantItemRequestBuilderDelete } } /// - /// Read the properties and relationships of a partner-specific configuration. + /// Read the properties and relationships of a partner-specific configuration. This API is supported in the following national cloud deployments. /// public class CrossTenantAccessPolicyConfigurationPartnerTenantItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/Item/IdentitySynchronization/IdentitySynchronizationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/Item/IdentitySynchronization/IdentitySynchronizationRequestBuilder.cs index ab5c8d8916e..89941b5c9b2 100644 --- a/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/Item/IdentitySynchronization/IdentitySynchronizationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/Item/IdentitySynchronization/IdentitySynchronizationRequestBuilder.cs @@ -29,7 +29,7 @@ public IdentitySynchronizationRequestBuilder(Dictionary pathPara public IdentitySynchronizationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/crossTenantAccessPolicy/partners/{crossTenantAccessPolicyConfigurationPartner%2DtenantId}/identitySynchronization{?%24select,%24expand}", rawUrl) { } /// - /// Delete the user synchronization policy for a partner-specific configuration. + /// Delete the user synchronization policy for a partner-specific configuration. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get the user synchronization policy of a partner-specific configuration. + /// Get the user synchronization policy of a partner-specific configuration. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PutAsync(CrossTenantIden return await RequestAdapter.SendAsync(requestInfo, CrossTenantIdentitySyncPolicyPartner.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete the user synchronization policy for a partner-specific configuration. + /// Delete the user synchronization policy for a partner-specific configuration. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the user synchronization policy of a partner-specific configuration. + /// Get the user synchronization policy of a partner-specific configuration. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public IdentitySynchronizationRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the user synchronization policy of a partner-specific configuration. + /// Get the user synchronization policy of a partner-specific configuration. This API is supported in the following national cloud deployments. /// public class IdentitySynchronizationRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/PartnersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/PartnersRequestBuilder.cs index 25c161621d9..0fd6514d73b 100644 --- a/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/PartnersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/PartnersRequestBuilder.cs @@ -42,7 +42,7 @@ public PartnersRequestBuilder(Dictionary pathParameters, IReques public PartnersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/crossTenantAccessPolicy/partners{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of all partner configurations within a cross-tenant access policy. You can also use the $expand parameter to list the user synchronization policy for all partner configurations. + /// Get a list of all partner configurations within a cross-tenant access policy. You can also use the $expand parameter to list the user synchronization policy for all partner configurations. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task return await RequestAdapter.SendAsync(requestInfo, CrossTenantAccessPolicyConfigurationPartnerCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new partner configuration in a cross-tenant access policy. + /// Create a new partner configuration in a cross-tenant access policy. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(CrossTe return await RequestAdapter.SendAsync(requestInfo, CrossTenantAccessPolicyConfigurationPartner.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of all partner configurations within a cross-tenant access policy. You can also use the $expand parameter to list the user synchronization policy for all partner configurations. + /// Get a list of all partner configurations within a cross-tenant access policy. You can also use the $expand parameter to list the user synchronization policy for all partner configurations. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new partner configuration in a cross-tenant access policy. + /// Create a new partner configuration in a cross-tenant access policy. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PartnersRequestBuilder WithUrl(string rawUrl) { return new PartnersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of all partner configurations within a cross-tenant access policy. You can also use the $expand parameter to list the user synchronization policy for all partner configurations. + /// Get a list of all partner configurations within a cross-tenant access policy. You can also use the $expand parameter to list the user synchronization policy for all partner configurations. This API is supported in the following national cloud deployments. /// public class PartnersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Policies/DefaultAppManagementPolicy/DefaultAppManagementPolicyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/DefaultAppManagementPolicy/DefaultAppManagementPolicyRequestBuilder.cs index d2ae8f439d4..234b078de2d 100644 --- a/src/Microsoft.Graph/Generated/Policies/DefaultAppManagementPolicy/DefaultAppManagementPolicyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/DefaultAppManagementPolicy/DefaultAppManagementPolicyRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Read the properties of a tenantAppManagementPolicy object. + /// Read the properties of a tenantAppManagementPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, TenantAppManagementPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a tenantAppManagementPolicy object. + /// Update the properties of a tenantAppManagementPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties of a tenantAppManagementPolicy object. + /// Read the properties of a tenantAppManagementPolicy object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a tenantAppManagementPolicy object. + /// Update the properties of a tenantAppManagementPolicy object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -191,7 +191,7 @@ public DefaultAppManagementPolicyRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties of a tenantAppManagementPolicy object. + /// Read the properties of a tenantAppManagementPolicy object. This API is supported in the following national cloud deployments. /// public class DefaultAppManagementPolicyRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/FeatureRolloutPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/FeatureRolloutPoliciesRequestBuilder.cs index df16088c258..1353d5c2f7c 100644 --- a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/FeatureRolloutPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/FeatureRolloutPoliciesRequestBuilder.cs @@ -42,7 +42,7 @@ public FeatureRolloutPoliciesRequestBuilder(Dictionary pathParam public FeatureRolloutPoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/featureRolloutPolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of featureRolloutPolicy objects. + /// Retrieve a list of featureRolloutPolicy objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, FeatureRolloutPolicyCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new featureRolloutPolicy object. + /// Create a new featureRolloutPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(FeatureRolloutPolicy body, Act return await RequestAdapter.SendAsync(requestInfo, FeatureRolloutPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of featureRolloutPolicy objects. + /// Retrieve a list of featureRolloutPolicy objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new featureRolloutPolicy object. + /// Create a new featureRolloutPolicy object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public FeatureRolloutPoliciesRequestBuilder WithUrl(string rawUrl) { return new FeatureRolloutPoliciesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of featureRolloutPolicy objects. + /// Retrieve a list of featureRolloutPolicy objects. This API is supported in the following national cloud deployments. /// public class FeatureRolloutPoliciesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/AppliesToRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/AppliesToRequestBuilder.cs index 93e68f26354..c7ae51b887c 100644 --- a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/AppliesToRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/AppliesToRequestBuilder.cs @@ -86,7 +86,7 @@ public async Task GetAsync(Action(requestInfo, DirectoryObjectCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add an appliesTo on a featureRolloutPolicy object to specify the directoryObject to which the featureRolloutPolicy should be applied. + /// Add an appliesTo on a featureRolloutPolicy object to specify the directoryObject to which the featureRolloutPolicy should be applied. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -134,7 +134,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add an appliesTo on a featureRolloutPolicy object to specify the directoryObject to which the featureRolloutPolicy should be applied. + /// Add an appliesTo on a featureRolloutPolicy object to specify the directoryObject to which the featureRolloutPolicy should be applied. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..f67f149d99d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Policies.FeatureRolloutPolicies.Item.AppliesTo.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Delta/DeltaRequestBuilder.cs index 610719fb378..b06ef464918 100644 --- a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Delta/DeltaResponse.cs index 5296633cd3f..1f81b86d96c 100644 --- a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Policies.FeatureRolloutPolicies.Item.AppliesTo.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs new file mode 100644 index 00000000000..1af8087db26 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Policies.FeatureRolloutPolicies.Item.AppliesTo.GetAvailableExtensionProperties { + public class GetAvailableExtensionPropertiesPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAvailableExtensionPropertiesPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index 9730f889502..cf704c5f5ee 100644 --- a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -28,13 +28,36 @@ public GetAvailableExtensionPropertiesRequestBuilder(Dictionary public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/getAvailableExtensionProperties", rawUrl) { } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetAvailableExtensionPropertiesPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetAvailabl return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index ace10e7f8b0..ef1ee42c7ab 100644 --- a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Policies.FeatureRolloutPolicies.Item.AppliesTo.GetAvailableExtensionProperties { - public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAvailableExtensionPropertiesPostResponse instead.")] + public class GetAvailableExtensionPropertiesResponse : GetAvailableExtensionPropertiesPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/GetByIds/GetByIdsPostResponse.cs new file mode 100644 index 00000000000..60909c706be --- /dev/null +++ b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/GetByIds/GetByIdsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Policies.FeatureRolloutPolicies.Item.AppliesTo.GetByIds { + public class GetByIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetByIdsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/GetByIds/GetByIdsRequestBuilder.cs index 9eabde74f9f..18f8e36d052 100644 --- a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/GetByIds/GetByIdsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetByIdsRequestBuilder(Dictionary pathParameters, IReques public GetByIdsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/getByIds", rawUrl) { } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetByIdsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetByIdsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetByIdsPostRequestBody body, Acti return await RequestAdapter.SendAsync(requestInfo, GetByIdsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/GetByIds/GetByIdsResponse.cs index b00962856ae..49ddcd87868 100644 --- a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/GetByIds/GetByIdsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Policies.FeatureRolloutPolicies.Item.AppliesTo.GetByIds { - public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getByIdsPostResponse instead.")] + public class GetByIdsResponse : GetByIdsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Item/Ref/RefRequestBuilder.cs index dcbc76ba766..3fad42d0494 100644 --- a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Item/Ref/RefRequestBuilder.cs @@ -28,7 +28,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { } /// - /// Remove an appliesTo on a featureRolloutPolicy object to remove the directoryObject from feature rollout. + /// Remove an appliesTo on a featureRolloutPolicy object to remove the directoryObject from feature rollout. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Remove an appliesTo on a featureRolloutPolicy object to remove the directoryObject from feature rollout. + /// Remove an appliesTo on a featureRolloutPolicy object to remove the directoryObject from feature rollout. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -80,7 +80,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove an appliesTo on a featureRolloutPolicy object to remove the directoryObject from feature rollout. + /// Remove an appliesTo on a featureRolloutPolicy object to remove the directoryObject from feature rollout. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderDeleteQueryParameters { /// Delete Uri diff --git a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Ref/RefRequestBuilder.cs index c8c9929a58c..9c452ee224a 100644 --- a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Ref/RefRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task GetAsync(Action(requestInfo, StringCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add an appliesTo on a featureRolloutPolicy object to specify the directoryObject to which the featureRolloutPolicy should be applied. + /// Add an appliesTo on a featureRolloutPolicy object to specify the directoryObject to which the featureRolloutPolicy should be applied. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add an appliesTo on a featureRolloutPolicy object to specify the directoryObject to which the featureRolloutPolicy should be applied. + /// Add an appliesTo on a featureRolloutPolicy object to specify the directoryObject to which the featureRolloutPolicy should be applied. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/ValidateProperties/ValidatePropertiesRequestBuilder.cs index e0987f19bf1..c8d305061e4 100644 --- a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -28,7 +28,7 @@ public ValidatePropertiesRequestBuilder(Dictionary pathParameter public ValidatePropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/validateProperties", rawUrl) { } /// - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ValidatePropertiesPostRequestBody body, Action - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/FeatureRolloutPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/FeatureRolloutPolicyItemRequestBuilder.cs index ce6c9733d5c..e246ff7630e 100644 --- a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/FeatureRolloutPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/FeatureRolloutPolicyItemRequestBuilder.cs @@ -34,7 +34,7 @@ public FeatureRolloutPolicyItemRequestBuilder(Dictionary pathPar public FeatureRolloutPolicyItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/featureRolloutPolicies/{featureRolloutPolicy%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a featureRolloutPolicy object. + /// Delete a featureRolloutPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a featureRolloutPolicy object. + /// Retrieve the properties and relationships of a featureRolloutPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, FeatureRolloutPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of featureRolloutPolicy object. + /// Update the properties of featureRolloutPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(FeatureRolloutPolicy body, Ac return await RequestAdapter.SendAsync(requestInfo, FeatureRolloutPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a featureRolloutPolicy object. + /// Delete a featureRolloutPolicy object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a featureRolloutPolicy object. + /// Retrieve the properties and relationships of a featureRolloutPolicy object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of featureRolloutPolicy object. + /// Update the properties of featureRolloutPolicy object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public FeatureRolloutPolicyItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a featureRolloutPolicy object. + /// Retrieve the properties and relationships of a featureRolloutPolicy object. This API is supported in the following national cloud deployments. /// public class FeatureRolloutPolicyItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Policies/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.cs index d7c9e29a377..ba0c6487a7e 100644 --- a/src/Microsoft.Graph/Generated/Policies/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.cs @@ -42,7 +42,7 @@ public HomeRealmDiscoveryPoliciesRequestBuilder(Dictionary pathP public HomeRealmDiscoveryPoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/homeRealmDiscoveryPolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of homeRealmDiscoveryPolicy objects. + /// Get a list of homeRealmDiscoveryPolicy objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, HomeRealmDiscoveryPolicyCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new homeRealmDiscoveryPolicy object. + /// Create a new homeRealmDiscoveryPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(HomeRealmDiscoveryPolicy b return await RequestAdapter.SendAsync(requestInfo, HomeRealmDiscoveryPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of homeRealmDiscoveryPolicy objects. + /// Get a list of homeRealmDiscoveryPolicy objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new homeRealmDiscoveryPolicy object. + /// Create a new homeRealmDiscoveryPolicy object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public HomeRealmDiscoveryPoliciesRequestBuilder WithUrl(string rawUrl) { return new HomeRealmDiscoveryPoliciesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of homeRealmDiscoveryPolicy objects. + /// Get a list of homeRealmDiscoveryPolicy objects. This API is supported in the following national cloud deployments. /// public class HomeRealmDiscoveryPoliciesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Policies/HomeRealmDiscoveryPolicies/Item/HomeRealmDiscoveryPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/HomeRealmDiscoveryPolicies/Item/HomeRealmDiscoveryPolicyItemRequestBuilder.cs index 0dd836f0e64..9f38413e42f 100644 --- a/src/Microsoft.Graph/Generated/Policies/HomeRealmDiscoveryPolicies/Item/HomeRealmDiscoveryPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/HomeRealmDiscoveryPolicies/Item/HomeRealmDiscoveryPolicyItemRequestBuilder.cs @@ -34,7 +34,7 @@ public HomeRealmDiscoveryPolicyItemRequestBuilder(Dictionary pat public HomeRealmDiscoveryPolicyItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/homeRealmDiscoveryPolicies/{homeRealmDiscoveryPolicy%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a homeRealmDiscoveryPolicy object. + /// Delete a homeRealmDiscoveryPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a homeRealmDiscoveryPolicy object. + /// Retrieve the properties and relationships of a homeRealmDiscoveryPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, HomeRealmDiscoveryPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a homeRealmDiscoveryPolicy object. + /// Update the properties of a homeRealmDiscoveryPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(HomeRealmDiscoveryPolicy return await RequestAdapter.SendAsync(requestInfo, HomeRealmDiscoveryPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a homeRealmDiscoveryPolicy object. + /// Delete a homeRealmDiscoveryPolicy object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a homeRealmDiscoveryPolicy object. + /// Retrieve the properties and relationships of a homeRealmDiscoveryPolicy object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a homeRealmDiscoveryPolicy object. + /// Update the properties of a homeRealmDiscoveryPolicy object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public HomeRealmDiscoveryPolicyItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a homeRealmDiscoveryPolicy object. + /// Retrieve the properties and relationships of a homeRealmDiscoveryPolicy object. This API is supported in the following national cloud deployments. /// public class HomeRealmDiscoveryPolicyItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Policies/IdentitySecurityDefaultsEnforcementPolicy/IdentitySecurityDefaultsEnforcementPolicyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/IdentitySecurityDefaultsEnforcementPolicy/IdentitySecurityDefaultsEnforcementPolicyRequestBuilder.cs index 3d48df0aa86..d46057cf253 100644 --- a/src/Microsoft.Graph/Generated/Policies/IdentitySecurityDefaultsEnforcementPolicy/IdentitySecurityDefaultsEnforcementPolicyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/IdentitySecurityDefaultsEnforcementPolicy/IdentitySecurityDefaultsEnforcementPolicyRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties of an identitySecurityDefaultsEnforcementPolicy object. + /// Retrieve the properties of an identitySecurityDefaultsEnforcementPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.IdentitySecurityDefaultsEnforcementPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an identitySecurityDefaultsEnforcementPolicy object. + /// Update the properties of an identitySecurityDefaultsEnforcementPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties of an identitySecurityDefaultsEnforcementPolicy object. + /// Retrieve the properties of an identitySecurityDefaultsEnforcementPolicy object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an identitySecurityDefaultsEnforcementPolicy object. + /// Update the properties of an identitySecurityDefaultsEnforcementPolicy object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -191,7 +191,7 @@ public IdentitySecurityDefaultsEnforcementPolicyRequestBuilderDeleteRequestConfi } } /// - /// Retrieve the properties of an identitySecurityDefaultsEnforcementPolicy object. + /// Retrieve the properties of an identitySecurityDefaultsEnforcementPolicy object. This API is supported in the following national cloud deployments. /// public class IdentitySecurityDefaultsEnforcementPolicyRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Excludes/ExcludesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Excludes/ExcludesRequestBuilder.cs index 1ea2c0da1bc..80825a25784 100644 --- a/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Excludes/ExcludesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Excludes/ExcludesRequestBuilder.cs @@ -42,7 +42,7 @@ public ExcludesRequestBuilder(Dictionary pathParameters, IReques public ExcludesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/permissionGrantPolicies/{permissionGrantPolicy%2Did}/excludes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the condition sets which are *excluded* in a permissionGrantPolicy. + /// Retrieve the condition sets which are *excluded* in a permissionGrantPolicy. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action return await RequestAdapter.SendAsync(requestInfo, PermissionGrantConditionSetCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add conditions under which a permission grant event is *excluded* in a permission grant policy. You do this by adding a permissionGrantConditionSet to the excludes collection of a permissionGrantPolicy. + /// Add conditions under which a permission grant event is *excluded* in a permission grant policy. You do this by adding a permissionGrantConditionSet to the excludes collection of a permissionGrantPolicy. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(PermissionGrantConditio return await RequestAdapter.SendAsync(requestInfo, PermissionGrantConditionSet.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the condition sets which are *excluded* in a permissionGrantPolicy. + /// Retrieve the condition sets which are *excluded* in a permissionGrantPolicy. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add conditions under which a permission grant event is *excluded* in a permission grant policy. You do this by adding a permissionGrantConditionSet to the excludes collection of a permissionGrantPolicy. + /// Add conditions under which a permission grant event is *excluded* in a permission grant policy. You do this by adding a permissionGrantConditionSet to the excludes collection of a permissionGrantPolicy. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ExcludesRequestBuilder WithUrl(string rawUrl) { return new ExcludesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the condition sets which are *excluded* in a permissionGrantPolicy. + /// Retrieve the condition sets which are *excluded* in a permissionGrantPolicy. This API is supported in the following national cloud deployments. /// public class ExcludesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Excludes/Item/PermissionGrantConditionSetItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Excludes/Item/PermissionGrantConditionSetItemRequestBuilder.cs index 78c9509f4f7..046c0c42158 100644 --- a/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Excludes/Item/PermissionGrantConditionSetItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Excludes/Item/PermissionGrantConditionSetItemRequestBuilder.cs @@ -29,7 +29,7 @@ public PermissionGrantConditionSetItemRequestBuilder(Dictionary public PermissionGrantConditionSetItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/permissionGrantPolicies/{permissionGrantPolicy%2Did}/excludes/{permissionGrantConditionSet%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a permissionGrantConditionSet from the excludes collection of a permissionGrantPolicy. + /// Deletes a permissionGrantConditionSet from the excludes collection of a permissionGrantPolicy. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task PatchAsync(PermissionGrantConditi return await RequestAdapter.SendAsync(requestInfo, PermissionGrantConditionSet.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a permissionGrantConditionSet from the excludes collection of a permissionGrantPolicy. + /// Deletes a permissionGrantConditionSet from the excludes collection of a permissionGrantPolicy. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Includes/IncludesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Includes/IncludesRequestBuilder.cs index 83f3cdbdfb2..e7aad197ce5 100644 --- a/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Includes/IncludesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Includes/IncludesRequestBuilder.cs @@ -42,7 +42,7 @@ public IncludesRequestBuilder(Dictionary pathParameters, IReques public IncludesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/permissionGrantPolicies/{permissionGrantPolicy%2Did}/includes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the condition sets which are *included* in a permissionGrantPolicy. + /// Retrieve the condition sets which are *included* in a permissionGrantPolicy. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action return await RequestAdapter.SendAsync(requestInfo, PermissionGrantConditionSetCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add conditions under which a permission grant event is *included* in a permission grant policy. You do this by adding a permissionGrantConditionSet to the includes collection of a permissionGrantPolicy. + /// Add conditions under which a permission grant event is *included* in a permission grant policy. You do this by adding a permissionGrantConditionSet to the includes collection of a permissionGrantPolicy. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(PermissionGrantConditio return await RequestAdapter.SendAsync(requestInfo, PermissionGrantConditionSet.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the condition sets which are *included* in a permissionGrantPolicy. + /// Retrieve the condition sets which are *included* in a permissionGrantPolicy. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add conditions under which a permission grant event is *included* in a permission grant policy. You do this by adding a permissionGrantConditionSet to the includes collection of a permissionGrantPolicy. + /// Add conditions under which a permission grant event is *included* in a permission grant policy. You do this by adding a permissionGrantConditionSet to the includes collection of a permissionGrantPolicy. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public IncludesRequestBuilder WithUrl(string rawUrl) { return new IncludesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the condition sets which are *included* in a permissionGrantPolicy. + /// Retrieve the condition sets which are *included* in a permissionGrantPolicy. This API is supported in the following national cloud deployments. /// public class IncludesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Includes/Item/PermissionGrantConditionSetItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Includes/Item/PermissionGrantConditionSetItemRequestBuilder.cs index 4b506c78aba..4e063fedcd9 100644 --- a/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Includes/Item/PermissionGrantConditionSetItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Includes/Item/PermissionGrantConditionSetItemRequestBuilder.cs @@ -29,7 +29,7 @@ public PermissionGrantConditionSetItemRequestBuilder(Dictionary public PermissionGrantConditionSetItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/permissionGrantPolicies/{permissionGrantPolicy%2Did}/includes/{permissionGrantConditionSet%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a permissionGrantConditionSet from the includes collection of a permissionGrantPolicy. + /// Deletes a permissionGrantConditionSet from the includes collection of a permissionGrantPolicy. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task PatchAsync(PermissionGrantConditi return await RequestAdapter.SendAsync(requestInfo, PermissionGrantConditionSet.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a permissionGrantConditionSet from the includes collection of a permissionGrantPolicy. + /// Deletes a permissionGrantConditionSet from the includes collection of a permissionGrantPolicy. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/PermissionGrantPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/PermissionGrantPolicyItemRequestBuilder.cs index 9b2315d4758..06366c3c780 100644 --- a/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/PermissionGrantPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/PermissionGrantPolicyItemRequestBuilder.cs @@ -39,7 +39,7 @@ public PermissionGrantPolicyItemRequestBuilder(Dictionary pathPa public PermissionGrantPolicyItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/permissionGrantPolicies/{permissionGrantPolicy%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a permissionGrantPolicy object. + /// Delete a permissionGrantPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -59,7 +59,7 @@ public async Task DeleteAsync(Action - /// Retrieve a single permissionGrantPolicy object. + /// Retrieve a single permissionGrantPolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -79,7 +79,7 @@ public async Task GetAsync(Action(requestInfo, PermissionGrantPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update properties of a permissionGrantPolicy. + /// Update properties of a permissionGrantPolicy. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -101,7 +101,7 @@ public async Task PatchAsync(PermissionGrantPolicy body, return await RequestAdapter.SendAsync(requestInfo, PermissionGrantPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a permissionGrantPolicy object. + /// Delete a permissionGrantPolicy object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -125,7 +125,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a single permissionGrantPolicy object. + /// Retrieve a single permissionGrantPolicy object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -151,7 +151,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update properties of a permissionGrantPolicy. + /// Update properties of a permissionGrantPolicy. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -202,7 +202,7 @@ public PermissionGrantPolicyItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a single permissionGrantPolicy object. + /// Retrieve a single permissionGrantPolicy object. This API is supported in the following national cloud deployments. /// public class PermissionGrantPolicyItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/PermissionGrantPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/PermissionGrantPoliciesRequestBuilder.cs index 5f3a438411a..bb8d75b06e4 100644 --- a/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/PermissionGrantPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/PermissionGrantPoliciesRequestBuilder.cs @@ -42,7 +42,7 @@ public PermissionGrantPoliciesRequestBuilder(Dictionary pathPara public PermissionGrantPoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/permissionGrantPolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of permissionGrantPolicy objects. + /// Retrieve the list of permissionGrantPolicy objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, PermissionGrantPolicyCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Creates a permissionGrantPolicy. A permission grant policy is used to describe the conditions under which permissions can be granted (for example, during application consent). After creating the permission grant policy, you can add include condition sets to add matching rules, and add exclude condition sets to add exclusion rules. + /// Creates a permissionGrantPolicy. A permission grant policy is used to describe the conditions under which permissions can be granted (for example, during application consent). After creating the permission grant policy, you can add include condition sets to add matching rules, and add exclude condition sets to add exclusion rules. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(PermissionGrantPolicy body, A return await RequestAdapter.SendAsync(requestInfo, PermissionGrantPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of permissionGrantPolicy objects. + /// Retrieve the list of permissionGrantPolicy objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Creates a permissionGrantPolicy. A permission grant policy is used to describe the conditions under which permissions can be granted (for example, during application consent). After creating the permission grant policy, you can add include condition sets to add matching rules, and add exclude condition sets to add exclusion rules. + /// Creates a permissionGrantPolicy. A permission grant policy is used to describe the conditions under which permissions can be granted (for example, during application consent). After creating the permission grant policy, you can add include condition sets to add matching rules, and add exclude condition sets to add exclusion rules. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PermissionGrantPoliciesRequestBuilder WithUrl(string rawUrl) { return new PermissionGrantPoliciesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of permissionGrantPolicy objects. + /// Retrieve the list of permissionGrantPolicy objects. This API is supported in the following national cloud deployments. /// public class PermissionGrantPoliciesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/Rules/Item/UnifiedRoleManagementPolicyRuleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/Rules/Item/UnifiedRoleManagementPolicyRuleItemRequestBuilder.cs index b595852b382..ee2c89c3e46 100644 --- a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/Rules/Item/UnifiedRoleManagementPolicyRuleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/Rules/Item/UnifiedRoleManagementPolicyRuleItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve a rule or settings defined for a role management policy. The rule can be one of the following types that are derived from the unifiedRoleManagementPolicyRule object:+ unifiedRoleManagementPolicyApprovalRule+ unifiedRoleManagementPolicyAuthenticationContextRule+ unifiedRoleManagementPolicyEnablementRule+ unifiedRoleManagementPolicyExpirationRule+ unifiedRoleManagementPolicyNotificationRule + /// Retrieve a rule or settings defined for a role management policy. The rule can be one of the following types that are derived from the unifiedRoleManagementPolicyRule object: This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, UnifiedRoleManagementPolicyRule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update a rule defined for a role management policy. The rule can be one of the following types that are derived from the unifiedRoleManagementPolicyRule object: For more information about rules for Azure AD roles and examples of updating rules, see the following articles: + /// Update a rule defined for a role management policy. The rule can be one of the following types that are derived from the unifiedRoleManagementPolicyRule object: For more information about rules for Azure AD roles and examples of updating rules, see the following articles: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a rule or settings defined for a role management policy. The rule can be one of the following types that are derived from the unifiedRoleManagementPolicyRule object:+ unifiedRoleManagementPolicyApprovalRule+ unifiedRoleManagementPolicyAuthenticationContextRule+ unifiedRoleManagementPolicyEnablementRule+ unifiedRoleManagementPolicyExpirationRule+ unifiedRoleManagementPolicyNotificationRule + /// Retrieve a rule or settings defined for a role management policy. The rule can be one of the following types that are derived from the unifiedRoleManagementPolicyRule object: This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update a rule defined for a role management policy. The rule can be one of the following types that are derived from the unifiedRoleManagementPolicyRule object: For more information about rules for Azure AD roles and examples of updating rules, see the following articles: + /// Update a rule defined for a role management policy. The rule can be one of the following types that are derived from the unifiedRoleManagementPolicyRule object: For more information about rules for Azure AD roles and examples of updating rules, see the following articles: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -191,7 +191,7 @@ public UnifiedRoleManagementPolicyRuleItemRequestBuilderDeleteRequestConfigurati } } /// - /// Retrieve a rule or settings defined for a role management policy. The rule can be one of the following types that are derived from the unifiedRoleManagementPolicyRule object:+ unifiedRoleManagementPolicyApprovalRule+ unifiedRoleManagementPolicyAuthenticationContextRule+ unifiedRoleManagementPolicyEnablementRule+ unifiedRoleManagementPolicyExpirationRule+ unifiedRoleManagementPolicyNotificationRule + /// Retrieve a rule or settings defined for a role management policy. The rule can be one of the following types that are derived from the unifiedRoleManagementPolicyRule object: This API is supported in the following national cloud deployments. /// public class UnifiedRoleManagementPolicyRuleItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/Rules/RulesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/Rules/RulesRequestBuilder.cs index e3c141d1836..bc4e4f85ea9 100644 --- a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/Rules/RulesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/Rules/RulesRequestBuilder.cs @@ -42,7 +42,7 @@ public RulesRequestBuilder(Dictionary pathParameters, IRequestAd public RulesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/roleManagementPolicies/{unifiedRoleManagementPolicy%2Did}/rules{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the rules or settings defined for a role management policy. The rules are a collection of following types that are derived from the unifiedRoleManagementPolicyRule object:+ unifiedRoleManagementPolicyApprovalRule+ unifiedRoleManagementPolicyAuthenticationContextRule+ unifiedRoleManagementPolicyEnablementRule+ unifiedRoleManagementPolicyExpirationRule+ unifiedRoleManagementPolicyNotificationRule + /// Get the rules or settings defined for a role management policy. The rules are a collection of following types that are derived from the unifiedRoleManagementPolicyRule object: This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(UnifiedRoleManageme return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleManagementPolicyRule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the rules or settings defined for a role management policy. The rules are a collection of following types that are derived from the unifiedRoleManagementPolicyRule object:+ unifiedRoleManagementPolicyApprovalRule+ unifiedRoleManagementPolicyAuthenticationContextRule+ unifiedRoleManagementPolicyEnablementRule+ unifiedRoleManagementPolicyExpirationRule+ unifiedRoleManagementPolicyNotificationRule + /// Get the rules or settings defined for a role management policy. The rules are a collection of following types that are derived from the unifiedRoleManagementPolicyRule object: This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public RulesRequestBuilder WithUrl(string rawUrl) { return new RulesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the rules or settings defined for a role management policy. The rules are a collection of following types that are derived from the unifiedRoleManagementPolicyRule object:+ unifiedRoleManagementPolicyApprovalRule+ unifiedRoleManagementPolicyAuthenticationContextRule+ unifiedRoleManagementPolicyEnablementRule+ unifiedRoleManagementPolicyExpirationRule+ unifiedRoleManagementPolicyNotificationRule + /// Get the rules or settings defined for a role management policy. The rules are a collection of following types that are derived from the unifiedRoleManagementPolicyRule object: This API is supported in the following national cloud deployments. /// public class RulesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/UnifiedRoleManagementPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/UnifiedRoleManagementPolicyItemRequestBuilder.cs index 0de4e8c2b2b..941fa06972b 100644 --- a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/UnifiedRoleManagementPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/UnifiedRoleManagementPolicyItemRequestBuilder.cs @@ -58,7 +58,7 @@ public async Task DeleteAsync(Action - /// Retrieve the details of a role management policy. + /// Retrieve the details of a role management policy. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -123,7 +123,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the details of a role management policy. + /// Retrieve the details of a role management policy. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -200,7 +200,7 @@ public UnifiedRoleManagementPolicyItemRequestBuilderDeleteRequestConfiguration() } } /// - /// Retrieve the details of a role management policy. + /// Retrieve the details of a role management policy. This API is supported in the following national cloud deployments. /// public class UnifiedRoleManagementPolicyItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/RoleManagementPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/RoleManagementPoliciesRequestBuilder.cs index 6354b22b1f6..9b0853d23d5 100644 --- a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/RoleManagementPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/RoleManagementPoliciesRequestBuilder.cs @@ -42,7 +42,7 @@ public RoleManagementPoliciesRequestBuilder(Dictionary pathParam public RoleManagementPoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/roleManagementPolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get role management policies and their details. + /// Get role management policies and their details. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(UnifiedRoleManagementPo return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleManagementPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get role management policies and their details. + /// Get role management policies and their details. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public RoleManagementPoliciesRequestBuilder WithUrl(string rawUrl) { return new RoleManagementPoliciesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get role management policies and their details. + /// Get role management policies and their details. This API is supported in the following national cloud deployments. /// public class RoleManagementPoliciesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicyAssignments/Item/UnifiedRoleManagementPolicyAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicyAssignments/Item/UnifiedRoleManagementPolicyAssignmentItemRequestBuilder.cs index ef7588ba045..a175f68555b 100644 --- a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicyAssignments/Item/UnifiedRoleManagementPolicyAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicyAssignments/Item/UnifiedRoleManagementPolicyAssignmentItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Get the details of a role management policy assignment including the policy and rules associated with the Azure AD role. + /// Get the details of a role management policy assignment including the policy and rules associated with the Azure AD role. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the details of a role management policy assignment including the policy and rules associated with the Azure AD role. + /// Get the details of a role management policy assignment including the policy and rules associated with the Azure AD role. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public UnifiedRoleManagementPolicyAssignmentItemRequestBuilderDeleteRequestConfi } } /// - /// Get the details of a role management policy assignment including the policy and rules associated with the Azure AD role. + /// Get the details of a role management policy assignment including the policy and rules associated with the Azure AD role. This API is supported in the following national cloud deployments. /// public class UnifiedRoleManagementPolicyAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicyAssignments/RoleManagementPolicyAssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicyAssignments/RoleManagementPolicyAssignmentsRequestBuilder.cs index e25a4b8edc3..e4b92fce2bd 100644 --- a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicyAssignments/RoleManagementPolicyAssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicyAssignments/RoleManagementPolicyAssignmentsRequestBuilder.cs @@ -42,7 +42,7 @@ public RoleManagementPolicyAssignmentsRequestBuilder(Dictionary public RoleManagementPolicyAssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/roleManagementPolicyAssignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the details of all role management policy assignments including the policies and rules associated with the Azure AD roles. + /// Get the details of all role management policy assignments including the policies and rules associated with the Azure AD roles. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(UnifiedRoleMa return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleManagementPolicyAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the details of all role management policy assignments including the policies and rules associated with the Azure AD roles. + /// Get the details of all role management policy assignments including the policies and rules associated with the Azure AD roles. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public RoleManagementPolicyAssignmentsRequestBuilder WithUrl(string rawUrl) { return new RoleManagementPolicyAssignmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the details of all role management policy assignments including the policies and rules associated with the Azure AD roles. + /// Get the details of all role management policy assignments including the policies and rules associated with the Azure AD roles. This API is supported in the following national cloud deployments. /// public class RoleManagementPolicyAssignmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Policies/TokenIssuancePolicies/Item/TokenIssuancePolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/TokenIssuancePolicies/Item/TokenIssuancePolicyItemRequestBuilder.cs index 14cbd05be51..621c0f86f81 100644 --- a/src/Microsoft.Graph/Generated/Policies/TokenIssuancePolicies/Item/TokenIssuancePolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/TokenIssuancePolicies/Item/TokenIssuancePolicyItemRequestBuilder.cs @@ -34,7 +34,7 @@ public TokenIssuancePolicyItemRequestBuilder(Dictionary pathPara public TokenIssuancePolicyItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/tokenIssuancePolicies/{tokenIssuancePolicy%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a tokenIssuancePolicy object. + /// Delete a tokenIssuancePolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -73,7 +73,7 @@ public async Task GetAsync(Action(requestInfo, TokenIssuancePolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a tokenIssuancePolicy object. + /// Update the properties of a tokenIssuancePolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -95,7 +95,7 @@ public async Task PatchAsync(TokenIssuancePolicy body, Acti return await RequestAdapter.SendAsync(requestInfo, TokenIssuancePolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a tokenIssuancePolicy object. + /// Delete a tokenIssuancePolicy object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -145,7 +145,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a tokenIssuancePolicy object. + /// Update the properties of a tokenIssuancePolicy object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Policies/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.cs index d8ea8aa9fc3..5cbf98c79e0 100644 --- a/src/Microsoft.Graph/Generated/Policies/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.cs @@ -42,7 +42,7 @@ public TokenIssuancePoliciesRequestBuilder(Dictionary pathParame public TokenIssuancePoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/tokenIssuancePolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of tokenIssuancePolicy objects. + /// Get a list of tokenIssuancePolicy objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TokenIssuancePolicyCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new tokenIssuancePolicy object. + /// Create a new tokenIssuancePolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TokenIssuancePolicy body, Actio return await RequestAdapter.SendAsync(requestInfo, TokenIssuancePolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of tokenIssuancePolicy objects. + /// Get a list of tokenIssuancePolicy objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new tokenIssuancePolicy object. + /// Create a new tokenIssuancePolicy object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public TokenIssuancePoliciesRequestBuilder WithUrl(string rawUrl) { return new TokenIssuancePoliciesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of tokenIssuancePolicy objects. + /// Get a list of tokenIssuancePolicy objects. This API is supported in the following national cloud deployments. /// public class TokenIssuancePoliciesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Policies/TokenLifetimePolicies/Item/TokenLifetimePolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/TokenLifetimePolicies/Item/TokenLifetimePolicyItemRequestBuilder.cs index 27f7b84816b..e9d834bb62c 100644 --- a/src/Microsoft.Graph/Generated/Policies/TokenLifetimePolicies/Item/TokenLifetimePolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/TokenLifetimePolicies/Item/TokenLifetimePolicyItemRequestBuilder.cs @@ -34,7 +34,7 @@ public TokenLifetimePolicyItemRequestBuilder(Dictionary pathPara public TokenLifetimePolicyItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/tokenLifetimePolicies/{tokenLifetimePolicy%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a tokenLifetimePolicy object. + /// Delete a tokenLifetimePolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a tokenLifetimePolicy object. + /// Retrieve the properties and relationships of a tokenLifetimePolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, TokenLifetimePolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a tokenLifetimePolicy object. + /// Update the properties of a tokenLifetimePolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(TokenLifetimePolicy body, Acti return await RequestAdapter.SendAsync(requestInfo, TokenLifetimePolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a tokenLifetimePolicy object. + /// Delete a tokenLifetimePolicy object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a tokenLifetimePolicy object. + /// Retrieve the properties and relationships of a tokenLifetimePolicy object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a tokenLifetimePolicy object. + /// Update the properties of a tokenLifetimePolicy object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public TokenLifetimePolicyItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a tokenLifetimePolicy object. + /// Retrieve the properties and relationships of a tokenLifetimePolicy object. This API is supported in the following national cloud deployments. /// public class TokenLifetimePolicyItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Policies/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.cs index e7e30343eb4..0577f0cee28 100644 --- a/src/Microsoft.Graph/Generated/Policies/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.cs @@ -42,7 +42,7 @@ public TokenLifetimePoliciesRequestBuilder(Dictionary pathParame public TokenLifetimePoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/tokenLifetimePolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of tokenLifetimePolicy objects. + /// Get a list of tokenLifetimePolicy objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TokenLifetimePolicyCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new tokenLifetimePolicy object. + /// Create a new tokenLifetimePolicy object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TokenLifetimePolicy body, Actio return await RequestAdapter.SendAsync(requestInfo, TokenLifetimePolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of tokenLifetimePolicy objects. + /// Get a list of tokenLifetimePolicy objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new tokenLifetimePolicy object. + /// Create a new tokenLifetimePolicy object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public TokenLifetimePoliciesRequestBuilder WithUrl(string rawUrl) { return new TokenLifetimePoliciesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of tokenLifetimePolicy objects. + /// Get a list of tokenLifetimePolicy objects. This API is supported in the following national cloud deployments. /// public class TokenLifetimePoliciesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Print/Connectors/ConnectorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Connectors/ConnectorsRequestBuilder.cs index 847ec60e921..038431c55ad 100644 --- a/src/Microsoft.Graph/Generated/Print/Connectors/ConnectorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Connectors/ConnectorsRequestBuilder.cs @@ -42,7 +42,7 @@ public ConnectorsRequestBuilder(Dictionary pathParameters, IRequ public ConnectorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/connectors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of print connectors. + /// Retrieve a list of print connectors. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(PrintConnector body, Action(requestInfo, PrintConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of print connectors. + /// Retrieve a list of print connectors. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public ConnectorsRequestBuilder WithUrl(string rawUrl) { return new ConnectorsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of print connectors. + /// Retrieve a list of print connectors. This API is supported in the following national cloud deployments. /// public class ConnectorsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Print/Connectors/Item/PrintConnectorItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Connectors/Item/PrintConnectorItemRequestBuilder.cs index 4d19640994a..1ac42d325de 100644 --- a/src/Microsoft.Graph/Generated/Print/Connectors/Item/PrintConnectorItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Connectors/Item/PrintConnectorItemRequestBuilder.cs @@ -29,7 +29,7 @@ public PrintConnectorItemRequestBuilder(Dictionary pathParameter public PrintConnectorItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/connectors/{printConnector%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete (unregister) a printConnector. + /// Delete (unregister) a printConnector. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a printConnector object. + /// Retrieve the properties and relationships of a printConnector object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, PrintConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a printConnector object. + /// Update the properties of a printConnector object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(PrintConnector body, Action(requestInfo, PrintConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete (unregister) a printConnector. + /// Delete (unregister) a printConnector. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a printConnector object. + /// Retrieve the properties and relationships of a printConnector object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a printConnector object. + /// Update the properties of a printConnector object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public PrintConnectorItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a printConnector object. + /// Retrieve the properties and relationships of a printConnector object. This API is supported in the following national cloud deployments. /// public class PrintConnectorItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Print/Operations/Item/PrintOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Operations/Item/PrintOperationItemRequestBuilder.cs index 0574650b413..9463faa3567 100644 --- a/src/Microsoft.Graph/Generated/Print/Operations/Item/PrintOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Operations/Item/PrintOperationItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a printOperation object. + /// Retrieve the properties and relationships of a printOperation object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a printOperation object. + /// Retrieve the properties and relationships of a printOperation object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public PrintOperationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a printOperation object. + /// Retrieve the properties and relationships of a printOperation object. This API is supported in the following national cloud deployments. /// public class PrintOperationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Print/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Operations/OperationsRequestBuilder.cs index f9b404344e0..9c6722ec8fd 100644 --- a/src/Microsoft.Graph/Generated/Print/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Operations/OperationsRequestBuilder.cs @@ -42,7 +42,7 @@ public OperationsRequestBuilder(Dictionary pathParameters, IRequ public OperationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/operations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the properties and relationships of a printOperation object. + /// Retrieve the properties and relationships of a printOperation object. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(PrintOperation body, Action(requestInfo, PrintOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the properties and relationships of a printOperation object. + /// Retrieve the properties and relationships of a printOperation object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public OperationsRequestBuilder WithUrl(string rawUrl) { return new OperationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the properties and relationships of a printOperation object. + /// Retrieve the properties and relationships of a printOperation object. This API is supported in the following national cloud deployments. /// public class OperationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Create/CreateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Create/CreateRequestBuilder.cs index 743a79c2a09..db2baad6418 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Create/CreateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Create/CreateRequestBuilder.cs @@ -28,7 +28,7 @@ public CreateRequestBuilder(Dictionary pathParameters, IRequestA public CreateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/printers/create", rawUrl) { } /// - /// Create (register) a printer with the Universal Print service. This is a long-running operation and as such, it returns a printerCreateOperation that can be used to track and verify the registration of the printer. For help creating the required Certificate Signing Request (CSR) for creating printer, see the CSR generation code sample. + /// Create (register) a printer with the Universal Print service. This is a long-running operation and as such, it returns a printerCreateOperation that can be used to track and verify the registration of the printer. For help creating the required Certificate Signing Request (CSR) for creating printer, see the CSR generation code sample. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CreatePostRequestBody body, Action - /// Create (register) a printer with the Universal Print service. This is a long-running operation and as such, it returns a printerCreateOperation that can be used to track and verify the registration of the printer. For help creating the required Certificate Signing Request (CSR) for creating printer, see the CSR generation code sample. + /// Create (register) a printer with the Universal Print service. This is a long-running operation and as such, it returns a printerCreateOperation that can be used to track and verify the registration of the printer. For help creating the required Certificate Signing Request (CSR) for creating printer, see the CSR generation code sample. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/Connectors/ConnectorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/Connectors/ConnectorsRequestBuilder.cs index 930a61a7c06..bd0cd7c9098 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/Connectors/ConnectorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/Connectors/ConnectorsRequestBuilder.cs @@ -42,7 +42,7 @@ public ConnectorsRequestBuilder(Dictionary pathParameters, IRequ public ConnectorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/printers/{printer%2Did}/connectors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of printConnectors associated with the printer. + /// Retrieve a list of printConnectors associated with the printer. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, PrintConnectorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of printConnectors associated with the printer. + /// Retrieve a list of printConnectors associated with the printer. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public ConnectorsRequestBuilder WithUrl(string rawUrl) { return new ConnectorsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of printConnectors associated with the printer. + /// Retrieve a list of printConnectors associated with the printer. This API is supported in the following national cloud deployments. /// public class ConnectorsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Abort/AbortRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Abort/AbortRequestBuilder.cs index d4db1aa701b..d6e28d48642 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Abort/AbortRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Abort/AbortRequestBuilder.cs @@ -28,7 +28,7 @@ public AbortRequestBuilder(Dictionary pathParameters, IRequestAd public AbortRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/printers/{printer%2Did}/jobs/{printJob%2Did}/abort", rawUrl) { } /// - /// Abort a print job. Only applications using application permissions can abort a print job. Aborting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to register a task trigger, see Extending Universal Print to support pull printing. + /// Abort a print job. Only applications using application permissions can abort a print job. Aborting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to register a task trigger, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AbortPostRequestBody body, Action - /// Abort a print job. Only applications using application permissions can abort a print job. Aborting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to register a task trigger, see Extending Universal Print to support pull printing. + /// Abort a print job. Only applications using application permissions can abort a print job. Aborting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to register a task trigger, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Cancel/CancelRequestBuilder.cs index 58b9fc0a01d..aca9b4c5950 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/printers/{printer%2Did}/jobs/{printJob%2Did}/cancel", rawUrl) { } /// - /// Cancel a print job. Print jobs can be canceled only on behalf of a user, using delegated permissions. + /// Cancel a print job. Print jobs can be canceled only on behalf of a user, using delegated permissions. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Cancel a print job. Print jobs can be canceled only on behalf of a user, using delegated permissions. + /// Cancel a print job. Print jobs can be canceled only on behalf of a user, using delegated permissions. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Documents/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Documents/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 7029ad80c3d..b8d0635f3a6 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Documents/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Documents/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/printers/{printer%2Did}/jobs/{printJob%2Did}/documents/{printDocument%2Did}/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a binary file linked to the print document. As part of the response, this action returns an upload URL that can be used in subsequent sequential PUT queries. Request headers for each PUT operation can be used to specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. + /// Create an upload session that allows an app to iteratively upload ranges of a binary file linked to the print document. As part of the response, this action returns an upload URL that can be used in subsequent sequential PUT queries. Request headers for each PUT operation can be used to specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a binary file linked to the print document. As part of the response, this action returns an upload URL that can be used in subsequent sequential PUT queries. Request headers for each PUT operation can be used to specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. + /// Create an upload session that allows an app to iteratively upload ranges of a binary file linked to the print document. As part of the response, this action returns an upload URL that can be used in subsequent sequential PUT queries. Request headers for each PUT operation can be used to specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Redirect/RedirectRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Redirect/RedirectRequestBuilder.cs index 422c9d6ea54..15ec5f6063d 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Redirect/RedirectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Redirect/RedirectRequestBuilder.cs @@ -29,7 +29,7 @@ public RedirectRequestBuilder(Dictionary pathParameters, IReques public RedirectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/printers/{printer%2Did}/jobs/{printJob%2Did}/redirect", rawUrl) { } /// - /// Redirect a print job to a different printer. Redirecting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + /// Redirect a print job to a different printer. Redirecting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(RedirectPostRequestBody body, Action(requestInfo, PrintJob.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Redirect a print job to a different printer. Redirecting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + /// Redirect a print job to a different printer. Redirecting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Start/StartRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Start/StartRequestBuilder.cs index 849a104cc67..db61b8209e2 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Start/StartRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Start/StartRequestBuilder.cs @@ -29,7 +29,7 @@ public StartRequestBuilder(Dictionary pathParameters, IRequestAd public StartRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/printers/{printer%2Did}/jobs/{printJob%2Did}/start", rawUrl) { } /// - /// Submits the print job to the associated printer or printerShare. It will be printed after any existing pending jobs are completed, aborted, or canceled. + /// Submits the print job to the associated printer or printerShare. It will be printed after any existing pending jobs are completed, aborted, or canceled. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, PrintJobStatus.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Submits the print job to the associated printer or printerShare. It will be printed after any existing pending jobs are completed, aborted, or canceled. + /// Submits the print job to the associated printer or printerShare. It will be printed after any existing pending jobs are completed, aborted, or canceled. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/PrinterItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/PrinterItemRequestBuilder.cs index 3f66ad920ee..05076a0aa7d 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/PrinterItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/PrinterItemRequestBuilder.cs @@ -54,7 +54,7 @@ public PrinterItemRequestBuilder(Dictionary pathParameters, IReq public PrinterItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/printers/{printer%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete (unregister) a printer. + /// Delete (unregister) a printer. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a printer object. + /// Retrieve the properties and relationships of a printer object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -94,7 +94,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Printer.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a printer object. + /// Update the properties of a printer object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -116,7 +116,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Printer.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete (unregister) a printer. + /// Delete (unregister) a printer. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a printer object. + /// Retrieve the properties and relationships of a printer object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -166,7 +166,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a printer object. + /// Update the properties of a printer object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -217,7 +217,7 @@ public PrinterItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a printer object. + /// Retrieve the properties and relationships of a printer object. This API is supported in the following national cloud deployments. /// public class PrinterItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/RestoreFactoryDefaults/RestoreFactoryDefaultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/RestoreFactoryDefaults/RestoreFactoryDefaultsRequestBuilder.cs index 82b706972a8..0424b70f7d7 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/RestoreFactoryDefaults/RestoreFactoryDefaultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/RestoreFactoryDefaults/RestoreFactoryDefaultsRequestBuilder.cs @@ -28,7 +28,7 @@ public RestoreFactoryDefaultsRequestBuilder(Dictionary pathParam public RestoreFactoryDefaultsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/printers/{printer%2Did}/restoreFactoryDefaults", rawUrl) { } /// - /// Restore a printer's default settings to the values specified by the manufacturer. + /// Restore a printer's default settings to the values specified by the manufacturer. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Restore a printer's default settings to the values specified by the manufacturer. + /// Restore a printer's default settings to the values specified by the manufacturer. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/Shares/SharesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/Shares/SharesRequestBuilder.cs index 0377977f855..0ca47c55c51 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/Shares/SharesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/Shares/SharesRequestBuilder.cs @@ -42,7 +42,7 @@ public SharesRequestBuilder(Dictionary pathParameters, IRequestA public SharesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/printers/{printer%2Did}/shares{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of printer shares associated with the printer. + /// Retrieve a list of printer shares associated with the printer. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, PrinterShareCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of printer shares associated with the printer. + /// Retrieve a list of printer shares associated with the printer. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public SharesRequestBuilder WithUrl(string rawUrl) { return new SharesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of printer shares associated with the printer. + /// Retrieve a list of printer shares associated with the printer. This API is supported in the following national cloud deployments. /// public class SharesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/TaskTriggers/Item/Definition/DefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/TaskTriggers/Item/Definition/DefinitionRequestBuilder.cs index dde73bf9e2b..4c44e2d9c73 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/TaskTriggers/Item/Definition/DefinitionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/TaskTriggers/Item/Definition/DefinitionRequestBuilder.cs @@ -29,7 +29,7 @@ public DefinitionRequestBuilder(Dictionary pathParameters, IRequ public DefinitionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/printers/{printer%2Did}/taskTriggers/{printTaskTrigger%2Did}/definition{?%24select,%24expand}", rawUrl) { } /// - /// An abstract definition that will be used to create a printTask when triggered by a print event. Read-only. + /// An abstract definition that is used to create a printTask when triggered by a print event. Read-only. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -48,7 +48,7 @@ public async Task GetAsync(Action(requestInfo, PrintTaskDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// An abstract definition that will be used to create a printTask when triggered by a print event. Read-only. + /// An abstract definition that is used to create a printTask when triggered by a print event. Read-only. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +81,7 @@ public DefinitionRequestBuilder WithUrl(string rawUrl) { return new DefinitionRequestBuilder(rawUrl, RequestAdapter); } /// - /// An abstract definition that will be used to create a printTask when triggered by a print event. Read-only. + /// An abstract definition that is used to create a printTask when triggered by a print event. Read-only. /// public class DefinitionRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/TaskTriggers/Item/PrintTaskTriggerItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/TaskTriggers/Item/PrintTaskTriggerItemRequestBuilder.cs index b25dead88ce..6dee1c07b7a 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/TaskTriggers/Item/PrintTaskTriggerItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/TaskTriggers/Item/PrintTaskTriggerItemRequestBuilder.cs @@ -34,7 +34,7 @@ public PrintTaskTriggerItemRequestBuilder(Dictionary pathParamet public PrintTaskTriggerItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/printers/{printer%2Did}/taskTriggers/{printTaskTrigger%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete the task trigger of a printer to prevent related print events from triggering tasks on the specified printer. + /// Delete the task trigger of a printer to prevent related print events from triggering tasks on the specified printer. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Get a task trigger from a printer. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + /// Get a task trigger from a printer. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -95,7 +95,7 @@ public async Task PatchAsync(PrintTaskTrigger body, Action(requestInfo, PrintTaskTrigger.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete the task trigger of a printer to prevent related print events from triggering tasks on the specified printer. + /// Delete the task trigger of a printer to prevent related print events from triggering tasks on the specified printer. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -119,7 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a task trigger from a printer. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + /// Get a task trigger from a printer. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -196,7 +196,7 @@ public PrintTaskTriggerItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a task trigger from a printer. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + /// Get a task trigger from a printer. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. /// public class PrintTaskTriggerItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/TaskTriggers/TaskTriggersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/TaskTriggers/TaskTriggersRequestBuilder.cs index fbe6d119a29..61e08e9f3b7 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/TaskTriggers/TaskTriggersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/TaskTriggers/TaskTriggersRequestBuilder.cs @@ -42,7 +42,7 @@ public TaskTriggersRequestBuilder(Dictionary pathParameters, IRe public TaskTriggersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/printers/{printer%2Did}/taskTriggers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of task triggers associated with the printer. The list of task triggers defines which tasks will be triggered as a result of events that occur during printing. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + /// Retrieve a list of task triggers associated with the printer. The list of task triggers defines which tasks will be triggered as a result of events that occur during printing. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, PrintTaskTriggerCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new task trigger on the specified printer. Currently, only one task trigger can be specified per printer, but this limit might be removed in the future. + /// Create a new task trigger on the specified printer. Currently, only one task trigger can be specified per printer, but this limit might be removed in the future. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(PrintTaskTrigger body, Action(requestInfo, PrintTaskTrigger.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of task triggers associated with the printer. The list of task triggers defines which tasks will be triggered as a result of events that occur during printing. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + /// Retrieve a list of task triggers associated with the printer. The list of task triggers defines which tasks will be triggered as a result of events that occur during printing. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new task trigger on the specified printer. Currently, only one task trigger can be specified per printer, but this limit might be removed in the future. + /// Create a new task trigger on the specified printer. Currently, only one task trigger can be specified per printer, but this limit might be removed in the future. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public TaskTriggersRequestBuilder WithUrl(string rawUrl) { return new TaskTriggersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of task triggers associated with the printer. The list of task triggers defines which tasks will be triggered as a result of events that occur during printing. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + /// Retrieve a list of task triggers associated with the printer. The list of task triggers defines which tasks will be triggered as a result of events that occur during printing. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. /// public class TaskTriggersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Print/Printers/PrintersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/PrintersRequestBuilder.cs index b9bd6f21656..75deb11cf5d 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/PrintersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/PrintersRequestBuilder.cs @@ -47,7 +47,7 @@ public PrintersRequestBuilder(Dictionary pathParameters, IReques public PrintersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/printers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of printers that are registered in the tenant. + /// Retrieve the list of printers that are registered in the tenant. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -88,7 +88,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Printer.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of printers that are registered in the tenant. + /// Retrieve the list of printers that are registered in the tenant. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -149,7 +149,7 @@ public PrintersRequestBuilder WithUrl(string rawUrl) { return new PrintersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of printers that are registered in the tenant. + /// Retrieve the list of printers that are registered in the tenant. This API is supported in the following national cloud deployments. /// public class PrintersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Print/Services/Item/Endpoints/EndpointsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Services/Item/Endpoints/EndpointsRequestBuilder.cs index 1a56eec984b..eaf8520b3e2 100644 --- a/src/Microsoft.Graph/Generated/Print/Services/Item/Endpoints/EndpointsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Services/Item/Endpoints/EndpointsRequestBuilder.cs @@ -42,7 +42,7 @@ public EndpointsRequestBuilder(Dictionary pathParameters, IReque public EndpointsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/services/{printService%2Did}/endpoints{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of endpoints exposed by a print service. + /// Retrieve a list of endpoints exposed by a print service. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(PrintServiceEndpoint body, Act return await RequestAdapter.SendAsync(requestInfo, PrintServiceEndpoint.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of endpoints exposed by a print service. + /// Retrieve a list of endpoints exposed by a print service. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public EndpointsRequestBuilder WithUrl(string rawUrl) { return new EndpointsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of endpoints exposed by a print service. + /// Retrieve a list of endpoints exposed by a print service. This API is supported in the following national cloud deployments. /// public class EndpointsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Print/Services/Item/Endpoints/Item/PrintServiceEndpointItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Services/Item/Endpoints/Item/PrintServiceEndpointItemRequestBuilder.cs index fc2d7e67516..6528ccffb72 100644 --- a/src/Microsoft.Graph/Generated/Print/Services/Item/Endpoints/Item/PrintServiceEndpointItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Services/Item/Endpoints/Item/PrintServiceEndpointItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a print service endpoint. + /// Retrieve the properties and relationships of a print service endpoint. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a print service endpoint. + /// Retrieve the properties and relationships of a print service endpoint. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public PrintServiceEndpointItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a print service endpoint. + /// Retrieve the properties and relationships of a print service endpoint. This API is supported in the following national cloud deployments. /// public class PrintServiceEndpointItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Print/Services/Item/PrintServiceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Services/Item/PrintServiceItemRequestBuilder.cs index becde0e69e5..763e280e48a 100644 --- a/src/Microsoft.Graph/Generated/Print/Services/Item/PrintServiceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Services/Item/PrintServiceItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a print service. + /// Retrieve the properties and relationships of a print service. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a print service. + /// Retrieve the properties and relationships of a print service. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public PrintServiceItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a print service. + /// Retrieve the properties and relationships of a print service. This API is supported in the following national cloud deployments. /// public class PrintServiceItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Print/Services/ServicesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Services/ServicesRequestBuilder.cs index 5a4b5e3ee4a..88f4f48fc87 100644 --- a/src/Microsoft.Graph/Generated/Print/Services/ServicesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Services/ServicesRequestBuilder.cs @@ -42,7 +42,7 @@ public ServicesRequestBuilder(Dictionary pathParameters, IReques public ServicesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/services{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of printService objects that represent the services available to your tenant. + /// Retrieve a list of printService objects that represent the services available to your tenant. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(PrintService body, Action(requestInfo, PrintService.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of printService objects that represent the services available to your tenant. + /// Retrieve a list of printService objects that represent the services available to your tenant. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public ServicesRequestBuilder WithUrl(string rawUrl) { return new ServicesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of printService objects that represent the services available to your tenant. + /// Retrieve a list of printService objects that represent the services available to your tenant. This API is supported in the following national cloud deployments. /// public class ServicesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/AllowedGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/AllowedGroupsRequestBuilder.cs index 9b2be9e20b6..ccd336c2e0b 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/AllowedGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/AllowedGroupsRequestBuilder.cs @@ -47,7 +47,7 @@ public AllowedGroupsRequestBuilder(Dictionary pathParameters, IR public AllowedGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of groups that have been granted access to submit print jobs to the associated printerShare. + /// Retrieve a list of groups that have been granted access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, GroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of groups that have been granted access to submit print jobs to the associated printerShare. + /// Retrieve a list of groups that have been granted access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -100,7 +100,7 @@ public AllowedGroupsRequestBuilder WithUrl(string rawUrl) { return new AllowedGroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of groups that have been granted access to submit print jobs to the associated printerShare. + /// Retrieve a list of groups that have been granted access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. /// public class AllowedGroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Item/GroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Item/GroupItemRequestBuilder.cs index 17f74ed6ab9..21b68978807 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Item/GroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Item/GroupItemRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.Print.Shares.Item.AllowedGroups.Item.Ref; +using Microsoft.Graph.Print.Shares.Item.AllowedGroups.Item.ServiceProvisioningErrors; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; @@ -15,6 +16,10 @@ public class GroupItemRequestBuilder : BaseRequestBuilder { public RefRequestBuilder Ref { get => new RefRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new GroupItemRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Item/Ref/RefRequestBuilder.cs index 1e4be6b0735..a15fe80507d 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Item/Ref/RefRequestBuilder.cs @@ -28,7 +28,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedGroups/{group%2Did}/$ref{?%40id*}", rawUrl) { } /// - /// Revoke the specified group's access to submit print jobs to the associated printerShare. + /// Revoke the specified group's access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Revoke the specified group's access to submit print jobs to the associated printerShare. + /// Revoke the specified group's access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -80,7 +80,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Revoke the specified group's access to submit print jobs to the associated printerShare. + /// Revoke the specified group's access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderDeleteQueryParameters { /// Delete Uri diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..2a9971a2655 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Print.Shares.Item.AllowedGroups.Item.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedGroups/{group%2Did}/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedGroups/{group%2Did}/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..cfe797cb199 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Print.Shares.Item.AllowedGroups.Item.ServiceProvisioningErrors.Count; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Print.Shares.Item.AllowedGroups.Item.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \print\shares\{printerShare-id}\allowedGroups\{group-id}\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedGroups/{group%2Did}/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedGroups/{group%2Did}/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Ref/RefRequestBuilder.cs index 20a92b2337d..39aa4c9cbc5 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Ref/RefRequestBuilder.cs @@ -29,7 +29,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { } /// - /// Retrieve a list of groups that have been granted access to submit print jobs to the associated printerShare. + /// Retrieve a list of groups that have been granted access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, StringCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Grant the specified group access to submit print jobs to the associated printerShare. + /// Grant the specified group access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -71,7 +71,7 @@ public async Task PostAsync(ReferenceCreate body, Action - /// Retrieve a list of groups that have been granted access to submit print jobs to the associated printerShare. + /// Retrieve a list of groups that have been granted access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -97,7 +97,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Grant the specified group access to submit print jobs to the associated printerShare. + /// Grant the specified group access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -131,7 +131,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of groups that have been granted access to submit print jobs to the associated printerShare. + /// Retrieve a list of groups that have been granted access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/AllowedUsersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/AllowedUsersRequestBuilder.cs index cd0b8d9c4cc..effc20db778 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/AllowedUsersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/AllowedUsersRequestBuilder.cs @@ -47,7 +47,7 @@ public AllowedUsersRequestBuilder(Dictionary pathParameters, IRe public AllowedUsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedUsers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. + /// Retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, UserCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. + /// Retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -100,7 +100,7 @@ public AllowedUsersRequestBuilder WithUrl(string rawUrl) { return new AllowedUsersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. + /// Retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. /// public class AllowedUsersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/Ref/RefRequestBuilder.cs index 87686fc080f..ef0521b6591 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/Ref/RefRequestBuilder.cs @@ -28,7 +28,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedUsers/{user%2Did}/$ref{?%40id*}", rawUrl) { } /// - /// Revoke the specified user's access to submit print jobs to the associated printerShare. + /// Revoke the specified user's access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Revoke the specified user's access to submit print jobs to the associated printerShare. + /// Revoke the specified user's access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -80,7 +80,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Revoke the specified user's access to submit print jobs to the associated printerShare. + /// Revoke the specified user's access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderDeleteQueryParameters { /// Delete Uri diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..9ef0d2bb680 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Print.Shares.Item.AllowedUsers.Item.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedUsers/{user%2Did}/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedUsers/{user%2Did}/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..a811d8758f8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Print.Shares.Item.AllowedUsers.Item.ServiceProvisioningErrors.Count; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Print.Shares.Item.AllowedUsers.Item.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \print\shares\{printerShare-id}\allowedUsers\{user-id}\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedUsers/{user%2Did}/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedUsers/{user%2Did}/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/UserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/UserItemRequestBuilder.cs index 8f9e8973350..98f71dcffbf 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/UserItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/UserItemRequestBuilder.cs @@ -1,6 +1,7 @@ // using Microsoft.Graph.Print.Shares.Item.AllowedUsers.Item.MailboxSettings; using Microsoft.Graph.Print.Shares.Item.AllowedUsers.Item.Ref; +using Microsoft.Graph.Print.Shares.Item.AllowedUsers.Item.ServiceProvisioningErrors; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; @@ -20,6 +21,10 @@ public class UserItemRequestBuilder : BaseRequestBuilder { public RefRequestBuilder Ref { get => new RefRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new UserItemRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Ref/RefRequestBuilder.cs index 3843482f22d..343cd588904 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Ref/RefRequestBuilder.cs @@ -29,7 +29,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedUsers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { } /// - /// Retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. + /// Retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, StringCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Grant the specified user access to submit print jobs to the associated printerShare. + /// Grant the specified user access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -71,7 +71,7 @@ public async Task PostAsync(ReferenceCreate body, Action - /// Retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. + /// Retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -97,7 +97,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Grant the specified user access to submit print jobs to the associated printerShare. + /// Grant the specified user access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -131,7 +131,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. + /// Retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Abort/AbortRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Abort/AbortRequestBuilder.cs index fe9a33110b9..8cb97d7cae9 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Abort/AbortRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Abort/AbortRequestBuilder.cs @@ -28,7 +28,7 @@ public AbortRequestBuilder(Dictionary pathParameters, IRequestAd public AbortRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/jobs/{printJob%2Did}/abort", rawUrl) { } /// - /// Abort a print job. Only applications using application permissions can abort a print job. Aborting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to register a task trigger, see Extending Universal Print to support pull printing. + /// Abort a print job. Only applications using application permissions can abort a print job. Aborting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to register a task trigger, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AbortPostRequestBody body, Action - /// Abort a print job. Only applications using application permissions can abort a print job. Aborting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to register a task trigger, see Extending Universal Print to support pull printing. + /// Abort a print job. Only applications using application permissions can abort a print job. Aborting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to register a task trigger, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Cancel/CancelRequestBuilder.cs index d0ddf223672..59c9eeb039f 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/jobs/{printJob%2Did}/cancel", rawUrl) { } /// - /// Cancel a print job. Print jobs can be canceled only on behalf of a user, using delegated permissions. + /// Cancel a print job. Print jobs can be canceled only on behalf of a user, using delegated permissions. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Cancel a print job. Print jobs can be canceled only on behalf of a user, using delegated permissions. + /// Cancel a print job. Print jobs can be canceled only on behalf of a user, using delegated permissions. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Documents/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Documents/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 80ba92ff135..e508b70897d 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Documents/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Documents/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/jobs/{printJob%2Did}/documents/{printDocument%2Did}/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a binary file linked to the print document. As part of the response, this action returns an upload URL that can be used in subsequent sequential PUT queries. Request headers for each PUT operation can be used to specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. + /// Create an upload session that allows an app to iteratively upload ranges of a binary file linked to the print document. As part of the response, this action returns an upload URL that can be used in subsequent sequential PUT queries. Request headers for each PUT operation can be used to specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a binary file linked to the print document. As part of the response, this action returns an upload URL that can be used in subsequent sequential PUT queries. Request headers for each PUT operation can be used to specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. + /// Create an upload session that allows an app to iteratively upload ranges of a binary file linked to the print document. As part of the response, this action returns an upload URL that can be used in subsequent sequential PUT queries. Request headers for each PUT operation can be used to specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Redirect/RedirectRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Redirect/RedirectRequestBuilder.cs index 204e9581dec..a9e451e3f8a 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Redirect/RedirectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Redirect/RedirectRequestBuilder.cs @@ -29,7 +29,7 @@ public RedirectRequestBuilder(Dictionary pathParameters, IReques public RedirectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/jobs/{printJob%2Did}/redirect", rawUrl) { } /// - /// Redirect a print job to a different printer. Redirecting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + /// Redirect a print job to a different printer. Redirecting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(RedirectPostRequestBody body, Action(requestInfo, PrintJob.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Redirect a print job to a different printer. Redirecting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + /// Redirect a print job to a different printer. Redirecting a print job will only succeed if there is a printTask in a processing state on the associated print job, started by a trigger that the requesting app created. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Start/StartRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Start/StartRequestBuilder.cs index 93a93dbb8e8..0ed1c372bd3 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Start/StartRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Start/StartRequestBuilder.cs @@ -29,7 +29,7 @@ public StartRequestBuilder(Dictionary pathParameters, IRequestAd public StartRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/jobs/{printJob%2Did}/start", rawUrl) { } /// - /// Submits the print job to the associated printer or printerShare. It will be printed after any existing pending jobs are completed, aborted, or canceled. + /// Submits the print job to the associated printer or printerShare. It will be printed after any existing pending jobs are completed, aborted, or canceled. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, PrintJobStatus.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Submits the print job to the associated printer or printerShare. It will be printed after any existing pending jobs are completed, aborted, or canceled. + /// Submits the print job to the associated printer or printerShare. It will be printed after any existing pending jobs are completed, aborted, or canceled. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/PrinterShareItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/PrinterShareItemRequestBuilder.cs index fadd469a893..ef5896fb071 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/PrinterShareItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/PrinterShareItemRequestBuilder.cs @@ -49,7 +49,7 @@ public PrinterShareItemRequestBuilder(Dictionary pathParameters, public PrinterShareItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a printer share (unshare the associated printer). This action can't be undone. If the printer is shared again in the future, any Windows users who had previously installed the printer needs to discover and reinstall it. + /// Delete a printer share (unshare the associated printer). This action can't be undone. If the printer is shared again in the future, any Windows users who had previously installed the printer needs to discover and reinstall it. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a printer share. + /// Retrieve the properties and relationships of a printer share. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task GetAsync(Action(requestInfo, PrinterShare.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a printer share. This method can be used to swap printers. For example, if a physical printer device breaks, an administrator can register a new printer device and update this printerShare to point to the new printer without requiring users to take any action. + /// Update the properties of a printer share. This method can be used to swap printers. For example, if a physical printer device breaks, an administrator can register a new printer device and update this printerShare to point to the new printer without requiring users to take any action. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -111,7 +111,7 @@ public async Task PatchAsync(PrinterShare body, Action(requestInfo, PrinterShare.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a printer share (unshare the associated printer). This action can't be undone. If the printer is shared again in the future, any Windows users who had previously installed the printer needs to discover and reinstall it. + /// Delete a printer share (unshare the associated printer). This action can't be undone. If the printer is shared again in the future, any Windows users who had previously installed the printer needs to discover and reinstall it. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -135,7 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a printer share. + /// Retrieve the properties and relationships of a printer share. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -161,7 +161,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a printer share. This method can be used to swap printers. For example, if a physical printer device breaks, an administrator can register a new printer device and update this printerShare to point to the new printer without requiring users to take any action. + /// Update the properties of a printer share. This method can be used to swap printers. For example, if a physical printer device breaks, an administrator can register a new printer device and update this printerShare to point to the new printer without requiring users to take any action. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -212,7 +212,7 @@ public PrinterShareItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a printer share. + /// Retrieve the properties and relationships of a printer share. This API is supported in the following national cloud deployments. /// public class PrinterShareItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Print/Shares/SharesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/SharesRequestBuilder.cs index 15a14a7d006..bc6fb500436 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/SharesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/SharesRequestBuilder.cs @@ -42,7 +42,7 @@ public SharesRequestBuilder(Dictionary pathParameters, IRequestA public SharesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of printerShares. + /// Retrieve a list of printerShares. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, PrinterShareCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new printerShare for the specified printer. + /// Create a new printerShare for the specified printer. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(PrinterShare body, Action(requestInfo, PrinterShare.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of printerShares. + /// Retrieve a list of printerShares. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new printerShare for the specified printer. + /// Create a new printerShare for the specified printer. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SharesRequestBuilder WithUrl(string rawUrl) { return new SharesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of printerShares. + /// Retrieve a list of printerShares. This API is supported in the following national cloud deployments. /// public class SharesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/PrintTaskDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/PrintTaskDefinitionItemRequestBuilder.cs index d5f0c32d14d..095490c08c9 100644 --- a/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/PrintTaskDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/PrintTaskDefinitionItemRequestBuilder.cs @@ -34,7 +34,7 @@ public PrintTaskDefinitionItemRequestBuilder(Dictionary pathPara public PrintTaskDefinitionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/taskDefinitions/{printTaskDefinition%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a taskDefinition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + /// Delete a taskDefinition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Get details about a task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + /// Get details about a task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, PrintTaskDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update a task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + /// Update a task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(PrintTaskDefinition body, Acti return await RequestAdapter.SendAsync(requestInfo, PrintTaskDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a taskDefinition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + /// Delete a taskDefinition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get details about a task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + /// Get details about a task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update a task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + /// Update a task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public PrintTaskDefinitionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get details about a task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + /// Get details about a task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. /// public class PrintTaskDefinitionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/Tasks/Item/PrintTaskItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/Tasks/Item/PrintTaskItemRequestBuilder.cs index e0d1b624d2b..889e93f1be4 100644 --- a/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/Tasks/Item/PrintTaskItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/Tasks/Item/PrintTaskItemRequestBuilder.cs @@ -58,7 +58,7 @@ public async Task DeleteAsync(Action - /// Get details about a print task. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + /// Get details about a print task. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -78,7 +78,7 @@ public async Task GetAsync(Action(requestInfo, PrintTask.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update a print task. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + /// Update a print task. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -124,7 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get details about a print task. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + /// Get details about a print task. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -150,7 +150,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update a print task. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + /// Update a print task. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -201,7 +201,7 @@ public PrintTaskItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get details about a print task. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + /// Get details about a print task. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. /// public class PrintTaskItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/Tasks/TasksRequestBuilder.cs index 84f59224e03..8de3a646a41 100644 --- a/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/Tasks/TasksRequestBuilder.cs @@ -42,7 +42,7 @@ public TasksRequestBuilder(Dictionary pathParameters, IRequestAd public TasksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/taskDefinitions/{printTaskDefinition%2Did}/tasks{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of tasks associated with a task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + /// Retrieve a list of tasks associated with a task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(PrintTask body, Action(requestInfo, PrintTask.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of tasks associated with a task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + /// Retrieve a list of tasks associated with a task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public TasksRequestBuilder WithUrl(string rawUrl) { return new TasksRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of tasks associated with a task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + /// Retrieve a list of tasks associated with a task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. /// public class TasksRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Print/TaskDefinitions/TaskDefinitionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/TaskDefinitions/TaskDefinitionsRequestBuilder.cs index 0aa53f96b3b..77244a273b0 100644 --- a/src/Microsoft.Graph/Generated/Print/TaskDefinitions/TaskDefinitionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/TaskDefinitions/TaskDefinitionsRequestBuilder.cs @@ -42,7 +42,7 @@ public TaskDefinitionsRequestBuilder(Dictionary pathParameters, public TaskDefinitionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/taskDefinitions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of task definitions that the requesting app defined in the tenant. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + /// Retrieve a list of task definitions that the requesting app defined in the tenant. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, PrintTaskDefinitionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + /// Create a new task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(PrintTaskDefinition body, Actio return await RequestAdapter.SendAsync(requestInfo, PrintTaskDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of task definitions that the requesting app defined in the tenant. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + /// Retrieve a list of task definitions that the requesting app defined in the tenant. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + /// Create a new task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public TaskDefinitionsRequestBuilder WithUrl(string rawUrl) { return new TaskDefinitionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of task definitions that the requesting app defined in the tenant. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. + /// Retrieve a list of task definitions that the requesting app defined in the tenant. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. This API is supported in the following national cloud deployments. /// public class TaskDefinitionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..52276018873 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,129 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Privacy.SubjectRightsRequests.Item.Approvers.Item.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers/{user%2Did}/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers/{user%2Did}/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..df9fd78cfc1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,175 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Privacy.SubjectRightsRequests.Item.Approvers.Item.ServiceProvisioningErrors.Count; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Privacy.SubjectRightsRequests.Item.Approvers.Item.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \privacy\subjectRightsRequests\{subjectRightsRequest-id}\approvers\{user-id}\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers/{user%2Did}/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers/{user%2Did}/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.cs index 3c29a401fed..d4d4aac0e38 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.cs @@ -2,6 +2,7 @@ using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Graph.Privacy.SubjectRightsRequests.Item.Approvers.Item.MailboxSettings; +using Microsoft.Graph.Privacy.SubjectRightsRequests.Item.Approvers.Item.ServiceProvisioningErrors; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -20,6 +21,11 @@ public class UserItemRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new UserItemRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..dc30076fb2b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,129 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Privacy.SubjectRightsRequests.Item.Collaborators.Item.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators/{user%2Did}/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators/{user%2Did}/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..7a66314b4e8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,175 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Privacy.SubjectRightsRequests.Item.Collaborators.Item.ServiceProvisioningErrors.Count; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Privacy.SubjectRightsRequests.Item.Collaborators.Item.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \privacy\subjectRightsRequests\{subjectRightsRequest-id}\collaborators\{user-id}\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators/{user%2Did}/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators/{user%2Did}/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.cs index 77f9ac9ef31..6fb21f84993 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.cs @@ -2,6 +2,7 @@ using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Graph.Privacy.SubjectRightsRequests.Item.Collaborators.Item.MailboxSettings; +using Microsoft.Graph.Privacy.SubjectRightsRequests.Item.Collaborators.Item.ServiceProvisioningErrors; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -20,6 +21,11 @@ public class UserItemRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new UserItemRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Notes/NotesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Notes/NotesRequestBuilder.cs index 0df57dcc240..76e2b760873 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Notes/NotesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Notes/NotesRequestBuilder.cs @@ -44,7 +44,7 @@ public NotesRequestBuilder(Dictionary pathParameters, IRequestAd public NotesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/notes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of authored notes assoicated with a subject rights request. + /// Get the list of authored notes assoicated with a subject rights request. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -65,7 +65,7 @@ public async Task GetAsync(Action(requestInfo, AuthoredNoteCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new authoredNote object. + /// Create a new authoredNote object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -88,7 +88,7 @@ public async Task PostAsync(AuthoredNote body, Action(requestInfo, AuthoredNote.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of authored notes assoicated with a subject rights request. + /// Get the list of authored notes assoicated with a subject rights request. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new authoredNote object. + /// Create a new authoredNote object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -152,7 +152,7 @@ public NotesRequestBuilder WithUrl(string rawUrl) { return new NotesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of authored notes assoicated with a subject rights request. + /// Get the list of authored notes assoicated with a subject rights request. This API is supported in the following national cloud deployments. /// public class NotesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/SubjectRightsRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/SubjectRightsRequestItemRequestBuilder.cs index 4eba06a7599..193f978612e 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/SubjectRightsRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/SubjectRightsRequestItemRequestBuilder.cs @@ -85,7 +85,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a subjectRightsRequest object. + /// Read the properties and relationships of a subjectRightsRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -106,7 +106,7 @@ public async Task GetAsync(Action(requestInfo, SubjectRightsRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a subjectRightsRequest object. + /// Update the properties of a subjectRightsRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -154,7 +154,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a subjectRightsRequest object. + /// Read the properties and relationships of a subjectRightsRequest object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] @@ -181,7 +181,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a subjectRightsRequest object. + /// Update the properties of a subjectRightsRequest object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -234,7 +234,7 @@ public SubjectRightsRequestItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a subjectRightsRequest object. + /// Read the properties and relationships of a subjectRightsRequest object. This API is supported in the following national cloud deployments. /// public class SubjectRightsRequestItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/SubjectRightsRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/SubjectRightsRequestsRequestBuilder.cs index db18636d8bc..62869eed4e0 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/SubjectRightsRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/SubjectRightsRequestsRequestBuilder.cs @@ -44,7 +44,7 @@ public SubjectRightsRequestsRequestBuilder(Dictionary pathParame public SubjectRightsRequestsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/privacy/subjectRightsRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of subjectRightsRequest objects and their properties. + /// Get a list of subjectRightsRequest objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -65,7 +65,7 @@ public async Task GetAsync(Action(requestInfo, SubjectRightsRequestCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new subjectRightsRequest object. + /// Create a new subjectRightsRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -88,7 +88,7 @@ public async Task PostAsync(SubjectRightsRequest body, Act return await RequestAdapter.SendAsync(requestInfo, SubjectRightsRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of subjectRightsRequest objects and their properties. + /// Get a list of subjectRightsRequest objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new subjectRightsRequest object. + /// Create a new subjectRightsRequest object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -152,7 +152,7 @@ public SubjectRightsRequestsRequestBuilder WithUrl(string rawUrl) { return new SubjectRightsRequestsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of subjectRightsRequest objects and their properties. + /// Get a list of subjectRightsRequest objects and their properties. This API is supported in the following national cloud deployments. /// public class SubjectRightsRequestsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UserRegistrationDetails/Item/UserRegistrationDetailsItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UserRegistrationDetails/Item/UserRegistrationDetailsItemRequestBuilder.cs index 0312498f0a5..f654dae21e3 100644 --- a/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UserRegistrationDetails/Item/UserRegistrationDetailsItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UserRegistrationDetails/Item/UserRegistrationDetailsItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a userRegistrationDetails object. + /// Read the properties and relationships of a userRegistrationDetails object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a userRegistrationDetails object. + /// Read the properties and relationships of a userRegistrationDetails object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public UserRegistrationDetailsItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a userRegistrationDetails object. + /// Read the properties and relationships of a userRegistrationDetails object. This API is supported in the following national cloud deployments. /// public class UserRegistrationDetailsItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UserRegistrationDetails/UserRegistrationDetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UserRegistrationDetails/UserRegistrationDetailsRequestBuilder.cs index 34f05fbb9e0..0a41aab6e34 100644 --- a/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UserRegistrationDetails/UserRegistrationDetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UserRegistrationDetails/UserRegistrationDetailsRequestBuilder.cs @@ -42,7 +42,7 @@ public UserRegistrationDetailsRequestBuilder(Dictionary pathPara public UserRegistrationDetailsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/reports/authenticationMethods/userRegistrationDetails{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the authentication methods registered for a user as defined in the userRegistrationDetails object. + /// Get a list of the authentication methods registered for a user as defined in the userRegistrationDetails object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.UserRegistrationDetails.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the authentication methods registered for a user as defined in the userRegistrationDetails object. + /// Get a list of the authentication methods registered for a user as defined in the userRegistrationDetails object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public UserRegistrationDetailsRequestBuilder WithUrl(string rawUrl) { return new UserRegistrationDetailsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the authentication methods registered for a user as defined in the userRegistrationDetails object. + /// Get a list of the authentication methods registered for a user as defined in the userRegistrationDetails object. This API is supported in the following national cloud deployments. /// public class UserRegistrationDetailsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByPrinter/DailyPrintUsageByPrinterRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByPrinter/DailyPrintUsageByPrinterRequestBuilder.cs index 0d034a4c44a..4c75b55a723 100644 --- a/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByPrinter/DailyPrintUsageByPrinterRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByPrinter/DailyPrintUsageByPrinterRequestBuilder.cs @@ -42,7 +42,7 @@ public DailyPrintUsageByPrinterRequestBuilder(Dictionary pathPar public DailyPrintUsageByPrinterRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/reports/dailyPrintUsageByPrinter{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of daily print usage summaries, grouped by printer. + /// Retrieve a list of daily print usage summaries, grouped by printer. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(PrintUsageByPrinter body, Actio return await RequestAdapter.SendAsync(requestInfo, PrintUsageByPrinter.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of daily print usage summaries, grouped by printer. + /// Retrieve a list of daily print usage summaries, grouped by printer. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public DailyPrintUsageByPrinterRequestBuilder WithUrl(string rawUrl) { return new DailyPrintUsageByPrinterRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of daily print usage summaries, grouped by printer. + /// Retrieve a list of daily print usage summaries, grouped by printer. This API is supported in the following national cloud deployments. /// public class DailyPrintUsageByPrinterRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByPrinter/Item/PrintUsageByPrinterItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByPrinter/Item/PrintUsageByPrinterItemRequestBuilder.cs index 719b88aa41f..6dc2e818b91 100644 --- a/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByPrinter/Item/PrintUsageByPrinterItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByPrinter/Item/PrintUsageByPrinterItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve a usage summary for a printer for a particular time period. For descriptions of each of the endpoints, see printUsageByPrinter. + /// Retrieve a usage summary for a printer for a particular time period. For descriptions of each of the endpoints, see printUsageByPrinter. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a usage summary for a printer for a particular time period. For descriptions of each of the endpoints, see printUsageByPrinter. + /// Retrieve a usage summary for a printer for a particular time period. For descriptions of each of the endpoints, see printUsageByPrinter. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public PrintUsageByPrinterItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a usage summary for a printer for a particular time period. For descriptions of each of the endpoints, see printUsageByPrinter. + /// Retrieve a usage summary for a printer for a particular time period. For descriptions of each of the endpoints, see printUsageByPrinter. This API is supported in the following national cloud deployments. /// public class PrintUsageByPrinterItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByUser/DailyPrintUsageByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByUser/DailyPrintUsageByUserRequestBuilder.cs index b7a504e201f..c3af61d6589 100644 --- a/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByUser/DailyPrintUsageByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByUser/DailyPrintUsageByUserRequestBuilder.cs @@ -42,7 +42,7 @@ public DailyPrintUsageByUserRequestBuilder(Dictionary pathParame public DailyPrintUsageByUserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/reports/dailyPrintUsageByUser{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of daily print usage summaries, grouped by user. + /// Retrieve a list of daily print usage summaries, grouped by user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(PrintUsageByUser body, Action(requestInfo, PrintUsageByUser.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of daily print usage summaries, grouped by user. + /// Retrieve a list of daily print usage summaries, grouped by user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public DailyPrintUsageByUserRequestBuilder WithUrl(string rawUrl) { return new DailyPrintUsageByUserRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of daily print usage summaries, grouped by user. + /// Retrieve a list of daily print usage summaries, grouped by user. This API is supported in the following national cloud deployments. /// public class DailyPrintUsageByUserRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByUser/Item/PrintUsageByUserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByUser/Item/PrintUsageByUserItemRequestBuilder.cs index 53624e40d72..4e7299102fc 100644 --- a/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByUser/Item/PrintUsageByUserItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByUser/Item/PrintUsageByUserItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve a user's usage summary for a particular time period. For descriptions of each endpoint, see printUsageByUser. + /// Retrieve a user's usage summary for a particular time period. For descriptions of each endpoint, see printUsageByUser. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a user's usage summary for a particular time period. For descriptions of each endpoint, see printUsageByUser. + /// Retrieve a user's usage summary for a particular time period. For descriptions of each endpoint, see printUsageByUser. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public PrintUsageByUserItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a user's usage summary for a particular time period. For descriptions of each endpoint, see printUsageByUser. + /// Retrieve a user's usage summary for a particular time period. For descriptions of each endpoint, see printUsageByUser. This API is supported in the following national cloud deployments. /// public class PrintUsageByUserItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Reports/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse.cs b/src/Microsoft.Graph/Generated/Reports/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse.cs new file mode 100644 index 00000000000..8a32d1d5a1a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Reports/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Reports.GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime { + public class GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ArchivedPrintJob.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Reports/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs index 43b008f47ec..5bebd9c38d4 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs @@ -39,6 +39,26 @@ public GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeReque /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getGroupArchivedPrintJobs + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Reports/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeResponse.cs b/src/Microsoft.Graph/Generated/Reports/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeResponse.cs index 30e58c45af0..dadd3896f89 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeResponse.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Reports.GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime { - public class GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse instead.")] + public class GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeResponse : GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ArchivedPrintJob.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Reports/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeGetResponse.cs b/src/Microsoft.Graph/Generated/Reports/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeGetResponse.cs new file mode 100644 index 00000000000..2f66ef32673 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Reports/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Reports.GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime { + public class GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ArchivedPrintJob.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Reports/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs index 3153697704e..503547b4cc8 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs @@ -39,6 +39,26 @@ public GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeR /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getPrinterArchivedPrintJobs + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Reports/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeResponse.cs b/src/Microsoft.Graph/Generated/Reports/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeResponse.cs index 66c4a15778d..dd1a11185b1 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeResponse.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Reports.GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime { - public class GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeGetResponse instead.")] + public class GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeResponse : GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ArchivedPrintJob.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Reports/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeGetResponse.cs b/src/Microsoft.Graph/Generated/Reports/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeGetResponse.cs new file mode 100644 index 00000000000..c54583cacd0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Reports/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Reports.GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime { + public class GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ArchivedPrintJob.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Reports/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs index f62250d7d1c..7e7dec06b13 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs @@ -39,6 +39,26 @@ public GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeRequest /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getUserArchivedPrintJobs + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Reports/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeResponse.cs b/src/Microsoft.Graph/Generated/Reports/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeResponse.cs index e3c4bd7b651..1f5222c0067 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeResponse.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Reports.GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime { - public class GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeGetResponse instead.")] + public class GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeResponse : GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ArchivedPrintJob.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Reports/MonthlyPrintUsageByPrinter/MonthlyPrintUsageByPrinterRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/MonthlyPrintUsageByPrinter/MonthlyPrintUsageByPrinterRequestBuilder.cs index b7f3135e232..a3fba31757e 100644 --- a/src/Microsoft.Graph/Generated/Reports/MonthlyPrintUsageByPrinter/MonthlyPrintUsageByPrinterRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/MonthlyPrintUsageByPrinter/MonthlyPrintUsageByPrinterRequestBuilder.cs @@ -42,7 +42,7 @@ public MonthlyPrintUsageByPrinterRequestBuilder(Dictionary pathP public MonthlyPrintUsageByPrinterRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/reports/monthlyPrintUsageByPrinter{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of monthly print usage summaries, grouped by printer. + /// Retrieve a list of monthly print usage summaries, grouped by printer. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(PrintUsageByPrinter body, Actio return await RequestAdapter.SendAsync(requestInfo, PrintUsageByPrinter.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of monthly print usage summaries, grouped by printer. + /// Retrieve a list of monthly print usage summaries, grouped by printer. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public MonthlyPrintUsageByPrinterRequestBuilder WithUrl(string rawUrl) { return new MonthlyPrintUsageByPrinterRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of monthly print usage summaries, grouped by printer. + /// Retrieve a list of monthly print usage summaries, grouped by printer. This API is supported in the following national cloud deployments. /// public class MonthlyPrintUsageByPrinterRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Reports/MonthlyPrintUsageByUser/MonthlyPrintUsageByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/MonthlyPrintUsageByUser/MonthlyPrintUsageByUserRequestBuilder.cs index b8be6a7f7f2..c9dc60a2acc 100644 --- a/src/Microsoft.Graph/Generated/Reports/MonthlyPrintUsageByUser/MonthlyPrintUsageByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/MonthlyPrintUsageByUser/MonthlyPrintUsageByUserRequestBuilder.cs @@ -42,7 +42,7 @@ public MonthlyPrintUsageByUserRequestBuilder(Dictionary pathPara public MonthlyPrintUsageByUserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/reports/monthlyPrintUsageByUser{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of monthly print usage summaries, grouped by user. + /// Retrieve a list of monthly print usage summaries, grouped by user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(PrintUsageByUser body, Action(requestInfo, PrintUsageByUser.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of monthly print usage summaries, grouped by user. + /// Retrieve a list of monthly print usage summaries, grouped by user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public MonthlyPrintUsageByUserRequestBuilder WithUrl(string rawUrl) { return new MonthlyPrintUsageByUserRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of monthly print usage summaries, grouped by user. + /// Retrieve a list of monthly print usage summaries, grouped by user. This API is supported in the following national cloud deployments. /// public class MonthlyPrintUsageByUserRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationRepeatOffenders/GetAttackSimulationRepeatOffendersGetResponse.cs b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationRepeatOffenders/GetAttackSimulationRepeatOffendersGetResponse.cs new file mode 100644 index 00000000000..eee36d33716 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationRepeatOffenders/GetAttackSimulationRepeatOffendersGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Reports.Security.GetAttackSimulationRepeatOffenders { + public class GetAttackSimulationRepeatOffendersGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAttackSimulationRepeatOffendersGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAttackSimulationRepeatOffendersGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(AttackSimulationRepeatOffender.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationRepeatOffenders/GetAttackSimulationRepeatOffendersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationRepeatOffenders/GetAttackSimulationRepeatOffendersRequestBuilder.cs index 2ad4f7694de..7a0d69f3dec 100644 --- a/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationRepeatOffenders/GetAttackSimulationRepeatOffendersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationRepeatOffenders/GetAttackSimulationRepeatOffendersRequestBuilder.cs @@ -33,6 +33,26 @@ public GetAttackSimulationRepeatOffendersRequestBuilder(string rawUrl, IRequestA /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetAttackSimulationRepeatOffendersGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetAttackSimulationRepeatOffendersGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAttackSimulationRepeatOffendersGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getAttackSimulationRepeatOffenders + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetAttackSimulationRepeatOffendersGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationRepeatOffenders/GetAttackSimulationRepeatOffendersResponse.cs b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationRepeatOffenders/GetAttackSimulationRepeatOffendersResponse.cs index f5a8a3bbbdd..444f00d6c5e 100644 --- a/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationRepeatOffenders/GetAttackSimulationRepeatOffendersResponse.cs +++ b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationRepeatOffenders/GetAttackSimulationRepeatOffendersResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Reports.Security.GetAttackSimulationRepeatOffenders { - public class GetAttackSimulationRepeatOffendersResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAttackSimulationRepeatOffendersGetResponse instead.")] + public class GetAttackSimulationRepeatOffendersResponse : GetAttackSimulationRepeatOffendersGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAttackSimulationRepeatOffendersResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(AttackSimulationRepeatOffender.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationSimulationUserCoverage/GetAttackSimulationSimulationUserCoverageGetResponse.cs b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationSimulationUserCoverage/GetAttackSimulationSimulationUserCoverageGetResponse.cs new file mode 100644 index 00000000000..5e893930256 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationSimulationUserCoverage/GetAttackSimulationSimulationUserCoverageGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Reports.Security.GetAttackSimulationSimulationUserCoverage { + public class GetAttackSimulationSimulationUserCoverageGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAttackSimulationSimulationUserCoverageGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAttackSimulationSimulationUserCoverageGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(AttackSimulationSimulationUserCoverage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationSimulationUserCoverage/GetAttackSimulationSimulationUserCoverageRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationSimulationUserCoverage/GetAttackSimulationSimulationUserCoverageRequestBuilder.cs index 901444ac640..9d59dcfa8cc 100644 --- a/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationSimulationUserCoverage/GetAttackSimulationSimulationUserCoverageRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationSimulationUserCoverage/GetAttackSimulationSimulationUserCoverageRequestBuilder.cs @@ -33,6 +33,26 @@ public GetAttackSimulationSimulationUserCoverageRequestBuilder(string rawUrl, IR /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetAttackSimulationSimulationUserCoverageGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetAttackSimulationSimulationUserCoverageGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAttackSimulationSimulationUserCoverageGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getAttackSimulationSimulationUserCoverage + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetAttackSimulationSimulationUserCoverageGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationSimulationUserCoverage/GetAttackSimulationSimulationUserCoverageResponse.cs b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationSimulationUserCoverage/GetAttackSimulationSimulationUserCoverageResponse.cs index c9a810f02a0..4deeefa90fb 100644 --- a/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationSimulationUserCoverage/GetAttackSimulationSimulationUserCoverageResponse.cs +++ b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationSimulationUserCoverage/GetAttackSimulationSimulationUserCoverageResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Reports.Security.GetAttackSimulationSimulationUserCoverage { - public class GetAttackSimulationSimulationUserCoverageResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAttackSimulationSimulationUserCoverageGetResponse instead.")] + public class GetAttackSimulationSimulationUserCoverageResponse : GetAttackSimulationSimulationUserCoverageGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAttackSimulationSimulationUserCoverageResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(AttackSimulationSimulationUserCoverage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationTrainingUserCoverage/GetAttackSimulationTrainingUserCoverageGetResponse.cs b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationTrainingUserCoverage/GetAttackSimulationTrainingUserCoverageGetResponse.cs new file mode 100644 index 00000000000..1929f5abfc6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationTrainingUserCoverage/GetAttackSimulationTrainingUserCoverageGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Reports.Security.GetAttackSimulationTrainingUserCoverage { + public class GetAttackSimulationTrainingUserCoverageGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAttackSimulationTrainingUserCoverageGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAttackSimulationTrainingUserCoverageGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(AttackSimulationTrainingUserCoverage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationTrainingUserCoverage/GetAttackSimulationTrainingUserCoverageRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationTrainingUserCoverage/GetAttackSimulationTrainingUserCoverageRequestBuilder.cs index d81a52ebf2d..6839c78e7e0 100644 --- a/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationTrainingUserCoverage/GetAttackSimulationTrainingUserCoverageRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationTrainingUserCoverage/GetAttackSimulationTrainingUserCoverageRequestBuilder.cs @@ -33,6 +33,26 @@ public GetAttackSimulationTrainingUserCoverageRequestBuilder(string rawUrl, IReq /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetAttackSimulationTrainingUserCoverageGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetAttackSimulationTrainingUserCoverageGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAttackSimulationTrainingUserCoverageGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getAttackSimulationTrainingUserCoverage + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetAttackSimulationTrainingUserCoverageGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationTrainingUserCoverage/GetAttackSimulationTrainingUserCoverageResponse.cs b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationTrainingUserCoverage/GetAttackSimulationTrainingUserCoverageResponse.cs index 0755ae0ce50..a6c9bd32e75 100644 --- a/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationTrainingUserCoverage/GetAttackSimulationTrainingUserCoverageResponse.cs +++ b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationTrainingUserCoverage/GetAttackSimulationTrainingUserCoverageResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Reports.Security.GetAttackSimulationTrainingUserCoverage { - public class GetAttackSimulationTrainingUserCoverageResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAttackSimulationTrainingUserCoverageGetResponse instead.")] + public class GetAttackSimulationTrainingUserCoverageResponse : GetAttackSimulationTrainingUserCoverageGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAttackSimulationTrainingUserCoverageResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(AttackSimulationTrainingUserCoverage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..55e4dbe05dc --- /dev/null +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.RoleManagement.DirectoryNamespace.RoleAssignmentScheduleInstances.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleAssignmentScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index ec854652d42..0c35b31bca3 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -35,6 +35,26 @@ public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter re /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index 821165560f4..35a6f2d0ad6 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.RoleManagement.DirectoryNamespace.RoleAssignmentScheduleInstances.FilterByCurrentUserWithOn { - public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use filterByCurrentUserWithOnGetResponse instead.")] + public class FilterByCurrentUserWithOnResponse : FilterByCurrentUserWithOnGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleAssignmentScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/Item/UnifiedRoleAssignmentScheduleInstanceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/Item/UnifiedRoleAssignmentScheduleInstanceItemRequestBuilder.cs index 701eb4bdbca..e5eafb90ffa 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/Item/UnifiedRoleAssignmentScheduleInstanceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/Item/UnifiedRoleAssignmentScheduleInstanceItemRequestBuilder.cs @@ -73,7 +73,7 @@ public async Task DeleteAsync(Action - /// Get the instance of an active role assignment. + /// Get the instance of an active role assignment. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -138,7 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the instance of an active role assignment. + /// Get the instance of an active role assignment. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -215,7 +215,7 @@ public UnifiedRoleAssignmentScheduleInstanceItemRequestBuilderDeleteRequestConfi } } /// - /// Get the instance of an active role assignment. + /// Get the instance of an active role assignment. This API is supported in the following national cloud deployments. /// public class UnifiedRoleAssignmentScheduleInstanceItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/RoleAssignmentScheduleInstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/RoleAssignmentScheduleInstancesRequestBuilder.cs index 60517bd3390..b5c0779c949 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/RoleAssignmentScheduleInstancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/RoleAssignmentScheduleInstancesRequestBuilder.cs @@ -51,7 +51,7 @@ public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); } /// - /// Get the instances of active role assignments in your tenant. The active assignments include those made through assignments and activation requests, and directly through the role assignments API. + /// Get the instances of active role assignments in your tenant. The active assignments include those made through assignments and activation requests, and directly through the role assignments API. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public async Task PostAsync(UnifiedRoleAs return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleAssignmentScheduleInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the instances of active role assignments in your tenant. The active assignments include those made through assignments and activation requests, and directly through the role assignments API. + /// Get the instances of active role assignments in your tenant. The active assignments include those made through assignments and activation requests, and directly through the role assignments API. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -153,7 +153,7 @@ public RoleAssignmentScheduleInstancesRequestBuilder WithUrl(string rawUrl) { return new RoleAssignmentScheduleInstancesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the instances of active role assignments in your tenant. The active assignments include those made through assignments and activation requests, and directly through the role assignments API. + /// Get the instances of active role assignments in your tenant. The active assignments include those made through assignments and activation requests, and directly through the role assignments API. This API is supported in the following national cloud deployments. /// public class RoleAssignmentScheduleInstancesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..65354249de5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.RoleManagement.DirectoryNamespace.RoleAssignmentScheduleRequests.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleAssignmentScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index 1286b1203e8..3e40d3d2ed7 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -35,6 +35,26 @@ public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter re /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index 4626c32af54..8479791b65c 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.RoleManagement.DirectoryNamespace.RoleAssignmentScheduleRequests.FilterByCurrentUserWithOn { - public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use filterByCurrentUserWithOnGetResponse instead.")] + public class FilterByCurrentUserWithOnResponse : FilterByCurrentUserWithOnGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleAssignmentScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.cs index 88a9e9befa2..df5606dd11c 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/roleManagement/directory/roleAssignmentScheduleRequests/{unifiedRoleAssignmentScheduleRequest%2Did}/cancel", rawUrl) { } /// - /// Immediately cancel a unifiedRoleAssignmentScheduleRequest object that is in a Granted status, and have the system automatically delete the canceled request after 30 days. After calling this action, the status of the canceled unifiedRoleAssignmentScheduleRequest changes to Canceled. + /// Immediately cancel a unifiedRoleAssignmentScheduleRequest object that is in a Granted status, and have the system automatically delete the canceled request after 30 days. After calling this action, the status of the canceled unifiedRoleAssignmentScheduleRequest changes to Canceled. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Immediately cancel a unifiedRoleAssignmentScheduleRequest object that is in a Granted status, and have the system automatically delete the canceled request after 30 days. After calling this action, the status of the canceled unifiedRoleAssignmentScheduleRequest changes to Canceled. + /// Immediately cancel a unifiedRoleAssignmentScheduleRequest object that is in a Granted status, and have the system automatically delete the canceled request after 30 days. After calling this action, the status of the canceled unifiedRoleAssignmentScheduleRequest changes to Canceled. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/UnifiedRoleAssignmentScheduleRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/UnifiedRoleAssignmentScheduleRequestItemRequestBuilder.cs index d256f1f3f0a..0a87ff678a3 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/UnifiedRoleAssignmentScheduleRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/UnifiedRoleAssignmentScheduleRequestItemRequestBuilder.cs @@ -83,7 +83,7 @@ public async Task DeleteAsync(Action - /// In PIM, read the details of a request for an active and persistent role assignment made through the unifiedRoleAssignmentScheduleRequest object. + /// In PIM, read the details of a request for an active and persistent role assignment made through the unifiedRoleAssignmentScheduleRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -148,7 +148,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// In PIM, read the details of a request for an active and persistent role assignment made through the unifiedRoleAssignmentScheduleRequest object. + /// In PIM, read the details of a request for an active and persistent role assignment made through the unifiedRoleAssignmentScheduleRequest object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -225,7 +225,7 @@ public UnifiedRoleAssignmentScheduleRequestItemRequestBuilderDeleteRequestConfig } } /// - /// In PIM, read the details of a request for an active and persistent role assignment made through the unifiedRoleAssignmentScheduleRequest object. + /// In PIM, read the details of a request for an active and persistent role assignment made through the unifiedRoleAssignmentScheduleRequest object. This API is supported in the following national cloud deployments. /// public class UnifiedRoleAssignmentScheduleRequestItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/RoleAssignmentScheduleRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/RoleAssignmentScheduleRequestsRequestBuilder.cs index 7317aff6f8e..55f3fe1dd0e 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/RoleAssignmentScheduleRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/RoleAssignmentScheduleRequestsRequestBuilder.cs @@ -51,7 +51,7 @@ public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); } /// - /// Retrieve the requests for active role assignments to principals. The active assignments include those made through assignments and activation requests, and directly through the role assignments API. The role assignments can be permanently active with or without an expiry date, or temporarily active after user activation of eligible assignments. + /// Retrieve the requests for active role assignments to principals. The active assignments include those made through assignments and activation requests, and directly through the role assignments API. The role assignments can be permanently active with or without an expiry date, or temporarily active after user activation of eligible assignments. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -71,7 +71,7 @@ public async Task GetAsy return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleAssignmentScheduleRequestCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// In PIM, carry out the following operations through the unifiedRoleAssignmentScheduleRequest object:+ Request active and persistent role assignments for a principal, with or without expiry dates.+ Activate, deactivate, extend, or renew an eligible role assignment for a principal. To call this API to update, renew, and extend assignments for yourself, you must have multi-factor authentication (MFA) enforced, and running the query in a session in which they were challenged for MFA. See Enable per-user Azure AD Multi-Factor Authentication to secure sign-in events. + /// In PIM, carry out the following operations through the unifiedRoleAssignmentScheduleRequest object: To call this API to update, renew, and extend assignments for yourself, you must have multi-factor authentication (MFA) enforced, and running the query in a session in which they were challenged for MFA. See Enable per-user Azure AD Multi-Factor Authentication to secure sign-in events. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -93,7 +93,7 @@ public async Task PostAsync(UnifiedRoleAss return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleAssignmentScheduleRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the requests for active role assignments to principals. The active assignments include those made through assignments and activation requests, and directly through the role assignments API. The role assignments can be permanently active with or without an expiry date, or temporarily active after user activation of eligible assignments. + /// Retrieve the requests for active role assignments to principals. The active assignments include those made through assignments and activation requests, and directly through the role assignments API. The role assignments can be permanently active with or without an expiry date, or temporarily active after user activation of eligible assignments. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -119,7 +119,7 @@ public RequestInformation ToGetRequestInformation(Action - /// In PIM, carry out the following operations through the unifiedRoleAssignmentScheduleRequest object:+ Request active and persistent role assignments for a principal, with or without expiry dates.+ Activate, deactivate, extend, or renew an eligible role assignment for a principal. To call this API to update, renew, and extend assignments for yourself, you must have multi-factor authentication (MFA) enforced, and running the query in a session in which they were challenged for MFA. See Enable per-user Azure AD Multi-Factor Authentication to secure sign-in events. + /// In PIM, carry out the following operations through the unifiedRoleAssignmentScheduleRequest object: To call this API to update, renew, and extend assignments for yourself, you must have multi-factor authentication (MFA) enforced, and running the query in a session in which they were challenged for MFA. See Enable per-user Azure AD Multi-Factor Authentication to secure sign-in events. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -154,7 +154,7 @@ public RoleAssignmentScheduleRequestsRequestBuilder WithUrl(string rawUrl) { return new RoleAssignmentScheduleRequestsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the requests for active role assignments to principals. The active assignments include those made through assignments and activation requests, and directly through the role assignments API. The role assignments can be permanently active with or without an expiry date, or temporarily active after user activation of eligible assignments. + /// Retrieve the requests for active role assignments to principals. The active assignments include those made through assignments and activation requests, and directly through the role assignments API. The role assignments can be permanently active with or without an expiry date, or temporarily active after user activation of eligible assignments. This API is supported in the following national cloud deployments. /// public class RoleAssignmentScheduleRequestsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..f9bc9dd8e9e --- /dev/null +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.RoleManagement.DirectoryNamespace.RoleAssignmentSchedules.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleAssignmentSchedule.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index 024c03cdb82..7ff29a0c119 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -35,6 +35,26 @@ public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter re /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index 3d16d3977d5..64125d6c78c 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.RoleManagement.DirectoryNamespace.RoleAssignmentSchedules.FilterByCurrentUserWithOn { - public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use filterByCurrentUserWithOnGetResponse instead.")] + public class FilterByCurrentUserWithOnResponse : FilterByCurrentUserWithOnGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleAssignmentSchedule.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/Item/UnifiedRoleAssignmentScheduleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/Item/UnifiedRoleAssignmentScheduleItemRequestBuilder.cs index 091fde98bed..1b87a668f1e 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/Item/UnifiedRoleAssignmentScheduleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/Item/UnifiedRoleAssignmentScheduleItemRequestBuilder.cs @@ -73,7 +73,7 @@ public async Task DeleteAsync(Action - /// Retrieve the schedule for an active role assignment operation. + /// Retrieve the schedule for an active role assignment operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -138,7 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the schedule for an active role assignment operation. + /// Retrieve the schedule for an active role assignment operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -215,7 +215,7 @@ public UnifiedRoleAssignmentScheduleItemRequestBuilderDeleteRequestConfiguration } } /// - /// Retrieve the schedule for an active role assignment operation. + /// Retrieve the schedule for an active role assignment operation. This API is supported in the following national cloud deployments. /// public class UnifiedRoleAssignmentScheduleItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/RoleAssignmentSchedulesRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/RoleAssignmentSchedulesRequestBuilder.cs index ab79d50185b..753d27194ef 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/RoleAssignmentSchedulesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/RoleAssignmentSchedulesRequestBuilder.cs @@ -51,7 +51,7 @@ public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); } /// - /// Get the schedules for active role assignment operations. + /// Get the schedules for active role assignment operations. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public async Task PostAsync(UnifiedRoleAssignment return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleAssignmentSchedule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the schedules for active role assignment operations. + /// Get the schedules for active role assignment operations. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -153,7 +153,7 @@ public RoleAssignmentSchedulesRequestBuilder WithUrl(string rawUrl) { return new RoleAssignmentSchedulesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the schedules for active role assignment operations. + /// Get the schedules for active role assignment operations. This API is supported in the following national cloud deployments. /// public class RoleAssignmentSchedulesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/Item/UnifiedRoleAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/Item/UnifiedRoleAssignmentItemRequestBuilder.cs index 5df2fa3fe10..3d4c0991481 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/Item/UnifiedRoleAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/Item/UnifiedRoleAssignmentItemRequestBuilder.cs @@ -49,7 +49,7 @@ public UnifiedRoleAssignmentItemRequestBuilder(Dictionary pathPa public UnifiedRoleAssignmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/roleManagement/directory/roleAssignments/{unifiedRoleAssignment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a unifiedRoleAssignment object. + /// Delete a unifiedRoleAssignment object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a unifiedRoleAssignment object. + /// Retrieve the properties and relationships of a unifiedRoleAssignment object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -110,7 +110,7 @@ public async Task PatchAsync(UnifiedRoleAssignment body, return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a unifiedRoleAssignment object. + /// Delete a unifiedRoleAssignment object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -134,7 +134,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a unifiedRoleAssignment object. + /// Retrieve the properties and relationships of a unifiedRoleAssignment object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -211,7 +211,7 @@ public UnifiedRoleAssignmentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a unifiedRoleAssignment object. + /// Retrieve the properties and relationships of a unifiedRoleAssignment object. This API is supported in the following national cloud deployments. /// public class UnifiedRoleAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/RoleAssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/RoleAssignmentsRequestBuilder.cs index 63d05645691..e45b87fd369 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/RoleAssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/RoleAssignmentsRequestBuilder.cs @@ -42,7 +42,7 @@ public RoleAssignmentsRequestBuilder(Dictionary pathParameters, public RoleAssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/roleManagement/directory/roleAssignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) + /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, UnifiedRoleAssignmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new unifiedRoleAssignment object. + /// Create a new unifiedRoleAssignment object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(UnifiedRoleAssignment body, A return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) + /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new unifiedRoleAssignment object. + /// Create a new unifiedRoleAssignment object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public RoleAssignmentsRequestBuilder WithUrl(string rawUrl) { return new RoleAssignmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) + /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is supported in the following national cloud deployments. /// public class RoleAssignmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleDefinitions/Item/UnifiedRoleDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleDefinitions/Item/UnifiedRoleDefinitionItemRequestBuilder.cs index d8d74c4ddd9..776a31a373e 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleDefinitions/Item/UnifiedRoleDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleDefinitions/Item/UnifiedRoleDefinitionItemRequestBuilder.cs @@ -34,7 +34,7 @@ public UnifiedRoleDefinitionItemRequestBuilder(Dictionary pathPa public UnifiedRoleDefinitionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/roleManagement/directory/roleDefinitions/{unifiedRoleDefinition%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a unifiedRoleDefinition object. You cannot delete built-in roles. This feature requires an Azure AD Premium P1 or P2 license. + /// Delete a unifiedRoleDefinition object. You can't delete built-in roles. This feature requires an Azure AD Premium P1 or P2 license. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a unifiedRoleDefinition object. The following role-based access control (RBAC) providers are currently supported: + /// Read the properties and relationships of a unifiedRoleDefinition object. The following role-based access control (RBAC) providers are currently supported: This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, UnifiedRoleDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a unifiedRoleDefinition object. You cannot update built-in roles. This feature requires an Azure AD Premium P1 or P2 license. + /// Update the properties of a unifiedRoleDefinition object. You cannot update built-in roles. This feature requires an Azure AD Premium P1 or P2 license. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(UnifiedRoleDefinition body, return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a unifiedRoleDefinition object. You cannot delete built-in roles. This feature requires an Azure AD Premium P1 or P2 license. + /// Delete a unifiedRoleDefinition object. You can't delete built-in roles. This feature requires an Azure AD Premium P1 or P2 license. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a unifiedRoleDefinition object. The following role-based access control (RBAC) providers are currently supported: + /// Read the properties and relationships of a unifiedRoleDefinition object. The following role-based access control (RBAC) providers are currently supported: This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a unifiedRoleDefinition object. You cannot update built-in roles. This feature requires an Azure AD Premium P1 or P2 license. + /// Update the properties of a unifiedRoleDefinition object. You cannot update built-in roles. This feature requires an Azure AD Premium P1 or P2 license. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public UnifiedRoleDefinitionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a unifiedRoleDefinition object. The following role-based access control (RBAC) providers are currently supported: + /// Read the properties and relationships of a unifiedRoleDefinition object. The following role-based access control (RBAC) providers are currently supported: This API is supported in the following national cloud deployments. /// public class UnifiedRoleDefinitionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleDefinitions/RoleDefinitionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleDefinitions/RoleDefinitionsRequestBuilder.cs index a879fa812db..1e44ff80495 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleDefinitions/RoleDefinitionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleDefinitions/RoleDefinitionsRequestBuilder.cs @@ -42,7 +42,7 @@ public RoleDefinitionsRequestBuilder(Dictionary pathParameters, public RoleDefinitionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/roleManagement/directory/roleDefinitions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) + /// Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, UnifiedRoleDefinitionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new custom unifiedRoleDefinition object. This feature requires an Azure AD Premium P1 or P2 license. + /// Create a new custom unifiedRoleDefinition object. This feature requires an Azure AD Premium P1 or P2 license. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(UnifiedRoleDefinition body, A return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) + /// Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new custom unifiedRoleDefinition object. This feature requires an Azure AD Premium P1 or P2 license. + /// Create a new custom unifiedRoleDefinition object. This feature requires an Azure AD Premium P1 or P2 license. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public RoleDefinitionsRequestBuilder WithUrl(string rawUrl) { return new RoleDefinitionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) + /// Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is supported in the following national cloud deployments. /// public class RoleDefinitionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..497e0ae8c48 --- /dev/null +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.RoleManagement.DirectoryNamespace.RoleEligibilityScheduleInstances.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleEligibilityScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index 871b5d64d52..c4a7e7329ee 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -35,6 +35,26 @@ public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter re /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index 73b0fac57d7..df66d0ec96a 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.RoleManagement.DirectoryNamespace.RoleEligibilityScheduleInstances.FilterByCurrentUserWithOn { - public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use filterByCurrentUserWithOnGetResponse instead.")] + public class FilterByCurrentUserWithOnResponse : FilterByCurrentUserWithOnGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleEligibilityScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/Item/UnifiedRoleEligibilityScheduleInstanceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/Item/UnifiedRoleEligibilityScheduleInstanceItemRequestBuilder.cs index ceea91cd3a1..ff60daba56b 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/Item/UnifiedRoleEligibilityScheduleInstanceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/Item/UnifiedRoleEligibilityScheduleInstanceItemRequestBuilder.cs @@ -68,7 +68,7 @@ public async Task DeleteAsync(Action - /// Get the instance of a role eligibility. + /// Get the instance of a role eligibility. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -133,7 +133,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the instance of a role eligibility. + /// Get the instance of a role eligibility. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -210,7 +210,7 @@ public UnifiedRoleEligibilityScheduleInstanceItemRequestBuilderDeleteRequestConf } } /// - /// Get the instance of a role eligibility. + /// Get the instance of a role eligibility. This API is supported in the following national cloud deployments. /// public class UnifiedRoleEligibilityScheduleInstanceItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/RoleEligibilityScheduleInstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/RoleEligibilityScheduleInstancesRequestBuilder.cs index e9c489aa606..a1b6947b128 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/RoleEligibilityScheduleInstancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/RoleEligibilityScheduleInstancesRequestBuilder.cs @@ -51,7 +51,7 @@ public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); } /// - /// Get the instances of role eligibilities. + /// Get the instances of role eligibilities. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public async Task PostAsync(UnifiedRoleE return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleEligibilityScheduleInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the instances of role eligibilities. + /// Get the instances of role eligibilities. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -153,7 +153,7 @@ public RoleEligibilityScheduleInstancesRequestBuilder WithUrl(string rawUrl) { return new RoleEligibilityScheduleInstancesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the instances of role eligibilities. + /// Get the instances of role eligibilities. This API is supported in the following national cloud deployments. /// public class RoleEligibilityScheduleInstancesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..89ed63c0c76 --- /dev/null +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.RoleManagement.DirectoryNamespace.RoleEligibilityScheduleRequests.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleEligibilityScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index e4e942c037c..551e302b615 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -35,6 +35,26 @@ public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter re /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index 0a7ab29f60e..720d321f202 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.RoleManagement.DirectoryNamespace.RoleEligibilityScheduleRequests.FilterByCurrentUserWithOn { - public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use filterByCurrentUserWithOnGetResponse instead.")] + public class FilterByCurrentUserWithOnResponse : FilterByCurrentUserWithOnGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleEligibilityScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.cs index 6eb973cdb6c..f5156e1ed7a 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/roleManagement/directory/roleEligibilityScheduleRequests/{unifiedRoleEligibilityScheduleRequest%2Did}/cancel", rawUrl) { } /// - /// Immediately cancel a unifiedRoleEligibilityScheduleRequest object whose status is Granted and have the system automatically delete the cancelled request after 30 days. After calling this action, the status of the cancelled unifiedRoleEligibilityScheduleRequest changes to Revoked. + /// Immediately cancel a unifiedRoleEligibilityScheduleRequest object whose status is Granted and have the system automatically delete the cancelled request after 30 days. After calling this action, the status of the cancelled unifiedRoleEligibilityScheduleRequest changes to Revoked. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Immediately cancel a unifiedRoleEligibilityScheduleRequest object whose status is Granted and have the system automatically delete the cancelled request after 30 days. After calling this action, the status of the cancelled unifiedRoleEligibilityScheduleRequest changes to Revoked. + /// Immediately cancel a unifiedRoleEligibilityScheduleRequest object whose status is Granted and have the system automatically delete the cancelled request after 30 days. After calling this action, the status of the cancelled unifiedRoleEligibilityScheduleRequest changes to Revoked. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/UnifiedRoleEligibilityScheduleRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/UnifiedRoleEligibilityScheduleRequestItemRequestBuilder.cs index 4688377cb76..7d5aa1c2962 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/UnifiedRoleEligibilityScheduleRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/UnifiedRoleEligibilityScheduleRequestItemRequestBuilder.cs @@ -78,7 +78,7 @@ public async Task DeleteAsync(Action - /// In PIM, read the details of a request for for a role eligibility request made through the unifiedRoleEligibilityScheduleRequest object. + /// In PIM, read the details of a request for for a role eligibility request made through the unifiedRoleEligibilityScheduleRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -143,7 +143,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// In PIM, read the details of a request for for a role eligibility request made through the unifiedRoleEligibilityScheduleRequest object. + /// In PIM, read the details of a request for for a role eligibility request made through the unifiedRoleEligibilityScheduleRequest object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -220,7 +220,7 @@ public UnifiedRoleEligibilityScheduleRequestItemRequestBuilderDeleteRequestConfi } } /// - /// In PIM, read the details of a request for for a role eligibility request made through the unifiedRoleEligibilityScheduleRequest object. + /// In PIM, read the details of a request for for a role eligibility request made through the unifiedRoleEligibilityScheduleRequest object. This API is supported in the following national cloud deployments. /// public class UnifiedRoleEligibilityScheduleRequestItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/RoleEligibilityScheduleRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/RoleEligibilityScheduleRequestsRequestBuilder.cs index 576f373816e..5753b91eac0 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/RoleEligibilityScheduleRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/RoleEligibilityScheduleRequestsRequestBuilder.cs @@ -51,7 +51,7 @@ public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); } /// - /// In PIM, retrieve the requests for role eligibilities for principals made through the unifiedRoleEligibilityScheduleRequest object. + /// In PIM, retrieve the requests for role eligibilities for principals made through the unifiedRoleEligibilityScheduleRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -71,7 +71,7 @@ public async Task GetAs return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleEligibilityScheduleRequestCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// In PIM, request for a role eligibility for a principal through the unifiedRoleEligibilityScheduleRequest object. This operation allows both admins and eligible users to add, revoke, or extend eligible assignments. + /// In PIM, request for a role eligibility for a principal through the unifiedRoleEligibilityScheduleRequest object. This operation allows both admins and eligible users to add, revoke, or extend eligible assignments. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -93,7 +93,7 @@ public async Task PostAsync(UnifiedRoleEl return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleEligibilityScheduleRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// In PIM, retrieve the requests for role eligibilities for principals made through the unifiedRoleEligibilityScheduleRequest object. + /// In PIM, retrieve the requests for role eligibilities for principals made through the unifiedRoleEligibilityScheduleRequest object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -119,7 +119,7 @@ public RequestInformation ToGetRequestInformation(Action - /// In PIM, request for a role eligibility for a principal through the unifiedRoleEligibilityScheduleRequest object. This operation allows both admins and eligible users to add, revoke, or extend eligible assignments. + /// In PIM, request for a role eligibility for a principal through the unifiedRoleEligibilityScheduleRequest object. This operation allows both admins and eligible users to add, revoke, or extend eligible assignments. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -154,7 +154,7 @@ public RoleEligibilityScheduleRequestsRequestBuilder WithUrl(string rawUrl) { return new RoleEligibilityScheduleRequestsRequestBuilder(rawUrl, RequestAdapter); } /// - /// In PIM, retrieve the requests for role eligibilities for principals made through the unifiedRoleEligibilityScheduleRequest object. + /// In PIM, retrieve the requests for role eligibilities for principals made through the unifiedRoleEligibilityScheduleRequest object. This API is supported in the following national cloud deployments. /// public class RoleEligibilityScheduleRequestsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..bc4d5710af5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.RoleManagement.DirectoryNamespace.RoleEligibilitySchedules.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleEligibilitySchedule.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index a48e2703ced..6103599f421 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -35,6 +35,26 @@ public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter re /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index 7e7cd16d06d..b779bd0ca74 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.RoleManagement.DirectoryNamespace.RoleEligibilitySchedules.FilterByCurrentUserWithOn { - public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use filterByCurrentUserWithOnGetResponse instead.")] + public class FilterByCurrentUserWithOnResponse : FilterByCurrentUserWithOnGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleEligibilitySchedule.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/Item/UnifiedRoleEligibilityScheduleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/Item/UnifiedRoleEligibilityScheduleItemRequestBuilder.cs index fba197a180f..9135093fc89 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/Item/UnifiedRoleEligibilityScheduleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/Item/UnifiedRoleEligibilityScheduleItemRequestBuilder.cs @@ -68,7 +68,7 @@ public async Task DeleteAsync(Action - /// Retrieve the schedule for a role eligibility operation. + /// Retrieve the schedule for a role eligibility operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -133,7 +133,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the schedule for a role eligibility operation. + /// Retrieve the schedule for a role eligibility operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -210,7 +210,7 @@ public UnifiedRoleEligibilityScheduleItemRequestBuilderDeleteRequestConfiguratio } } /// - /// Retrieve the schedule for a role eligibility operation. + /// Retrieve the schedule for a role eligibility operation. This API is supported in the following national cloud deployments. /// public class UnifiedRoleEligibilityScheduleItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/RoleEligibilitySchedulesRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/RoleEligibilitySchedulesRequestBuilder.cs index ad7af068f7f..ffe41a770cc 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/RoleEligibilitySchedulesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/RoleEligibilitySchedulesRequestBuilder.cs @@ -51,7 +51,7 @@ public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); } /// - /// Get the unifiedRoleEligibilitySchedule resources from the roleEligibilitySchedules navigation property. + /// Get the unifiedRoleEligibilitySchedule resources from the roleEligibilitySchedules navigation property. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public async Task PostAsync(UnifiedRoleEligibili return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleEligibilitySchedule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the unifiedRoleEligibilitySchedule resources from the roleEligibilitySchedules navigation property. + /// Get the unifiedRoleEligibilitySchedule resources from the roleEligibilitySchedules navigation property. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -153,7 +153,7 @@ public RoleEligibilitySchedulesRequestBuilder WithUrl(string rawUrl) { return new RoleEligibilitySchedulesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the unifiedRoleEligibilitySchedule resources from the roleEligibilitySchedules navigation property. + /// Get the unifiedRoleEligibilitySchedule resources from the roleEligibilitySchedules navigation property. This API is supported in the following national cloud deployments. /// public class RoleEligibilitySchedulesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..2927f4b7822 --- /dev/null +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.RoleManagement.EntitlementManagement.RoleAssignmentScheduleInstances.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleAssignmentScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index ef8a2958e4e..4ec0e23550e 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -35,6 +35,26 @@ public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter re /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index 2aa97bb7e17..825f3848d53 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.RoleManagement.EntitlementManagement.RoleAssignmentScheduleInstances.FilterByCurrentUserWithOn { - public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use filterByCurrentUserWithOnGetResponse instead.")] + public class FilterByCurrentUserWithOnResponse : FilterByCurrentUserWithOnGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleAssignmentScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/UnifiedRoleAssignmentScheduleInstanceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/UnifiedRoleAssignmentScheduleInstanceItemRequestBuilder.cs index d33d9ae628f..2fd4a80fb2c 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/UnifiedRoleAssignmentScheduleInstanceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/UnifiedRoleAssignmentScheduleInstanceItemRequestBuilder.cs @@ -73,7 +73,7 @@ public async Task DeleteAsync(Action - /// Get the instance of an active role assignment. + /// Get the instance of an active role assignment. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -138,7 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the instance of an active role assignment. + /// Get the instance of an active role assignment. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -215,7 +215,7 @@ public UnifiedRoleAssignmentScheduleInstanceItemRequestBuilderDeleteRequestConfi } } /// - /// Get the instance of an active role assignment. + /// Get the instance of an active role assignment. This API is supported in the following national cloud deployments. /// public class UnifiedRoleAssignmentScheduleInstanceItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/RoleAssignmentScheduleInstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/RoleAssignmentScheduleInstancesRequestBuilder.cs index 615c9255a88..5b41a57e691 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/RoleAssignmentScheduleInstancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/RoleAssignmentScheduleInstancesRequestBuilder.cs @@ -51,7 +51,7 @@ public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); } /// - /// Get the instances of active role assignments in your tenant. The active assignments include those made through assignments and activation requests, and directly through the role assignments API. + /// Get the instances of active role assignments in your tenant. The active assignments include those made through assignments and activation requests, and directly through the role assignments API. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public async Task PostAsync(UnifiedRoleAs return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleAssignmentScheduleInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the instances of active role assignments in your tenant. The active assignments include those made through assignments and activation requests, and directly through the role assignments API. + /// Get the instances of active role assignments in your tenant. The active assignments include those made through assignments and activation requests, and directly through the role assignments API. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -153,7 +153,7 @@ public RoleAssignmentScheduleInstancesRequestBuilder WithUrl(string rawUrl) { return new RoleAssignmentScheduleInstancesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the instances of active role assignments in your tenant. The active assignments include those made through assignments and activation requests, and directly through the role assignments API. + /// Get the instances of active role assignments in your tenant. The active assignments include those made through assignments and activation requests, and directly through the role assignments API. This API is supported in the following national cloud deployments. /// public class RoleAssignmentScheduleInstancesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..86fef80aba4 --- /dev/null +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.RoleManagement.EntitlementManagement.RoleAssignmentScheduleRequests.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleAssignmentScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index 8178dd9150f..37f555b00bf 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -35,6 +35,26 @@ public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter re /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index 8ec2a071035..69a8338be9c 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.RoleManagement.EntitlementManagement.RoleAssignmentScheduleRequests.FilterByCurrentUserWithOn { - public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use filterByCurrentUserWithOnGetResponse instead.")] + public class FilterByCurrentUserWithOnResponse : FilterByCurrentUserWithOnGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleAssignmentScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.cs index 2c7b70e42fe..82cd02180c0 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/roleManagement/entitlementManagement/roleAssignmentScheduleRequests/{unifiedRoleAssignmentScheduleRequest%2Did}/cancel", rawUrl) { } /// - /// Immediately cancel a unifiedRoleAssignmentScheduleRequest object that is in a Granted status, and have the system automatically delete the canceled request after 30 days. After calling this action, the status of the canceled unifiedRoleAssignmentScheduleRequest changes to Canceled. + /// Immediately cancel a unifiedRoleAssignmentScheduleRequest object that is in a Granted status, and have the system automatically delete the canceled request after 30 days. After calling this action, the status of the canceled unifiedRoleAssignmentScheduleRequest changes to Canceled. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Immediately cancel a unifiedRoleAssignmentScheduleRequest object that is in a Granted status, and have the system automatically delete the canceled request after 30 days. After calling this action, the status of the canceled unifiedRoleAssignmentScheduleRequest changes to Canceled. + /// Immediately cancel a unifiedRoleAssignmentScheduleRequest object that is in a Granted status, and have the system automatically delete the canceled request after 30 days. After calling this action, the status of the canceled unifiedRoleAssignmentScheduleRequest changes to Canceled. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/UnifiedRoleAssignmentScheduleRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/UnifiedRoleAssignmentScheduleRequestItemRequestBuilder.cs index 4a2b09170a4..a453c61ffb2 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/UnifiedRoleAssignmentScheduleRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/UnifiedRoleAssignmentScheduleRequestItemRequestBuilder.cs @@ -83,7 +83,7 @@ public async Task DeleteAsync(Action - /// In PIM, read the details of a request for an active and persistent role assignment made through the unifiedRoleAssignmentScheduleRequest object. + /// In PIM, read the details of a request for an active and persistent role assignment made through the unifiedRoleAssignmentScheduleRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -148,7 +148,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// In PIM, read the details of a request for an active and persistent role assignment made through the unifiedRoleAssignmentScheduleRequest object. + /// In PIM, read the details of a request for an active and persistent role assignment made through the unifiedRoleAssignmentScheduleRequest object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -225,7 +225,7 @@ public UnifiedRoleAssignmentScheduleRequestItemRequestBuilderDeleteRequestConfig } } /// - /// In PIM, read the details of a request for an active and persistent role assignment made through the unifiedRoleAssignmentScheduleRequest object. + /// In PIM, read the details of a request for an active and persistent role assignment made through the unifiedRoleAssignmentScheduleRequest object. This API is supported in the following national cloud deployments. /// public class UnifiedRoleAssignmentScheduleRequestItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/RoleAssignmentScheduleRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/RoleAssignmentScheduleRequestsRequestBuilder.cs index b2cd6e4eea5..fcc02bd6618 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/RoleAssignmentScheduleRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/RoleAssignmentScheduleRequestsRequestBuilder.cs @@ -51,7 +51,7 @@ public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); } /// - /// Retrieve the requests for active role assignments to principals. The active assignments include those made through assignments and activation requests, and directly through the role assignments API. The role assignments can be permanently active with or without an expiry date, or temporarily active after user activation of eligible assignments. + /// Retrieve the requests for active role assignments to principals. The active assignments include those made through assignments and activation requests, and directly through the role assignments API. The role assignments can be permanently active with or without an expiry date, or temporarily active after user activation of eligible assignments. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -71,7 +71,7 @@ public async Task GetAsy return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleAssignmentScheduleRequestCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// In PIM, carry out the following operations through the unifiedRoleAssignmentScheduleRequest object:+ Request active and persistent role assignments for a principal, with or without expiry dates.+ Activate, deactivate, extend, or renew an eligible role assignment for a principal. To call this API to update, renew, and extend assignments for yourself, you must have multi-factor authentication (MFA) enforced, and running the query in a session in which they were challenged for MFA. See Enable per-user Azure AD Multi-Factor Authentication to secure sign-in events. + /// In PIM, carry out the following operations through the unifiedRoleAssignmentScheduleRequest object: To call this API to update, renew, and extend assignments for yourself, you must have multi-factor authentication (MFA) enforced, and running the query in a session in which they were challenged for MFA. See Enable per-user Azure AD Multi-Factor Authentication to secure sign-in events. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -93,7 +93,7 @@ public async Task PostAsync(UnifiedRoleAss return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleAssignmentScheduleRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the requests for active role assignments to principals. The active assignments include those made through assignments and activation requests, and directly through the role assignments API. The role assignments can be permanently active with or without an expiry date, or temporarily active after user activation of eligible assignments. + /// Retrieve the requests for active role assignments to principals. The active assignments include those made through assignments and activation requests, and directly through the role assignments API. The role assignments can be permanently active with or without an expiry date, or temporarily active after user activation of eligible assignments. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -119,7 +119,7 @@ public RequestInformation ToGetRequestInformation(Action - /// In PIM, carry out the following operations through the unifiedRoleAssignmentScheduleRequest object:+ Request active and persistent role assignments for a principal, with or without expiry dates.+ Activate, deactivate, extend, or renew an eligible role assignment for a principal. To call this API to update, renew, and extend assignments for yourself, you must have multi-factor authentication (MFA) enforced, and running the query in a session in which they were challenged for MFA. See Enable per-user Azure AD Multi-Factor Authentication to secure sign-in events. + /// In PIM, carry out the following operations through the unifiedRoleAssignmentScheduleRequest object: To call this API to update, renew, and extend assignments for yourself, you must have multi-factor authentication (MFA) enforced, and running the query in a session in which they were challenged for MFA. See Enable per-user Azure AD Multi-Factor Authentication to secure sign-in events. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -154,7 +154,7 @@ public RoleAssignmentScheduleRequestsRequestBuilder WithUrl(string rawUrl) { return new RoleAssignmentScheduleRequestsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the requests for active role assignments to principals. The active assignments include those made through assignments and activation requests, and directly through the role assignments API. The role assignments can be permanently active with or without an expiry date, or temporarily active after user activation of eligible assignments. + /// Retrieve the requests for active role assignments to principals. The active assignments include those made through assignments and activation requests, and directly through the role assignments API. The role assignments can be permanently active with or without an expiry date, or temporarily active after user activation of eligible assignments. This API is supported in the following national cloud deployments. /// public class RoleAssignmentScheduleRequestsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..8be4eb21f34 --- /dev/null +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.RoleManagement.EntitlementManagement.RoleAssignmentSchedules.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleAssignmentSchedule.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index d45851e7059..266dedd6412 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -35,6 +35,26 @@ public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter re /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index 44154ebaf0a..8223e318636 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.RoleManagement.EntitlementManagement.RoleAssignmentSchedules.FilterByCurrentUserWithOn { - public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use filterByCurrentUserWithOnGetResponse instead.")] + public class FilterByCurrentUserWithOnResponse : FilterByCurrentUserWithOnGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleAssignmentSchedule.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/UnifiedRoleAssignmentScheduleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/UnifiedRoleAssignmentScheduleItemRequestBuilder.cs index e9c02a81436..85b76c8fe2e 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/UnifiedRoleAssignmentScheduleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/UnifiedRoleAssignmentScheduleItemRequestBuilder.cs @@ -73,7 +73,7 @@ public async Task DeleteAsync(Action - /// Retrieve the schedule for an active role assignment operation. + /// Retrieve the schedule for an active role assignment operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -138,7 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the schedule for an active role assignment operation. + /// Retrieve the schedule for an active role assignment operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -215,7 +215,7 @@ public UnifiedRoleAssignmentScheduleItemRequestBuilderDeleteRequestConfiguration } } /// - /// Retrieve the schedule for an active role assignment operation. + /// Retrieve the schedule for an active role assignment operation. This API is supported in the following national cloud deployments. /// public class UnifiedRoleAssignmentScheduleItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/RoleAssignmentSchedulesRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/RoleAssignmentSchedulesRequestBuilder.cs index 4dbfd617760..3e01ff68568 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/RoleAssignmentSchedulesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/RoleAssignmentSchedulesRequestBuilder.cs @@ -51,7 +51,7 @@ public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); } /// - /// Get the schedules for active role assignment operations. + /// Get the schedules for active role assignment operations. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public async Task PostAsync(UnifiedRoleAssignment return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleAssignmentSchedule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the schedules for active role assignment operations. + /// Get the schedules for active role assignment operations. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -153,7 +153,7 @@ public RoleAssignmentSchedulesRequestBuilder WithUrl(string rawUrl) { return new RoleAssignmentSchedulesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the schedules for active role assignment operations. + /// Get the schedules for active role assignment operations. This API is supported in the following national cloud deployments. /// public class RoleAssignmentSchedulesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/UnifiedRoleAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/UnifiedRoleAssignmentItemRequestBuilder.cs index e748554e6b6..4aa7c862510 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/UnifiedRoleAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/UnifiedRoleAssignmentItemRequestBuilder.cs @@ -49,7 +49,7 @@ public UnifiedRoleAssignmentItemRequestBuilder(Dictionary pathPa public UnifiedRoleAssignmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/roleManagement/entitlementManagement/roleAssignments/{unifiedRoleAssignment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a unifiedRoleAssignment object. + /// Delete a unifiedRoleAssignment object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a unifiedRoleAssignment object. + /// Retrieve the properties and relationships of a unifiedRoleAssignment object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -110,7 +110,7 @@ public async Task PatchAsync(UnifiedRoleAssignment body, return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a unifiedRoleAssignment object. + /// Delete a unifiedRoleAssignment object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -134,7 +134,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a unifiedRoleAssignment object. + /// Retrieve the properties and relationships of a unifiedRoleAssignment object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -211,7 +211,7 @@ public UnifiedRoleAssignmentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a unifiedRoleAssignment object. + /// Retrieve the properties and relationships of a unifiedRoleAssignment object. This API is supported in the following national cloud deployments. /// public class UnifiedRoleAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/RoleAssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/RoleAssignmentsRequestBuilder.cs index 2832eee0a0c..5ab978d5486 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/RoleAssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/RoleAssignmentsRequestBuilder.cs @@ -42,7 +42,7 @@ public RoleAssignmentsRequestBuilder(Dictionary pathParameters, public RoleAssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/roleManagement/entitlementManagement/roleAssignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) + /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, UnifiedRoleAssignmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new unifiedRoleAssignment object. + /// Create a new unifiedRoleAssignment object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(UnifiedRoleAssignment body, A return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) + /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new unifiedRoleAssignment object. + /// Create a new unifiedRoleAssignment object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public RoleAssignmentsRequestBuilder WithUrl(string rawUrl) { return new RoleAssignmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) + /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is supported in the following national cloud deployments. /// public class RoleAssignmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/UnifiedRoleDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/UnifiedRoleDefinitionItemRequestBuilder.cs index eacafc7939a..319c82200c3 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/UnifiedRoleDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/UnifiedRoleDefinitionItemRequestBuilder.cs @@ -34,7 +34,7 @@ public UnifiedRoleDefinitionItemRequestBuilder(Dictionary pathPa public UnifiedRoleDefinitionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/roleManagement/entitlementManagement/roleDefinitions/{unifiedRoleDefinition%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a unifiedRoleDefinition object. You cannot delete built-in roles. This feature requires an Azure AD Premium P1 or P2 license. + /// Delete a unifiedRoleDefinition object. You can't delete built-in roles. This feature requires an Azure AD Premium P1 or P2 license. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a unifiedRoleDefinition object. The following role-based access control (RBAC) providers are currently supported: + /// Read the properties and relationships of a unifiedRoleDefinition object. The following role-based access control (RBAC) providers are currently supported: This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, UnifiedRoleDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a unifiedRoleDefinition object. You cannot update built-in roles. This feature requires an Azure AD Premium P1 or P2 license. + /// Update the properties of a unifiedRoleDefinition object. You cannot update built-in roles. This feature requires an Azure AD Premium P1 or P2 license. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(UnifiedRoleDefinition body, return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a unifiedRoleDefinition object. You cannot delete built-in roles. This feature requires an Azure AD Premium P1 or P2 license. + /// Delete a unifiedRoleDefinition object. You can't delete built-in roles. This feature requires an Azure AD Premium P1 or P2 license. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a unifiedRoleDefinition object. The following role-based access control (RBAC) providers are currently supported: + /// Read the properties and relationships of a unifiedRoleDefinition object. The following role-based access control (RBAC) providers are currently supported: This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a unifiedRoleDefinition object. You cannot update built-in roles. This feature requires an Azure AD Premium P1 or P2 license. + /// Update the properties of a unifiedRoleDefinition object. You cannot update built-in roles. This feature requires an Azure AD Premium P1 or P2 license. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public UnifiedRoleDefinitionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a unifiedRoleDefinition object. The following role-based access control (RBAC) providers are currently supported: + /// Read the properties and relationships of a unifiedRoleDefinition object. The following role-based access control (RBAC) providers are currently supported: This API is supported in the following national cloud deployments. /// public class UnifiedRoleDefinitionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.cs index eca939b7391..a9373cfec8d 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.cs @@ -42,7 +42,7 @@ public RoleDefinitionsRequestBuilder(Dictionary pathParameters, public RoleDefinitionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/roleManagement/entitlementManagement/roleDefinitions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) + /// Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, UnifiedRoleDefinitionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new custom unifiedRoleDefinition object. This feature requires an Azure AD Premium P1 or P2 license. + /// Create a new custom unifiedRoleDefinition object. This feature requires an Azure AD Premium P1 or P2 license. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(UnifiedRoleDefinition body, A return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) + /// Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new custom unifiedRoleDefinition object. This feature requires an Azure AD Premium P1 or P2 license. + /// Create a new custom unifiedRoleDefinition object. This feature requires an Azure AD Premium P1 or P2 license. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public RoleDefinitionsRequestBuilder WithUrl(string rawUrl) { return new RoleDefinitionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) + /// Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is supported in the following national cloud deployments. /// public class RoleDefinitionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..66590b1bb21 --- /dev/null +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.RoleManagement.EntitlementManagement.RoleEligibilityScheduleInstances.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleEligibilityScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index 197c749957f..081f4c926cb 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -35,6 +35,26 @@ public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter re /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index ef20ef4ea1d..cb5b2e5997a 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.RoleManagement.EntitlementManagement.RoleEligibilityScheduleInstances.FilterByCurrentUserWithOn { - public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use filterByCurrentUserWithOnGetResponse instead.")] + public class FilterByCurrentUserWithOnResponse : FilterByCurrentUserWithOnGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleEligibilityScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/UnifiedRoleEligibilityScheduleInstanceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/UnifiedRoleEligibilityScheduleInstanceItemRequestBuilder.cs index e9f1464acbd..ad6969c8b77 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/UnifiedRoleEligibilityScheduleInstanceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/UnifiedRoleEligibilityScheduleInstanceItemRequestBuilder.cs @@ -68,7 +68,7 @@ public async Task DeleteAsync(Action - /// Get the instance of a role eligibility. + /// Get the instance of a role eligibility. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -133,7 +133,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the instance of a role eligibility. + /// Get the instance of a role eligibility. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -210,7 +210,7 @@ public UnifiedRoleEligibilityScheduleInstanceItemRequestBuilderDeleteRequestConf } } /// - /// Get the instance of a role eligibility. + /// Get the instance of a role eligibility. This API is supported in the following national cloud deployments. /// public class UnifiedRoleEligibilityScheduleInstanceItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/RoleEligibilityScheduleInstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/RoleEligibilityScheduleInstancesRequestBuilder.cs index cc591a5643d..7533308d698 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/RoleEligibilityScheduleInstancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/RoleEligibilityScheduleInstancesRequestBuilder.cs @@ -51,7 +51,7 @@ public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); } /// - /// Get the instances of role eligibilities. + /// Get the instances of role eligibilities. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public async Task PostAsync(UnifiedRoleE return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleEligibilityScheduleInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the instances of role eligibilities. + /// Get the instances of role eligibilities. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -153,7 +153,7 @@ public RoleEligibilityScheduleInstancesRequestBuilder WithUrl(string rawUrl) { return new RoleEligibilityScheduleInstancesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the instances of role eligibilities. + /// Get the instances of role eligibilities. This API is supported in the following national cloud deployments. /// public class RoleEligibilityScheduleInstancesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..ee6811bc8f2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.RoleManagement.EntitlementManagement.RoleEligibilityScheduleRequests.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleEligibilityScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index 6a8877ce969..706ce125e70 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -35,6 +35,26 @@ public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter re /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index 1c4dd575e60..3b8235d0741 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.RoleManagement.EntitlementManagement.RoleEligibilityScheduleRequests.FilterByCurrentUserWithOn { - public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use filterByCurrentUserWithOnGetResponse instead.")] + public class FilterByCurrentUserWithOnResponse : FilterByCurrentUserWithOnGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleEligibilityScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.cs index ab10d0f218b..0651703fc50 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/roleManagement/entitlementManagement/roleEligibilityScheduleRequests/{unifiedRoleEligibilityScheduleRequest%2Did}/cancel", rawUrl) { } /// - /// Immediately cancel a unifiedRoleEligibilityScheduleRequest object whose status is Granted and have the system automatically delete the cancelled request after 30 days. After calling this action, the status of the cancelled unifiedRoleEligibilityScheduleRequest changes to Revoked. + /// Immediately cancel a unifiedRoleEligibilityScheduleRequest object whose status is Granted and have the system automatically delete the cancelled request after 30 days. After calling this action, the status of the cancelled unifiedRoleEligibilityScheduleRequest changes to Revoked. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Immediately cancel a unifiedRoleEligibilityScheduleRequest object whose status is Granted and have the system automatically delete the cancelled request after 30 days. After calling this action, the status of the cancelled unifiedRoleEligibilityScheduleRequest changes to Revoked. + /// Immediately cancel a unifiedRoleEligibilityScheduleRequest object whose status is Granted and have the system automatically delete the cancelled request after 30 days. After calling this action, the status of the cancelled unifiedRoleEligibilityScheduleRequest changes to Revoked. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/UnifiedRoleEligibilityScheduleRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/UnifiedRoleEligibilityScheduleRequestItemRequestBuilder.cs index e97ce6a74f2..743a3b70cbf 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/UnifiedRoleEligibilityScheduleRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/UnifiedRoleEligibilityScheduleRequestItemRequestBuilder.cs @@ -78,7 +78,7 @@ public async Task DeleteAsync(Action - /// In PIM, read the details of a request for for a role eligibility request made through the unifiedRoleEligibilityScheduleRequest object. + /// In PIM, read the details of a request for for a role eligibility request made through the unifiedRoleEligibilityScheduleRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -143,7 +143,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// In PIM, read the details of a request for for a role eligibility request made through the unifiedRoleEligibilityScheduleRequest object. + /// In PIM, read the details of a request for for a role eligibility request made through the unifiedRoleEligibilityScheduleRequest object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -220,7 +220,7 @@ public UnifiedRoleEligibilityScheduleRequestItemRequestBuilderDeleteRequestConfi } } /// - /// In PIM, read the details of a request for for a role eligibility request made through the unifiedRoleEligibilityScheduleRequest object. + /// In PIM, read the details of a request for for a role eligibility request made through the unifiedRoleEligibilityScheduleRequest object. This API is supported in the following national cloud deployments. /// public class UnifiedRoleEligibilityScheduleRequestItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/RoleEligibilityScheduleRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/RoleEligibilityScheduleRequestsRequestBuilder.cs index 3e43d57b112..4cb78382a68 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/RoleEligibilityScheduleRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/RoleEligibilityScheduleRequestsRequestBuilder.cs @@ -51,7 +51,7 @@ public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); } /// - /// In PIM, retrieve the requests for role eligibilities for principals made through the unifiedRoleEligibilityScheduleRequest object. + /// In PIM, retrieve the requests for role eligibilities for principals made through the unifiedRoleEligibilityScheduleRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -71,7 +71,7 @@ public async Task GetAs return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleEligibilityScheduleRequestCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// In PIM, request for a role eligibility for a principal through the unifiedRoleEligibilityScheduleRequest object. This operation allows both admins and eligible users to add, revoke, or extend eligible assignments. + /// In PIM, request for a role eligibility for a principal through the unifiedRoleEligibilityScheduleRequest object. This operation allows both admins and eligible users to add, revoke, or extend eligible assignments. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -93,7 +93,7 @@ public async Task PostAsync(UnifiedRoleEl return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleEligibilityScheduleRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// In PIM, retrieve the requests for role eligibilities for principals made through the unifiedRoleEligibilityScheduleRequest object. + /// In PIM, retrieve the requests for role eligibilities for principals made through the unifiedRoleEligibilityScheduleRequest object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -119,7 +119,7 @@ public RequestInformation ToGetRequestInformation(Action - /// In PIM, request for a role eligibility for a principal through the unifiedRoleEligibilityScheduleRequest object. This operation allows both admins and eligible users to add, revoke, or extend eligible assignments. + /// In PIM, request for a role eligibility for a principal through the unifiedRoleEligibilityScheduleRequest object. This operation allows both admins and eligible users to add, revoke, or extend eligible assignments. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -154,7 +154,7 @@ public RoleEligibilityScheduleRequestsRequestBuilder WithUrl(string rawUrl) { return new RoleEligibilityScheduleRequestsRequestBuilder(rawUrl, RequestAdapter); } /// - /// In PIM, retrieve the requests for role eligibilities for principals made through the unifiedRoleEligibilityScheduleRequest object. + /// In PIM, retrieve the requests for role eligibilities for principals made through the unifiedRoleEligibilityScheduleRequest object. This API is supported in the following national cloud deployments. /// public class RoleEligibilityScheduleRequestsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..bc83a564377 --- /dev/null +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.RoleManagement.EntitlementManagement.RoleEligibilitySchedules.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleEligibilitySchedule.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index 6626a1a5d2a..f55f8549a5e 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -35,6 +35,26 @@ public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter re /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs index 57b4c9d360f..e925ab05c9f 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.RoleManagement.EntitlementManagement.RoleEligibilitySchedules.FilterByCurrentUserWithOn { - public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use filterByCurrentUserWithOnGetResponse instead.")] + public class FilterByCurrentUserWithOnResponse : FilterByCurrentUserWithOnGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterByCurrentUserWithOnResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleEligibilitySchedule.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/UnifiedRoleEligibilityScheduleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/UnifiedRoleEligibilityScheduleItemRequestBuilder.cs index b96ed165a34..660c556ecc6 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/UnifiedRoleEligibilityScheduleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/UnifiedRoleEligibilityScheduleItemRequestBuilder.cs @@ -68,7 +68,7 @@ public async Task DeleteAsync(Action - /// Retrieve the schedule for a role eligibility operation. + /// Retrieve the schedule for a role eligibility operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -133,7 +133,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the schedule for a role eligibility operation. + /// Retrieve the schedule for a role eligibility operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -210,7 +210,7 @@ public UnifiedRoleEligibilityScheduleItemRequestBuilderDeleteRequestConfiguratio } } /// - /// Retrieve the schedule for a role eligibility operation. + /// Retrieve the schedule for a role eligibility operation. This API is supported in the following national cloud deployments. /// public class UnifiedRoleEligibilityScheduleItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/RoleEligibilitySchedulesRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/RoleEligibilitySchedulesRequestBuilder.cs index 82b4baa15ab..d4297794f9c 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/RoleEligibilitySchedulesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/RoleEligibilitySchedulesRequestBuilder.cs @@ -51,7 +51,7 @@ public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); } /// - /// Get the unifiedRoleEligibilitySchedule resources from the roleEligibilitySchedules navigation property. + /// Get the unifiedRoleEligibilitySchedule resources from the roleEligibilitySchedules navigation property. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public async Task PostAsync(UnifiedRoleEligibili return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleEligibilitySchedule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the unifiedRoleEligibilitySchedule resources from the roleEligibilitySchedules navigation property. + /// Get the unifiedRoleEligibilitySchedule resources from the roleEligibilitySchedules navigation property. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -153,7 +153,7 @@ public RoleEligibilitySchedulesRequestBuilder WithUrl(string rawUrl) { return new RoleEligibilitySchedulesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the unifiedRoleEligibilitySchedule resources from the roleEligibilitySchedules navigation property. + /// Get the unifiedRoleEligibilitySchedule resources from the roleEligibilitySchedules navigation property. This API is supported in the following national cloud deployments. /// public class RoleEligibilitySchedulesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/SchemaExtensions/Item/SchemaExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/SchemaExtensions/Item/SchemaExtensionItemRequestBuilder.cs index 71faaa89d6b..8c9f3311d2f 100644 --- a/src/Microsoft.Graph/Generated/SchemaExtensions/Item/SchemaExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/SchemaExtensions/Item/SchemaExtensionItemRequestBuilder.cs @@ -29,7 +29,7 @@ public SchemaExtensionItemRequestBuilder(Dictionary pathParamete public SchemaExtensionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/schemaExtensions/{schemaExtension%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete the definition of a schema extension. Only the app that created the schema extension (owner app) can delete the schema extension definition, and only when the extension is in the InDevelopment state. Deleting a schema extension definition does not affect accessing custom data that has been added to resource instances based on that definition. + /// Delete the definition of a schema extension. Only the app that created the schema extension (owner app) can delete the schema extension definition, and only when the extension is in the InDevelopment state. Deleting a schema extension definition does not affect accessing custom data that has been added to resource instances based on that definition. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get schemaExtension + /// This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, SchemaExtension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update properties in the definition of the specified schemaExtension. Additive updates to the extension can only be made when the extension is in the InDevelopment or Available status. This means custom properties or target resource types cannot be removed from the definition, but new custom properties can be added and the description of the extension changed. The update applies to all the resources that are included in the targetTypes property of the extension. These resources are among the supporting resource types. For delegated flows, the signed-in user can update a schema extension as long as the owner property of the extension is set to the appId of an application the signed-in user owns. That application can be the one that initially created the extension, or some other application owned by the signed-in user. This criteria for the owner property allows a signed-in user to make updates through other applications they don't own, such as Microsoft Graph Explorer. When using Graph Explorer to update a schemaExtension resource, include the owner property in the PATCH request body. + /// Update properties in the definition of the specified schemaExtension. Additive updates to the extension can only be made when the extension is in the InDevelopment or Available status. This means custom properties or target resource types cannot be removed from the definition, but new custom properties can be added and the description of the extension changed. The update applies to all the resources that are included in the targetTypes property of the extension. These resources are among the supporting resource types. For delegated flows, the signed-in user can update a schema extension as long as the owner property of the extension is set to the appId of an application the signed-in user owns. That application can be the one that initially created the extension, or some other application owned by the signed-in user. This criteria for the owner property allows a signed-in user to make updates through other applications they don't own, such as Microsoft Graph Explorer. When using Graph Explorer to update a schemaExtension resource, include the owner property in the PATCH request body. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(SchemaExtension body, Action(requestInfo, SchemaExtension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete the definition of a schema extension. Only the app that created the schema extension (owner app) can delete the schema extension definition, and only when the extension is in the InDevelopment state. Deleting a schema extension definition does not affect accessing custom data that has been added to resource instances based on that definition. + /// Delete the definition of a schema extension. Only the app that created the schema extension (owner app) can delete the schema extension definition, and only when the extension is in the InDevelopment state. Deleting a schema extension definition does not affect accessing custom data that has been added to resource instances based on that definition. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get schemaExtension + /// This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update properties in the definition of the specified schemaExtension. Additive updates to the extension can only be made when the extension is in the InDevelopment or Available status. This means custom properties or target resource types cannot be removed from the definition, but new custom properties can be added and the description of the extension changed. The update applies to all the resources that are included in the targetTypes property of the extension. These resources are among the supporting resource types. For delegated flows, the signed-in user can update a schema extension as long as the owner property of the extension is set to the appId of an application the signed-in user owns. That application can be the one that initially created the extension, or some other application owned by the signed-in user. This criteria for the owner property allows a signed-in user to make updates through other applications they don't own, such as Microsoft Graph Explorer. When using Graph Explorer to update a schemaExtension resource, include the owner property in the PATCH request body. + /// Update properties in the definition of the specified schemaExtension. Additive updates to the extension can only be made when the extension is in the InDevelopment or Available status. This means custom properties or target resource types cannot be removed from the definition, but new custom properties can be added and the description of the extension changed. The update applies to all the resources that are included in the targetTypes property of the extension. These resources are among the supporting resource types. For delegated flows, the signed-in user can update a schema extension as long as the owner property of the extension is set to the appId of an application the signed-in user owns. That application can be the one that initially created the extension, or some other application owned by the signed-in user. This criteria for the owner property allows a signed-in user to make updates through other applications they don't own, such as Microsoft Graph Explorer. When using Graph Explorer to update a schemaExtension resource, include the owner property in the PATCH request body. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public SchemaExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get schemaExtension + /// This API is supported in the following national cloud deployments. /// public class SchemaExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/SchemaExtensions/SchemaExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/SchemaExtensions/SchemaExtensionsRequestBuilder.cs index aa31881f8d3..39f9febaf33 100644 --- a/src/Microsoft.Graph/Generated/SchemaExtensions/SchemaExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/SchemaExtensions/SchemaExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public SchemaExtensionsRequestBuilder(Dictionary pathParameters, public SchemaExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/schemaExtensions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of schemaExtension objects in your tenant. The schema extensions can be InDevelopment, Available, or Deprecated and includes schema extensions:+ Created by any apps you own in the current tenant.+ Owned by other apps that are marked as Available.+ Created by other developers from other tenants and marked as Available. This is different from other APIs that only return tenant-specific data. Extension data created based on schema extension definitions is tenant-specific and can only be accessed by apps explicitly granted permission. + /// Get a list of schemaExtension objects in your tenant. The schema extensions can be InDevelopment, Available, or Deprecated and includes schema extensions: This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, SchemaExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new schemaExtension definition and its associated schema extension property to extend a supporting resource type. Schema extensions let you add strongly-typed custom data to a resource. The app that creates a schema extension is the owner app. Depending on the state of the extension, the owner app, and only the owner app, may update or delete the extension. See examples of how to define a schema extension that describes a training course, use the schema extension definition to create a new group with training course data, and add training course data to an existing group. + /// Create a new schemaExtension definition and its associated schema extension property to extend a supporting resource type. Schema extensions let you add strongly-typed custom data to a resource. The app that creates a schema extension is the owner app. Depending on the state of the extension, the owner app, and only the owner app, may update or delete the extension. See examples of how to define a schema extension that describes a training course, use the schema extension definition to create a new group with training course data, and add training course data to an existing group. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(SchemaExtension body, Action(requestInfo, SchemaExtension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of schemaExtension objects in your tenant. The schema extensions can be InDevelopment, Available, or Deprecated and includes schema extensions:+ Created by any apps you own in the current tenant.+ Owned by other apps that are marked as Available.+ Created by other developers from other tenants and marked as Available. This is different from other APIs that only return tenant-specific data. Extension data created based on schema extension definitions is tenant-specific and can only be accessed by apps explicitly granted permission. + /// Get a list of schemaExtension objects in your tenant. The schema extensions can be InDevelopment, Available, or Deprecated and includes schema extensions: This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new schemaExtension definition and its associated schema extension property to extend a supporting resource type. Schema extensions let you add strongly-typed custom data to a resource. The app that creates a schema extension is the owner app. Depending on the state of the extension, the owner app, and only the owner app, may update or delete the extension. See examples of how to define a schema extension that describes a training course, use the schema extension definition to create a new group with training course data, and add training course data to an existing group. + /// Create a new schemaExtension definition and its associated schema extension property to extend a supporting resource type. Schema extensions let you add strongly-typed custom data to a resource. The app that creates a schema extension is the owner app. Depending on the state of the extension, the owner app, and only the owner app, may update or delete the extension. See examples of how to define a schema extension that describes a training course, use the schema extension definition to create a new group with training course data, and add training course data to an existing group. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SchemaExtensionsRequestBuilder WithUrl(string rawUrl) { return new SchemaExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of schemaExtension objects in your tenant. The schema extensions can be InDevelopment, Available, or Deprecated and includes schema extensions:+ Created by any apps you own in the current tenant.+ Owned by other apps that are marked as Available.+ Created by other developers from other tenants and marked as Available. This is different from other APIs that only return tenant-specific data. Extension data created based on schema extension definitions is tenant-specific and can only be accessed by apps explicitly granted permission. + /// Get a list of schemaExtension objects in your tenant. The schema extensions can be InDevelopment, Available, or Deprecated and includes schema extensions: This API is supported in the following national cloud deployments. /// public class SchemaExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Search/Query/QueryPostResponse.cs b/src/Microsoft.Graph/Generated/Search/Query/QueryPostResponse.cs new file mode 100644 index 00000000000..dfe0049f0ea --- /dev/null +++ b/src/Microsoft.Graph/Generated/Search/Query/QueryPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Search.Query { + public class QueryPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new QueryPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new QueryPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(SearchResponse.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Search/Query/QueryRequestBuilder.cs b/src/Microsoft.Graph/Generated/Search/Query/QueryRequestBuilder.cs index 61f42a5d82e..eef74b17112 100644 --- a/src/Microsoft.Graph/Generated/Search/Query/QueryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Search/Query/QueryRequestBuilder.cs @@ -28,13 +28,36 @@ public QueryRequestBuilder(Dictionary pathParameters, IRequestAd public QueryRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/search/query", rawUrl) { } /// - /// Runs the query specified in the request body. Search results are provided in the response. + /// Runs the query specified in the request body. Search results are provided in the response. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsQueryPostResponseAsync(QueryPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsQueryPostResponseAsync(QueryPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, QueryPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Runs the query specified in the request body. Search results are provided in the response. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsQueryPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(QueryPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(QueryPostRequestBody body, Action(requestInfo, QueryResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Runs the query specified in the request body. Search results are provided in the response. + /// Runs the query specified in the request body. Search results are provided in the response. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Search/Query/QueryResponse.cs b/src/Microsoft.Graph/Generated/Search/Query/QueryResponse.cs index 137aca1f305..fb67b79a08f 100644 --- a/src/Microsoft.Graph/Generated/Search/Query/QueryResponse.cs +++ b/src/Microsoft.Graph/Generated/Search/Query/QueryResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Search.Query { - public class QueryResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use queryPostResponse instead.")] + public class QueryResponse : QueryPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new QueryResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(SearchResponse.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Security/Alerts/AlertsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Alerts/AlertsRequestBuilder.cs index d3c724ae9d3..ad31c93788d 100644 --- a/src/Microsoft.Graph/Generated/Security/Alerts/AlertsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Alerts/AlertsRequestBuilder.cs @@ -42,7 +42,7 @@ public AlertsRequestBuilder(Dictionary pathParameters, IRequestA public AlertsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/alerts{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of alert objects. + /// Retrieve a list of alert objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(Alert body, Action(requestInfo, Alert.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of alert objects. + /// Retrieve a list of alert objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public AlertsRequestBuilder WithUrl(string rawUrl) { return new AlertsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of alert objects. + /// Retrieve a list of alert objects. This API is supported in the following national cloud deployments. /// public class AlertsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/Alerts/Item/AlertItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Alerts/Item/AlertItemRequestBuilder.cs index f2e945e0a37..bc50405d3ce 100644 --- a/src/Microsoft.Graph/Generated/Security/Alerts/Item/AlertItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Alerts/Item/AlertItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AlertItemRequestBuilder(Dictionary pathParameters, IReque public AlertItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/alerts/{alert%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Retrieve the properties and relationships of an alert object. + /// Retrieve the properties and relationships of an alert object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, Alert.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update an editable alert property within any integrated solution to keep alert status and assignments in sync across solutions. This method updates any solution that has a record of the referenced alert ID. + /// Update an editable alert property within any integrated solution to keep alert status and assignments in sync across solutions. This method updates any solution that has a record of the referenced alert ID. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -71,7 +71,7 @@ public async Task PatchAsync(Alert body, Action(requestInfo, Alert.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the properties and relationships of an alert object. + /// Retrieve the properties and relationships of an alert object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -97,7 +97,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update an editable alert property within any integrated solution to keep alert status and assignments in sync across solutions. This method updates any solution that has a record of the referenced alert ID. + /// Update an editable alert property within any integrated solution to keep alert status and assignments in sync across solutions. This method updates any solution that has a record of the referenced alert ID. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,7 +132,7 @@ public AlertItemRequestBuilder WithUrl(string rawUrl) { return new AlertItemRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the properties and relationships of an alert object. + /// Retrieve the properties and relationships of an alert object. This API is supported in the following national cloud deployments. /// public class AlertItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/Alerts_v2/Alerts_v2RequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Alerts_v2/Alerts_v2RequestBuilder.cs index 5760caae497..1f57d751b9f 100644 --- a/src/Microsoft.Graph/Generated/Security/Alerts_v2/Alerts_v2RequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Alerts_v2/Alerts_v2RequestBuilder.cs @@ -42,7 +42,7 @@ public Alerts_v2RequestBuilder(Dictionary pathParameters, IReque public Alerts_v2RequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/alerts_v2{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of alert resources that have been created to track suspicious activities in an organization. This operation lets you filter and sort through alerts to create an informed cyber security response. It exposes a collection of alerts that were flagged in your network, within the time range you specified in your environment retention policy. The most recent alerts are displayed at the top of the list. + /// Get a list of alert resources that have been created to track suspicious activities in an organization. This operation lets you filter and sort through alerts to create an informed cyber security response. It exposes a collection of alerts that were flagged in your network, within the time range you specified in your environment retention policy. The most recent alerts are displayed at the top of the list. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(Alert body, Action(requestInfo, Alert.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of alert resources that have been created to track suspicious activities in an organization. This operation lets you filter and sort through alerts to create an informed cyber security response. It exposes a collection of alerts that were flagged in your network, within the time range you specified in your environment retention policy. The most recent alerts are displayed at the top of the list. + /// Get a list of alert resources that have been created to track suspicious activities in an organization. This operation lets you filter and sort through alerts to create an informed cyber security response. It exposes a collection of alerts that were flagged in your network, within the time range you specified in your environment retention policy. The most recent alerts are displayed at the top of the list. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public Alerts_v2RequestBuilder WithUrl(string rawUrl) { return new Alerts_v2RequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of alert resources that have been created to track suspicious activities in an organization. This operation lets you filter and sort through alerts to create an informed cyber security response. It exposes a collection of alerts that were flagged in your network, within the time range you specified in your environment retention policy. The most recent alerts are displayed at the top of the list. + /// Get a list of alert resources that have been created to track suspicious activities in an organization. This operation lets you filter and sort through alerts to create an informed cyber security response. It exposes a collection of alerts that were flagged in your network, within the time range you specified in your environment retention policy. The most recent alerts are displayed at the top of the list. This API is supported in the following national cloud deployments. /// public class Alerts_v2RequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/Alerts_v2/Item/AlertItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Alerts_v2/Item/AlertItemRequestBuilder.cs index 33002e302cd..30aeaa39680 100644 --- a/src/Microsoft.Graph/Generated/Security/Alerts_v2/Item/AlertItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Alerts_v2/Item/AlertItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Get the properties and relationships of an alert in an organization based on the specified alert id property. + /// Get the properties and relationships of an alert in an organization based on the specified alert id property. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -73,7 +73,7 @@ public async Task GetAsync(Action(requestInfo, Alert.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an alert object in an organization based on the specified alert id property. + /// Update the properties of an alert object in an organization based on the specified alert id property. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -119,7 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties and relationships of an alert in an organization based on the specified alert id property. + /// Get the properties and relationships of an alert in an organization based on the specified alert id property. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -145,7 +145,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an alert object in an organization based on the specified alert id property. + /// Update the properties of an alert object in an organization based on the specified alert id property. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -196,7 +196,7 @@ public AlertItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the properties and relationships of an alert in an organization based on the specified alert id property. + /// Get the properties and relationships of an alert in an organization based on the specified alert id property. This API is supported in the following national cloud deployments. /// public class AlertItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/AttackSimulationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/AttackSimulationRequestBuilder.cs index 3494f566b27..cad76e0b73a 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/AttackSimulationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/AttackSimulationRequestBuilder.cs @@ -1,8 +1,14 @@ // using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; +using Microsoft.Graph.Security.AttackSimulation.EndUserNotifications; +using Microsoft.Graph.Security.AttackSimulation.LandingPages; +using Microsoft.Graph.Security.AttackSimulation.LoginPages; +using Microsoft.Graph.Security.AttackSimulation.Operations; +using Microsoft.Graph.Security.AttackSimulation.Payloads; using Microsoft.Graph.Security.AttackSimulation.SimulationAutomations; using Microsoft.Graph.Security.AttackSimulation.Simulations; +using Microsoft.Graph.Security.AttackSimulation.Trainings; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -16,6 +22,26 @@ namespace Microsoft.Graph.Security.AttackSimulation { /// Provides operations to manage the attackSimulation property of the microsoft.graph.security entity. /// public class AttackSimulationRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the endUserNotifications property of the microsoft.graph.attackSimulationRoot entity. + public EndUserNotificationsRequestBuilder EndUserNotifications { get => + new EndUserNotificationsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the landingPages property of the microsoft.graph.attackSimulationRoot entity. + public LandingPagesRequestBuilder LandingPages { get => + new LandingPagesRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the loginPages property of the microsoft.graph.attackSimulationRoot entity. + public LoginPagesRequestBuilder LoginPages { get => + new LoginPagesRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the operations property of the microsoft.graph.attackSimulationRoot entity. + public OperationsRequestBuilder Operations { get => + new OperationsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the payloads property of the microsoft.graph.attackSimulationRoot entity. + public PayloadsRequestBuilder Payloads { get => + new PayloadsRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to manage the simulationAutomations property of the microsoft.graph.attackSimulationRoot entity. public SimulationAutomationsRequestBuilder SimulationAutomations { get => new SimulationAutomationsRequestBuilder(PathParameters, RequestAdapter); @@ -24,6 +50,10 @@ public class AttackSimulationRequestBuilder : BaseRequestBuilder { public SimulationsRequestBuilder Simulations { get => new SimulationsRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the trainings property of the microsoft.graph.attackSimulationRoot entity. + public TrainingsRequestBuilder Trainings { get => + new TrainingsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new AttackSimulationRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..14d16d2ace5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.AttackSimulation.EndUserNotifications.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/endUserNotifications/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/endUserNotifications/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/EndUserNotificationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/EndUserNotificationsRequestBuilder.cs new file mode 100644 index 00000000000..423262d6c3a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/EndUserNotificationsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Security.AttackSimulation.EndUserNotifications.Count; +using Microsoft.Graph.Security.AttackSimulation.EndUserNotifications.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.AttackSimulation.EndUserNotifications { + /// + /// Provides operations to manage the endUserNotifications property of the microsoft.graph.attackSimulationRoot entity. + /// + public class EndUserNotificationsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the endUserNotifications property of the microsoft.graph.attackSimulationRoot entity. + /// The unique identifier of endUserNotification + public EndUserNotificationItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("endUserNotification%2Did", position); + return new EndUserNotificationItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new EndUserNotificationsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public EndUserNotificationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/endUserNotifications{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new EndUserNotificationsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public EndUserNotificationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/endUserNotifications{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get endUserNotifications from security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, EndUserNotificationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to endUserNotifications for security + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(EndUserNotification body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(EndUserNotification body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, EndUserNotification.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get endUserNotifications from security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new EndUserNotificationsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to endUserNotifications for security + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(EndUserNotification body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(EndUserNotification body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new EndUserNotificationsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public EndUserNotificationsRequestBuilder WithUrl(string rawUrl) { + return new EndUserNotificationsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get endUserNotifications from security + /// + public class EndUserNotificationsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class EndUserNotificationsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public EndUserNotificationsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new EndUserNotificationsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new endUserNotificationsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public EndUserNotificationsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class EndUserNotificationsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new endUserNotificationsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public EndUserNotificationsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/Item/Details/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/Item/Details/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..94c8a6dd5ec --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/Item/Details/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.AttackSimulation.EndUserNotifications.Item.Details.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/endUserNotifications/{endUserNotification%2Did}/details/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/endUserNotifications/{endUserNotification%2Did}/details/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/Item/Details/DetailsRequestBuilder.cs new file mode 100644 index 00000000000..0dd7f3262b6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/Item/Details/DetailsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Security.AttackSimulation.EndUserNotifications.Item.Details.Count; +using Microsoft.Graph.Security.AttackSimulation.EndUserNotifications.Item.Details.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.AttackSimulation.EndUserNotifications.Item.Details { + /// + /// Provides operations to manage the details property of the microsoft.graph.endUserNotification entity. + /// + public class DetailsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the details property of the microsoft.graph.endUserNotification entity. + /// The unique identifier of endUserNotificationDetail + public EndUserNotificationDetailItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("endUserNotificationDetail%2Did", position); + return new EndUserNotificationDetailItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new DetailsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DetailsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/endUserNotifications/{endUserNotification%2Did}/details{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new DetailsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DetailsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/endUserNotifications/{endUserNotification%2Did}/details{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get details from security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, EndUserNotificationDetailCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to details for security + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(EndUserNotificationDetail body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(EndUserNotificationDetail body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, EndUserNotificationDetail.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get details from security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new DetailsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to details for security + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(EndUserNotificationDetail body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(EndUserNotificationDetail body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new DetailsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public DetailsRequestBuilder WithUrl(string rawUrl) { + return new DetailsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get details from security + /// + public class DetailsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class DetailsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public DetailsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new DetailsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new detailsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public DetailsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class DetailsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new detailsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public DetailsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/Item/Details/Item/EndUserNotificationDetailItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/Item/Details/Item/EndUserNotificationDetailItemRequestBuilder.cs new file mode 100644 index 00000000000..d65d505f418 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/Item/Details/Item/EndUserNotificationDetailItemRequestBuilder.cs @@ -0,0 +1,251 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.AttackSimulation.EndUserNotifications.Item.Details.Item { + /// + /// Provides operations to manage the details property of the microsoft.graph.endUserNotification entity. + /// + public class EndUserNotificationDetailItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new EndUserNotificationDetailItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public EndUserNotificationDetailItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/endUserNotifications/{endUserNotification%2Did}/details/{endUserNotificationDetail%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new EndUserNotificationDetailItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public EndUserNotificationDetailItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/endUserNotifications/{endUserNotification%2Did}/details/{endUserNotificationDetail%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property details for security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get details from security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, EndUserNotificationDetail.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property details in security + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(EndUserNotificationDetail body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(EndUserNotificationDetail body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, EndUserNotificationDetail.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property details for security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new EndUserNotificationDetailItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get details from security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new EndUserNotificationDetailItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property details in security + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(EndUserNotificationDetail body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(EndUserNotificationDetail body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new EndUserNotificationDetailItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public EndUserNotificationDetailItemRequestBuilder WithUrl(string rawUrl) { + return new EndUserNotificationDetailItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class EndUserNotificationDetailItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new EndUserNotificationDetailItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public EndUserNotificationDetailItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get details from security + /// + public class EndUserNotificationDetailItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class EndUserNotificationDetailItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public EndUserNotificationDetailItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new EndUserNotificationDetailItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new EndUserNotificationDetailItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public EndUserNotificationDetailItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class EndUserNotificationDetailItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new EndUserNotificationDetailItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public EndUserNotificationDetailItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/Item/EndUserNotificationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/Item/EndUserNotificationItemRequestBuilder.cs new file mode 100644 index 00000000000..4f16a3d0d84 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/Item/EndUserNotificationItemRequestBuilder.cs @@ -0,0 +1,256 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Security.AttackSimulation.EndUserNotifications.Item.Details; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.AttackSimulation.EndUserNotifications.Item { + /// + /// Provides operations to manage the endUserNotifications property of the microsoft.graph.attackSimulationRoot entity. + /// + public class EndUserNotificationItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the details property of the microsoft.graph.endUserNotification entity. + public DetailsRequestBuilder Details { get => + new DetailsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new EndUserNotificationItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public EndUserNotificationItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/endUserNotifications/{endUserNotification%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new EndUserNotificationItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public EndUserNotificationItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/endUserNotifications/{endUserNotification%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property endUserNotifications for security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get endUserNotifications from security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, EndUserNotification.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property endUserNotifications in security + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(EndUserNotification body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(EndUserNotification body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, EndUserNotification.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property endUserNotifications for security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new EndUserNotificationItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get endUserNotifications from security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new EndUserNotificationItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property endUserNotifications in security + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(EndUserNotification body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(EndUserNotification body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new EndUserNotificationItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public EndUserNotificationItemRequestBuilder WithUrl(string rawUrl) { + return new EndUserNotificationItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class EndUserNotificationItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new EndUserNotificationItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public EndUserNotificationItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get endUserNotifications from security + /// + public class EndUserNotificationItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class EndUserNotificationItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public EndUserNotificationItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new EndUserNotificationItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new EndUserNotificationItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public EndUserNotificationItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class EndUserNotificationItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new EndUserNotificationItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public EndUserNotificationItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..b04aa71347f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.AttackSimulation.LandingPages.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/landingPages/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/landingPages/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/Item/Details/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/Item/Details/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..de7de4c9b8f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/Item/Details/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.AttackSimulation.LandingPages.Item.Details.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/landingPages/{landingPage%2Did}/details/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/landingPages/{landingPage%2Did}/details/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/Item/Details/DetailsRequestBuilder.cs new file mode 100644 index 00000000000..c178b5f1bb6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/Item/Details/DetailsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Security.AttackSimulation.LandingPages.Item.Details.Count; +using Microsoft.Graph.Security.AttackSimulation.LandingPages.Item.Details.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.AttackSimulation.LandingPages.Item.Details { + /// + /// Provides operations to manage the details property of the microsoft.graph.landingPage entity. + /// + public class DetailsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the details property of the microsoft.graph.landingPage entity. + /// The unique identifier of landingPageDetail + public LandingPageDetailItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("landingPageDetail%2Did", position); + return new LandingPageDetailItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new DetailsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DetailsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/landingPages/{landingPage%2Did}/details{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new DetailsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DetailsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/landingPages/{landingPage%2Did}/details{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get details from security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, LandingPageDetailCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to details for security + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(LandingPageDetail body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(LandingPageDetail body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, LandingPageDetail.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get details from security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new DetailsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to details for security + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(LandingPageDetail body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(LandingPageDetail body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new DetailsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public DetailsRequestBuilder WithUrl(string rawUrl) { + return new DetailsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get details from security + /// + public class DetailsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class DetailsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public DetailsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new DetailsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new detailsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public DetailsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class DetailsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new detailsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public DetailsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/Item/Details/Item/LandingPageDetailItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/Item/Details/Item/LandingPageDetailItemRequestBuilder.cs new file mode 100644 index 00000000000..3fe970505d3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/Item/Details/Item/LandingPageDetailItemRequestBuilder.cs @@ -0,0 +1,251 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.AttackSimulation.LandingPages.Item.Details.Item { + /// + /// Provides operations to manage the details property of the microsoft.graph.landingPage entity. + /// + public class LandingPageDetailItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new LandingPageDetailItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public LandingPageDetailItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/landingPages/{landingPage%2Did}/details/{landingPageDetail%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new LandingPageDetailItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public LandingPageDetailItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/landingPages/{landingPage%2Did}/details/{landingPageDetail%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property details for security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get details from security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, LandingPageDetail.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property details in security + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(LandingPageDetail body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(LandingPageDetail body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, LandingPageDetail.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property details for security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new LandingPageDetailItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get details from security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new LandingPageDetailItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property details in security + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(LandingPageDetail body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(LandingPageDetail body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new LandingPageDetailItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public LandingPageDetailItemRequestBuilder WithUrl(string rawUrl) { + return new LandingPageDetailItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class LandingPageDetailItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new LandingPageDetailItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public LandingPageDetailItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get details from security + /// + public class LandingPageDetailItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class LandingPageDetailItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public LandingPageDetailItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new LandingPageDetailItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new LandingPageDetailItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public LandingPageDetailItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class LandingPageDetailItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new LandingPageDetailItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public LandingPageDetailItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/Item/LandingPageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/Item/LandingPageItemRequestBuilder.cs new file mode 100644 index 00000000000..44b9edf351f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/Item/LandingPageItemRequestBuilder.cs @@ -0,0 +1,256 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Security.AttackSimulation.LandingPages.Item.Details; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.AttackSimulation.LandingPages.Item { + /// + /// Provides operations to manage the landingPages property of the microsoft.graph.attackSimulationRoot entity. + /// + public class LandingPageItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the details property of the microsoft.graph.landingPage entity. + public DetailsRequestBuilder Details { get => + new DetailsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new LandingPageItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public LandingPageItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/landingPages/{landingPage%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new LandingPageItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public LandingPageItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/landingPages/{landingPage%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property landingPages for security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get landingPages from security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.LandingPage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property landingPages in security + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(Microsoft.Graph.Models.LandingPage body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(Microsoft.Graph.Models.LandingPage body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.LandingPage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property landingPages for security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new LandingPageItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get landingPages from security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new LandingPageItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property landingPages in security + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.LandingPage body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.LandingPage body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new LandingPageItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public LandingPageItemRequestBuilder WithUrl(string rawUrl) { + return new LandingPageItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class LandingPageItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new LandingPageItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public LandingPageItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get landingPages from security + /// + public class LandingPageItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class LandingPageItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public LandingPageItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new LandingPageItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new LandingPageItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public LandingPageItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class LandingPageItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new LandingPageItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public LandingPageItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/LandingPagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/LandingPagesRequestBuilder.cs new file mode 100644 index 00000000000..3e571764063 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/LandingPagesRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Security.AttackSimulation.LandingPages.Count; +using Microsoft.Graph.Security.AttackSimulation.LandingPages.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.AttackSimulation.LandingPages { + /// + /// Provides operations to manage the landingPages property of the microsoft.graph.attackSimulationRoot entity. + /// + public class LandingPagesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the landingPages property of the microsoft.graph.attackSimulationRoot entity. + /// The unique identifier of landingPage + public LandingPageItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("landingPage%2Did", position); + return new LandingPageItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new LandingPagesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public LandingPagesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/landingPages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new LandingPagesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public LandingPagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/landingPages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get landingPages from security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, LandingPageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to landingPages for security + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Microsoft.Graph.Models.LandingPage body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(Microsoft.Graph.Models.LandingPage body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.LandingPage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get landingPages from security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new LandingPagesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to landingPages for security + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.LandingPage body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.LandingPage body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new LandingPagesRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public LandingPagesRequestBuilder WithUrl(string rawUrl) { + return new LandingPagesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get landingPages from security + /// + public class LandingPagesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class LandingPagesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public LandingPagesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new LandingPagesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new landingPagesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public LandingPagesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class LandingPagesRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new landingPagesRequestBuilderPostRequestConfiguration and sets the default values. + /// + public LandingPagesRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/LoginPages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LoginPages/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..e9db64dd27f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LoginPages/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.AttackSimulation.LoginPages.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/loginPages/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/loginPages/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/LoginPages/Item/LoginPageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LoginPages/Item/LoginPageItemRequestBuilder.cs new file mode 100644 index 00000000000..c400a60b580 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LoginPages/Item/LoginPageItemRequestBuilder.cs @@ -0,0 +1,251 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.AttackSimulation.LoginPages.Item { + /// + /// Provides operations to manage the loginPages property of the microsoft.graph.attackSimulationRoot entity. + /// + public class LoginPageItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new LoginPageItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public LoginPageItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/loginPages/{loginPage%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new LoginPageItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public LoginPageItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/loginPages/{loginPage%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property loginPages for security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get loginPages from security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.LoginPage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property loginPages in security + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(Microsoft.Graph.Models.LoginPage body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(Microsoft.Graph.Models.LoginPage body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.LoginPage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property loginPages for security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new LoginPageItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get loginPages from security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new LoginPageItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property loginPages in security + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.LoginPage body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.LoginPage body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new LoginPageItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public LoginPageItemRequestBuilder WithUrl(string rawUrl) { + return new LoginPageItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class LoginPageItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new LoginPageItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public LoginPageItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get loginPages from security + /// + public class LoginPageItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class LoginPageItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public LoginPageItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new LoginPageItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new LoginPageItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public LoginPageItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class LoginPageItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new LoginPageItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public LoginPageItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/LoginPages/LoginPagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LoginPages/LoginPagesRequestBuilder.cs new file mode 100644 index 00000000000..cdc394123ff --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LoginPages/LoginPagesRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Security.AttackSimulation.LoginPages.Count; +using Microsoft.Graph.Security.AttackSimulation.LoginPages.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.AttackSimulation.LoginPages { + /// + /// Provides operations to manage the loginPages property of the microsoft.graph.attackSimulationRoot entity. + /// + public class LoginPagesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the loginPages property of the microsoft.graph.attackSimulationRoot entity. + /// The unique identifier of loginPage + public LoginPageItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("loginPage%2Did", position); + return new LoginPageItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new LoginPagesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public LoginPagesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/loginPages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new LoginPagesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public LoginPagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/loginPages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get loginPages from security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, LoginPageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to loginPages for security + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Microsoft.Graph.Models.LoginPage body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(Microsoft.Graph.Models.LoginPage body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.LoginPage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get loginPages from security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new LoginPagesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to loginPages for security + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.LoginPage body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.LoginPage body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new LoginPagesRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public LoginPagesRequestBuilder WithUrl(string rawUrl) { + return new LoginPagesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get loginPages from security + /// + public class LoginPagesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class LoginPagesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public LoginPagesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new LoginPagesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new loginPagesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public LoginPagesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class LoginPagesRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new loginPagesRequestBuilderPostRequestConfiguration and sets the default values. + /// + public LoginPagesRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Operations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Operations/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..015979ba656 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Operations/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.AttackSimulation.Operations.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/operations/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/operations/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Operations/Item/AttackSimulationOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Operations/Item/AttackSimulationOperationItemRequestBuilder.cs new file mode 100644 index 00000000000..e1288c418d3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Operations/Item/AttackSimulationOperationItemRequestBuilder.cs @@ -0,0 +1,251 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.AttackSimulation.Operations.Item { + /// + /// Provides operations to manage the operations property of the microsoft.graph.attackSimulationRoot entity. + /// + public class AttackSimulationOperationItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new AttackSimulationOperationItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AttackSimulationOperationItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/operations/{attackSimulationOperation%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new AttackSimulationOperationItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AttackSimulationOperationItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/operations/{attackSimulationOperation%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property operations for security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get operations from security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AttackSimulationOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property operations in security + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(AttackSimulationOperation body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(AttackSimulationOperation body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AttackSimulationOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property operations for security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new AttackSimulationOperationItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get operations from security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new AttackSimulationOperationItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property operations in security + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(AttackSimulationOperation body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(AttackSimulationOperation body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new AttackSimulationOperationItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public AttackSimulationOperationItemRequestBuilder WithUrl(string rawUrl) { + return new AttackSimulationOperationItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AttackSimulationOperationItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new AttackSimulationOperationItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public AttackSimulationOperationItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get operations from security + /// + public class AttackSimulationOperationItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AttackSimulationOperationItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public AttackSimulationOperationItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AttackSimulationOperationItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new AttackSimulationOperationItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public AttackSimulationOperationItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AttackSimulationOperationItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new AttackSimulationOperationItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public AttackSimulationOperationItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Operations/OperationsRequestBuilder.cs new file mode 100644 index 00000000000..3640d92ee5b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Operations/OperationsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Security.AttackSimulation.Operations.Count; +using Microsoft.Graph.Security.AttackSimulation.Operations.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.AttackSimulation.Operations { + /// + /// Provides operations to manage the operations property of the microsoft.graph.attackSimulationRoot entity. + /// + public class OperationsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the operations property of the microsoft.graph.attackSimulationRoot entity. + /// The unique identifier of attackSimulationOperation + public AttackSimulationOperationItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("attackSimulationOperation%2Did", position); + return new AttackSimulationOperationItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new OperationsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public OperationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/operations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new OperationsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public OperationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/operations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get operations from security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AttackSimulationOperationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to operations for security + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(AttackSimulationOperation body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(AttackSimulationOperation body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AttackSimulationOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get operations from security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new OperationsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to operations for security + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(AttackSimulationOperation body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(AttackSimulationOperation body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new OperationsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public OperationsRequestBuilder WithUrl(string rawUrl) { + return new OperationsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get operations from security + /// + public class OperationsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class OperationsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public OperationsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new OperationsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new operationsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public OperationsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class OperationsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new operationsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public OperationsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Payloads/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Payloads/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..88d128377bf --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Payloads/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.AttackSimulation.Payloads.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/payloads/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/payloads/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Payloads/Item/PayloadItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Payloads/Item/PayloadItemRequestBuilder.cs new file mode 100644 index 00000000000..678b0f84fc6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Payloads/Item/PayloadItemRequestBuilder.cs @@ -0,0 +1,251 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.AttackSimulation.Payloads.Item { + /// + /// Provides operations to manage the payloads property of the microsoft.graph.attackSimulationRoot entity. + /// + public class PayloadItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new PayloadItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PayloadItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/payloads/{payload%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new PayloadItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PayloadItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/payloads/{payload%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property payloads for security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get payloads from security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Payload.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property payloads in security + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(Microsoft.Graph.Models.Payload body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(Microsoft.Graph.Models.Payload body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Payload.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property payloads for security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new PayloadItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get payloads from security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new PayloadItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property payloads in security + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Payload body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Payload body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new PayloadItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public PayloadItemRequestBuilder WithUrl(string rawUrl) { + return new PayloadItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PayloadItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new PayloadItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public PayloadItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get payloads from security + /// + public class PayloadItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PayloadItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public PayloadItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new PayloadItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new PayloadItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public PayloadItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PayloadItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new PayloadItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public PayloadItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Payloads/PayloadsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Payloads/PayloadsRequestBuilder.cs new file mode 100644 index 00000000000..2672530b761 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Payloads/PayloadsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Security.AttackSimulation.Payloads.Count; +using Microsoft.Graph.Security.AttackSimulation.Payloads.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.AttackSimulation.Payloads { + /// + /// Provides operations to manage the payloads property of the microsoft.graph.attackSimulationRoot entity. + /// + public class PayloadsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the payloads property of the microsoft.graph.attackSimulationRoot entity. + /// The unique identifier of payload + public PayloadItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("payload%2Did", position); + return new PayloadItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new PayloadsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PayloadsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/payloads{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new PayloadsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PayloadsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/payloads{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get payloads from security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PayloadCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to payloads for security + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Microsoft.Graph.Models.Payload body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(Microsoft.Graph.Models.Payload body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Payload.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get payloads from security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new PayloadsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to payloads for security + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Payload body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Payload body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new PayloadsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public PayloadsRequestBuilder WithUrl(string rawUrl) { + return new PayloadsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get payloads from security + /// + public class PayloadsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PayloadsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public PayloadsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new PayloadsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new payloadsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public PayloadsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PayloadsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new payloadsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public PayloadsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/Item/Runs/RunsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/Item/Runs/RunsRequestBuilder.cs index e3dfb7b0b20..d17bfdc2588 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/Item/Runs/RunsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/Item/Runs/RunsRequestBuilder.cs @@ -42,7 +42,7 @@ public RunsRequestBuilder(Dictionary pathParameters, IRequestAda public RunsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/simulationAutomations/{simulationAutomation%2Did}/runs{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the attack simulation automation runs for a tenant. + /// Get a list of the attack simulation automation runs for a tenant. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(SimulationAutomationRun bod return await RequestAdapter.SendAsync(requestInfo, SimulationAutomationRun.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the attack simulation automation runs for a tenant. + /// Get a list of the attack simulation automation runs for a tenant. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public RunsRequestBuilder WithUrl(string rawUrl) { return new RunsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the attack simulation automation runs for a tenant. + /// Get a list of the attack simulation automation runs for a tenant. This API is supported in the following national cloud deployments. /// public class RunsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/Item/SimulationAutomationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/Item/SimulationAutomationItemRequestBuilder.cs index 8181617948d..f85e2e60de1 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/Item/SimulationAutomationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/Item/SimulationAutomationItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Get an attack simulation automation for a tenant. + /// Get an attack simulation automation for a tenant. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an attack simulation automation for a tenant. + /// Get an attack simulation automation for a tenant. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public SimulationAutomationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an attack simulation automation for a tenant. + /// Get an attack simulation automation for a tenant. This API is supported in the following national cloud deployments. /// public class SimulationAutomationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/SimulationAutomationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/SimulationAutomationsRequestBuilder.cs index cb88b423610..01efd7b0e0f 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/SimulationAutomationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/SimulationAutomationsRequestBuilder.cs @@ -42,7 +42,7 @@ public SimulationAutomationsRequestBuilder(Dictionary pathParame public SimulationAutomationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/simulationAutomations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of attack simulation automations for a tenant. + /// Get a list of attack simulation automations for a tenant. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(SimulationAutomation body, Act return await RequestAdapter.SendAsync(requestInfo, SimulationAutomation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of attack simulation automations for a tenant. + /// Get a list of attack simulation automations for a tenant. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SimulationAutomationsRequestBuilder WithUrl(string rawUrl) { return new SimulationAutomationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of attack simulation automations for a tenant. + /// Get a list of attack simulation automations for a tenant. This API is supported in the following national cloud deployments. /// public class SimulationAutomationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/LandingPage/LandingPageRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/LandingPage/LandingPageRequestBuilder.cs new file mode 100644 index 00000000000..deb3fa4a254 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/LandingPage/LandingPageRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.AttackSimulation.Simulations.Item.LandingPage { + /// + /// Provides operations to manage the landingPage property of the microsoft.graph.simulation entity. + /// + public class LandingPageRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new LandingPageRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public LandingPageRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/simulations/{simulation%2Did}/landingPage{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new LandingPageRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public LandingPageRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/simulations/{simulation%2Did}/landingPage{?%24select,%24expand}", rawUrl) { + } + /// + /// Get landingPage from security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.LandingPage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get landingPage from security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new LandingPageRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public LandingPageRequestBuilder WithUrl(string rawUrl) { + return new LandingPageRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get landingPage from security + /// + public class LandingPageRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class LandingPageRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public LandingPageRequestBuilderGetQueryParameters QueryParameters { get; set; } = new LandingPageRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new landingPageRequestBuilderGetRequestConfiguration and sets the default values. + /// + public LandingPageRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/LoginPage/LoginPageRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/LoginPage/LoginPageRequestBuilder.cs new file mode 100644 index 00000000000..f9431a1dd34 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/LoginPage/LoginPageRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.AttackSimulation.Simulations.Item.LoginPage { + /// + /// Provides operations to manage the loginPage property of the microsoft.graph.simulation entity. + /// + public class LoginPageRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new LoginPageRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public LoginPageRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/simulations/{simulation%2Did}/loginPage{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new LoginPageRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public LoginPageRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/simulations/{simulation%2Did}/loginPage{?%24select,%24expand}", rawUrl) { + } + /// + /// Get loginPage from security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.LoginPage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get loginPage from security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new LoginPageRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public LoginPageRequestBuilder WithUrl(string rawUrl) { + return new LoginPageRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get loginPage from security + /// + public class LoginPageRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class LoginPageRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public LoginPageRequestBuilderGetQueryParameters QueryParameters { get; set; } = new LoginPageRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new loginPageRequestBuilderGetRequestConfiguration and sets the default values. + /// + public LoginPageRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/Payload/PayloadRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/Payload/PayloadRequestBuilder.cs new file mode 100644 index 00000000000..5c20a6fb7d1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/Payload/PayloadRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.AttackSimulation.Simulations.Item.Payload { + /// + /// Provides operations to manage the payload property of the microsoft.graph.simulation entity. + /// + public class PayloadRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new PayloadRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PayloadRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/simulations/{simulation%2Did}/payload{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new PayloadRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PayloadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/simulations/{simulation%2Did}/payload{?%24select,%24expand}", rawUrl) { + } + /// + /// Get payload from security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Payload.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get payload from security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new PayloadRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public PayloadRequestBuilder WithUrl(string rawUrl) { + return new PayloadRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get payload from security + /// + public class PayloadRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PayloadRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public PayloadRequestBuilderGetQueryParameters QueryParameters { get; set; } = new PayloadRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new payloadRequestBuilderGetRequestConfiguration and sets the default values. + /// + public PayloadRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/SimulationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/SimulationItemRequestBuilder.cs index 84c608b8a1b..f047eb5d879 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/SimulationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/SimulationItemRequestBuilder.cs @@ -1,6 +1,9 @@ // using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; +using Microsoft.Graph.Security.AttackSimulation.Simulations.Item.LandingPage; +using Microsoft.Graph.Security.AttackSimulation.Simulations.Item.LoginPage; +using Microsoft.Graph.Security.AttackSimulation.Simulations.Item.Payload; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -14,6 +17,18 @@ namespace Microsoft.Graph.Security.AttackSimulation.Simulations.Item { /// Provides operations to manage the simulations property of the microsoft.graph.attackSimulationRoot entity. /// public class SimulationItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the landingPage property of the microsoft.graph.simulation entity. + public LandingPageRequestBuilder LandingPage { get => + new LandingPageRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the loginPage property of the microsoft.graph.simulation entity. + public LoginPageRequestBuilder LoginPage { get => + new LoginPageRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the payload property of the microsoft.graph.simulation entity. + public PayloadRequestBuilder Payload { get => + new PayloadRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new SimulationItemRequestBuilder and sets the default values. /// @@ -48,7 +63,7 @@ public async Task DeleteAsync(Action - /// Get an attack simulation campaign for a tenant. + /// Get an attack simulation campaign for a tenant. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +128,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an attack simulation campaign for a tenant. + /// Get an attack simulation campaign for a tenant. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +205,7 @@ public SimulationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an attack simulation campaign for a tenant. + /// Get an attack simulation campaign for a tenant. This API is supported in the following national cloud deployments. /// public class SimulationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/SimulationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/SimulationsRequestBuilder.cs index e96b5862900..519fe6dfeb6 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/SimulationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/SimulationsRequestBuilder.cs @@ -42,7 +42,7 @@ public SimulationsRequestBuilder(Dictionary pathParameters, IReq public SimulationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/simulations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of attack simulation campaigns for a tenant. + /// Get a list of attack simulation campaigns for a tenant. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(Simulation body, Action(requestInfo, Simulation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of attack simulation campaigns for a tenant. + /// Get a list of attack simulation campaigns for a tenant. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SimulationsRequestBuilder WithUrl(string rawUrl) { return new SimulationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of attack simulation campaigns for a tenant. + /// Get a list of attack simulation campaigns for a tenant. This API is supported in the following national cloud deployments. /// public class SimulationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..4b8cd824fef --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.AttackSimulation.Trainings.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/trainings/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/trainings/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/Item/LanguageDetails/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/Item/LanguageDetails/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..0384f6e97d9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/Item/LanguageDetails/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.AttackSimulation.Trainings.Item.LanguageDetails.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/trainings/{training%2Did}/languageDetails/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/trainings/{training%2Did}/languageDetails/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/Item/LanguageDetails/Item/TrainingLanguageDetailItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/Item/LanguageDetails/Item/TrainingLanguageDetailItemRequestBuilder.cs new file mode 100644 index 00000000000..8afef751a56 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/Item/LanguageDetails/Item/TrainingLanguageDetailItemRequestBuilder.cs @@ -0,0 +1,251 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.AttackSimulation.Trainings.Item.LanguageDetails.Item { + /// + /// Provides operations to manage the languageDetails property of the microsoft.graph.training entity. + /// + public class TrainingLanguageDetailItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new TrainingLanguageDetailItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public TrainingLanguageDetailItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/trainings/{training%2Did}/languageDetails/{trainingLanguageDetail%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new TrainingLanguageDetailItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public TrainingLanguageDetailItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/trainings/{training%2Did}/languageDetails/{trainingLanguageDetail%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property languageDetails for security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get languageDetails from security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, TrainingLanguageDetail.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property languageDetails in security + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(TrainingLanguageDetail body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(TrainingLanguageDetail body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, TrainingLanguageDetail.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property languageDetails for security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new TrainingLanguageDetailItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get languageDetails from security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new TrainingLanguageDetailItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property languageDetails in security + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(TrainingLanguageDetail body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(TrainingLanguageDetail body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new TrainingLanguageDetailItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public TrainingLanguageDetailItemRequestBuilder WithUrl(string rawUrl) { + return new TrainingLanguageDetailItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class TrainingLanguageDetailItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new TrainingLanguageDetailItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public TrainingLanguageDetailItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get languageDetails from security + /// + public class TrainingLanguageDetailItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class TrainingLanguageDetailItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public TrainingLanguageDetailItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new TrainingLanguageDetailItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new TrainingLanguageDetailItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public TrainingLanguageDetailItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class TrainingLanguageDetailItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new TrainingLanguageDetailItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public TrainingLanguageDetailItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/Item/LanguageDetails/LanguageDetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/Item/LanguageDetails/LanguageDetailsRequestBuilder.cs new file mode 100644 index 00000000000..e692eae506b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/Item/LanguageDetails/LanguageDetailsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Security.AttackSimulation.Trainings.Item.LanguageDetails.Count; +using Microsoft.Graph.Security.AttackSimulation.Trainings.Item.LanguageDetails.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.AttackSimulation.Trainings.Item.LanguageDetails { + /// + /// Provides operations to manage the languageDetails property of the microsoft.graph.training entity. + /// + public class LanguageDetailsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the languageDetails property of the microsoft.graph.training entity. + /// The unique identifier of trainingLanguageDetail + public TrainingLanguageDetailItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("trainingLanguageDetail%2Did", position); + return new TrainingLanguageDetailItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new LanguageDetailsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public LanguageDetailsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/trainings/{training%2Did}/languageDetails{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new LanguageDetailsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public LanguageDetailsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/trainings/{training%2Did}/languageDetails{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get languageDetails from security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, TrainingLanguageDetailCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to languageDetails for security + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(TrainingLanguageDetail body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(TrainingLanguageDetail body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, TrainingLanguageDetail.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get languageDetails from security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new LanguageDetailsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to languageDetails for security + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(TrainingLanguageDetail body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(TrainingLanguageDetail body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new LanguageDetailsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public LanguageDetailsRequestBuilder WithUrl(string rawUrl) { + return new LanguageDetailsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get languageDetails from security + /// + public class LanguageDetailsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class LanguageDetailsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public LanguageDetailsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new LanguageDetailsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new languageDetailsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public LanguageDetailsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class LanguageDetailsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new languageDetailsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public LanguageDetailsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/Item/TrainingItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/Item/TrainingItemRequestBuilder.cs new file mode 100644 index 00000000000..1f094d6db03 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/Item/TrainingItemRequestBuilder.cs @@ -0,0 +1,256 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Security.AttackSimulation.Trainings.Item.LanguageDetails; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.AttackSimulation.Trainings.Item { + /// + /// Provides operations to manage the trainings property of the microsoft.graph.attackSimulationRoot entity. + /// + public class TrainingItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the languageDetails property of the microsoft.graph.training entity. + public LanguageDetailsRequestBuilder LanguageDetails { get => + new LanguageDetailsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new TrainingItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public TrainingItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/trainings/{training%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new TrainingItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public TrainingItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/trainings/{training%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property trainings for security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get trainings from security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Training.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property trainings in security + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(Training body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(Training body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Training.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property trainings for security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new TrainingItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get trainings from security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new TrainingItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property trainings in security + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(Training body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(Training body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new TrainingItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public TrainingItemRequestBuilder WithUrl(string rawUrl) { + return new TrainingItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class TrainingItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new TrainingItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public TrainingItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get trainings from security + /// + public class TrainingItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class TrainingItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public TrainingItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new TrainingItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new TrainingItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public TrainingItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class TrainingItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new TrainingItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public TrainingItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/TrainingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/TrainingsRequestBuilder.cs new file mode 100644 index 00000000000..bb5530bcb51 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/TrainingsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Security.AttackSimulation.Trainings.Count; +using Microsoft.Graph.Security.AttackSimulation.Trainings.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.AttackSimulation.Trainings { + /// + /// Provides operations to manage the trainings property of the microsoft.graph.attackSimulationRoot entity. + /// + public class TrainingsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the trainings property of the microsoft.graph.attackSimulationRoot entity. + /// The unique identifier of training + public TrainingItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("training%2Did", position); + return new TrainingItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new TrainingsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public TrainingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/trainings{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new TrainingsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public TrainingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/attackSimulation/trainings{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get trainings from security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, TrainingCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to trainings for security + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Training body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(Training body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Training.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get trainings from security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new TrainingsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to trainings for security + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Training body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Training body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new TrainingsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public TrainingsRequestBuilder WithUrl(string rawUrl) { + return new TrainingsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get trainings from security + /// + public class TrainingsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class TrainingsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public TrainingsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new TrainingsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new trainingsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public TrainingsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class TrainingsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new trainingsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public TrainingsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/EdiscoveryCasesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/EdiscoveryCasesRequestBuilder.cs index 5f77afc9c3b..b904ba4397a 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/EdiscoveryCasesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/EdiscoveryCasesRequestBuilder.cs @@ -42,7 +42,7 @@ public EdiscoveryCasesRequestBuilder(Dictionary pathParameters, public EdiscoveryCasesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the ediscoveryCase objects and their properties. + /// Get a list of the ediscoveryCase objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, EdiscoveryCaseCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new ediscoveryCase object. + /// Create a new ediscoveryCase object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(EdiscoveryCase body, Action(requestInfo, EdiscoveryCase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the ediscoveryCase objects and their properties. + /// Get a list of the ediscoveryCase objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new ediscoveryCase object. + /// Create a new ediscoveryCase object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public EdiscoveryCasesRequestBuilder WithUrl(string rawUrl) { return new EdiscoveryCasesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the ediscoveryCase objects and their properties. + /// Get a list of the ediscoveryCase objects and their properties. This API is supported in the following national cloud deployments. /// public class EdiscoveryCasesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/CustodiansRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/CustodiansRequestBuilder.cs index da0087b9670..6486f02e09b 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/CustodiansRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/CustodiansRequestBuilder.cs @@ -52,7 +52,7 @@ public CustodiansRequestBuilder(Dictionary pathParameters, IRequ public CustodiansRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/custodians{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the custodian objects and their properties. + /// Get a list of the custodian objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -72,7 +72,7 @@ public async Task GetAsync(Action(requestInfo, EdiscoveryCustodianCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new ediscoveryCustodian object.After the custodian object is created, you will need to create the custodian's userSource to reference their mailbox and OneDrive for Business site. + /// Create a new ediscoveryCustodian object.After the custodian object is created, you will need to create the custodian's userSource to reference their mailbox and OneDrive for Business site. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -94,7 +94,7 @@ public async Task PostAsync(EdiscoveryCustodian body, Actio return await RequestAdapter.SendAsync(requestInfo, EdiscoveryCustodian.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the custodian objects and their properties. + /// Get a list of the custodian objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new ediscoveryCustodian object.After the custodian object is created, you will need to create the custodian's userSource to reference their mailbox and OneDrive for Business site. + /// Create a new ediscoveryCustodian object.After the custodian object is created, you will need to create the custodian's userSource to reference their mailbox and OneDrive for Business site. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -155,7 +155,7 @@ public CustodiansRequestBuilder WithUrl(string rawUrl) { return new CustodiansRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the custodian objects and their properties. + /// Get a list of the custodian objects and their properties. This API is supported in the following national cloud deployments. /// public class CustodiansRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/EdiscoveryCustodianItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/EdiscoveryCustodianItemRequestBuilder.cs index b0808a6a6cd..a6eb8ed81ae 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/EdiscoveryCustodianItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/EdiscoveryCustodianItemRequestBuilder.cs @@ -93,7 +93,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an ediscoveryCustodian object. + /// Read the properties and relationships of an ediscoveryCustodian object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -158,7 +158,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an ediscoveryCustodian object. + /// Read the properties and relationships of an ediscoveryCustodian object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -235,7 +235,7 @@ public EdiscoveryCustodianItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of an ediscoveryCustodian object. + /// Read the properties and relationships of an ediscoveryCustodian object. This API is supported in the following national cloud deployments. /// public class EdiscoveryCustodianItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/LastIndexOperation/LastIndexOperationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/LastIndexOperation/LastIndexOperationRequestBuilder.cs index a4f746aac9d..12e5aea4d10 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/LastIndexOperation/LastIndexOperationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/LastIndexOperation/LastIndexOperationRequestBuilder.cs @@ -29,7 +29,7 @@ public LastIndexOperationRequestBuilder(Dictionary pathParameter public LastIndexOperationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/custodians/{ediscoveryCustodian%2Did}/lastIndexOperation{?%24select,%24expand}", rawUrl) { } /// - /// Get a list of the ediscoveryIndexOperations associated with an ediscoveryCustodian. + /// Get a list of the ediscoveryIndexOperations associated with an ediscoveryCustodian. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, EdiscoveryIndexOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the ediscoveryIndexOperations associated with an ediscoveryCustodian. + /// Get a list of the ediscoveryIndexOperations associated with an ediscoveryCustodian. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -82,7 +82,7 @@ public LastIndexOperationRequestBuilder WithUrl(string rawUrl) { return new LastIndexOperationRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the ediscoveryIndexOperations associated with an ediscoveryCustodian. + /// Get a list of the ediscoveryIndexOperations associated with an ediscoveryCustodian. This API is supported in the following national cloud deployments. /// public class LastIndexOperationRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityActivate/MicrosoftGraphSecurityActivateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityActivate/MicrosoftGraphSecurityActivateRequestBuilder.cs index 46862c95631..59c96ba8e59 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityActivate/MicrosoftGraphSecurityActivateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityActivate/MicrosoftGraphSecurityActivateRequestBuilder.cs @@ -28,7 +28,7 @@ public MicrosoftGraphSecurityActivateRequestBuilder(Dictionary p public MicrosoftGraphSecurityActivateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/custodians/{ediscoveryCustodian%2Did}/microsoft.graph.security.activate", rawUrl) { } /// - /// Activate a custodian that has been released from a case to make them part of the case again. For details, see Manage custodians in an eDiscovery (Premium) case. + /// Activate a custodian that has been released from a case to make them part of the case again. For details, see Manage custodians in an eDiscovery (Premium) case. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Activate a custodian that has been released from a case to make them part of the case again. For details, see Manage custodians in an eDiscovery (Premium) case. + /// Activate a custodian that has been released from a case to make them part of the case again. For details, see Manage custodians in an eDiscovery (Premium) case. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.cs index 1c5ecb4a180..66bb6106f7a 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.cs @@ -28,7 +28,7 @@ public MicrosoftGraphSecurityApplyHoldRequestBuilder(Dictionary public MicrosoftGraphSecurityApplyHoldRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/custodians/{ediscoveryCustodian%2Did}/microsoft.graph.security.applyHold", rawUrl) { } /// - /// Start the process of applying hold on eDiscovery custodians. After the operation is created, you can get the status by retrieving the Location parameter from the response headers. The location provides a URL that will return an eDiscoveryHoldOperation object. + /// Start the process of applying hold on eDiscovery custodians. After the operation is created, you can get the status by retrieving the Location parameter from the response headers. The location provides a URL that will return an eDiscoveryHoldOperation object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Start the process of applying hold on eDiscovery custodians. After the operation is created, you can get the status by retrieving the Location parameter from the response headers. The location provides a URL that will return an eDiscoveryHoldOperation object. + /// Start the process of applying hold on eDiscovery custodians. After the operation is created, you can get the status by retrieving the Location parameter from the response headers. The location provides a URL that will return an eDiscoveryHoldOperation object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityRelease/MicrosoftGraphSecurityReleaseRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityRelease/MicrosoftGraphSecurityReleaseRequestBuilder.cs index cc6029caccf..a93d25e2cb1 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityRelease/MicrosoftGraphSecurityReleaseRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityRelease/MicrosoftGraphSecurityReleaseRequestBuilder.cs @@ -28,7 +28,7 @@ public MicrosoftGraphSecurityReleaseRequestBuilder(Dictionary pa public MicrosoftGraphSecurityReleaseRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/custodians/{ediscoveryCustodian%2Did}/microsoft.graph.security.release", rawUrl) { } /// - /// Release a custodian from a case. For details, see Release a custodian from a case. + /// Release a custodian from a case. For details, see Release a custodian from a case. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Release a custodian from a case. For details, see Release a custodian from a case. + /// Release a custodian from a case. For details, see Release a custodian from a case. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.cs index 80e146fa5aa..1b43e8d8783 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.cs @@ -28,7 +28,7 @@ public MicrosoftGraphSecurityRemoveHoldRequestBuilder(Dictionary public MicrosoftGraphSecurityRemoveHoldRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/custodians/{ediscoveryCustodian%2Did}/microsoft.graph.security.removeHold", rawUrl) { } /// - /// Start the process of removing hold from eDiscovery custodians. After the operation is created, you can get the status by retrieving the Location parameter from the response headers. The location provides a URL that will return an eDiscoveryHoldOperation object. + /// Start the process of removing hold from eDiscovery custodians. After the operation is created, you can get the status by retrieving the Location parameter from the response headers. The location provides a URL that will return an eDiscoveryHoldOperation object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Start the process of removing hold from eDiscovery custodians. After the operation is created, you can get the status by retrieving the Location parameter from the response headers. The location provides a URL that will return an eDiscoveryHoldOperation object. + /// Start the process of removing hold from eDiscovery custodians. After the operation is created, you can get the status by retrieving the Location parameter from the response headers. The location provides a URL that will return an eDiscoveryHoldOperation object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityUpdateIndex/MicrosoftGraphSecurityUpdateIndexRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityUpdateIndex/MicrosoftGraphSecurityUpdateIndexRequestBuilder.cs index b9d14910416..1871d7343c7 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityUpdateIndex/MicrosoftGraphSecurityUpdateIndexRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityUpdateIndex/MicrosoftGraphSecurityUpdateIndexRequestBuilder.cs @@ -28,7 +28,7 @@ public MicrosoftGraphSecurityUpdateIndexRequestBuilder(Dictionary - /// Trigger an indexOperation to make a custodian and associated sources searchable. + /// Trigger an indexOperation to make a custodian and associated sources searchable. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Trigger an indexOperation to make a custodian and associated sources searchable. + /// Trigger an indexOperation to make a custodian and associated sources searchable. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/SiteSourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/SiteSourcesRequestBuilder.cs index 5325836c166..25bc0eec88d 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/SiteSourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/SiteSourcesRequestBuilder.cs @@ -42,7 +42,7 @@ public SiteSourcesRequestBuilder(Dictionary pathParameters, IReq public SiteSourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/custodians/{ediscoveryCustodian%2Did}/siteSources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the siteSource objects associated with an ediscoveryCustodian. + /// Get a list of the siteSource objects associated with an ediscoveryCustodian. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, SiteSourceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new siteSource object associated with an eDiscovery custodian. + /// Create a new siteSource object associated with an eDiscovery custodian. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(SiteSource body, Action(requestInfo, SiteSource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the siteSource objects associated with an ediscoveryCustodian. + /// Get a list of the siteSource objects associated with an ediscoveryCustodian. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new siteSource object associated with an eDiscovery custodian. + /// Create a new siteSource object associated with an eDiscovery custodian. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SiteSourcesRequestBuilder WithUrl(string rawUrl) { return new SiteSourcesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the siteSource objects associated with an ediscoveryCustodian. + /// Get a list of the siteSource objects associated with an ediscoveryCustodian. This API is supported in the following national cloud deployments. /// public class SiteSourcesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/Group/GroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/Group/GroupRequestBuilder.cs index 26f739c3a96..56e93413d3a 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/Group/GroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/Group/GroupRequestBuilder.cs @@ -1,6 +1,7 @@ // using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; +using Microsoft.Graph.Security.Cases.EdiscoveryCases.Item.Custodians.Item.UnifiedGroupSources.Item.Group.ServiceProvisioningErrors; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -14,6 +15,10 @@ namespace Microsoft.Graph.Security.Cases.EdiscoveryCases.Item.Custodians.Item.Un /// Provides operations to manage the group property of the microsoft.graph.security.unifiedGroupSource entity. /// public class GroupRequestBuilder : BaseRequestBuilder { + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new GroupRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..69e1016dc86 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.Cases.EdiscoveryCases.Item.Custodians.Item.UnifiedGroupSources.Item.Group.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/custodians/{ediscoveryCustodian%2Did}/unifiedGroupSources/{unifiedGroupSource%2Did}/group/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/custodians/{ediscoveryCustodian%2Did}/unifiedGroupSources/{unifiedGroupSource%2Did}/group/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..361928b5345 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Security.Cases.EdiscoveryCases.Item.Custodians.Item.UnifiedGroupSources.Item.Group.ServiceProvisioningErrors.Count; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.Cases.EdiscoveryCases.Item.Custodians.Item.UnifiedGroupSources.Item.Group.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \security\cases\ediscoveryCases\{ediscoveryCase-id}\custodians\{ediscoveryCustodian-id}\unifiedGroupSources\{unifiedGroupSource-id}\group\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/custodians/{ediscoveryCustodian%2Did}/unifiedGroupSources/{unifiedGroupSource%2Did}/group/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/custodians/{ediscoveryCustodian%2Did}/unifiedGroupSources/{unifiedGroupSource%2Did}/group/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/UnifiedGroupSourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/UnifiedGroupSourcesRequestBuilder.cs index 7891dad79e3..349b436eb2f 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/UnifiedGroupSourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/UnifiedGroupSourcesRequestBuilder.cs @@ -42,7 +42,7 @@ public UnifiedGroupSourcesRequestBuilder(Dictionary pathParamete public UnifiedGroupSourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/custodians/{ediscoveryCustodian%2Did}/unifiedGroupSources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the unifiedGroupSource objects associated with an ediscoveryCustodian. + /// Get a list of the unifiedGroupSource objects associated with an ediscoveryCustodian. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, UnifiedGroupSourceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new unifiedGroupSource object associated with an eDiscovery custodian. + /// Create a new unifiedGroupSource object associated with an eDiscovery custodian. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(UnifiedGroupSource body, Action< return await RequestAdapter.SendAsync(requestInfo, UnifiedGroupSource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the unifiedGroupSource objects associated with an ediscoveryCustodian. + /// Get a list of the unifiedGroupSource objects associated with an ediscoveryCustodian. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new unifiedGroupSource object associated with an eDiscovery custodian. + /// Create a new unifiedGroupSource object associated with an eDiscovery custodian. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public UnifiedGroupSourcesRequestBuilder WithUrl(string rawUrl) { return new UnifiedGroupSourcesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the unifiedGroupSource objects associated with an ediscoveryCustodian. + /// Get a list of the unifiedGroupSource objects associated with an ediscoveryCustodian. This API is supported in the following national cloud deployments. /// public class UnifiedGroupSourcesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UserSources/UserSourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UserSources/UserSourcesRequestBuilder.cs index d56e3c57e44..35782f34028 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UserSources/UserSourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UserSources/UserSourcesRequestBuilder.cs @@ -42,7 +42,7 @@ public UserSourcesRequestBuilder(Dictionary pathParameters, IReq public UserSourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/custodians/{ediscoveryCustodian%2Did}/userSources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the userSource objects associated with an ediscoveryCustodian. + /// Get a list of the userSource objects associated with an ediscoveryCustodian. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, UserSourceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new userSource object associated with an eDiscovery custodian. + /// Create a new userSource object associated with an eDiscovery custodian. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(UserSource body, Action(requestInfo, UserSource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the userSource objects associated with an ediscoveryCustodian. + /// Get a list of the userSource objects associated with an ediscoveryCustodian. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new userSource object associated with an eDiscovery custodian. + /// Create a new userSource object associated with an eDiscovery custodian. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public UserSourcesRequestBuilder WithUrl(string rawUrl) { return new UserSourcesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the userSource objects associated with an ediscoveryCustodian. + /// Get a list of the userSource objects associated with an ediscoveryCustodian. This API is supported in the following national cloud deployments. /// public class UserSourcesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/EdiscoveryCaseItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/EdiscoveryCaseItemRequestBuilder.cs index d5dfa791323..b59cd4ce7d2 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/EdiscoveryCaseItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/EdiscoveryCaseItemRequestBuilder.cs @@ -74,7 +74,7 @@ public EdiscoveryCaseItemRequestBuilder(Dictionary pathParameter public EdiscoveryCaseItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an ediscoveryCase object. + /// Delete an ediscoveryCase object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -94,7 +94,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an ediscoveryCase object. + /// Read the properties and relationships of an ediscoveryCase object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public async Task GetAsync(Action(requestInfo, EdiscoveryCase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an ediscoveryCase object. + /// Update the properties of an ediscoveryCase object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -136,7 +136,7 @@ public async Task PatchAsync(EdiscoveryCase body, Action(requestInfo, EdiscoveryCase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an ediscoveryCase object. + /// Delete an ediscoveryCase object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -160,7 +160,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an ediscoveryCase object. + /// Read the properties and relationships of an ediscoveryCase object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -186,7 +186,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an ediscoveryCase object. + /// Update the properties of an ediscoveryCase object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -237,7 +237,7 @@ public EdiscoveryCaseItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of an ediscoveryCase object. + /// Read the properties and relationships of an ediscoveryCase object. This API is supported in the following national cloud deployments. /// public class EdiscoveryCaseItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/MicrosoftGraphSecurityClose/MicrosoftGraphSecurityCloseRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/MicrosoftGraphSecurityClose/MicrosoftGraphSecurityCloseRequestBuilder.cs index eaeedd84546..32e3bc717de 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/MicrosoftGraphSecurityClose/MicrosoftGraphSecurityCloseRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/MicrosoftGraphSecurityClose/MicrosoftGraphSecurityCloseRequestBuilder.cs @@ -28,7 +28,7 @@ public MicrosoftGraphSecurityCloseRequestBuilder(Dictionary path public MicrosoftGraphSecurityCloseRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/microsoft.graph.security.close", rawUrl) { } /// - /// Close an eDiscovery case. For details, see Close a case. + /// Close an eDiscovery case. For details, see Close a case. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Close an eDiscovery case. For details, see Close a case. + /// Close an eDiscovery case. For details, see Close a case. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/MicrosoftGraphSecurityReopen/MicrosoftGraphSecurityReopenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/MicrosoftGraphSecurityReopen/MicrosoftGraphSecurityReopenRequestBuilder.cs index 5ae62149166..9d1ea5b1dbb 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/MicrosoftGraphSecurityReopen/MicrosoftGraphSecurityReopenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/MicrosoftGraphSecurityReopen/MicrosoftGraphSecurityReopenRequestBuilder.cs @@ -28,7 +28,7 @@ public MicrosoftGraphSecurityReopenRequestBuilder(Dictionary pat public MicrosoftGraphSecurityReopenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/microsoft.graph.security.reopen", rawUrl) { } /// - /// Reopen an eDiscovery case that was closed. For details, see Reopen a closed case. + /// Reopen an eDiscovery case that was closed. For details, see Reopen a closed case. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Reopen an eDiscovery case that was closed. For details, see Reopen a closed case. + /// Reopen an eDiscovery case that was closed. For details, see Reopen a closed case. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.cs index afdeebc9571..0832f519285 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.cs @@ -28,7 +28,7 @@ public MicrosoftGraphSecurityApplyHoldRequestBuilder(Dictionary public MicrosoftGraphSecurityApplyHoldRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/noncustodialDataSources/{ediscoveryNoncustodialDataSource%2Did}/microsoft.graph.security.applyHold", rawUrl) { } /// - /// Start the process of applying hold on eDiscovery non-custodial data sources. After the operation is created, you can get the status by retrieving the Location parameter from the response headers. The location provides a URL that returns an eDiscoveryHoldOperation object. + /// Start the process of applying hold on eDiscovery non-custodial data sources. After the operation is created, you can get the status by retrieving the Location parameter from the response headers. The location provides a URL that returns an eDiscoveryHoldOperation object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Start the process of applying hold on eDiscovery non-custodial data sources. After the operation is created, you can get the status by retrieving the Location parameter from the response headers. The location provides a URL that returns an eDiscoveryHoldOperation object. + /// Start the process of applying hold on eDiscovery non-custodial data sources. After the operation is created, you can get the status by retrieving the Location parameter from the response headers. The location provides a URL that returns an eDiscoveryHoldOperation object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityRelease/MicrosoftGraphSecurityReleaseRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityRelease/MicrosoftGraphSecurityReleaseRequestBuilder.cs index 57d0ef64edd..05ffddeec52 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityRelease/MicrosoftGraphSecurityReleaseRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityRelease/MicrosoftGraphSecurityReleaseRequestBuilder.cs @@ -28,7 +28,7 @@ public MicrosoftGraphSecurityReleaseRequestBuilder(Dictionary pa public MicrosoftGraphSecurityReleaseRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/noncustodialDataSources/{ediscoveryNoncustodialDataSource%2Did}/microsoft.graph.security.release", rawUrl) { } /// - /// Release the non-custodial data source from the case. + /// Release the non-custodial data source from the case. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Release the non-custodial data source from the case. + /// Release the non-custodial data source from the case. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.cs index 5525f94c9a3..7e185a99d7b 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.cs @@ -28,7 +28,7 @@ public MicrosoftGraphSecurityRemoveHoldRequestBuilder(Dictionary public MicrosoftGraphSecurityRemoveHoldRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/noncustodialDataSources/{ediscoveryNoncustodialDataSource%2Did}/microsoft.graph.security.removeHold", rawUrl) { } /// - /// Start the process of removing hold from eDiscovery non-custodial data sources. After the operation is created, you can get the status by retrieving the Location parameter from the response headers. The location provides a URL that returns an eDiscoveryHoldOperation object. + /// Start the process of removing hold from eDiscovery non-custodial data sources. After the operation is created, you can get the status by retrieving the Location parameter from the response headers. The location provides a URL that returns an eDiscoveryHoldOperation object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Start the process of removing hold from eDiscovery non-custodial data sources. After the operation is created, you can get the status by retrieving the Location parameter from the response headers. The location provides a URL that returns an eDiscoveryHoldOperation object. + /// Start the process of removing hold from eDiscovery non-custodial data sources. After the operation is created, you can get the status by retrieving the Location parameter from the response headers. The location provides a URL that returns an eDiscoveryHoldOperation object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityUpdateIndex/MicrosoftGraphSecurityUpdateIndexRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityUpdateIndex/MicrosoftGraphSecurityUpdateIndexRequestBuilder.cs index 5f7a378eaed..8494c008109 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityUpdateIndex/MicrosoftGraphSecurityUpdateIndexRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityUpdateIndex/MicrosoftGraphSecurityUpdateIndexRequestBuilder.cs @@ -28,7 +28,7 @@ public MicrosoftGraphSecurityUpdateIndexRequestBuilder(Dictionary - /// Trigger an indexOperation to make a non-custodial data source and its associated data source searchable. + /// Trigger an indexOperation to make a non-custodial data source and its associated data source searchable. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Trigger an indexOperation to make a non-custodial data source and its associated data source searchable. + /// Trigger an indexOperation to make a non-custodial data source and its associated data source searchable. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/NoncustodialDataSourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/NoncustodialDataSourcesRequestBuilder.cs index 888f2a65e6d..d711fa03f97 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/NoncustodialDataSourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/NoncustodialDataSourcesRequestBuilder.cs @@ -71,7 +71,7 @@ public async Task GetAsync(A return await RequestAdapter.SendAsync(requestInfo, EdiscoveryNoncustodialDataSourceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new ediscoveryNoncustodialDataSource object. + /// Create a new ediscoveryNoncustodialDataSource object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -119,7 +119,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new ediscoveryNoncustodialDataSource object. + /// Create a new ediscoveryNoncustodialDataSource object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Operations/Item/CaseOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Operations/Item/CaseOperationItemRequestBuilder.cs index e63c2b7c83e..68996905372 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Operations/Item/CaseOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Operations/Item/CaseOperationItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a caseOperation object. + /// Read the properties and relationships of a caseOperation object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a caseOperation object. + /// Read the properties and relationships of a caseOperation object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public CaseOperationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a caseOperation object. + /// Read the properties and relationships of a caseOperation object. This API is supported in the following national cloud deployments. /// public class CaseOperationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Operations/OperationsRequestBuilder.cs index bcb7fdd0940..d57498872d0 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Operations/OperationsRequestBuilder.cs @@ -42,7 +42,7 @@ public OperationsRequestBuilder(Dictionary pathParameters, IRequ public OperationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/operations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the caseOperation objects and their properties. + /// Get a list of the caseOperation objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(CaseOperation body, Action(requestInfo, CaseOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the caseOperation objects and their properties. + /// Get a list of the caseOperation objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public OperationsRequestBuilder WithUrl(string rawUrl) { return new OperationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the caseOperation objects and their properties. + /// Get a list of the caseOperation objects and their properties. This API is supported in the following national cloud deployments. /// public class OperationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/EdiscoveryReviewSetItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/EdiscoveryReviewSetItemRequestBuilder.cs index d934e01b093..702d5a2819b 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/EdiscoveryReviewSetItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/EdiscoveryReviewSetItemRequestBuilder.cs @@ -63,7 +63,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an ediscoveryReviewSet object. + /// Read the properties and relationships of an ediscoveryReviewSet object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -128,7 +128,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an ediscoveryReviewSet object. + /// Read the properties and relationships of an ediscoveryReviewSet object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -205,7 +205,7 @@ public EdiscoveryReviewSetItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of an ediscoveryReviewSet object. + /// Read the properties and relationships of an ediscoveryReviewSet object. This API is supported in the following national cloud deployments. /// public class EdiscoveryReviewSetItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityAddToReviewSet/MicrosoftGraphSecurityAddToReviewSetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityAddToReviewSet/MicrosoftGraphSecurityAddToReviewSetRequestBuilder.cs index 95f0fbaafae..f8027ea3050 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityAddToReviewSet/MicrosoftGraphSecurityAddToReviewSetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityAddToReviewSet/MicrosoftGraphSecurityAddToReviewSetRequestBuilder.cs @@ -28,7 +28,7 @@ public MicrosoftGraphSecurityAddToReviewSetRequestBuilder(Dictionary - /// Start the process of adding a collection from Microsoft 365 services to a review set. After the operation is created, you can get the status of the operation by retrieving the Location parameter from the response headers. The location provides a URL that will return a Add to review set operation. + /// Start the process of adding a collection from Microsoft 365 services to a review set. After the operation is created, you can get the status of the operation by retrieving the Location parameter from the response headers. The location provides a URL that will return a Add to review set operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AddToReviewSetPostRequestBody body, Action - /// Start the process of adding a collection from Microsoft 365 services to a review set. After the operation is created, you can get the status of the operation by retrieving the Location parameter from the response headers. The location provides a URL that will return a Add to review set operation. + /// Start the process of adding a collection from Microsoft 365 services to a review set. After the operation is created, you can get the status of the operation by retrieving the Location parameter from the response headers. The location provides a URL that will return a Add to review set operation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityExport/MicrosoftGraphSecurityExportRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityExport/MicrosoftGraphSecurityExportRequestBuilder.cs index 502b4b9763a..6a867dab0b3 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityExport/MicrosoftGraphSecurityExportRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityExport/MicrosoftGraphSecurityExportRequestBuilder.cs @@ -28,7 +28,7 @@ public MicrosoftGraphSecurityExportRequestBuilder(Dictionary pat public MicrosoftGraphSecurityExportRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/reviewSets/{ediscoveryReviewSet%2Did}/microsoft.graph.security.export", rawUrl) { } /// - /// Initiate an export from a ediscoveryReviewSet. For details, see Export documents from a review set in eDiscovery (Premium). + /// Initiate an export from a ediscoveryReviewSet. For details, see Export documents from a review set in eDiscovery (Premium). This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ExportPostRequestBody body, Action - /// Initiate an export from a ediscoveryReviewSet. For details, see Export documents from a review set in eDiscovery (Premium). + /// Initiate an export from a ediscoveryReviewSet. For details, see Export documents from a review set in eDiscovery (Premium). This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/EdiscoveryReviewSetQueryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/EdiscoveryReviewSetQueryItemRequestBuilder.cs index 8d225029947..02f071d21e2 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/EdiscoveryReviewSetQueryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/EdiscoveryReviewSetQueryItemRequestBuilder.cs @@ -39,7 +39,7 @@ public EdiscoveryReviewSetQueryItemRequestBuilder(Dictionary pat public EdiscoveryReviewSetQueryItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/reviewSets/{ediscoveryReviewSet%2Did}/queries/{ediscoveryReviewSetQuery%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an ediscoveryReviewSetQuery object. + /// Delete an ediscoveryReviewSetQuery object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -59,7 +59,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an ediscoveryReviewSetQuery object. + /// Read the properties and relationships of an ediscoveryReviewSetQuery object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -79,7 +79,7 @@ public async Task GetAsync(Action(requestInfo, EdiscoveryReviewSetQuery.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an ediscoveryReviewSetQuery object. + /// Update the properties of an ediscoveryReviewSetQuery object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -101,7 +101,7 @@ public async Task PatchAsync(EdiscoveryReviewSetQuery return await RequestAdapter.SendAsync(requestInfo, EdiscoveryReviewSetQuery.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an ediscoveryReviewSetQuery object. + /// Delete an ediscoveryReviewSetQuery object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -125,7 +125,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an ediscoveryReviewSetQuery object. + /// Read the properties and relationships of an ediscoveryReviewSetQuery object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -151,7 +151,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an ediscoveryReviewSetQuery object. + /// Update the properties of an ediscoveryReviewSetQuery object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -202,7 +202,7 @@ public EdiscoveryReviewSetQueryItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of an ediscoveryReviewSetQuery object. + /// Read the properties and relationships of an ediscoveryReviewSetQuery object. This API is supported in the following national cloud deployments. /// public class EdiscoveryReviewSetQueryItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityApplyTags/MicrosoftGraphSecurityApplyTagsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityApplyTags/MicrosoftGraphSecurityApplyTagsRequestBuilder.cs index 9b6296005b3..a203196fe11 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityApplyTags/MicrosoftGraphSecurityApplyTagsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityApplyTags/MicrosoftGraphSecurityApplyTagsRequestBuilder.cs @@ -28,7 +28,7 @@ public MicrosoftGraphSecurityApplyTagsRequestBuilder(Dictionary public MicrosoftGraphSecurityApplyTagsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/reviewSets/{ediscoveryReviewSet%2Did}/queries/{ediscoveryReviewSetQuery%2Did}/microsoft.graph.security.applyTags", rawUrl) { } /// - /// Apply tags to files in an eDiscovery review set. For details, see Tag documents in a review set in eDiscovery. + /// Apply tags to files in an eDiscovery review set. For details, see Tag documents in a review set in eDiscovery. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ApplyTagsPostRequestBody body, Action - /// Apply tags to files in an eDiscovery review set. For details, see Tag documents in a review set in eDiscovery. + /// Apply tags to files in an eDiscovery review set. For details, see Tag documents in a review set in eDiscovery. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityExport/MicrosoftGraphSecurityExportRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityExport/MicrosoftGraphSecurityExportRequestBuilder.cs index 3eba336597f..d6a1dd20da5 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityExport/MicrosoftGraphSecurityExportRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityExport/MicrosoftGraphSecurityExportRequestBuilder.cs @@ -28,7 +28,7 @@ public MicrosoftGraphSecurityExportRequestBuilder(Dictionary pat public MicrosoftGraphSecurityExportRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/reviewSets/{ediscoveryReviewSet%2Did}/queries/{ediscoveryReviewSetQuery%2Did}/microsoft.graph.security.export", rawUrl) { } /// - /// Initiate an export from a ediscoveryReviewSetQuery. For details, see Export documents from a review set in eDiscovery (Premium). + /// Initiate an export from a ediscoveryReviewSetQuery. For details, see Export documents from a review set in eDiscovery (Premium). This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ExportPostRequestBody body, Action - /// Initiate an export from a ediscoveryReviewSetQuery. For details, see Export documents from a review set in eDiscovery (Premium). + /// Initiate an export from a ediscoveryReviewSetQuery. For details, see Export documents from a review set in eDiscovery (Premium). This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/QueriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/QueriesRequestBuilder.cs index e743a2bb024..f8f72dd03d3 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/QueriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/QueriesRequestBuilder.cs @@ -42,7 +42,7 @@ public QueriesRequestBuilder(Dictionary pathParameters, IRequest public QueriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/reviewSets/{ediscoveryReviewSet%2Did}/queries{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of queries associated with an eDiscovery review set. + /// Get the list of queries associated with an eDiscovery review set. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, EdiscoveryReviewSetQueryCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new ediscoveryReviewSetQuery object. + /// Create a new ediscoveryReviewSetQuery object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(EdiscoveryReviewSetQuery b return await RequestAdapter.SendAsync(requestInfo, EdiscoveryReviewSetQuery.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of queries associated with an eDiscovery review set. + /// Get the list of queries associated with an eDiscovery review set. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new ediscoveryReviewSetQuery object. + /// Create a new ediscoveryReviewSetQuery object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public QueriesRequestBuilder WithUrl(string rawUrl) { return new QueriesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of queries associated with an eDiscovery review set. + /// Get the list of queries associated with an eDiscovery review set. This API is supported in the following national cloud deployments. /// public class QueriesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/ReviewSetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/ReviewSetsRequestBuilder.cs index 3ae9372fd77..b95513dcbc4 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/ReviewSetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/ReviewSetsRequestBuilder.cs @@ -42,7 +42,7 @@ public ReviewSetsRequestBuilder(Dictionary pathParameters, IRequ public ReviewSetsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/reviewSets{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of ediscoveryReviewSet objects associated with an eDiscovery case. + /// Get a list of ediscoveryReviewSet objects associated with an eDiscovery case. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, EdiscoveryReviewSetCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new ediscoveryReviewSet object. + /// Create a new ediscoveryReviewSet object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(EdiscoveryReviewSet body, Actio return await RequestAdapter.SendAsync(requestInfo, EdiscoveryReviewSet.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of ediscoveryReviewSet objects associated with an eDiscovery case. + /// Get a list of ediscoveryReviewSet objects associated with an eDiscovery case. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new ediscoveryReviewSet object. + /// Create a new ediscoveryReviewSet object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ReviewSetsRequestBuilder WithUrl(string rawUrl) { return new ReviewSetsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of ediscoveryReviewSet objects associated with an eDiscovery case. + /// Get a list of ediscoveryReviewSet objects associated with an eDiscovery case. This API is supported in the following national cloud deployments. /// public class ReviewSetsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AdditionalSources/AdditionalSourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AdditionalSources/AdditionalSourcesRequestBuilder.cs index 3630c9f3a23..91d0ef9cd46 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AdditionalSources/AdditionalSourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AdditionalSources/AdditionalSourcesRequestBuilder.cs @@ -42,7 +42,7 @@ public AdditionalSourcesRequestBuilder(Dictionary pathParameters public AdditionalSourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/searches/{ediscoverySearch%2Did}/additionalSources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of additional sources associated with an eDiscovery search. + /// Get the list of additional sources associated with an eDiscovery search. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, DataSourceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new additional source associated with an eDiscovery search. + /// Create a new additional source associated with an eDiscovery search. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Security.DataSource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of additional sources associated with an eDiscovery search. + /// Get the list of additional sources associated with an eDiscovery search. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new additional source associated with an eDiscovery search. + /// Create a new additional source associated with an eDiscovery search. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public AdditionalSourcesRequestBuilder WithUrl(string rawUrl) { return new AdditionalSourcesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of additional sources associated with an eDiscovery search. + /// Get the list of additional sources associated with an eDiscovery search. This API is supported in the following national cloud deployments. /// public class AdditionalSourcesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/CustodianSources/CustodianSourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/CustodianSources/CustodianSourcesRequestBuilder.cs index d7a792b5d77..0825518b98c 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/CustodianSources/CustodianSourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/CustodianSources/CustodianSourcesRequestBuilder.cs @@ -42,7 +42,7 @@ public CustodianSourcesRequestBuilder(Dictionary pathParameters, public CustodianSourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/searches/{ediscoverySearch%2Did}/custodianSources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of custodial data sources associated with an eDiscovery search. + /// Get the list of custodial data sources associated with an eDiscovery search. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, DataSourceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of custodial data sources associated with an eDiscovery search. + /// Get the list of custodial data sources associated with an eDiscovery search. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public CustodianSourcesRequestBuilder WithUrl(string rawUrl) { return new CustodianSourcesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of custodial data sources associated with an eDiscovery search. + /// Get the list of custodial data sources associated with an eDiscovery search. This API is supported in the following national cloud deployments. /// public class CustodianSourcesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/EdiscoverySearchItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/EdiscoverySearchItemRequestBuilder.cs index 030bc01b983..444f2feadf2 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/EdiscoverySearchItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/EdiscoverySearchItemRequestBuilder.cs @@ -64,7 +64,7 @@ public EdiscoverySearchItemRequestBuilder(Dictionary pathParamet public EdiscoverySearchItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/searches/{ediscoverySearch%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an ediscoverySearch object. + /// Delete an ediscoverySearch object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an ediscoverySearch object. + /// Read the properties and relationships of an ediscoverySearch object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -104,7 +104,7 @@ public async Task GetAsync(Action(requestInfo, EdiscoverySearch.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an ediscoverySearch object. + /// Update the properties of an ediscoverySearch object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -126,7 +126,7 @@ public async Task PatchAsync(EdiscoverySearch body, Action(requestInfo, EdiscoverySearch.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an ediscoverySearch object. + /// Delete an ediscoverySearch object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -150,7 +150,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an ediscoverySearch object. + /// Read the properties and relationships of an ediscoverySearch object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -176,7 +176,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an ediscoverySearch object. + /// Update the properties of an ediscoverySearch object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -227,7 +227,7 @@ public EdiscoverySearchItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of an ediscoverySearch object. + /// Read the properties and relationships of an ediscoverySearch object. This API is supported in the following national cloud deployments. /// public class EdiscoverySearchItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/LastEstimateStatisticsOperation/LastEstimateStatisticsOperationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/LastEstimateStatisticsOperation/LastEstimateStatisticsOperationRequestBuilder.cs index 83d8908c47a..cf399f0761c 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/LastEstimateStatisticsOperation/LastEstimateStatisticsOperationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/LastEstimateStatisticsOperation/LastEstimateStatisticsOperationRequestBuilder.cs @@ -29,7 +29,7 @@ public LastEstimateStatisticsOperationRequestBuilder(Dictionary public LastEstimateStatisticsOperationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/searches/{ediscoverySearch%2Did}/lastEstimateStatisticsOperation{?%24select,%24expand}", rawUrl) { } /// - /// Get the last ediscoveryEstimateOperation objects and their properties. + /// Get the last ediscoveryEstimateOperation objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, EdiscoveryEstimateOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the last ediscoveryEstimateOperation objects and their properties. + /// Get the last ediscoveryEstimateOperation objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -82,7 +82,7 @@ public LastEstimateStatisticsOperationRequestBuilder WithUrl(string rawUrl) { return new LastEstimateStatisticsOperationRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the last ediscoveryEstimateOperation objects and their properties. + /// Get the last ediscoveryEstimateOperation objects and their properties. This API is supported in the following national cloud deployments. /// public class LastEstimateStatisticsOperationRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/MicrosoftGraphSecurityEstimateStatistics/MicrosoftGraphSecurityEstimateStatisticsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/MicrosoftGraphSecurityEstimateStatistics/MicrosoftGraphSecurityEstimateStatisticsRequestBuilder.cs index 5b1bebefd3b..42bacf21120 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/MicrosoftGraphSecurityEstimateStatistics/MicrosoftGraphSecurityEstimateStatisticsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/MicrosoftGraphSecurityEstimateStatistics/MicrosoftGraphSecurityEstimateStatisticsRequestBuilder.cs @@ -28,7 +28,7 @@ public MicrosoftGraphSecurityEstimateStatisticsRequestBuilder(Dictionary - /// Run an estimate of the number of emails and documents in the eDiscovery search. To learn more about searches in eDiscovery, see Collect data for a case in eDiscovery (Premium). + /// Run an estimate of the number of emails and documents in the eDiscovery search. To learn more about searches in eDiscovery, see Collect data for a case in eDiscovery (Premium). This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Run an estimate of the number of emails and documents in the eDiscovery search. To learn more about searches in eDiscovery, see Collect data for a case in eDiscovery (Premium). + /// Run an estimate of the number of emails and documents in the eDiscovery search. To learn more about searches in eDiscovery, see Collect data for a case in eDiscovery (Premium). This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/MicrosoftGraphSecurityPurgeData/MicrosoftGraphSecurityPurgeDataRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/MicrosoftGraphSecurityPurgeData/MicrosoftGraphSecurityPurgeDataRequestBuilder.cs index ff9bba36e0f..198a3c2c5c4 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/MicrosoftGraphSecurityPurgeData/MicrosoftGraphSecurityPurgeDataRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/MicrosoftGraphSecurityPurgeData/MicrosoftGraphSecurityPurgeDataRequestBuilder.cs @@ -28,7 +28,7 @@ public MicrosoftGraphSecurityPurgeDataRequestBuilder(Dictionary public MicrosoftGraphSecurityPurgeDataRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/searches/{ediscoverySearch%2Did}/microsoft.graph.security.purgeData", rawUrl) { } /// - /// Delete Microsoft Teams messages contained in an eDiscovery search. You can collect and purge the following categories of Teams content:- Teams 1:1 chats - Chat messages, posts, and attachments shared in a Teams conversation between two people. Teams 1:1 chats are also called *conversations*.- Teams group chats - Chat messages, posts, and attachments shared in a Teams conversation between three or more people. Also called *1:N* chats or *group conversations*.- Teams channels - Chat messages, posts, replies, and attachments shared in a standard Teams channel.- Private channels - Message posts, replies, and attachments shared in a private Teams channel.- Shared channels - Message posts, replies, and attachments shared in a shared Teams channel. For more information about purging Teams messages, see:- eDiscovery solution series: Data spillage scenario - Search and purge- eDiscovery (Premium) workflow for content in Microsoft Teams + /// Delete Microsoft Teams messages contained in an eDiscovery search. You can collect and purge the following categories of Teams content:- Teams 1:1 chats - Chat messages, posts, and attachments shared in a Teams conversation between two people. Teams 1:1 chats are also called *conversations*.- Teams group chats - Chat messages, posts, and attachments shared in a Teams conversation between three or more people. Also called *1:N* chats or *group conversations*.- Teams channels - Chat messages, posts, replies, and attachments shared in a standard Teams channel.- Private channels - Message posts, replies, and attachments shared in a private Teams channel.- Shared channels - Message posts, replies, and attachments shared in a shared Teams channel. For more information about purging Teams messages, see:- eDiscovery solution series: Data spillage scenario - Search and purge- eDiscovery (Premium) workflow for content in Microsoft Teams This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(PurgeDataPostRequestBody body, Action - /// Delete Microsoft Teams messages contained in an eDiscovery search. You can collect and purge the following categories of Teams content:- Teams 1:1 chats - Chat messages, posts, and attachments shared in a Teams conversation between two people. Teams 1:1 chats are also called *conversations*.- Teams group chats - Chat messages, posts, and attachments shared in a Teams conversation between three or more people. Also called *1:N* chats or *group conversations*.- Teams channels - Chat messages, posts, replies, and attachments shared in a standard Teams channel.- Private channels - Message posts, replies, and attachments shared in a private Teams channel.- Shared channels - Message posts, replies, and attachments shared in a shared Teams channel. For more information about purging Teams messages, see:- eDiscovery solution series: Data spillage scenario - Search and purge- eDiscovery (Premium) workflow for content in Microsoft Teams + /// Delete Microsoft Teams messages contained in an eDiscovery search. You can collect and purge the following categories of Teams content:- Teams 1:1 chats - Chat messages, posts, and attachments shared in a Teams conversation between two people. Teams 1:1 chats are also called *conversations*.- Teams group chats - Chat messages, posts, and attachments shared in a Teams conversation between three or more people. Also called *1:N* chats or *group conversations*.- Teams channels - Chat messages, posts, replies, and attachments shared in a standard Teams channel.- Private channels - Message posts, replies, and attachments shared in a private Teams channel.- Shared channels - Message posts, replies, and attachments shared in a shared Teams channel. For more information about purging Teams messages, see:- eDiscovery solution series: Data spillage scenario - Search and purge- eDiscovery (Premium) workflow for content in Microsoft Teams This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/SearchesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/SearchesRequestBuilder.cs index 01c040575ec..b8e287f0350 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/SearchesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/SearchesRequestBuilder.cs @@ -42,7 +42,7 @@ public SearchesRequestBuilder(Dictionary pathParameters, IReques public SearchesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/searches{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of ediscoverySearch resources from an eDiscoveryCase object. + /// Get the list of ediscoverySearch resources from an eDiscoveryCase object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, EdiscoverySearchCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new ediscoverySearch object. + /// Create a new ediscoverySearch object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(EdiscoverySearch body, Action(requestInfo, EdiscoverySearch.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of ediscoverySearch resources from an eDiscoveryCase object. + /// Get the list of ediscoverySearch resources from an eDiscoveryCase object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new ediscoverySearch object. + /// Create a new ediscoverySearch object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SearchesRequestBuilder WithUrl(string rawUrl) { return new SearchesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of ediscoverySearch resources from an eDiscoveryCase object. + /// Get the list of ediscoverySearch resources from an eDiscoveryCase object. This API is supported in the following national cloud deployments. /// public class SearchesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Settings/MicrosoftGraphSecurityResetToDefault/MicrosoftGraphSecurityResetToDefaultRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Settings/MicrosoftGraphSecurityResetToDefault/MicrosoftGraphSecurityResetToDefaultRequestBuilder.cs index e7dd515ec49..dc15ace7eff 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Settings/MicrosoftGraphSecurityResetToDefault/MicrosoftGraphSecurityResetToDefaultRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Settings/MicrosoftGraphSecurityResetToDefault/MicrosoftGraphSecurityResetToDefaultRequestBuilder.cs @@ -28,7 +28,7 @@ public MicrosoftGraphSecurityResetToDefaultRequestBuilder(Dictionary - /// Reset a caseSettings object to the default values. + /// Reset a caseSettings object to the default values. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Reset a caseSettings object to the default values. + /// Reset a caseSettings object to the default values. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Settings/SettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Settings/SettingsRequestBuilder.cs index e4211088aef..0a82f6b8b77 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Settings/SettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Settings/SettingsRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an ediscoveryCaseSettings object. + /// Read the properties and relationships of an ediscoveryCaseSettings object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -73,7 +73,7 @@ public async Task GetAsync(Action(requestInfo, EdiscoveryCaseSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an ediscoveryCaseSettings object. + /// Update the properties of an ediscoveryCaseSettings object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -119,7 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an ediscoveryCaseSettings object. + /// Read the properties and relationships of an ediscoveryCaseSettings object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -145,7 +145,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an ediscoveryCaseSettings object. + /// Update the properties of an ediscoveryCaseSettings object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -196,7 +196,7 @@ public SettingsRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of an ediscoveryCaseSettings object. + /// Read the properties and relationships of an ediscoveryCaseSettings object. This API is supported in the following national cloud deployments. /// public class SettingsRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/EdiscoveryReviewTagItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/EdiscoveryReviewTagItemRequestBuilder.cs index 18a82d8684c..5c622625414 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/EdiscoveryReviewTagItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/EdiscoveryReviewTagItemRequestBuilder.cs @@ -39,7 +39,7 @@ public EdiscoveryReviewTagItemRequestBuilder(Dictionary pathPara public EdiscoveryReviewTagItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/tags/{ediscoveryReviewTag%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Remove an ediscoveryReviewTag object. + /// Remove an ediscoveryReviewTag object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -59,7 +59,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an ediscoveryReviewTag object. + /// Read the properties and relationships of an ediscoveryReviewTag object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -79,7 +79,7 @@ public async Task GetAsync(Action(requestInfo, EdiscoveryReviewTag.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an ediscoveryReviewTag object. + /// Update the properties of an ediscoveryReviewTag object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -101,7 +101,7 @@ public async Task PatchAsync(EdiscoveryReviewTag body, Acti return await RequestAdapter.SendAsync(requestInfo, EdiscoveryReviewTag.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Remove an ediscoveryReviewTag object. + /// Remove an ediscoveryReviewTag object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -125,7 +125,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an ediscoveryReviewTag object. + /// Read the properties and relationships of an ediscoveryReviewTag object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -151,7 +151,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an ediscoveryReviewTag object. + /// Update the properties of an ediscoveryReviewTag object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -202,7 +202,7 @@ public EdiscoveryReviewTagItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of an ediscoveryReviewTag object. + /// Read the properties and relationships of an ediscoveryReviewTag object. This API is supported in the following national cloud deployments. /// public class EdiscoveryReviewTagItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/MicrosoftGraphSecurityAsHierarchy/AsHierarchyGetResponse.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/MicrosoftGraphSecurityAsHierarchy/AsHierarchyGetResponse.cs new file mode 100644 index 00000000000..2c80b1ba748 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/MicrosoftGraphSecurityAsHierarchy/AsHierarchyGetResponse.cs @@ -0,0 +1,51 @@ +// +using Microsoft.Graph.Models.Security; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Security.Cases.EdiscoveryCases.Item.Tags.MicrosoftGraphSecurityAsHierarchy { + public class AsHierarchyGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AsHierarchyGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AsHierarchyGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(EdiscoveryReviewTag.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/MicrosoftGraphSecurityAsHierarchy/AsHierarchyResponse.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/MicrosoftGraphSecurityAsHierarchy/AsHierarchyResponse.cs index b28cd9ab98b..75f606b6421 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/MicrosoftGraphSecurityAsHierarchy/AsHierarchyResponse.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/MicrosoftGraphSecurityAsHierarchy/AsHierarchyResponse.cs @@ -1,27 +1,12 @@ // -using Microsoft.Graph.Models.Security; -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Security.Cases.EdiscoveryCases.Item.Tags.MicrosoftGraphSecurityAsHierarchy { - public class AsHierarchyResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use asHierarchyGetResponse instead.")] + public class AsHierarchyResponse : AsHierarchyGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -30,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AsHierarchyResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(EdiscoveryReviewTag.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/MicrosoftGraphSecurityAsHierarchy/MicrosoftGraphSecurityAsHierarchyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/MicrosoftGraphSecurityAsHierarchy/MicrosoftGraphSecurityAsHierarchyRequestBuilder.cs index 5f3a315f881..a57c0acb258 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/MicrosoftGraphSecurityAsHierarchy/MicrosoftGraphSecurityAsHierarchyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/MicrosoftGraphSecurityAsHierarchy/MicrosoftGraphSecurityAsHierarchyRequestBuilder.cs @@ -33,6 +33,26 @@ public MicrosoftGraphSecurityAsHierarchyRequestBuilder(string rawUrl, IRequestAd /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsAsHierarchyGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsAsHierarchyGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AsHierarchyGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function asHierarchy + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsAsHierarchyGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/TagsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/TagsRequestBuilder.cs index bb0784bd802..26fcd416a26 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/TagsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/TagsRequestBuilder.cs @@ -47,7 +47,7 @@ public TagsRequestBuilder(Dictionary pathParameters, IRequestAda public TagsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/tags{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of eDiscoveryReviewTag objects and their properties. + /// Get a list of eDiscoveryReviewTag objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, EdiscoveryReviewTagCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new ediscoveryReviewTag object. + /// Create a new ediscoveryReviewTag object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(EdiscoveryReviewTag body, Actio return await RequestAdapter.SendAsync(requestInfo, EdiscoveryReviewTag.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of eDiscoveryReviewTag objects and their properties. + /// Get a list of eDiscoveryReviewTag objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new ediscoveryReviewTag object. + /// Create a new ediscoveryReviewTag object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public TagsRequestBuilder WithUrl(string rawUrl) { return new TagsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of eDiscoveryReviewTag objects and their properties. + /// Get a list of eDiscoveryReviewTag objects and their properties. This API is supported in the following national cloud deployments. /// public class TagsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/Incidents/IncidentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Incidents/IncidentsRequestBuilder.cs index 887bfe64787..a221b064041 100644 --- a/src/Microsoft.Graph/Generated/Security/Incidents/IncidentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Incidents/IncidentsRequestBuilder.cs @@ -42,7 +42,7 @@ public IncidentsRequestBuilder(Dictionary pathParameters, IReque public IncidentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/incidents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of incident objects that Microsoft 365 Defender has created to track attacks in an organization. Attacks are typically inflicted on different types of entities, such as devices, users, and mailboxes, resulting in multiple alert objects. Microsoft 365 Defender correlates alerts with the same attack techniques or the same attacker into an incident. This operation allows you to filter and sort through incidents to create an informed cyber security response. It exposes a collection of incidents that were flagged in your network, within the time range you specified in your environment retention policy. The most recent incidents are displayed at the top of the list. + /// Get a list of incident objects that Microsoft 365 Defender has created to track attacks in an organization. Attacks are typically inflicted on different types of entities, such as devices, users, and mailboxes, resulting in multiple alert objects. Microsoft 365 Defender correlates alerts with the same attack techniques or the same attacker into an incident. This operation allows you to filter and sort through incidents to create an informed cyber security response. It exposes a collection of incidents that were flagged in your network, within the time range you specified in your environment retention policy. The most recent incidents are displayed at the top of the list. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(Incident body, Action(requestInfo, Incident.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of incident objects that Microsoft 365 Defender has created to track attacks in an organization. Attacks are typically inflicted on different types of entities, such as devices, users, and mailboxes, resulting in multiple alert objects. Microsoft 365 Defender correlates alerts with the same attack techniques or the same attacker into an incident. This operation allows you to filter and sort through incidents to create an informed cyber security response. It exposes a collection of incidents that were flagged in your network, within the time range you specified in your environment retention policy. The most recent incidents are displayed at the top of the list. + /// Get a list of incident objects that Microsoft 365 Defender has created to track attacks in an organization. Attacks are typically inflicted on different types of entities, such as devices, users, and mailboxes, resulting in multiple alert objects. Microsoft 365 Defender correlates alerts with the same attack techniques or the same attacker into an incident. This operation allows you to filter and sort through incidents to create an informed cyber security response. It exposes a collection of incidents that were flagged in your network, within the time range you specified in your environment retention policy. The most recent incidents are displayed at the top of the list. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public IncidentsRequestBuilder WithUrl(string rawUrl) { return new IncidentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of incident objects that Microsoft 365 Defender has created to track attacks in an organization. Attacks are typically inflicted on different types of entities, such as devices, users, and mailboxes, resulting in multiple alert objects. Microsoft 365 Defender correlates alerts with the same attack techniques or the same attacker into an incident. This operation allows you to filter and sort through incidents to create an informed cyber security response. It exposes a collection of incidents that were flagged in your network, within the time range you specified in your environment retention policy. The most recent incidents are displayed at the top of the list. + /// Get a list of incident objects that Microsoft 365 Defender has created to track attacks in an organization. Attacks are typically inflicted on different types of entities, such as devices, users, and mailboxes, resulting in multiple alert objects. Microsoft 365 Defender correlates alerts with the same attack techniques or the same attacker into an incident. This operation allows you to filter and sort through incidents to create an informed cyber security response. It exposes a collection of incidents that were flagged in your network, within the time range you specified in your environment retention policy. The most recent incidents are displayed at the top of the list. This API is supported in the following national cloud deployments. /// public class IncidentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/Incidents/Item/IncidentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Incidents/Item/IncidentItemRequestBuilder.cs index 9d637571111..8f21d1ab6a9 100644 --- a/src/Microsoft.Graph/Generated/Security/Incidents/Item/IncidentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Incidents/Item/IncidentItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of an incident object. Attacks are typically inflicted on different types of entities, such as devices, users, and mailboxes, resulting in multiple alert objects. Microsoft 365 Defender correlates alerts with the same attack techniques or the same attacker into an incident. + /// Retrieve the properties and relationships of an incident object. Attacks are typically inflicted on different types of entities, such as devices, users, and mailboxes, resulting in multiple alert objects. Microsoft 365 Defender correlates alerts with the same attack techniques or the same attacker into an incident. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -73,7 +73,7 @@ public async Task GetAsync(Action(requestInfo, Incident.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an incident object. + /// Update the properties of an incident object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -119,7 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of an incident object. Attacks are typically inflicted on different types of entities, such as devices, users, and mailboxes, resulting in multiple alert objects. Microsoft 365 Defender correlates alerts with the same attack techniques or the same attacker into an incident. + /// Retrieve the properties and relationships of an incident object. Attacks are typically inflicted on different types of entities, such as devices, users, and mailboxes, resulting in multiple alert objects. Microsoft 365 Defender correlates alerts with the same attack techniques or the same attacker into an incident. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -145,7 +145,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an incident object. + /// Update the properties of an incident object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -196,7 +196,7 @@ public IncidentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of an incident object. Attacks are typically inflicted on different types of entities, such as devices, users, and mailboxes, resulting in multiple alert objects. Microsoft 365 Defender correlates alerts with the same attack techniques or the same attacker into an incident. + /// Retrieve the properties and relationships of an incident object. Attacks are typically inflicted on different types of entities, such as devices, users, and mailboxes, resulting in multiple alert objects. Microsoft 365 Defender correlates alerts with the same attack techniques or the same attacker into an incident. This API is supported in the following national cloud deployments. /// public class IncidentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/SecureScoreControlProfiles/Item/SecureScoreControlProfileItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SecureScoreControlProfiles/Item/SecureScoreControlProfileItemRequestBuilder.cs index 15b6830f8ca..8907bbb615d 100644 --- a/src/Microsoft.Graph/Generated/Security/SecureScoreControlProfiles/Item/SecureScoreControlProfileItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SecureScoreControlProfiles/Item/SecureScoreControlProfileItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of an securescorecontrolprofile object. + /// Retrieve the properties and relationships of an securescorecontrolprofile object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, SecureScoreControlProfile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update an editable secureScoreControlProfile object within any integrated solution to change various properties, such as assignedTo or tenantNote. + /// Update an editable secureScoreControlProfile object within any integrated solution to change various properties, such as assignedTo or tenantNote. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of an securescorecontrolprofile object. + /// Retrieve the properties and relationships of an securescorecontrolprofile object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update an editable secureScoreControlProfile object within any integrated solution to change various properties, such as assignedTo or tenantNote. + /// Update an editable secureScoreControlProfile object within any integrated solution to change various properties, such as assignedTo or tenantNote. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -191,7 +191,7 @@ public SecureScoreControlProfileItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of an securescorecontrolprofile object. + /// Retrieve the properties and relationships of an securescorecontrolprofile object. This API is supported in the following national cloud deployments. /// public class SecureScoreControlProfileItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/SecureScoreControlProfiles/SecureScoreControlProfilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SecureScoreControlProfiles/SecureScoreControlProfilesRequestBuilder.cs index 2781ac54e4c..142b7750a27 100644 --- a/src/Microsoft.Graph/Generated/Security/SecureScoreControlProfiles/SecureScoreControlProfilesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SecureScoreControlProfiles/SecureScoreControlProfilesRequestBuilder.cs @@ -42,7 +42,7 @@ public SecureScoreControlProfilesRequestBuilder(Dictionary pathP public SecureScoreControlProfilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/secureScoreControlProfiles{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the properties and relationships of a secureScoreControlProfiles object. + /// Retrieve the properties and relationships of a secureScoreControlProfiles object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(SecureScoreControlProfile return await RequestAdapter.SendAsync(requestInfo, SecureScoreControlProfile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the properties and relationships of a secureScoreControlProfiles object. + /// Retrieve the properties and relationships of a secureScoreControlProfiles object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SecureScoreControlProfilesRequestBuilder WithUrl(string rawUrl) { return new SecureScoreControlProfilesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the properties and relationships of a secureScoreControlProfiles object. + /// Retrieve the properties and relationships of a secureScoreControlProfiles object. This API is supported in the following national cloud deployments. /// public class SecureScoreControlProfilesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/SecureScores/Item/SecureScoreItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SecureScores/Item/SecureScoreItemRequestBuilder.cs index fff98ed1e18..a2613ff8c3a 100644 --- a/src/Microsoft.Graph/Generated/Security/SecureScores/Item/SecureScoreItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SecureScores/Item/SecureScoreItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a secureScore object. + /// Retrieve the properties and relationships of a secureScore object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a secureScore object. + /// Retrieve the properties and relationships of a secureScore object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public SecureScoreItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a secureScore object. + /// Retrieve the properties and relationships of a secureScore object. This API is supported in the following national cloud deployments. /// public class SecureScoreItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/SecureScores/SecureScoresRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SecureScores/SecureScoresRequestBuilder.cs index 2a91dad321b..1da176ecb06 100644 --- a/src/Microsoft.Graph/Generated/Security/SecureScores/SecureScoresRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SecureScores/SecureScoresRequestBuilder.cs @@ -42,7 +42,7 @@ public SecureScoresRequestBuilder(Dictionary pathParameters, IRe public SecureScoresRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/secureScores{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of secureScore objects. + /// Retrieve a list of secureScore objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(SecureScore body, Action(requestInfo, SecureScore.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of secureScore objects. + /// Retrieve a list of secureScore objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SecureScoresRequestBuilder WithUrl(string rawUrl) { return new SecureScoresRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of secureScore objects. + /// Retrieve a list of secureScore objects. This API is supported in the following national cloud deployments. /// public class SecureScoresRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..d4ece9fd546 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.SubjectRightsRequests.Item.Approvers.Item.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers/{user%2Did}/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers/{user%2Did}/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..6e08b665167 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Security.SubjectRightsRequests.Item.Approvers.Item.ServiceProvisioningErrors.Count; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.SubjectRightsRequests.Item.Approvers.Item.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \security\subjectRightsRequests\{subjectRightsRequest-id}\approvers\{user-id}\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers/{user%2Did}/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers/{user%2Did}/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.cs index 8dc6bdc846a..a61915e00f6 100644 --- a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.cs @@ -2,6 +2,7 @@ using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Graph.Security.SubjectRightsRequests.Item.Approvers.Item.MailboxSettings; +using Microsoft.Graph.Security.SubjectRightsRequests.Item.Approvers.Item.ServiceProvisioningErrors; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -19,6 +20,10 @@ public class UserItemRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new UserItemRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..1d1bb1d0733 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.SubjectRightsRequests.Item.Collaborators.Item.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators/{user%2Did}/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators/{user%2Did}/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..f5a5badfe84 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Security.SubjectRightsRequests.Item.Collaborators.Item.ServiceProvisioningErrors.Count; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.SubjectRightsRequests.Item.Collaborators.Item.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \security\subjectRightsRequests\{subjectRightsRequest-id}\collaborators\{user-id}\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators/{user%2Did}/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators/{user%2Did}/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.cs index 61466c54619..58fe40befe3 100644 --- a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.cs @@ -2,6 +2,7 @@ using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Graph.Security.SubjectRightsRequests.Item.Collaborators.Item.MailboxSettings; +using Microsoft.Graph.Security.SubjectRightsRequests.Item.Collaborators.Item.ServiceProvisioningErrors; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -19,6 +20,10 @@ public class UserItemRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new UserItemRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Notes/NotesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Notes/NotesRequestBuilder.cs index 21802f925e9..c2f2afad779 100644 --- a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Notes/NotesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Notes/NotesRequestBuilder.cs @@ -42,7 +42,7 @@ public NotesRequestBuilder(Dictionary pathParameters, IRequestAd public NotesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/notes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of authored notes assoicated with a subject rights request. + /// Get the list of authored notes assoicated with a subject rights request. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, AuthoredNoteCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new authoredNote object. + /// Create a new authoredNote object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(AuthoredNote body, Action(requestInfo, AuthoredNote.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of authored notes assoicated with a subject rights request. + /// Get the list of authored notes assoicated with a subject rights request. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new authoredNote object. + /// Create a new authoredNote object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public NotesRequestBuilder WithUrl(string rawUrl) { return new NotesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of authored notes assoicated with a subject rights request. + /// Get the list of authored notes assoicated with a subject rights request. This API is supported in the following national cloud deployments. /// public class NotesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/ArticleIndicators/ArticleIndicatorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/ArticleIndicators/ArticleIndicatorsRequestBuilder.cs index 8e9268bf74d..180d2c1ae57 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/ArticleIndicators/ArticleIndicatorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/ArticleIndicators/ArticleIndicatorsRequestBuilder.cs @@ -42,7 +42,7 @@ public ArticleIndicatorsRequestBuilder(Dictionary pathParameters public ArticleIndicatorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/articleIndicators{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of an articleIndicator object. + /// Read the properties and relationships of an articleIndicator object. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(ArticleIndicator body, Action(requestInfo, ArticleIndicator.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of an articleIndicator object. + /// Read the properties and relationships of an articleIndicator object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public ArticleIndicatorsRequestBuilder WithUrl(string rawUrl) { return new ArticleIndicatorsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of an articleIndicator object. + /// Read the properties and relationships of an articleIndicator object. This API is supported in the following national cloud deployments. /// public class ArticleIndicatorsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/ArticleIndicators/Item/ArticleIndicatorItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/ArticleIndicators/Item/ArticleIndicatorItemRequestBuilder.cs index 68043ad6d58..a40b649ff19 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/ArticleIndicators/Item/ArticleIndicatorItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/ArticleIndicators/Item/ArticleIndicatorItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an articleIndicator object. + /// Read the properties and relationships of an articleIndicator object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an articleIndicator object. + /// Read the properties and relationships of an articleIndicator object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public ArticleIndicatorItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of an articleIndicator object. + /// Read the properties and relationships of an articleIndicator object. This API is supported in the following national cloud deployments. /// public class ArticleIndicatorItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/ArticlesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/ArticlesRequestBuilder.cs index 52677bd8152..d68f617d65a 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/ArticlesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/ArticlesRequestBuilder.cs @@ -42,7 +42,7 @@ public ArticlesRequestBuilder(Dictionary pathParameters, IReques public ArticlesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/articles{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of article objects, including their properties and relationships. + /// Get a list of article objects, including their properties and relationships. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task
PostAsync(Article body, Action(requestInfo, Article.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of article objects, including their properties and relationships. + /// Get a list of article objects, including their properties and relationships. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public ArticlesRequestBuilder WithUrl(string rawUrl) { return new ArticlesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of article objects, including their properties and relationships. + /// Get a list of article objects, including their properties and relationships. This API is supported in the following national cloud deployments. /// public class ArticlesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/Item/ArticleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/Item/ArticleItemRequestBuilder.cs index e1af7fc58fb..a1601faf18e 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/Item/ArticleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/Item/ArticleItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an article object. + /// Read the properties and relationships of an article object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an article object. + /// Read the properties and relationships of an article object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public ArticleItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of an article object. + /// Read the properties and relationships of an article object. This API is supported in the following national cloud deployments. /// public class ArticleItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/Item/Indicators/IndicatorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/Item/Indicators/IndicatorsRequestBuilder.cs index 1205ace36cd..7d3e5d50192 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/Item/Indicators/IndicatorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/Item/Indicators/IndicatorsRequestBuilder.cs @@ -42,7 +42,7 @@ public IndicatorsRequestBuilder(Dictionary pathParameters, IRequ public IndicatorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/articles/{article%2Did}/indicators{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of articleIndicator objects that represent indicators of threat or compromise related to the contents of an article. + /// Get a list of articleIndicator objects that represent indicators of threat or compromise related to the contents of an article. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ArticleIndicatorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of articleIndicator objects that represent indicators of threat or compromise related to the contents of an article. + /// Get a list of articleIndicator objects that represent indicators of threat or compromise related to the contents of an article. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public IndicatorsRequestBuilder WithUrl(string rawUrl) { return new IndicatorsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of articleIndicator objects that represent indicators of threat or compromise related to the contents of an article. + /// Get a list of articleIndicator objects that represent indicators of threat or compromise related to the contents of an article. This API is supported in the following national cloud deployments. /// public class IndicatorsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostComponents/HostComponentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostComponents/HostComponentsRequestBuilder.cs index 574406a29ec..c1cc5a49e1d 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostComponents/HostComponentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostComponents/HostComponentsRequestBuilder.cs @@ -42,7 +42,7 @@ public HostComponentsRequestBuilder(Dictionary pathParameters, I public HostComponentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hostComponents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of a hostComponent object. + /// Read the properties and relationships of a hostComponent object. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(HostComponent body, Action(requestInfo, HostComponent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of a hostComponent object. + /// Read the properties and relationships of a hostComponent object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public HostComponentsRequestBuilder WithUrl(string rawUrl) { return new HostComponentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of a hostComponent object. + /// Read the properties and relationships of a hostComponent object. This API is supported in the following national cloud deployments. /// public class HostComponentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostComponents/Item/HostComponentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostComponents/Item/HostComponentItemRequestBuilder.cs index d7f0238b3c8..abc09741fb5 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostComponents/Item/HostComponentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostComponents/Item/HostComponentItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a hostComponent object. + /// Read the properties and relationships of a hostComponent object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a hostComponent object. + /// Read the properties and relationships of a hostComponent object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public HostComponentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a hostComponent object. + /// Read the properties and relationships of a hostComponent object. This API is supported in the following national cloud deployments. /// public class HostComponentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostCookies/HostCookiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostCookies/HostCookiesRequestBuilder.cs index 8f39ce5dbfd..dae0c31ad93 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostCookies/HostCookiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostCookies/HostCookiesRequestBuilder.cs @@ -42,7 +42,7 @@ public HostCookiesRequestBuilder(Dictionary pathParameters, IReq public HostCookiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hostCookies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of a hostCookie object. + /// Read the properties and relationships of a hostCookie object. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(HostCookie body, Action(requestInfo, HostCookie.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of a hostCookie object. + /// Read the properties and relationships of a hostCookie object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public HostCookiesRequestBuilder WithUrl(string rawUrl) { return new HostCookiesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of a hostCookie object. + /// Read the properties and relationships of a hostCookie object. This API is supported in the following national cloud deployments. /// public class HostCookiesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostCookies/Item/HostCookieItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostCookies/Item/HostCookieItemRequestBuilder.cs index f4f8d1ea08a..f68846eee23 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostCookies/Item/HostCookieItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostCookies/Item/HostCookieItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a hostCookie object. + /// Read the properties and relationships of a hostCookie object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a hostCookie object. + /// Read the properties and relationships of a hostCookie object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public HostCookieItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a hostCookie object. + /// Read the properties and relationships of a hostCookie object. This API is supported in the following national cloud deployments. /// public class HostCookieItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostPairs/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostPairs/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..14ef540b04d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostPairs/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.HostPairs.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hostPairs/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hostPairs/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostPairs/HostPairsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostPairs/HostPairsRequestBuilder.cs new file mode 100644 index 00000000000..a6145b702bb --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostPairs/HostPairsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Graph.Security.ThreatIntelligence.HostPairs.Count; +using Microsoft.Graph.Security.ThreatIntelligence.HostPairs.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.HostPairs { + /// + /// Provides operations to manage the hostPairs property of the microsoft.graph.security.threatIntelligence entity. + /// + public class HostPairsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the hostPairs property of the microsoft.graph.security.threatIntelligence entity. + /// The unique identifier of hostPair + public HostPairItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("hostPair%2Did", position); + return new HostPairItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new HostPairsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public HostPairsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hostPairs{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new HostPairsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public HostPairsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hostPairs{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Read the properties and relationships of a hostPair object. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, HostPairCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to hostPairs for security + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(HostPair body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(HostPair body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, HostPair.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read the properties and relationships of a hostPair object. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new HostPairsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to hostPairs for security + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(HostPair body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(HostPair body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new HostPairsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public HostPairsRequestBuilder WithUrl(string rawUrl) { + return new HostPairsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Read the properties and relationships of a hostPair object. + /// + public class HostPairsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class HostPairsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public HostPairsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new HostPairsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new hostPairsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public HostPairsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class HostPairsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new hostPairsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public HostPairsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostPairs/Item/ChildHost/ChildHostRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostPairs/Item/ChildHost/ChildHostRequestBuilder.cs new file mode 100644 index 00000000000..8112af8ccce --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostPairs/Item/ChildHost/ChildHostRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.HostPairs.Item.ChildHost { + /// + /// Provides operations to manage the childHost property of the microsoft.graph.security.hostPair entity. + /// + public class ChildHostRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new ChildHostRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ChildHostRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hostPairs/{hostPair%2Did}/childHost{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ChildHostRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ChildHostRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hostPairs/{hostPair%2Did}/childHost{?%24select,%24expand}", rawUrl) { + } + /// + /// Host reached via the parentHost. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Security.Host.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Host reached via the parentHost. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ChildHostRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ChildHostRequestBuilder WithUrl(string rawUrl) { + return new ChildHostRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Host reached via the parentHost. + /// + public class ChildHostRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ChildHostRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ChildHostRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ChildHostRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new childHostRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ChildHostRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostPairs/Item/HostPairItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostPairs/Item/HostPairItemRequestBuilder.cs new file mode 100644 index 00000000000..4c5f358db9b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostPairs/Item/HostPairItemRequestBuilder.cs @@ -0,0 +1,262 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Graph.Security.ThreatIntelligence.HostPairs.Item.ChildHost; +using Microsoft.Graph.Security.ThreatIntelligence.HostPairs.Item.ParentHost; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.HostPairs.Item { + /// + /// Provides operations to manage the hostPairs property of the microsoft.graph.security.threatIntelligence entity. + /// + public class HostPairItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the childHost property of the microsoft.graph.security.hostPair entity. + public ChildHostRequestBuilder ChildHost { get => + new ChildHostRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the parentHost property of the microsoft.graph.security.hostPair entity. + public ParentHostRequestBuilder ParentHost { get => + new ParentHostRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new HostPairItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public HostPairItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hostPairs/{hostPair%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new HostPairItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public HostPairItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hostPairs/{hostPair%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property hostPairs for security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read the properties and relationships of a hostPair object. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, HostPair.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property hostPairs in security + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(HostPair body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(HostPair body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, HostPair.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property hostPairs for security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new HostPairItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Read the properties and relationships of a hostPair object. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new HostPairItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property hostPairs in security + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(HostPair body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(HostPair body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new HostPairItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public HostPairItemRequestBuilder WithUrl(string rawUrl) { + return new HostPairItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class HostPairItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new HostPairItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public HostPairItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Read the properties and relationships of a hostPair object. + /// + public class HostPairItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class HostPairItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public HostPairItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new HostPairItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new HostPairItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public HostPairItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class HostPairItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new HostPairItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public HostPairItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostPairs/Item/ParentHost/ParentHostRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostPairs/Item/ParentHost/ParentHostRequestBuilder.cs new file mode 100644 index 00000000000..126e1a7a0c2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostPairs/Item/ParentHost/ParentHostRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.HostPairs.Item.ParentHost { + /// + /// Provides operations to manage the parentHost property of the microsoft.graph.security.hostPair entity. + /// + public class ParentHostRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new ParentHostRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ParentHostRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hostPairs/{hostPair%2Did}/parentHost{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ParentHostRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ParentHostRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hostPairs/{hostPair%2Did}/parentHost{?%24select,%24expand}", rawUrl) { + } + /// + /// Host used to reach the childHost. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Security.Host.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Host used to reach the childHost. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ParentHostRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ParentHostRequestBuilder WithUrl(string rawUrl) { + return new ParentHostRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Host used to reach the childHost. + /// + public class ParentHostRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ParentHostRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ParentHostRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ParentHostRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new parentHostRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ParentHostRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostSslCertificates/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostSslCertificates/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..c5683975e18 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostSslCertificates/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.HostSslCertificates.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hostSslCertificates/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hostSslCertificates/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostSslCertificates/HostSslCertificatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostSslCertificates/HostSslCertificatesRequestBuilder.cs new file mode 100644 index 00000000000..9996c77c902 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostSslCertificates/HostSslCertificatesRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Graph.Security.ThreatIntelligence.HostSslCertificates.Count; +using Microsoft.Graph.Security.ThreatIntelligence.HostSslCertificates.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.HostSslCertificates { + /// + /// Provides operations to manage the hostSslCertificates property of the microsoft.graph.security.threatIntelligence entity. + /// + public class HostSslCertificatesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the hostSslCertificates property of the microsoft.graph.security.threatIntelligence entity. + /// The unique identifier of hostSslCertificate + public HostSslCertificateItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("hostSslCertificate%2Did", position); + return new HostSslCertificateItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new HostSslCertificatesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public HostSslCertificatesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hostSslCertificates{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new HostSslCertificatesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public HostSslCertificatesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hostSslCertificates{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get the properties and relationships of a hostSslCertificate object. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, HostSslCertificateCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to hostSslCertificates for security + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(HostSslCertificate body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(HostSslCertificate body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, HostSslCertificate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the properties and relationships of a hostSslCertificate object. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new HostSslCertificatesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to hostSslCertificates for security + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(HostSslCertificate body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(HostSslCertificate body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new HostSslCertificatesRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public HostSslCertificatesRequestBuilder WithUrl(string rawUrl) { + return new HostSslCertificatesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the properties and relationships of a hostSslCertificate object. + /// + public class HostSslCertificatesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class HostSslCertificatesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public HostSslCertificatesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new HostSslCertificatesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new hostSslCertificatesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public HostSslCertificatesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class HostSslCertificatesRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new hostSslCertificatesRequestBuilderPostRequestConfiguration and sets the default values. + /// + public HostSslCertificatesRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostSslCertificates/Item/Host/HostRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostSslCertificates/Item/Host/HostRequestBuilder.cs new file mode 100644 index 00000000000..bd286dc41ea --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostSslCertificates/Item/Host/HostRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.HostSslCertificates.Item.Host { + /// + /// Provides operations to manage the host property of the microsoft.graph.security.hostSslCertificate entity. + /// + public class HostRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new HostRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public HostRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hostSslCertificates/{hostSslCertificate%2Did}/host{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new HostRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public HostRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hostSslCertificates/{hostSslCertificate%2Did}/host{?%24select,%24expand}", rawUrl) { + } + /// + /// The host for this hostSslCertificate. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Security.Host.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The host for this hostSslCertificate. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new HostRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public HostRequestBuilder WithUrl(string rawUrl) { + return new HostRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The host for this hostSslCertificate. + /// + public class HostRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class HostRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public HostRequestBuilderGetQueryParameters QueryParameters { get; set; } = new HostRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new hostRequestBuilderGetRequestConfiguration and sets the default values. + /// + public HostRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostSslCertificates/Item/HostSslCertificateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostSslCertificates/Item/HostSslCertificateItemRequestBuilder.cs new file mode 100644 index 00000000000..5442a553ee4 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostSslCertificates/Item/HostSslCertificateItemRequestBuilder.cs @@ -0,0 +1,262 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Graph.Security.ThreatIntelligence.HostSslCertificates.Item.Host; +using Microsoft.Graph.Security.ThreatIntelligence.HostSslCertificates.Item.SslCertificate; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.HostSslCertificates.Item { + /// + /// Provides operations to manage the hostSslCertificates property of the microsoft.graph.security.threatIntelligence entity. + /// + public class HostSslCertificateItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the host property of the microsoft.graph.security.hostSslCertificate entity. + public HostRequestBuilder Host { get => + new HostRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the sslCertificate property of the microsoft.graph.security.hostSslCertificate entity. + public SslCertificateRequestBuilder SslCertificate { get => + new SslCertificateRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new HostSslCertificateItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public HostSslCertificateItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hostSslCertificates/{hostSslCertificate%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new HostSslCertificateItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public HostSslCertificateItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hostSslCertificates/{hostSslCertificate%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property hostSslCertificates for security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the properties and relationships of a hostSslCertificate object. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, HostSslCertificate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property hostSslCertificates in security + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(HostSslCertificate body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(HostSslCertificate body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, HostSslCertificate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property hostSslCertificates for security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new HostSslCertificateItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the properties and relationships of a hostSslCertificate object. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new HostSslCertificateItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property hostSslCertificates in security + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(HostSslCertificate body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(HostSslCertificate body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new HostSslCertificateItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public HostSslCertificateItemRequestBuilder WithUrl(string rawUrl) { + return new HostSslCertificateItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class HostSslCertificateItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new HostSslCertificateItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public HostSslCertificateItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get the properties and relationships of a hostSslCertificate object. + /// + public class HostSslCertificateItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class HostSslCertificateItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public HostSslCertificateItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new HostSslCertificateItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new HostSslCertificateItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public HostSslCertificateItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class HostSslCertificateItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new HostSslCertificateItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public HostSslCertificateItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostSslCertificates/Item/SslCertificate/SslCertificateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostSslCertificates/Item/SslCertificate/SslCertificateRequestBuilder.cs new file mode 100644 index 00000000000..7575f776391 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostSslCertificates/Item/SslCertificate/SslCertificateRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.HostSslCertificates.Item.SslCertificate { + /// + /// Provides operations to manage the sslCertificate property of the microsoft.graph.security.hostSslCertificate entity. + /// + public class SslCertificateRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new SslCertificateRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SslCertificateRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hostSslCertificates/{hostSslCertificate%2Did}/sslCertificate{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new SslCertificateRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SslCertificateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hostSslCertificates/{hostSslCertificate%2Did}/sslCertificate{?%24select,%24expand}", rawUrl) { + } + /// + /// The sslCertificate for this hostSslCertificate. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Security.SslCertificate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The sslCertificate for this hostSslCertificate. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new SslCertificateRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public SslCertificateRequestBuilder WithUrl(string rawUrl) { + return new SslCertificateRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The sslCertificate for this hostSslCertificate. + /// + public class SslCertificateRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class SslCertificateRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public SslCertificateRequestBuilderGetQueryParameters QueryParameters { get; set; } = new SslCertificateRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new sslCertificateRequestBuilderGetRequestConfiguration and sets the default values. + /// + public SslCertificateRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostTrackers/HostTrackersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostTrackers/HostTrackersRequestBuilder.cs index 3cce1f3b776..4e384f4e92e 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostTrackers/HostTrackersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostTrackers/HostTrackersRequestBuilder.cs @@ -42,7 +42,7 @@ public HostTrackersRequestBuilder(Dictionary pathParameters, IRe public HostTrackersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hostTrackers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of a hostTracker object. + /// Read the properties and relationships of a hostTracker object. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(HostTracker body, Action(requestInfo, HostTracker.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of a hostTracker object. + /// Read the properties and relationships of a hostTracker object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public HostTrackersRequestBuilder WithUrl(string rawUrl) { return new HostTrackersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of a hostTracker object. + /// Read the properties and relationships of a hostTracker object. This API is supported in the following national cloud deployments. /// public class HostTrackersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostTrackers/Item/HostTrackerItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostTrackers/Item/HostTrackerItemRequestBuilder.cs index 52056852930..6543f2927e4 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostTrackers/Item/HostTrackerItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostTrackers/Item/HostTrackerItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a hostTracker object. + /// Read the properties and relationships of a hostTracker object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a hostTracker object. + /// Read the properties and relationships of a hostTracker object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public HostTrackerItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a hostTracker object. + /// Read the properties and relationships of a hostTracker object. This API is supported in the following national cloud deployments. /// public class HostTrackerItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/HostsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/HostsRequestBuilder.cs index 44b1bc521f7..ac035576e5a 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/HostsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/HostsRequestBuilder.cs @@ -42,7 +42,7 @@ public HostsRequestBuilder(Dictionary pathParameters, IRequestAd public HostsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of a host object. The host resource is the abstract base type that returns an implementation. A host can be of one of the following types: + /// Read the properties and relationships of a host object. The host resource is the abstract base type that returns an implementation. A host can be of one of the following types: This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Security.Host.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of a host object. The host resource is the abstract base type that returns an implementation. A host can be of one of the following types: + /// Read the properties and relationships of a host object. The host resource is the abstract base type that returns an implementation. A host can be of one of the following types: This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public HostsRequestBuilder WithUrl(string rawUrl) { return new HostsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of a host object. The host resource is the abstract base type that returns an implementation. A host can be of one of the following types: + /// Read the properties and relationships of a host object. The host resource is the abstract base type that returns an implementation. A host can be of one of the following types: This API is supported in the following national cloud deployments. /// public class HostsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/ChildHostPairsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/ChildHostPairsRequestBuilder.cs new file mode 100644 index 00000000000..27c3f37506b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/ChildHostPairsRequestBuilder.cs @@ -0,0 +1,180 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.ChildHostPairs.Count; +using Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.ChildHostPairs.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.ChildHostPairs { + /// + /// Provides operations to manage the childHostPairs property of the microsoft.graph.security.host entity. + /// + public class ChildHostPairsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the childHostPairs property of the microsoft.graph.security.host entity. + /// The unique identifier of hostPair + public HostPairItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("hostPair%2Did", position); + return new HostPairItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new ChildHostPairsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ChildHostPairsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/childHostPairs{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ChildHostPairsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ChildHostPairsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/childHostPairs{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get the list of hostPair resources associated with a host, where that host is the *parent* and has an outgoing pairing to a *child*. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, HostPairCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the list of hostPair resources associated with a host, where that host is the *parent* and has an outgoing pairing to a *child*. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ChildHostPairsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ChildHostPairsRequestBuilder WithUrl(string rawUrl) { + return new ChildHostPairsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the list of hostPair resources associated with a host, where that host is the *parent* and has an outgoing pairing to a *child*. + /// + public class ChildHostPairsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ChildHostPairsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ChildHostPairsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ChildHostPairsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new childHostPairsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ChildHostPairsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..f9af8286937 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.ChildHostPairs.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/childHostPairs/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/childHostPairs/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/Item/HostPairItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/Item/HostPairItemRequestBuilder.cs new file mode 100644 index 00000000000..009a94e7904 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/Item/HostPairItemRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.ChildHostPairs.Item { + /// + /// Provides operations to manage the childHostPairs property of the microsoft.graph.security.host entity. + /// + public class HostPairItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new HostPairItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public HostPairItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/childHostPairs/{hostPair%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new HostPairItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public HostPairItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/childHostPairs/{hostPair%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// The hostPairs that are resources associated with a host, where that host is the parentHost and has an outgoing pairing to a cihldHost. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, HostPair.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The hostPairs that are resources associated with a host, where that host is the parentHost and has an outgoing pairing to a cihldHost. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new HostPairItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public HostPairItemRequestBuilder WithUrl(string rawUrl) { + return new HostPairItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The hostPairs that are resources associated with a host, where that host is the parentHost and has an outgoing pairing to a cihldHost. + /// + public class HostPairItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class HostPairItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public HostPairItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new HostPairItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new HostPairItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public HostPairItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Components/ComponentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Components/ComponentsRequestBuilder.cs index eabc237a264..ab38891d5f7 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Components/ComponentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Components/ComponentsRequestBuilder.cs @@ -42,7 +42,7 @@ public ComponentsRequestBuilder(Dictionary pathParameters, IRequ public ComponentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/components{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of hostComponent resources. + /// Get a list of hostComponent resources. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, HostComponentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of hostComponent resources. + /// Get a list of hostComponent resources. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public ComponentsRequestBuilder WithUrl(string rawUrl) { return new ComponentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of hostComponent resources. + /// Get a list of hostComponent resources. This API is supported in the following national cloud deployments. /// public class ComponentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Cookies/CookiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Cookies/CookiesRequestBuilder.cs index 311309a6ab6..a9c1af310fb 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Cookies/CookiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Cookies/CookiesRequestBuilder.cs @@ -42,7 +42,7 @@ public CookiesRequestBuilder(Dictionary pathParameters, IRequest public CookiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/cookies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of hostCookie resources. + /// Get a list of hostCookie resources. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, HostCookieCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of hostCookie resources. + /// Get a list of hostCookie resources. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public CookiesRequestBuilder WithUrl(string rawUrl) { return new CookiesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of hostCookie resources. + /// Get a list of hostCookie resources. This API is supported in the following national cloud deployments. /// public class CookiesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/HostItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/HostItemRequestBuilder.cs index 1d577be7d42..2dc2db5ac14 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/HostItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/HostItemRequestBuilder.cs @@ -1,12 +1,18 @@ // using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models.Security; +using Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.ChildHostPairs; using Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.Components; using Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.Cookies; +using Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.HostPairs; +using Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.ParentHostPairs; using Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.PassiveDns; using Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.PassiveDnsReverse; using Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.Reputation; +using Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.SslCertificates; +using Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.Subdomains; using Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.Trackers; +using Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.Whois; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -20,6 +26,10 @@ namespace Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item { /// Provides operations to manage the hosts property of the microsoft.graph.security.threatIntelligence entity. /// public class HostItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the childHostPairs property of the microsoft.graph.security.host entity. + public ChildHostPairsRequestBuilder ChildHostPairs { get => + new ChildHostPairsRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to manage the components property of the microsoft.graph.security.host entity. public ComponentsRequestBuilder Components { get => new ComponentsRequestBuilder(PathParameters, RequestAdapter); @@ -28,6 +38,14 @@ public class HostItemRequestBuilder : BaseRequestBuilder { public CookiesRequestBuilder Cookies { get => new CookiesRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the hostPairs property of the microsoft.graph.security.host entity. + public HostPairsRequestBuilder HostPairs { get => + new HostPairsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the parentHostPairs property of the microsoft.graph.security.host entity. + public ParentHostPairsRequestBuilder ParentHostPairs { get => + new ParentHostPairsRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to manage the passiveDns property of the microsoft.graph.security.host entity. public PassiveDnsRequestBuilder PassiveDns { get => new PassiveDnsRequestBuilder(PathParameters, RequestAdapter); @@ -40,10 +58,22 @@ public class HostItemRequestBuilder : BaseRequestBuilder { public ReputationRequestBuilder Reputation { get => new ReputationRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the sslCertificates property of the microsoft.graph.security.host entity. + public SslCertificatesRequestBuilder SslCertificates { get => + new SslCertificatesRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the subdomains property of the microsoft.graph.security.host entity. + public SubdomainsRequestBuilder Subdomains { get => + new SubdomainsRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to manage the trackers property of the microsoft.graph.security.host entity. public TrackersRequestBuilder Trackers { get => new TrackersRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the whois property of the microsoft.graph.security.host entity. + public WhoisRequestBuilder Whois { get => + new WhoisRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new HostItemRequestBuilder and sets the default values. /// @@ -78,7 +108,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a host object. The host resource is the abstract base type that returns an implementation. A host can be of one of the following types: + /// Read the properties and relationships of a host object. The host resource is the abstract base type that returns an implementation. A host can be of one of the following types: This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -143,7 +173,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a host object. The host resource is the abstract base type that returns an implementation. A host can be of one of the following types: + /// Read the properties and relationships of a host object. The host resource is the abstract base type that returns an implementation. A host can be of one of the following types: This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -220,7 +250,7 @@ public HostItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a host object. The host resource is the abstract base type that returns an implementation. A host can be of one of the following types: + /// Read the properties and relationships of a host object. The host resource is the abstract base type that returns an implementation. A host can be of one of the following types: This API is supported in the following national cloud deployments. /// public class HostItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/HostPairs/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/HostPairs/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..2e18e4ae89b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/HostPairs/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.HostPairs.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/hostPairs/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/hostPairs/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/HostPairs/HostPairsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/HostPairs/HostPairsRequestBuilder.cs new file mode 100644 index 00000000000..87d0a8ce445 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/HostPairs/HostPairsRequestBuilder.cs @@ -0,0 +1,180 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.HostPairs.Count; +using Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.HostPairs.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.HostPairs { + /// + /// Provides operations to manage the hostPairs property of the microsoft.graph.security.host entity. + /// + public class HostPairsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the hostPairs property of the microsoft.graph.security.host entity. + /// The unique identifier of hostPair + public HostPairItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("hostPair%2Did", position); + return new HostPairItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new HostPairsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public HostPairsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/hostPairs{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new HostPairsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public HostPairsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/hostPairs{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get the list of hostPair resources associated with a host, where that host is *either* the *parent* or the *child*. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, HostPairCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the list of hostPair resources associated with a host, where that host is *either* the *parent* or the *child*. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new HostPairsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public HostPairsRequestBuilder WithUrl(string rawUrl) { + return new HostPairsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the list of hostPair resources associated with a host, where that host is *either* the *parent* or the *child*. + /// + public class HostPairsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class HostPairsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public HostPairsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new HostPairsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new hostPairsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public HostPairsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/HostPairs/Item/HostPairItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/HostPairs/Item/HostPairItemRequestBuilder.cs new file mode 100644 index 00000000000..3ef3aead662 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/HostPairs/Item/HostPairItemRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.HostPairs.Item { + /// + /// Provides operations to manage the hostPairs property of the microsoft.graph.security.host entity. + /// + public class HostPairItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new HostPairItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public HostPairItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/hostPairs/{hostPair%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new HostPairItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public HostPairItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/hostPairs/{hostPair%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// The hostPairs that are associated with this host, where this host is either the parentHost or childHost. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, HostPair.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The hostPairs that are associated with this host, where this host is either the parentHost or childHost. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new HostPairItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public HostPairItemRequestBuilder WithUrl(string rawUrl) { + return new HostPairItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The hostPairs that are associated with this host, where this host is either the parentHost or childHost. + /// + public class HostPairItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class HostPairItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public HostPairItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new HostPairItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new HostPairItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public HostPairItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ParentHostPairs/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ParentHostPairs/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..791d21c0fb7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ParentHostPairs/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.ParentHostPairs.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/parentHostPairs/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/parentHostPairs/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ParentHostPairs/Item/HostPairItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ParentHostPairs/Item/HostPairItemRequestBuilder.cs new file mode 100644 index 00000000000..6cd5c009726 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ParentHostPairs/Item/HostPairItemRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.ParentHostPairs.Item { + /// + /// Provides operations to manage the parentHostPairs property of the microsoft.graph.security.host entity. + /// + public class HostPairItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new HostPairItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public HostPairItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/parentHostPairs/{hostPair%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new HostPairItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public HostPairItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/parentHostPairs/{hostPair%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// The hostPairs that are associated with a host, where that host is the childHost and has an incoming pairing with a parentHost. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, HostPair.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The hostPairs that are associated with a host, where that host is the childHost and has an incoming pairing with a parentHost. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new HostPairItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public HostPairItemRequestBuilder WithUrl(string rawUrl) { + return new HostPairItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The hostPairs that are associated with a host, where that host is the childHost and has an incoming pairing with a parentHost. + /// + public class HostPairItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class HostPairItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public HostPairItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new HostPairItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new HostPairItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public HostPairItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ParentHostPairs/ParentHostPairsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ParentHostPairs/ParentHostPairsRequestBuilder.cs new file mode 100644 index 00000000000..8d6de08b877 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ParentHostPairs/ParentHostPairsRequestBuilder.cs @@ -0,0 +1,180 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.ParentHostPairs.Count; +using Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.ParentHostPairs.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.ParentHostPairs { + /// + /// Provides operations to manage the parentHostPairs property of the microsoft.graph.security.host entity. + /// + public class ParentHostPairsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the parentHostPairs property of the microsoft.graph.security.host entity. + /// The unique identifier of hostPair + public HostPairItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("hostPair%2Did", position); + return new HostPairItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new ParentHostPairsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ParentHostPairsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/parentHostPairs{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ParentHostPairsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ParentHostPairsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/parentHostPairs{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get the list of hostPair resources associated with a host, where that host is the *child* and has an incoming pairing with a *parent*. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, HostPairCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the list of hostPair resources associated with a host, where that host is the *child* and has an incoming pairing with a *parent*. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ParentHostPairsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ParentHostPairsRequestBuilder WithUrl(string rawUrl) { + return new ParentHostPairsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the list of hostPair resources associated with a host, where that host is the *child* and has an incoming pairing with a *parent*. + /// + public class ParentHostPairsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ParentHostPairsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ParentHostPairsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ParentHostPairsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new parentHostPairsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ParentHostPairsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDns/PassiveDnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDns/PassiveDnsRequestBuilder.cs index 2187cb66529..7342e899bb8 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDns/PassiveDnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDns/PassiveDnsRequestBuilder.cs @@ -42,7 +42,7 @@ public PassiveDnsRequestBuilder(Dictionary pathParameters, IRequ public PassiveDnsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/passiveDns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of passiveDnsRecord resources associated to a host. + /// Get a list of passiveDnsRecord resources associated with a host. This is a forward DNS lookup which queries the IP address of the specified host using its hostname. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, PassiveDnsRecordCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of passiveDnsRecord resources associated to a host. + /// Get a list of passiveDnsRecord resources associated with a host. This is a forward DNS lookup which queries the IP address of the specified host using its hostname. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public PassiveDnsRequestBuilder WithUrl(string rawUrl) { return new PassiveDnsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of passiveDnsRecord resources associated to a host. + /// Get a list of passiveDnsRecord resources associated with a host. This is a forward DNS lookup which queries the IP address of the specified host using its hostname. This API is supported in the following national cloud deployments. /// public class PassiveDnsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDnsReverse/PassiveDnsReverseRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDnsReverse/PassiveDnsReverseRequestBuilder.cs index 0419e6c0d03..e5b8b281fd8 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDnsReverse/PassiveDnsReverseRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDnsReverse/PassiveDnsReverseRequestBuilder.cs @@ -42,7 +42,7 @@ public PassiveDnsReverseRequestBuilder(Dictionary pathParameters public PassiveDnsReverseRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/passiveDnsReverse{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of passiveDnsRecord resources. + /// Get a collection of passiveDnsRecord resources from a reverse passive DNS retrieval. A reverse DNS lookup queries the hostname of a host using an IP address. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, PassiveDnsRecordCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of passiveDnsRecord resources. + /// Get a collection of passiveDnsRecord resources from a reverse passive DNS retrieval. A reverse DNS lookup queries the hostname of a host using an IP address. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public PassiveDnsReverseRequestBuilder WithUrl(string rawUrl) { return new PassiveDnsReverseRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of passiveDnsRecord resources. + /// Get a collection of passiveDnsRecord resources from a reverse passive DNS retrieval. A reverse DNS lookup queries the hostname of a host using an IP address. This API is supported in the following national cloud deployments. /// public class PassiveDnsReverseRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Reputation/ReputationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Reputation/ReputationRequestBuilder.cs index 31a3b410983..436e12ffdca 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Reputation/ReputationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Reputation/ReputationRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get the properties and relationships of a hostReputation object. + /// Get the properties and relationships of a hostReputation object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties and relationships of a hostReputation object. + /// Get the properties and relationships of a hostReputation object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ReputationRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the properties and relationships of a hostReputation object. + /// Get the properties and relationships of a hostReputation object. This API is supported in the following national cloud deployments. /// public class ReputationRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/SslCertificates/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/SslCertificates/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..fb083019ab8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/SslCertificates/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.SslCertificates.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/sslCertificates/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/sslCertificates/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/SslCertificates/Item/HostSslCertificateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/SslCertificates/Item/HostSslCertificateItemRequestBuilder.cs new file mode 100644 index 00000000000..b797690f392 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/SslCertificates/Item/HostSslCertificateItemRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.SslCertificates.Item { + /// + /// Provides operations to manage the sslCertificates property of the microsoft.graph.security.host entity. + /// + public class HostSslCertificateItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new HostSslCertificateItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public HostSslCertificateItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/sslCertificates/{hostSslCertificate%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new HostSslCertificateItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public HostSslCertificateItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/sslCertificates/{hostSslCertificate%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// The hostSslCertificates that are associated with this host. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, HostSslCertificate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The hostSslCertificates that are associated with this host. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new HostSslCertificateItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public HostSslCertificateItemRequestBuilder WithUrl(string rawUrl) { + return new HostSslCertificateItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The hostSslCertificates that are associated with this host. + /// + public class HostSslCertificateItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class HostSslCertificateItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public HostSslCertificateItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new HostSslCertificateItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new HostSslCertificateItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public HostSslCertificateItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/SslCertificates/SslCertificatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/SslCertificates/SslCertificatesRequestBuilder.cs new file mode 100644 index 00000000000..305e5cae354 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/SslCertificates/SslCertificatesRequestBuilder.cs @@ -0,0 +1,180 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.SslCertificates.Count; +using Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.SslCertificates.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.SslCertificates { + /// + /// Provides operations to manage the sslCertificates property of the microsoft.graph.security.host entity. + /// + public class SslCertificatesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the sslCertificates property of the microsoft.graph.security.host entity. + /// The unique identifier of hostSslCertificate + public HostSslCertificateItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("hostSslCertificate%2Did", position); + return new HostSslCertificateItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new SslCertificatesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SslCertificatesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/sslCertificates{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new SslCertificatesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SslCertificatesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/sslCertificates{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get a list of hostSslCertificate objects from the host navigation property. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, HostSslCertificateCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a list of hostSslCertificate objects from the host navigation property. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new SslCertificatesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public SslCertificatesRequestBuilder WithUrl(string rawUrl) { + return new SslCertificatesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a list of hostSslCertificate objects from the host navigation property. + /// + public class SslCertificatesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class SslCertificatesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public SslCertificatesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new SslCertificatesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new sslCertificatesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public SslCertificatesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Subdomains/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Subdomains/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..803013803e5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Subdomains/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.Subdomains.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/subdomains/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/subdomains/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Subdomains/Item/SubdomainItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Subdomains/Item/SubdomainItemRequestBuilder.cs new file mode 100644 index 00000000000..12e839e3ad4 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Subdomains/Item/SubdomainItemRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.Subdomains.Item { + /// + /// Provides operations to manage the subdomains property of the microsoft.graph.security.host entity. + /// + public class SubdomainItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new SubdomainItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SubdomainItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/subdomains/{subdomain%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new SubdomainItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SubdomainItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/subdomains/{subdomain%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// The subdomains that are associated with this host. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Subdomain.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The subdomains that are associated with this host. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new SubdomainItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public SubdomainItemRequestBuilder WithUrl(string rawUrl) { + return new SubdomainItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The subdomains that are associated with this host. + /// + public class SubdomainItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class SubdomainItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public SubdomainItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new SubdomainItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new SubdomainItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public SubdomainItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Subdomains/SubdomainsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Subdomains/SubdomainsRequestBuilder.cs new file mode 100644 index 00000000000..493931966ab --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Subdomains/SubdomainsRequestBuilder.cs @@ -0,0 +1,180 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.Subdomains.Count; +using Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.Subdomains.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.Subdomains { + /// + /// Provides operations to manage the subdomains property of the microsoft.graph.security.host entity. + /// + public class SubdomainsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the subdomains property of the microsoft.graph.security.host entity. + /// The unique identifier of subdomain + public SubdomainItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("subdomain%2Did", position); + return new SubdomainItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new SubdomainsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SubdomainsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/subdomains{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new SubdomainsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SubdomainsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/subdomains{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get the list of subdomain resources associated with a host. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, SubdomainCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the list of subdomain resources associated with a host. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new SubdomainsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public SubdomainsRequestBuilder WithUrl(string rawUrl) { + return new SubdomainsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the list of subdomain resources associated with a host. + /// + public class SubdomainsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class SubdomainsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public SubdomainsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new SubdomainsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new subdomainsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public SubdomainsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Trackers/TrackersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Trackers/TrackersRequestBuilder.cs index 65e489e39d1..793d482b7d4 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Trackers/TrackersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Trackers/TrackersRequestBuilder.cs @@ -42,7 +42,7 @@ public TrackersRequestBuilder(Dictionary pathParameters, IReques public TrackersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/trackers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of hostTracker resources. + /// Get a list of hostTracker resources. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, HostTrackerCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of hostTracker resources. + /// Get a list of hostTracker resources. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public TrackersRequestBuilder WithUrl(string rawUrl) { return new TrackersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of hostTracker resources. + /// Get a list of hostTracker resources. This API is supported in the following national cloud deployments. /// public class TrackersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Whois/WhoisRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Whois/WhoisRequestBuilder.cs new file mode 100644 index 00000000000..7f86bed65fd --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Whois/WhoisRequestBuilder.cs @@ -0,0 +1,128 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.Hosts.Item.Whois { + /// + /// Provides operations to manage the whois property of the microsoft.graph.security.host entity. + /// + public class WhoisRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new WhoisRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public WhoisRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/whois{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new WhoisRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public WhoisRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/whois{?%24select,%24expand}", rawUrl) { + } + /// + /// Get the current whoisRecord resource for a host. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, WhoisRecord.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the current whoisRecord resource for a host. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new WhoisRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public WhoisRequestBuilder WithUrl(string rawUrl) { + return new WhoisRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the current whoisRecord resource for a host. + /// + public class WhoisRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class WhoisRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public WhoisRequestBuilderGetQueryParameters QueryParameters { get; set; } = new WhoisRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new whoisRequestBuilderGetRequestConfiguration and sets the default values. + /// + public WhoisRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/IntelProfilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/IntelProfilesRequestBuilder.cs index 5cc1cf23f76..82c1f85ce9d 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/IntelProfilesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/IntelProfilesRequestBuilder.cs @@ -42,7 +42,7 @@ public IntelProfilesRequestBuilder(Dictionary pathParameters, IR public IntelProfilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/intelProfiles{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the intelligenceProfile objects and their properties. + /// Get a list of the intelligenceProfile objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(IntelligenceProfile body, Actio return await RequestAdapter.SendAsync(requestInfo, IntelligenceProfile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the intelligenceProfile objects and their properties. + /// Get a list of the intelligenceProfile objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public IntelProfilesRequestBuilder WithUrl(string rawUrl) { return new IntelProfilesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the intelligenceProfile objects and their properties. + /// Get a list of the intelligenceProfile objects and their properties. This API is supported in the following national cloud deployments. /// public class IntelProfilesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/Item/Indicators/IndicatorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/Item/Indicators/IndicatorsRequestBuilder.cs index 4b6929b8350..029eced1647 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/Item/Indicators/IndicatorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/Item/Indicators/IndicatorsRequestBuilder.cs @@ -42,7 +42,7 @@ public IndicatorsRequestBuilder(Dictionary pathParameters, IRequ public IndicatorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/intelProfiles/{intelligenceProfile%2Did}/indicators{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the intelligenceProfileIndicator resources from the indicators navigation property of an intelligenceProfile. + /// Get the intelligenceProfileIndicator resources from the indicators navigation property of an intelligenceProfile. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Actio return await RequestAdapter.SendAsync(requestInfo, IntelligenceProfileIndicatorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the intelligenceProfileIndicator resources from the indicators navigation property of an intelligenceProfile. + /// Get the intelligenceProfileIndicator resources from the indicators navigation property of an intelligenceProfile. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public IndicatorsRequestBuilder WithUrl(string rawUrl) { return new IndicatorsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the intelligenceProfileIndicator resources from the indicators navigation property of an intelligenceProfile. + /// Get the intelligenceProfileIndicator resources from the indicators navigation property of an intelligenceProfile. This API is supported in the following national cloud deployments. /// public class IndicatorsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/Item/IntelligenceProfileItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/Item/IntelligenceProfileItemRequestBuilder.cs index 012eb61c0eb..ddfabb86051 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/Item/IntelligenceProfileItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/Item/IntelligenceProfileItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a intelligenceProfile object. + /// Read the properties and relationships of a intelligenceProfile object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a intelligenceProfile object. + /// Read the properties and relationships of a intelligenceProfile object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public IntelligenceProfileItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a intelligenceProfile object. + /// Read the properties and relationships of a intelligenceProfile object. This API is supported in the following national cloud deployments. /// public class IntelligenceProfileItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/IntelligenceProfileIndicatorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/IntelligenceProfileIndicatorsRequestBuilder.cs index 4ac6dc4a6e5..ea4a48991ad 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/IntelligenceProfileIndicatorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/IntelligenceProfileIndicatorsRequestBuilder.cs @@ -42,7 +42,7 @@ public IntelligenceProfileIndicatorsRequestBuilder(Dictionary pa public IntelligenceProfileIndicatorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/intelligenceProfileIndicators{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of a intelligenceProfileIndicator object. + /// Read the properties and relationships of a intelligenceProfileIndicator object. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(IntelligenceProfileInd return await RequestAdapter.SendAsync(requestInfo, IntelligenceProfileIndicator.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of a intelligenceProfileIndicator object. + /// Read the properties and relationships of a intelligenceProfileIndicator object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public IntelligenceProfileIndicatorsRequestBuilder WithUrl(string rawUrl) { return new IntelligenceProfileIndicatorsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of a intelligenceProfileIndicator object. + /// Read the properties and relationships of a intelligenceProfileIndicator object. This API is supported in the following national cloud deployments. /// public class IntelligenceProfileIndicatorsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/Item/IntelligenceProfileIndicatorItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/Item/IntelligenceProfileIndicatorItemRequestBuilder.cs index 2abd80a91b9..8e01c85c05e 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/Item/IntelligenceProfileIndicatorItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/Item/IntelligenceProfileIndicatorItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a intelligenceProfileIndicator object. + /// Read the properties and relationships of a intelligenceProfileIndicator object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a intelligenceProfileIndicator object. + /// Read the properties and relationships of a intelligenceProfileIndicator object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public IntelligenceProfileIndicatorItemRequestBuilderDeleteRequestConfiguration( } } /// - /// Read the properties and relationships of a intelligenceProfileIndicator object. + /// Read the properties and relationships of a intelligenceProfileIndicator object. This API is supported in the following national cloud deployments. /// public class IntelligenceProfileIndicatorItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Item/PassiveDnsRecordItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Item/PassiveDnsRecordItemRequestBuilder.cs index 2599eb609b6..d3aae53cb6f 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Item/PassiveDnsRecordItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Item/PassiveDnsRecordItemRequestBuilder.cs @@ -58,7 +58,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a passiveDnsRecord object. + /// Read the properties and relationships of a passiveDnsRecord object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -123,7 +123,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a passiveDnsRecord object. + /// Read the properties and relationships of a passiveDnsRecord object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -200,7 +200,7 @@ public PassiveDnsRecordItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a passiveDnsRecord object. + /// Read the properties and relationships of a passiveDnsRecord object. This API is supported in the following national cloud deployments. /// public class PassiveDnsRecordItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/PassiveDnsRecords/PassiveDnsRecordsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/PassiveDnsRecords/PassiveDnsRecordsRequestBuilder.cs index 26e618ab78d..4538d3ba8c0 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/PassiveDnsRecords/PassiveDnsRecordsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/PassiveDnsRecords/PassiveDnsRecordsRequestBuilder.cs @@ -42,7 +42,7 @@ public PassiveDnsRecordsRequestBuilder(Dictionary pathParameters public PassiveDnsRecordsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/passiveDnsRecords{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of a passiveDnsRecord object. + /// Read the properties and relationships of a passiveDnsRecord object. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(PassiveDnsRecord body, Action(requestInfo, PassiveDnsRecord.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of a passiveDnsRecord object. + /// Read the properties and relationships of a passiveDnsRecord object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public PassiveDnsRecordsRequestBuilder WithUrl(string rawUrl) { return new PassiveDnsRecordsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of a passiveDnsRecord object. + /// Read the properties and relationships of a passiveDnsRecord object. This API is supported in the following national cloud deployments. /// public class PassiveDnsRecordsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..764a8ccf2f0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.SslCertificates.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/sslCertificates/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/sslCertificates/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..e32a0de6ed3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.SslCertificates.Item.RelatedHosts.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/sslCertificates/{sslCertificate%2Did}/relatedHosts/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/sslCertificates/{sslCertificate%2Did}/relatedHosts/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/Item/HostItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/Item/HostItemRequestBuilder.cs new file mode 100644 index 00000000000..83bb2027ddd --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/Item/HostItemRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.SslCertificates.Item.RelatedHosts.Item { + /// + /// Provides operations to manage the relatedHosts property of the microsoft.graph.security.sslCertificate entity. + /// + public class HostItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new HostItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public HostItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/sslCertificates/{sslCertificate%2Did}/relatedHosts/{host%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new HostItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public HostItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/sslCertificates/{sslCertificate%2Did}/relatedHosts/{host%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// The hosts related with this sslCertificate. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Security.Host.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The hosts related with this sslCertificate. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new HostItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public HostItemRequestBuilder WithUrl(string rawUrl) { + return new HostItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The hosts related with this sslCertificate. + /// + public class HostItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class HostItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public HostItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new HostItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new HostItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public HostItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/RelatedHostsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/RelatedHostsRequestBuilder.cs new file mode 100644 index 00000000000..7f29ecc4f07 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/RelatedHostsRequestBuilder.cs @@ -0,0 +1,179 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Graph.Security.ThreatIntelligence.SslCertificates.Item.RelatedHosts.Count; +using Microsoft.Graph.Security.ThreatIntelligence.SslCertificates.Item.RelatedHosts.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.SslCertificates.Item.RelatedHosts { + /// + /// Provides operations to manage the relatedHosts property of the microsoft.graph.security.sslCertificate entity. + /// + public class RelatedHostsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the relatedHosts property of the microsoft.graph.security.sslCertificate entity. + /// The unique identifier of host + public HostItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("host%2Did", position); + return new HostItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new RelatedHostsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RelatedHostsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/sslCertificates/{sslCertificate%2Did}/relatedHosts{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new RelatedHostsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RelatedHostsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/sslCertificates/{sslCertificate%2Did}/relatedHosts{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// The hosts related with this sslCertificate. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, HostCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The hosts related with this sslCertificate. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new RelatedHostsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public RelatedHostsRequestBuilder WithUrl(string rawUrl) { + return new RelatedHostsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The hosts related with this sslCertificate. + /// + public class RelatedHostsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class RelatedHostsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public RelatedHostsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new RelatedHostsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new relatedHostsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public RelatedHostsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/Item/SslCertificateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/Item/SslCertificateItemRequestBuilder.cs new file mode 100644 index 00000000000..8e59cfc0b16 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/Item/SslCertificateItemRequestBuilder.cs @@ -0,0 +1,257 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Graph.Security.ThreatIntelligence.SslCertificates.Item.RelatedHosts; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.SslCertificates.Item { + /// + /// Provides operations to manage the sslCertificates property of the microsoft.graph.security.threatIntelligence entity. + /// + public class SslCertificateItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the relatedHosts property of the microsoft.graph.security.sslCertificate entity. + public RelatedHostsRequestBuilder RelatedHosts { get => + new RelatedHostsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new SslCertificateItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SslCertificateItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/sslCertificates/{sslCertificate%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new SslCertificateItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SslCertificateItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/sslCertificates/{sslCertificate%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property sslCertificates for security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the properties and relationships of an sslCertificate object. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Security.SslCertificate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property sslCertificates in security + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(Microsoft.Graph.Models.Security.SslCertificate body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(Microsoft.Graph.Models.Security.SslCertificate body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Security.SslCertificate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property sslCertificates for security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new SslCertificateItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the properties and relationships of an sslCertificate object. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new SslCertificateItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property sslCertificates in security + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Security.SslCertificate body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Security.SslCertificate body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new SslCertificateItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public SslCertificateItemRequestBuilder WithUrl(string rawUrl) { + return new SslCertificateItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class SslCertificateItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new SslCertificateItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public SslCertificateItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get the properties and relationships of an sslCertificate object. + /// + public class SslCertificateItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class SslCertificateItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public SslCertificateItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new SslCertificateItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new SslCertificateItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public SslCertificateItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class SslCertificateItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new SslCertificateItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public SslCertificateItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/SslCertificatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/SslCertificatesRequestBuilder.cs new file mode 100644 index 00000000000..caf354ed520 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/SslCertificatesRequestBuilder.cs @@ -0,0 +1,245 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Graph.Security.ThreatIntelligence.SslCertificates.Count; +using Microsoft.Graph.Security.ThreatIntelligence.SslCertificates.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.SslCertificates { + /// + /// Provides operations to manage the sslCertificates property of the microsoft.graph.security.threatIntelligence entity. + /// + public class SslCertificatesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the sslCertificates property of the microsoft.graph.security.threatIntelligence entity. + /// The unique identifier of sslCertificate + public SslCertificateItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("sslCertificate%2Did", position); + return new SslCertificateItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new SslCertificatesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SslCertificatesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/sslCertificates{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new SslCertificatesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SslCertificatesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/sslCertificates{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get a list of sslCertificate objects and their properties. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, SslCertificateCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to sslCertificates for security + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Microsoft.Graph.Models.Security.SslCertificate body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(Microsoft.Graph.Models.Security.SslCertificate body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Security.SslCertificate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a list of sslCertificate objects and their properties. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new SslCertificatesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to sslCertificates for security + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Security.SslCertificate body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Security.SslCertificate body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new SslCertificatesRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public SslCertificatesRequestBuilder WithUrl(string rawUrl) { + return new SslCertificatesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a list of sslCertificate objects and their properties. + /// + public class SslCertificatesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class SslCertificatesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public SslCertificatesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new SslCertificatesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new sslCertificatesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public SslCertificatesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class SslCertificatesRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new sslCertificatesRequestBuilderPostRequestConfiguration and sets the default values. + /// + public SslCertificatesRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Subdomains/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Subdomains/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..419dd90b44f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Subdomains/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.Subdomains.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/subdomains/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/subdomains/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Subdomains/Item/Host/HostRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Subdomains/Item/Host/HostRequestBuilder.cs new file mode 100644 index 00000000000..31b5f3d410b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Subdomains/Item/Host/HostRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.Subdomains.Item.Host { + /// + /// Provides operations to manage the host property of the microsoft.graph.security.subdomain entity. + /// + public class HostRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new HostRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public HostRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/subdomains/{subdomain%2Did}/host{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new HostRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public HostRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/subdomains/{subdomain%2Did}/host{?%24select,%24expand}", rawUrl) { + } + /// + /// The host of the subdomain. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Security.Host.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The host of the subdomain. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new HostRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public HostRequestBuilder WithUrl(string rawUrl) { + return new HostRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The host of the subdomain. + /// + public class HostRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class HostRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public HostRequestBuilderGetQueryParameters QueryParameters { get; set; } = new HostRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new hostRequestBuilderGetRequestConfiguration and sets the default values. + /// + public HostRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Subdomains/Item/SubdomainItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Subdomains/Item/SubdomainItemRequestBuilder.cs new file mode 100644 index 00000000000..a3b16f5dac5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Subdomains/Item/SubdomainItemRequestBuilder.cs @@ -0,0 +1,257 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Graph.Security.ThreatIntelligence.Subdomains.Item.Host; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.Subdomains.Item { + /// + /// Provides operations to manage the subdomains property of the microsoft.graph.security.threatIntelligence entity. + /// + public class SubdomainItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the host property of the microsoft.graph.security.subdomain entity. + public HostRequestBuilder Host { get => + new HostRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new SubdomainItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SubdomainItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/subdomains/{subdomain%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new SubdomainItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SubdomainItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/subdomains/{subdomain%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property subdomains for security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read the properties and relationships of a subdomain object. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Subdomain.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property subdomains in security + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(Subdomain body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(Subdomain body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Subdomain.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property subdomains for security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new SubdomainItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Read the properties and relationships of a subdomain object. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new SubdomainItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property subdomains in security + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(Subdomain body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(Subdomain body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new SubdomainItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public SubdomainItemRequestBuilder WithUrl(string rawUrl) { + return new SubdomainItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class SubdomainItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new SubdomainItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public SubdomainItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Read the properties and relationships of a subdomain object. + /// + public class SubdomainItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class SubdomainItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public SubdomainItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new SubdomainItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new SubdomainItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public SubdomainItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class SubdomainItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new SubdomainItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public SubdomainItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Subdomains/SubdomainsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Subdomains/SubdomainsRequestBuilder.cs new file mode 100644 index 00000000000..04265de9cbe --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Subdomains/SubdomainsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Graph.Security.ThreatIntelligence.Subdomains.Count; +using Microsoft.Graph.Security.ThreatIntelligence.Subdomains.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.Subdomains { + /// + /// Provides operations to manage the subdomains property of the microsoft.graph.security.threatIntelligence entity. + /// + public class SubdomainsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the subdomains property of the microsoft.graph.security.threatIntelligence entity. + /// The unique identifier of subdomain + public SubdomainItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("subdomain%2Did", position); + return new SubdomainItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new SubdomainsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SubdomainsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/subdomains{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new SubdomainsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SubdomainsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/subdomains{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Read the properties and relationships of a subdomain object. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, SubdomainCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to subdomains for security + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Subdomain body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(Subdomain body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Subdomain.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read the properties and relationships of a subdomain object. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new SubdomainsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to subdomains for security + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Subdomain body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Subdomain body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new SubdomainsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public SubdomainsRequestBuilder WithUrl(string rawUrl) { + return new SubdomainsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Read the properties and relationships of a subdomain object. + /// + public class SubdomainsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class SubdomainsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public SubdomainsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new SubdomainsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new subdomainsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public SubdomainsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class SubdomainsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new subdomainsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public SubdomainsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/ThreatIntelligenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/ThreatIntelligenceRequestBuilder.cs index 4851b37dcc8..8171d16bbd6 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/ThreatIntelligenceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/ThreatIntelligenceRequestBuilder.cs @@ -5,12 +5,18 @@ using Microsoft.Graph.Security.ThreatIntelligence.Articles; using Microsoft.Graph.Security.ThreatIntelligence.HostComponents; using Microsoft.Graph.Security.ThreatIntelligence.HostCookies; +using Microsoft.Graph.Security.ThreatIntelligence.HostPairs; +using Microsoft.Graph.Security.ThreatIntelligence.HostSslCertificates; using Microsoft.Graph.Security.ThreatIntelligence.HostTrackers; using Microsoft.Graph.Security.ThreatIntelligence.Hosts; using Microsoft.Graph.Security.ThreatIntelligence.IntelProfiles; using Microsoft.Graph.Security.ThreatIntelligence.IntelligenceProfileIndicators; using Microsoft.Graph.Security.ThreatIntelligence.PassiveDnsRecords; +using Microsoft.Graph.Security.ThreatIntelligence.SslCertificates; +using Microsoft.Graph.Security.ThreatIntelligence.Subdomains; using Microsoft.Graph.Security.ThreatIntelligence.Vulnerabilities; +using Microsoft.Graph.Security.ThreatIntelligence.WhoisHistoryRecords; +using Microsoft.Graph.Security.ThreatIntelligence.WhoisRecords; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -40,10 +46,18 @@ public class ThreatIntelligenceRequestBuilder : BaseRequestBuilder { public HostCookiesRequestBuilder HostCookies { get => new HostCookiesRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the hostPairs property of the microsoft.graph.security.threatIntelligence entity. + public HostPairsRequestBuilder HostPairs { get => + new HostPairsRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to manage the hosts property of the microsoft.graph.security.threatIntelligence entity. public HostsRequestBuilder Hosts { get => new HostsRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the hostSslCertificates property of the microsoft.graph.security.threatIntelligence entity. + public HostSslCertificatesRequestBuilder HostSslCertificates { get => + new HostSslCertificatesRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to manage the hostTrackers property of the microsoft.graph.security.threatIntelligence entity. public HostTrackersRequestBuilder HostTrackers { get => new HostTrackersRequestBuilder(PathParameters, RequestAdapter); @@ -60,10 +74,26 @@ public class ThreatIntelligenceRequestBuilder : BaseRequestBuilder { public PassiveDnsRecordsRequestBuilder PassiveDnsRecords { get => new PassiveDnsRecordsRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the sslCertificates property of the microsoft.graph.security.threatIntelligence entity. + public SslCertificatesRequestBuilder SslCertificates { get => + new SslCertificatesRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the subdomains property of the microsoft.graph.security.threatIntelligence entity. + public SubdomainsRequestBuilder Subdomains { get => + new SubdomainsRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to manage the vulnerabilities property of the microsoft.graph.security.threatIntelligence entity. public VulnerabilitiesRequestBuilder Vulnerabilities { get => new VulnerabilitiesRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the whoisHistoryRecords property of the microsoft.graph.security.threatIntelligence entity. + public WhoisHistoryRecordsRequestBuilder WhoisHistoryRecords { get => + new WhoisHistoryRecordsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the whoisRecords property of the microsoft.graph.security.threatIntelligence entity. + public WhoisRecordsRequestBuilder WhoisRecords { get => + new WhoisRecordsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new ThreatIntelligenceRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Components/ComponentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Components/ComponentsRequestBuilder.cs index e2c0f614947..75358410996 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Components/ComponentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Components/ComponentsRequestBuilder.cs @@ -42,7 +42,7 @@ public ComponentsRequestBuilder(Dictionary pathParameters, IRequ public ComponentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/vulnerabilities/{vulnerability%2Did}/components{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the microsoft.graph.security.vulnerabilityComponent objects and their properties. + /// Get a list of vulnerabilityComponent objects related to a known vulnerability. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(VulnerabilityComponent body, return await RequestAdapter.SendAsync(requestInfo, VulnerabilityComponent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the microsoft.graph.security.vulnerabilityComponent objects and their properties. + /// Get a list of vulnerabilityComponent objects related to a known vulnerability. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public ComponentsRequestBuilder WithUrl(string rawUrl) { return new ComponentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the microsoft.graph.security.vulnerabilityComponent objects and their properties. + /// Get a list of vulnerabilityComponent objects related to a known vulnerability. This API is supported in the following national cloud deployments. /// public class ComponentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Components/Item/VulnerabilityComponentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Components/Item/VulnerabilityComponentItemRequestBuilder.cs index 1a6cc61eca2..68125fc3c80 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Components/Item/VulnerabilityComponentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Components/Item/VulnerabilityComponentItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a vulnerabilityComponent object. + /// Read the properties and relationships of a vulnerabilityComponent object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a vulnerabilityComponent object. + /// Read the properties and relationships of a vulnerabilityComponent object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public VulnerabilityComponentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a vulnerabilityComponent object. + /// Read the properties and relationships of a vulnerabilityComponent object. This API is supported in the following national cloud deployments. /// public class VulnerabilityComponentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/VulnerabilityItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/VulnerabilityItemRequestBuilder.cs index 3034f32d239..10aa802c929 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/VulnerabilityItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/VulnerabilityItemRequestBuilder.cs @@ -58,7 +58,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a vulnerability object. + /// Read the properties and relationships of a vulnerability object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -123,7 +123,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a vulnerability object. + /// Read the properties and relationships of a vulnerability object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -200,7 +200,7 @@ public VulnerabilityItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a vulnerability object. + /// Read the properties and relationships of a vulnerability object. This API is supported in the following national cloud deployments. /// public class VulnerabilityItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/VulnerabilitiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/VulnerabilitiesRequestBuilder.cs index febc360ca33..39ffc3b735b 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/VulnerabilitiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/VulnerabilitiesRequestBuilder.cs @@ -42,7 +42,7 @@ public VulnerabilitiesRequestBuilder(Dictionary pathParameters, public VulnerabilitiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/vulnerabilities{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of a vulnerability object. + /// Read the properties and relationships of a vulnerability object. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(Vulnerability body, Action(requestInfo, Vulnerability.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of a vulnerability object. + /// Read the properties and relationships of a vulnerability object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public VulnerabilitiesRequestBuilder WithUrl(string rawUrl) { return new VulnerabilitiesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of a vulnerability object. + /// Read the properties and relationships of a vulnerability object. This API is supported in the following national cloud deployments. /// public class VulnerabilitiesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..76b30ccc6a0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.WhoisHistoryRecords.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/whoisHistoryRecords/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/whoisHistoryRecords/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/Item/Host/HostRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/Item/Host/HostRequestBuilder.cs new file mode 100644 index 00000000000..9367b68ed02 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/Item/Host/HostRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.WhoisHistoryRecords.Item.Host { + /// + /// Provides operations to manage the host property of the microsoft.graph.security.whoisBaseRecord entity. + /// + public class HostRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new HostRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public HostRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/whoisHistoryRecords/{whoisHistoryRecord%2Did}/host{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new HostRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public HostRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/whoisHistoryRecords/{whoisHistoryRecord%2Did}/host{?%24select,%24expand}", rawUrl) { + } + /// + /// The host associated to this WHOIS object. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Security.Host.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The host associated to this WHOIS object. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new HostRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public HostRequestBuilder WithUrl(string rawUrl) { + return new HostRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The host associated to this WHOIS object. + /// + public class HostRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class HostRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public HostRequestBuilderGetQueryParameters QueryParameters { get; set; } = new HostRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new hostRequestBuilderGetRequestConfiguration and sets the default values. + /// + public HostRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/Item/WhoisHistoryRecordItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/Item/WhoisHistoryRecordItemRequestBuilder.cs new file mode 100644 index 00000000000..b9fecc4c066 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/Item/WhoisHistoryRecordItemRequestBuilder.cs @@ -0,0 +1,256 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Graph.Security.ThreatIntelligence.WhoisHistoryRecords.Item.Host; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.WhoisHistoryRecords.Item { + /// + /// Provides operations to manage the whoisHistoryRecords property of the microsoft.graph.security.threatIntelligence entity. + /// + public class WhoisHistoryRecordItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the host property of the microsoft.graph.security.whoisBaseRecord entity. + public HostRequestBuilder Host { get => + new HostRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new WhoisHistoryRecordItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public WhoisHistoryRecordItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/whoisHistoryRecords/{whoisHistoryRecord%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new WhoisHistoryRecordItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public WhoisHistoryRecordItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/whoisHistoryRecords/{whoisHistoryRecord%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property whoisHistoryRecords for security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Retrieve details about whoisHistoryRecord objects.Note: List retrieval is not yet supported. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, WhoisHistoryRecord.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property whoisHistoryRecords in security + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(WhoisHistoryRecord body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(WhoisHistoryRecord body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, WhoisHistoryRecord.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property whoisHistoryRecords for security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new WhoisHistoryRecordItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Retrieve details about whoisHistoryRecord objects.Note: List retrieval is not yet supported. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new WhoisHistoryRecordItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property whoisHistoryRecords in security + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(WhoisHistoryRecord body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(WhoisHistoryRecord body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new WhoisHistoryRecordItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public WhoisHistoryRecordItemRequestBuilder WithUrl(string rawUrl) { + return new WhoisHistoryRecordItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class WhoisHistoryRecordItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new WhoisHistoryRecordItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public WhoisHistoryRecordItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Retrieve details about whoisHistoryRecord objects.Note: List retrieval is not yet supported. + /// + public class WhoisHistoryRecordItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class WhoisHistoryRecordItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public WhoisHistoryRecordItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new WhoisHistoryRecordItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new WhoisHistoryRecordItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public WhoisHistoryRecordItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class WhoisHistoryRecordItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new WhoisHistoryRecordItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public WhoisHistoryRecordItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/WhoisHistoryRecordsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/WhoisHistoryRecordsRequestBuilder.cs new file mode 100644 index 00000000000..3c300d3a110 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/WhoisHistoryRecordsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Graph.Security.ThreatIntelligence.WhoisHistoryRecords.Count; +using Microsoft.Graph.Security.ThreatIntelligence.WhoisHistoryRecords.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.WhoisHistoryRecords { + /// + /// Provides operations to manage the whoisHistoryRecords property of the microsoft.graph.security.threatIntelligence entity. + /// + public class WhoisHistoryRecordsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the whoisHistoryRecords property of the microsoft.graph.security.threatIntelligence entity. + /// The unique identifier of whoisHistoryRecord + public WhoisHistoryRecordItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("whoisHistoryRecord%2Did", position); + return new WhoisHistoryRecordItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new WhoisHistoryRecordsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public WhoisHistoryRecordsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/whoisHistoryRecords{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new WhoisHistoryRecordsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public WhoisHistoryRecordsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/whoisHistoryRecords{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Retrieve details about whoisHistoryRecord objects.Note: List retrieval is not yet supported. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, WhoisHistoryRecordCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to whoisHistoryRecords for security + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(WhoisHistoryRecord body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(WhoisHistoryRecord body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, WhoisHistoryRecord.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Retrieve details about whoisHistoryRecord objects.Note: List retrieval is not yet supported. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new WhoisHistoryRecordsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to whoisHistoryRecords for security + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(WhoisHistoryRecord body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(WhoisHistoryRecord body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new WhoisHistoryRecordsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public WhoisHistoryRecordsRequestBuilder WithUrl(string rawUrl) { + return new WhoisHistoryRecordsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Retrieve details about whoisHistoryRecord objects.Note: List retrieval is not yet supported. + /// + public class WhoisHistoryRecordsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class WhoisHistoryRecordsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public WhoisHistoryRecordsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new WhoisHistoryRecordsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new whoisHistoryRecordsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public WhoisHistoryRecordsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class WhoisHistoryRecordsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new whoisHistoryRecordsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public WhoisHistoryRecordsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..f2332706006 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.WhoisRecords.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/whoisRecords/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/whoisRecords/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Item/History/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Item/History/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..ee3cd64a1af --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Item/History/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.WhoisRecords.Item.History.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/whoisRecords/{whoisRecord%2Did}/history/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/whoisRecords/{whoisRecord%2Did}/history/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Item/History/HistoryRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Item/History/HistoryRequestBuilder.cs new file mode 100644 index 00000000000..60a0ab9f721 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Item/History/HistoryRequestBuilder.cs @@ -0,0 +1,180 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Graph.Security.ThreatIntelligence.WhoisRecords.Item.History.Count; +using Microsoft.Graph.Security.ThreatIntelligence.WhoisRecords.Item.History.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.WhoisRecords.Item.History { + /// + /// Provides operations to manage the history property of the microsoft.graph.security.whoisRecord entity. + /// + public class HistoryRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the history property of the microsoft.graph.security.whoisRecord entity. + /// The unique identifier of whoisHistoryRecord + public WhoisHistoryRecordItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("whoisHistoryRecord%2Did", position); + return new WhoisHistoryRecordItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new HistoryRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public HistoryRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/whoisRecords/{whoisRecord%2Did}/history{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new HistoryRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public HistoryRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/whoisRecords/{whoisRecord%2Did}/history{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get the history for a whoisRecord, as represented by a collection of whoisHistoryRecord resources. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, WhoisHistoryRecordCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the history for a whoisRecord, as represented by a collection of whoisHistoryRecord resources. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new HistoryRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public HistoryRequestBuilder WithUrl(string rawUrl) { + return new HistoryRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the history for a whoisRecord, as represented by a collection of whoisHistoryRecord resources. + /// + public class HistoryRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class HistoryRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public HistoryRequestBuilderGetQueryParameters QueryParameters { get; set; } = new HistoryRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new historyRequestBuilderGetRequestConfiguration and sets the default values. + /// + public HistoryRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Item/History/Item/WhoisHistoryRecordItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Item/History/Item/WhoisHistoryRecordItemRequestBuilder.cs new file mode 100644 index 00000000000..60751a6a6b2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Item/History/Item/WhoisHistoryRecordItemRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.WhoisRecords.Item.History.Item { + /// + /// Provides operations to manage the history property of the microsoft.graph.security.whoisRecord entity. + /// + public class WhoisHistoryRecordItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new WhoisHistoryRecordItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public WhoisHistoryRecordItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/whoisRecords/{whoisRecord%2Did}/history/{whoisHistoryRecord%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new WhoisHistoryRecordItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public WhoisHistoryRecordItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/whoisRecords/{whoisRecord%2Did}/history/{whoisHistoryRecord%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// The collection of historical records associated to this WHOIS object. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, WhoisHistoryRecord.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of historical records associated to this WHOIS object. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new WhoisHistoryRecordItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public WhoisHistoryRecordItemRequestBuilder WithUrl(string rawUrl) { + return new WhoisHistoryRecordItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The collection of historical records associated to this WHOIS object. + /// + public class WhoisHistoryRecordItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class WhoisHistoryRecordItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public WhoisHistoryRecordItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new WhoisHistoryRecordItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new WhoisHistoryRecordItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public WhoisHistoryRecordItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Item/Host/HostRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Item/Host/HostRequestBuilder.cs new file mode 100644 index 00000000000..98e9d33cdf6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Item/Host/HostRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.WhoisRecords.Item.Host { + /// + /// Provides operations to manage the host property of the microsoft.graph.security.whoisBaseRecord entity. + /// + public class HostRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new HostRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public HostRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/whoisRecords/{whoisRecord%2Did}/host{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new HostRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public HostRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/whoisRecords/{whoisRecord%2Did}/host{?%24select,%24expand}", rawUrl) { + } + /// + /// The host associated to this WHOIS object. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Security.Host.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The host associated to this WHOIS object. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new HostRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public HostRequestBuilder WithUrl(string rawUrl) { + return new HostRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The host associated to this WHOIS object. + /// + public class HostRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class HostRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public HostRequestBuilderGetQueryParameters QueryParameters { get; set; } = new HostRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new hostRequestBuilderGetRequestConfiguration and sets the default values. + /// + public HostRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Item/WhoisRecordItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Item/WhoisRecordItemRequestBuilder.cs new file mode 100644 index 00000000000..f780bca908e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Item/WhoisRecordItemRequestBuilder.cs @@ -0,0 +1,262 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Graph.Security.ThreatIntelligence.WhoisRecords.Item.History; +using Microsoft.Graph.Security.ThreatIntelligence.WhoisRecords.Item.Host; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.WhoisRecords.Item { + /// + /// Provides operations to manage the whoisRecords property of the microsoft.graph.security.threatIntelligence entity. + /// + public class WhoisRecordItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the history property of the microsoft.graph.security.whoisRecord entity. + public HistoryRequestBuilder History { get => + new HistoryRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the host property of the microsoft.graph.security.whoisBaseRecord entity. + public HostRequestBuilder Host { get => + new HostRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new WhoisRecordItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public WhoisRecordItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/whoisRecords/{whoisRecord%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new WhoisRecordItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public WhoisRecordItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/whoisRecords/{whoisRecord%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property whoisRecords for security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read the properties and relationships of a whoisRecord object. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, WhoisRecord.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property whoisRecords in security + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(WhoisRecord body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(WhoisRecord body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, WhoisRecord.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property whoisRecords for security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new WhoisRecordItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Read the properties and relationships of a whoisRecord object. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new WhoisRecordItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property whoisRecords in security + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(WhoisRecord body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(WhoisRecord body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new WhoisRecordItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public WhoisRecordItemRequestBuilder WithUrl(string rawUrl) { + return new WhoisRecordItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class WhoisRecordItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new WhoisRecordItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public WhoisRecordItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Read the properties and relationships of a whoisRecord object. + /// + public class WhoisRecordItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class WhoisRecordItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public WhoisRecordItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new WhoisRecordItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new WhoisRecordItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public WhoisRecordItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class WhoisRecordItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new WhoisRecordItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public WhoisRecordItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/WhoisRecordsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/WhoisRecordsRequestBuilder.cs new file mode 100644 index 00000000000..6ab31c03482 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/WhoisRecordsRequestBuilder.cs @@ -0,0 +1,245 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Graph.Security.ThreatIntelligence.WhoisRecords.Count; +using Microsoft.Graph.Security.ThreatIntelligence.WhoisRecords.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.ThreatIntelligence.WhoisRecords { + /// + /// Provides operations to manage the whoisRecords property of the microsoft.graph.security.threatIntelligence entity. + /// + public class WhoisRecordsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the whoisRecords property of the microsoft.graph.security.threatIntelligence entity. + /// The unique identifier of whoisRecord + public WhoisRecordItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("whoisRecord%2Did", position); + return new WhoisRecordItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new WhoisRecordsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public WhoisRecordsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/whoisRecords{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new WhoisRecordsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public WhoisRecordsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/whoisRecords{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get a list of whoisRecord objects. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, WhoisRecordCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to whoisRecords for security + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(WhoisRecord body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(WhoisRecord body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, WhoisRecord.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a list of whoisRecord objects. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new WhoisRecordsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to whoisRecords for security + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(WhoisRecord body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(WhoisRecord body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new WhoisRecordsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public WhoisRecordsRequestBuilder WithUrl(string rawUrl) { + return new WhoisRecordsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a list of whoisRecord objects. + /// + public class WhoisRecordsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class WhoisRecordsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public WhoisRecordsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new WhoisRecordsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new whoisRecordsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public WhoisRecordsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class WhoisRecordsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new whoisRecordsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public WhoisRecordsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/TriggerTypes/RetentionEventTypes/Item/RetentionEventTypeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/TriggerTypes/RetentionEventTypes/Item/RetentionEventTypeItemRequestBuilder.cs index 3769895775c..4ecb564ec3e 100644 --- a/src/Microsoft.Graph/Generated/Security/TriggerTypes/RetentionEventTypes/Item/RetentionEventTypeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/TriggerTypes/RetentionEventTypes/Item/RetentionEventTypeItemRequestBuilder.cs @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a retentionEventType object. + /// Read the properties and relationships of a retentionEventType object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a retentionEventType object. + /// Read the properties and relationships of a retentionEventType object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public RetentionEventTypeItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a retentionEventType object. + /// Read the properties and relationships of a retentionEventType object. This API is supported in the following national cloud deployments. /// public class RetentionEventTypeItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/TriggerTypes/RetentionEventTypes/RetentionEventTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/TriggerTypes/RetentionEventTypes/RetentionEventTypesRequestBuilder.cs index 2698d89a543..c252018a585 100644 --- a/src/Microsoft.Graph/Generated/Security/TriggerTypes/RetentionEventTypes/RetentionEventTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/TriggerTypes/RetentionEventTypes/RetentionEventTypesRequestBuilder.cs @@ -42,7 +42,7 @@ public RetentionEventTypesRequestBuilder(Dictionary pathParamete public RetentionEventTypesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/triggerTypes/retentionEventTypes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the retentionEventType objects and their properties. + /// Get a list of the retentionEventType objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, RetentionEventTypeCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new retentionEventType object. + /// Create a new retentionEventType object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Security.RetentionEventType.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the retentionEventType objects and their properties. + /// Get a list of the retentionEventType objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new retentionEventType object. + /// Create a new retentionEventType object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public RetentionEventTypesRequestBuilder WithUrl(string rawUrl) { return new RetentionEventTypesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the retentionEventType objects and their properties. + /// Get a list of the retentionEventType objects and their properties. This API is supported in the following national cloud deployments. /// public class RetentionEventTypesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/Triggers/RetentionEvents/Item/RetentionEventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Triggers/RetentionEvents/Item/RetentionEventItemRequestBuilder.cs index b1c0d9454c1..e466c8289ca 100644 --- a/src/Microsoft.Graph/Generated/Security/Triggers/RetentionEvents/Item/RetentionEventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Triggers/RetentionEvents/Item/RetentionEventItemRequestBuilder.cs @@ -34,7 +34,7 @@ public RetentionEventItemRequestBuilder(Dictionary pathParameter public RetentionEventItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/triggers/retentionEvents/{retentionEvent%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a retentionEvent object. + /// Delete a retentionEvent object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a retentionEvent object. + /// Read the properties and relationships of a retentionEvent object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -95,7 +95,7 @@ public async Task PatchAsync(RetentionEvent body, Action(requestInfo, RetentionEvent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a retentionEvent object. + /// Delete a retentionEvent object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -119,7 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a retentionEvent object. + /// Read the properties and relationships of a retentionEvent object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -196,7 +196,7 @@ public RetentionEventItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a retentionEvent object. + /// Read the properties and relationships of a retentionEvent object. This API is supported in the following national cloud deployments. /// public class RetentionEventItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/Triggers/RetentionEvents/RetentionEventsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Triggers/RetentionEvents/RetentionEventsRequestBuilder.cs index 7086ffba13d..19fbb21bfda 100644 --- a/src/Microsoft.Graph/Generated/Security/Triggers/RetentionEvents/RetentionEventsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Triggers/RetentionEvents/RetentionEventsRequestBuilder.cs @@ -42,7 +42,7 @@ public RetentionEventsRequestBuilder(Dictionary pathParameters, public RetentionEventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/triggers/retentionEvents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the retentionEvent objects and their properties. + /// Get a list of the retentionEvent objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, RetentionEventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new retentionEvent object. + /// Create a new retentionEvent object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(RetentionEvent body, Action(requestInfo, RetentionEvent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the retentionEvent objects and their properties. + /// Get a list of the retentionEvent objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new retentionEvent object. + /// Create a new retentionEvent object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public RetentionEventsRequestBuilder WithUrl(string rawUrl) { return new RetentionEventsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the retentionEvent objects and their properties. + /// Get a list of the retentionEvent objects and their properties. This API is supported in the following national cloud deployments. /// public class RetentionEventsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..03086b95da2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.ServicePrincipals.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ServicePrincipal.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Delta/DeltaRequestBuilder.cs index 2dc889697f0..1c9d87742f5 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Delta/DeltaResponse.cs index ac0c1e7cf28..0ada24b6ed7 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.ServicePrincipals.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ServicePrincipal.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs new file mode 100644 index 00000000000..88dfef52b73 --- /dev/null +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.ServicePrincipals.GetAvailableExtensionProperties { + public class GetAvailableExtensionPropertiesPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAvailableExtensionPropertiesPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index e1025f177df..be41a361fd4 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -28,13 +28,36 @@ public GetAvailableExtensionPropertiesRequestBuilder(Dictionary public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/getAvailableExtensionProperties", rawUrl) { } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetAvailableExtensionPropertiesPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetAvailabl return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index dd704d17cce..53586f923ab 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.ServicePrincipals.GetAvailableExtensionProperties { - public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAvailableExtensionPropertiesPostResponse instead.")] + public class GetAvailableExtensionPropertiesResponse : GetAvailableExtensionPropertiesPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/GetByIds/GetByIdsPostResponse.cs new file mode 100644 index 00000000000..79dcffbff88 --- /dev/null +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/GetByIds/GetByIdsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.ServicePrincipals.GetByIds { + public class GetByIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetByIdsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/GetByIds/GetByIdsRequestBuilder.cs index a646208406e..d38db55751d 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/GetByIds/GetByIdsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetByIdsRequestBuilder(Dictionary pathParameters, IReques public GetByIdsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/getByIds", rawUrl) { } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetByIdsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetByIdsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetByIdsPostRequestBody body, Acti return await RequestAdapter.SendAsync(requestInfo, GetByIdsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/GetByIds/GetByIdsResponse.cs index ba20ffcb17c..c1f4f0ebee8 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/GetByIds/GetByIdsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.ServicePrincipals.GetByIds { - public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getByIdsPostResponse instead.")] + public class GetByIdsResponse : GetByIdsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddKey/AddKeyRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddKey/AddKeyRequestBuilder.cs index a445184b68f..c778ea082fa 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddKey/AddKeyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddKey/AddKeyRequestBuilder.cs @@ -29,7 +29,7 @@ public AddKeyRequestBuilder(Dictionary pathParameters, IRequestA public AddKeyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/addKey", rawUrl) { } /// - /// Adds a key credential to a servicePrincipal. This method along with removeKey can be used by a servicePrincipal to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. ServicePrincipals that don’t have any existing valid certificates (i.e.: no certificates have been added yet, or all certificates have expired), won’t be able to use this service action. Update servicePrincipal can be used to perform an update instead. + /// Adds a key credential to a servicePrincipal. This method along with removeKey can be used by a servicePrincipal to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. ServicePrincipals that don’t have any existing valid certificates (i.e.: no certificates have been added yet, or all certificates have expired), won’t be able to use this service action. Update servicePrincipal can be used to perform an update instead. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(AddKeyPostRequestBody body, Action(requestInfo, KeyCredential.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Adds a key credential to a servicePrincipal. This method along with removeKey can be used by a servicePrincipal to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. ServicePrincipals that don’t have any existing valid certificates (i.e.: no certificates have been added yet, or all certificates have expired), won’t be able to use this service action. Update servicePrincipal can be used to perform an update instead. + /// Adds a key credential to a servicePrincipal. This method along with removeKey can be used by a servicePrincipal to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. ServicePrincipals that don’t have any existing valid certificates (i.e.: no certificates have been added yet, or all certificates have expired), won’t be able to use this service action. Update servicePrincipal can be used to perform an update instead. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddPassword/AddPasswordRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddPassword/AddPasswordRequestBuilder.cs index de5934a0fb6..aa1c68c8ea7 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddPassword/AddPasswordRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddPassword/AddPasswordRequestBuilder.cs @@ -29,7 +29,7 @@ public AddPasswordRequestBuilder(Dictionary pathParameters, IReq public AddPasswordRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/addPassword", rawUrl) { } /// - /// Add a strong password or secret to a servicePrincipal object. + /// Add a strong password or secret to a servicePrincipal object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(AddPasswordPostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, PasswordCredential.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a strong password or secret to a servicePrincipal object. + /// Add a strong password or secret to a servicePrincipal object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddTokenSigningCertificate/AddTokenSigningCertificateRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddTokenSigningCertificate/AddTokenSigningCertificateRequestBuilder.cs index 704330dd061..ad3f9f847ce 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddTokenSigningCertificate/AddTokenSigningCertificateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddTokenSigningCertificate/AddTokenSigningCertificateRequestBuilder.cs @@ -29,7 +29,7 @@ public AddTokenSigningCertificateRequestBuilder(Dictionary pathP public AddTokenSigningCertificateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/addTokenSigningCertificate", rawUrl) { } /// - /// Create a self-signed signing certificate and return a selfSignedCertificate object, which is the public part of the generated certificate. The self-signed signing certificate is composed of the following objects, which are added to the servicePrincipal: + The keyCredentials object with the following objects: + A private key object with usage set to Sign. + A public key object with usage set to Verify.+ The passwordCredentials object. All the objects have the same value of customKeyIdentifier. The passwordCredential is used to open the PFX file (private key). It and the associated private key object have the same value of keyId. When set during creation through the displayName property, the subject of the certificate cannot be updated. The startDateTime is set to the same time the certificate is created using the action. The endDateTime can be up to three years after the certificate is created. + /// Create a self-signed signing certificate and return a selfSignedCertificate object, which is the public part of the generated certificate. The self-signed signing certificate is composed of the following objects, which are added to the servicePrincipal: + The keyCredentials object with the following objects: + A private key object with usage set to Sign. + A public key object with usage set to Verify.+ The passwordCredentials object. All the objects have the same value of customKeyIdentifier. The passwordCredential is used to open the PFX file (private key). It and the associated private key object have the same value of keyId. When set during creation through the displayName property, the subject of the certificate cannot be updated. The startDateTime is set to the same time the certificate is created using the action. The endDateTime can be up to three years after the certificate is created. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(AddTokenSigningCertificatePos return await RequestAdapter.SendAsync(requestInfo, SelfSignedCertificate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a self-signed signing certificate and return a selfSignedCertificate object, which is the public part of the generated certificate. The self-signed signing certificate is composed of the following objects, which are added to the servicePrincipal: + The keyCredentials object with the following objects: + A private key object with usage set to Sign. + A public key object with usage set to Verify.+ The passwordCredentials object. All the objects have the same value of customKeyIdentifier. The passwordCredential is used to open the PFX file (private key). It and the associated private key object have the same value of keyId. When set during creation through the displayName property, the subject of the certificate cannot be updated. The startDateTime is set to the same time the certificate is created using the action. The endDateTime can be up to three years after the certificate is created. + /// Create a self-signed signing certificate and return a selfSignedCertificate object, which is the public part of the generated certificate. The self-signed signing certificate is composed of the following objects, which are added to the servicePrincipal: + The keyCredentials object with the following objects: + A private key object with usage set to Sign. + A public key object with usage set to Verify.+ The passwordCredentials object. All the objects have the same value of customKeyIdentifier. The passwordCredential is used to open the PFX file (private key). It and the associated private key object have the same value of keyId. When set during creation through the displayName property, the subject of the certificate cannot be updated. The startDateTime is set to the same time the certificate is created using the action. The endDateTime can be up to three years after the certificate is created. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppManagementPolicies/Item/AppManagementPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppManagementPolicies/Item/AppManagementPolicyItemRequestBuilder.cs index 27408a14a05..72e2c72d2ef 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppManagementPolicies/Item/AppManagementPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppManagementPolicies/Item/AppManagementPolicyItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AppManagementPolicyItemRequestBuilder(Dictionary pathPara public AppManagementPolicyItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/appManagementPolicies/{appManagementPolicy%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Remove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. + /// Remove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, AppManagementPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Remove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. + /// Remove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignedTo/AppRoleAssignedToRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignedTo/AppRoleAssignedToRequestBuilder.cs index eca1bcf9766..cffa2c7f548 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignedTo/AppRoleAssignedToRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignedTo/AppRoleAssignedToRequestBuilder.cs @@ -42,7 +42,7 @@ public AppRoleAssignedToRequestBuilder(Dictionary pathParameters public AppRoleAssignedToRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/appRoleAssignedTo{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of appRoleAssignment that users, groups, or client service principals have been granted for the given resource service principal. For example, if the resource service principal is the service principal for the Microsoft Graph API, this will return all service principals that have been granted any app-only permissions to Microsoft Graph. If the resource service principal is an application that has app roles granted to users and groups, this will return all the users and groups assigned app roles for this application. + /// Retrieve a list of appRoleAssignment that users, groups, or client service principals have been granted for the given resource service principal. For example, if the resource service principal is the service principal for the Microsoft Graph API, this will return all service principals that have been granted any app-only permissions to Microsoft Graph. If the resource service principal is an application that has app roles granted to users and groups, this will return all the users and groups assigned app roles for this application. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, AppRoleAssignmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Assign an app role for a resource service principal, to a user, group, or client service principal. App roles that are assigned to service principals are also known as application permissions. Application permissions can be granted directly with app role assignments, or through a consent experience. To grant an app role assignment, you need three identifiers: + /// Assign an app role for a resource service principal, to a user, group, or client service principal. App roles that are assigned to service principals are also known as application permissions. Application permissions can be granted directly with app role assignments, or through a consent experience. To grant an app role assignment, you need three identifiers: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(AppRoleAssignment body, Action(requestInfo, AppRoleAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of appRoleAssignment that users, groups, or client service principals have been granted for the given resource service principal. For example, if the resource service principal is the service principal for the Microsoft Graph API, this will return all service principals that have been granted any app-only permissions to Microsoft Graph. If the resource service principal is an application that has app roles granted to users and groups, this will return all the users and groups assigned app roles for this application. + /// Retrieve a list of appRoleAssignment that users, groups, or client service principals have been granted for the given resource service principal. For example, if the resource service principal is the service principal for the Microsoft Graph API, this will return all service principals that have been granted any app-only permissions to Microsoft Graph. If the resource service principal is an application that has app roles granted to users and groups, this will return all the users and groups assigned app roles for this application. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Assign an app role for a resource service principal, to a user, group, or client service principal. App roles that are assigned to service principals are also known as application permissions. Application permissions can be granted directly with app role assignments, or through a consent experience. To grant an app role assignment, you need three identifiers: + /// Assign an app role for a resource service principal, to a user, group, or client service principal. App roles that are assigned to service principals are also known as application permissions. Application permissions can be granted directly with app role assignments, or through a consent experience. To grant an app role assignment, you need three identifiers: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public AppRoleAssignedToRequestBuilder WithUrl(string rawUrl) { return new AppRoleAssignedToRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of appRoleAssignment that users, groups, or client service principals have been granted for the given resource service principal. For example, if the resource service principal is the service principal for the Microsoft Graph API, this will return all service principals that have been granted any app-only permissions to Microsoft Graph. If the resource service principal is an application that has app roles granted to users and groups, this will return all the users and groups assigned app roles for this application. + /// Retrieve a list of appRoleAssignment that users, groups, or client service principals have been granted for the given resource service principal. For example, if the resource service principal is the service principal for the Microsoft Graph API, this will return all service principals that have been granted any app-only permissions to Microsoft Graph. If the resource service principal is an application that has app roles granted to users and groups, this will return all the users and groups assigned app roles for this application. This API is supported in the following national cloud deployments. /// public class AppRoleAssignedToRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignedTo/Item/AppRoleAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignedTo/Item/AppRoleAssignmentItemRequestBuilder.cs index fd6c57ed23b..22590d06683 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignedTo/Item/AppRoleAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignedTo/Item/AppRoleAssignmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AppRoleAssignmentItemRequestBuilder(Dictionary pathParame public AppRoleAssignmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/appRoleAssignedTo/{appRoleAssignment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes an appRoleAssignment that a user, group, or client service principal has been granted for a resource service principal. + /// Deletes an appRoleAssignment that a user, group, or client service principal has been granted for a resource service principal. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task PatchAsync(AppRoleAssignment body, Action(requestInfo, AppRoleAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes an appRoleAssignment that a user, group, or client service principal has been granted for a resource service principal. + /// Deletes an appRoleAssignment that a user, group, or client service principal has been granted for a resource service principal. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.cs index 5ca1677b5ce..3d733159847 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.cs @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, AppRoleAssignmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Assign an app role to a client service principal. App roles that are assigned to service principals are also known as application permissions. Application permissions can be granted directly with app role assignments, or through a consent experience. To grant an app role assignment to a client service principal, you need three identifiers: + /// Assign an app role to a client service principal. App roles that are assigned to service principals are also known as application permissions. Application permissions can be granted directly with app role assignments, or through a consent experience. To grant an app role assignment to a client service principal, you need three identifiers: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Assign an app role to a client service principal. App roles that are assigned to service principals are also known as application permissions. Application permissions can be granted directly with app role assignments, or through a consent experience. To grant an app role assignment to a client service principal, you need three identifiers: + /// Assign an app role to a client service principal. App roles that are assigned to service principals are also known as application permissions. Application permissions can be granted directly with app role assignments, or through a consent experience. To grant an app role assignment to a client service principal, you need three identifiers: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.cs index 4501f083986..161da91c293 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AppRoleAssignmentItemRequestBuilder(Dictionary pathParame public AppRoleAssignmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/appRoleAssignments/{appRoleAssignment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes an appRoleAssignment that a service principal has been granted. App roles which are assigned to service principals are also known as application permissions. Deleting an app role assignment for a service principal is equivalent to revoking the app-only permission grant. + /// Deletes an appRoleAssignment that a service principal has been granted. App roles which are assigned to service principals are also known as application permissions. Deleting an app role assignment for a service principal is equivalent to revoking the app-only permission grant. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task PatchAsync(AppRoleAssignment body, Action(requestInfo, AppRoleAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes an appRoleAssignment that a service principal has been granted. App roles which are assigned to service principals are also known as application permissions. Deleting an app role assignment for a service principal is equivalent to revoking the app-only permission grant. + /// Deletes an appRoleAssignment that a service principal has been granted. App roles which are assigned to service principals are also known as application permissions. Deleting an app role assignment for a service principal is equivalent to revoking the app-only permission grant. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..71d4d1ea821 --- /dev/null +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.ServicePrincipals.Item.CheckMemberGroups { + public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index 9c7676bc499..4ac840e9cc3 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index 9b24d1d6cc5..3cb1e720369 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.ServicePrincipals.Item.CheckMemberGroups { - public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberGroupsPostResponse instead.")] + public class CheckMemberGroupsResponse : CheckMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..31d22acdb7c --- /dev/null +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.ServicePrincipals.Item.CheckMemberObjects { + public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index b1785cdeca4..4e55cb1c428 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -34,6 +34,28 @@ public CheckMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAd /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action checkMemberObjects + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index 7a993145b27..53c3a591b3a 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.ServicePrincipals.Item.CheckMemberObjects { - public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberObjectsPostResponse instead.")] + public class CheckMemberObjectsResponse : CheckMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/ClaimsMappingPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/ClaimsMappingPoliciesRequestBuilder.cs index 94286a0cf79..21254cba1d9 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/ClaimsMappingPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/ClaimsMappingPoliciesRequestBuilder.cs @@ -47,7 +47,7 @@ public ClaimsMappingPoliciesRequestBuilder(Dictionary pathParame public ClaimsMappingPoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/claimsMappingPolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List the claimsMappingPolicy objects that are assigned to a servicePrincipal. + /// List the claimsMappingPolicy objects that are assigned to a servicePrincipal. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ClaimsMappingPolicyCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List the claimsMappingPolicy objects that are assigned to a servicePrincipal. + /// List the claimsMappingPolicy objects that are assigned to a servicePrincipal. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -100,7 +100,7 @@ public ClaimsMappingPoliciesRequestBuilder WithUrl(string rawUrl) { return new ClaimsMappingPoliciesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List the claimsMappingPolicy objects that are assigned to a servicePrincipal. + /// List the claimsMappingPolicy objects that are assigned to a servicePrincipal. This API is supported in the following national cloud deployments. /// public class ClaimsMappingPoliciesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Item/Ref/RefRequestBuilder.cs index e6976dbb35a..8f06b5ac064 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Item/Ref/RefRequestBuilder.cs @@ -28,7 +28,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/claimsMappingPolicies/{claimsMappingPolicy%2Did}/$ref{?%40id*}", rawUrl) { } /// - /// Remove a claimsMappingPolicy from a servicePrincipal. + /// Remove a claimsMappingPolicy from a servicePrincipal. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Remove a claimsMappingPolicy from a servicePrincipal. + /// Remove a claimsMappingPolicy from a servicePrincipal. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -80,7 +80,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a claimsMappingPolicy from a servicePrincipal. + /// Remove a claimsMappingPolicy from a servicePrincipal. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderDeleteQueryParameters { /// Delete Uri diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Ref/RefRequestBuilder.cs index 672667f6dc7..5342ac6f39b 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Ref/RefRequestBuilder.cs @@ -29,7 +29,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/claimsMappingPolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { } /// - /// List the claimsMappingPolicy objects that are assigned to a servicePrincipal. + /// List the claimsMappingPolicy objects that are assigned to a servicePrincipal. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, StringCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Assign a claimsMappingPolicy to a servicePrincipal. + /// Assign a claimsMappingPolicy to a servicePrincipal. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -71,7 +71,7 @@ public async Task PostAsync(ReferenceCreate body, Action - /// List the claimsMappingPolicy objects that are assigned to a servicePrincipal. + /// List the claimsMappingPolicy objects that are assigned to a servicePrincipal. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -97,7 +97,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Assign a claimsMappingPolicy to a servicePrincipal. + /// Assign a claimsMappingPolicy to a servicePrincipal. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -131,7 +131,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// List the claimsMappingPolicy objects that are assigned to a servicePrincipal. + /// List the claimsMappingPolicy objects that are assigned to a servicePrincipal. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/DelegatedPermissionClassifications/DelegatedPermissionClassificationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/DelegatedPermissionClassifications/DelegatedPermissionClassificationsRequestBuilder.cs index 3f5d2b21cfc..ef7b1bd1393 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/DelegatedPermissionClassifications/DelegatedPermissionClassificationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/DelegatedPermissionClassifications/DelegatedPermissionClassificationsRequestBuilder.cs @@ -42,7 +42,7 @@ public DelegatedPermissionClassificationsRequestBuilder(Dictionary - /// Retrieve the list of delegatedPermissionClassification currently configured for the delegated permissions exposed by an API. + /// Retrieve the list of delegatedPermissionClassification currently configured for the delegated permissions exposed by an API. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync( return await RequestAdapter.SendAsync(requestInfo, DelegatedPermissionClassificationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Classify a delegated permission by adding a delegatedPermissionClassification to the servicePrincipal representing the API. + /// Classify a delegated permission by adding a delegatedPermissionClassification to the servicePrincipal representing the API. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(DelegatedPermissi return await RequestAdapter.SendAsync(requestInfo, DelegatedPermissionClassification.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of delegatedPermissionClassification currently configured for the delegated permissions exposed by an API. + /// Retrieve the list of delegatedPermissionClassification currently configured for the delegated permissions exposed by an API. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Classify a delegated permission by adding a delegatedPermissionClassification to the servicePrincipal representing the API. + /// Classify a delegated permission by adding a delegatedPermissionClassification to the servicePrincipal representing the API. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public DelegatedPermissionClassificationsRequestBuilder WithUrl(string rawUrl) { return new DelegatedPermissionClassificationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of delegatedPermissionClassification currently configured for the delegated permissions exposed by an API. + /// Retrieve the list of delegatedPermissionClassification currently configured for the delegated permissions exposed by an API. This API is supported in the following national cloud deployments. /// public class DelegatedPermissionClassificationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/DelegatedPermissionClassifications/Item/DelegatedPermissionClassificationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/DelegatedPermissionClassifications/Item/DelegatedPermissionClassificationItemRequestBuilder.cs index 22d1f20143d..033d2d2f6c7 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/DelegatedPermissionClassifications/Item/DelegatedPermissionClassificationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/DelegatedPermissionClassifications/Item/DelegatedPermissionClassificationItemRequestBuilder.cs @@ -29,7 +29,7 @@ public DelegatedPermissionClassificationItemRequestBuilder(Dictionary - /// Deletes a delegatedPermissionClassification which had previously been set for a delegated permission. + /// Deletes a delegatedPermissionClassification which had previously been set for a delegated permission. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task PatchAsync(DelegatedPermiss return await RequestAdapter.SendAsync(requestInfo, DelegatedPermissionClassification.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a delegatedPermissionClassification which had previously been set for a delegated permission. + /// Deletes a delegatedPermissionClassification which had previously been set for a delegated permission. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..847f5bdd94a --- /dev/null +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.ServicePrincipals.Item.GetMemberGroups { + public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index 7672179b8f5..1346392fa8e 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberGroupsRequestBuilder(Dictionary pathParameters, public GetMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/getMemberGroups", rawUrl) { } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberGroupsPostRequestB return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberGroups/GetMemberGroupsResponse.cs index 316484d899e..8fef8669607 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.ServicePrincipals.Item.GetMemberGroups { - public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberGroupsPostResponse instead.")] + public class GetMemberGroupsResponse : GetMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..05ec4185ebc --- /dev/null +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.ServicePrincipals.Item.GetMemberObjects { + public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index 6ca34be251f..f359d22f4f5 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberObjectsRequestBuilder(Dictionary pathParameters, public GetMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/getMemberObjects", rawUrl) { } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberObjectsPostReques return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberObjects/GetMemberObjectsResponse.cs index fd4c4515fa9..026b9dbcbb6 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.ServicePrincipals.Item.GetMemberObjects { - public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberObjectsPostResponse instead.")] + public class GetMemberObjectsResponse : GetMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.cs index 6c74e13e0e7..157a99ccca2 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.cs @@ -47,7 +47,7 @@ public HomeRealmDiscoveryPoliciesRequestBuilder(Dictionary pathP public HomeRealmDiscoveryPoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/homeRealmDiscoveryPolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List the homeRealmDiscoveryPolicy objects that are assigned to a servicePrincipal. + /// List the homeRealmDiscoveryPolicy objects that are assigned to a servicePrincipal. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, HomeRealmDiscoveryPolicyCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List the homeRealmDiscoveryPolicy objects that are assigned to a servicePrincipal. + /// List the homeRealmDiscoveryPolicy objects that are assigned to a servicePrincipal. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -100,7 +100,7 @@ public HomeRealmDiscoveryPoliciesRequestBuilder WithUrl(string rawUrl) { return new HomeRealmDiscoveryPoliciesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List the homeRealmDiscoveryPolicy objects that are assigned to a servicePrincipal. + /// List the homeRealmDiscoveryPolicy objects that are assigned to a servicePrincipal. This API is supported in the following national cloud deployments. /// public class HomeRealmDiscoveryPoliciesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Item/Ref/RefRequestBuilder.cs index 2f124ad408c..86eee99a3ec 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Item/Ref/RefRequestBuilder.cs @@ -28,7 +28,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/homeRealmDiscoveryPolicies/{homeRealmDiscoveryPolicy%2Did}/$ref{?%40id*}", rawUrl) { } /// - /// Remove a homeRealmDiscoveryPolicy from a servicePrincipal. + /// Remove a homeRealmDiscoveryPolicy from a servicePrincipal. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Remove a homeRealmDiscoveryPolicy from a servicePrincipal. + /// Remove a homeRealmDiscoveryPolicy from a servicePrincipal. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -80,7 +80,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a homeRealmDiscoveryPolicy from a servicePrincipal. + /// Remove a homeRealmDiscoveryPolicy from a servicePrincipal. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderDeleteQueryParameters { /// Delete Uri diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Ref/RefRequestBuilder.cs index 33e14adc5be..78e53649af1 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Ref/RefRequestBuilder.cs @@ -29,7 +29,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/homeRealmDiscoveryPolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { } /// - /// List the homeRealmDiscoveryPolicy objects that are assigned to a servicePrincipal. + /// List the homeRealmDiscoveryPolicy objects that are assigned to a servicePrincipal. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, StringCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Assign a homeRealmDiscoveryPolicy to a servicePrincipal. + /// Assign a homeRealmDiscoveryPolicy to a servicePrincipal. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -71,7 +71,7 @@ public async Task PostAsync(ReferenceCreate body, Action - /// List the homeRealmDiscoveryPolicy objects that are assigned to a servicePrincipal. + /// List the homeRealmDiscoveryPolicy objects that are assigned to a servicePrincipal. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -97,7 +97,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Assign a homeRealmDiscoveryPolicy to a servicePrincipal. + /// Assign a homeRealmDiscoveryPolicy to a servicePrincipal. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -131,7 +131,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// List the homeRealmDiscoveryPolicy objects that are assigned to a servicePrincipal. + /// List the homeRealmDiscoveryPolicy objects that are assigned to a servicePrincipal. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.cs index 679dcc3f4da..af01313a0a3 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.cs @@ -42,7 +42,7 @@ public Oauth2PermissionGrantsRequestBuilder(Dictionary pathParam public Oauth2PermissionGrantsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/oauth2PermissionGrants{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of oAuth2PermissionGrant entities, representing delegated permissions granted to the service principal (representing the client application) to access an API on behalf of a user. + /// Retrieve a list of oAuth2PermissionGrant entities, representing delegated permissions granted to the service principal (representing the client application) to access an API on behalf of a user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OAuth2PermissionGrantCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of oAuth2PermissionGrant entities, representing delegated permissions granted to the service principal (representing the client application) to access an API on behalf of a user. + /// Retrieve a list of oAuth2PermissionGrant entities, representing delegated permissions granted to the service principal (representing the client application) to access an API on behalf of a user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public Oauth2PermissionGrantsRequestBuilder WithUrl(string rawUrl) { return new Oauth2PermissionGrantsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of oAuth2PermissionGrant entities, representing delegated permissions granted to the service principal (representing the client application) to access an API on behalf of a user. + /// Retrieve a list of oAuth2PermissionGrant entities, representing delegated permissions granted to the service principal (representing the client application) to access an API on behalf of a user. This API is supported in the following national cloud deployments. /// public class Oauth2PermissionGrantsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Item/Ref/RefRequestBuilder.cs index cd8cdbbfa30..23dca1e9193 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Item/Ref/RefRequestBuilder.cs @@ -28,7 +28,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/owners/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { } /// - /// Remove an owner from a servicePrincipal object. As a recommended best practice, service principals should have at least two owners. + /// Remove an owner from a servicePrincipal object. As a recommended best practice, service principals should have at least two owners. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Remove an owner from a servicePrincipal object. As a recommended best practice, service principals should have at least two owners. + /// Remove an owner from a servicePrincipal object. As a recommended best practice, service principals should have at least two owners. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -80,7 +80,7 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove an owner from a servicePrincipal object. As a recommended best practice, service principals should have at least two owners. + /// Remove an owner from a servicePrincipal object. As a recommended best practice, service principals should have at least two owners. This API is supported in the following national cloud deployments. /// public class RefRequestBuilderDeleteQueryParameters { /// Delete Uri diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Ref/RefRequestBuilder.cs index 3bd0352bf4e..0ce8b040340 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Ref/RefRequestBuilder.cs @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, StringCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an owner for the servicePrincipal. Service principal owners can be users, the service principal itself, or other service principals. + /// Use this API to add an owner for the servicePrincipal. Service principal owners can be users, the service principal itself, or other service principals. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -97,7 +97,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an owner for the servicePrincipal. Service principal owners can be users, the service principal itself, or other service principals. + /// Use this API to add an owner for the servicePrincipal. Service principal owners can be users, the service principal itself, or other service principals. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemoveKey/RemoveKeyRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemoveKey/RemoveKeyRequestBuilder.cs index 5cf4cc370bb..86f04aca707 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemoveKey/RemoveKeyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemoveKey/RemoveKeyRequestBuilder.cs @@ -28,7 +28,7 @@ public RemoveKeyRequestBuilder(Dictionary pathParameters, IReque public RemoveKeyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/removeKey", rawUrl) { } /// - /// Remove a key credential from a servicePrincipal. This method along with addKey can be used by a servicePrincipal to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. + /// Remove a key credential from a servicePrincipal. This method along with addKey can be used by a servicePrincipal to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(RemoveKeyPostRequestBody body, Action - /// Remove a key credential from a servicePrincipal. This method along with addKey can be used by a servicePrincipal to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. + /// Remove a key credential from a servicePrincipal. This method along with addKey can be used by a servicePrincipal to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemovePassword/RemovePasswordRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemovePassword/RemovePasswordRequestBuilder.cs index 4040ec62074..b65527f1de6 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemovePassword/RemovePasswordRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemovePassword/RemovePasswordRequestBuilder.cs @@ -28,7 +28,7 @@ public RemovePasswordRequestBuilder(Dictionary pathParameters, I public RemovePasswordRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/removePassword", rawUrl) { } /// - /// Remove a password from a servicePrincipal object. + /// Remove a password from a servicePrincipal object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(RemovePasswordPostRequestBody body, Action - /// Remove a password from a servicePrincipal object. + /// Remove a password from a servicePrincipal object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Restore/RestoreRequestBuilder.cs index d9b3f18071c..ff688654c2b 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Restore/RestoreRequestBuilder.cs @@ -29,7 +29,7 @@ public RestoreRequestBuilder(Dictionary pathParameters, IRequest public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ServicePrincipalItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ServicePrincipalItemRequestBuilder.cs index 886f81673d1..f0461ecc5ff 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ServicePrincipalItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ServicePrincipalItemRequestBuilder.cs @@ -164,7 +164,7 @@ public ServicePrincipalItemRequestBuilder(Dictionary pathParamet public ServicePrincipalItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a servicePrincipal object. + /// Delete a servicePrincipal object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -184,7 +184,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a servicePrincipal object. + /// Retrieve the properties and relationships of a servicePrincipal object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -225,7 +225,7 @@ public async Task PatchAsync(ServicePrincipal body, Action(requestInfo, ServicePrincipal.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a servicePrincipal object. + /// Delete a servicePrincipal object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -249,7 +249,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a servicePrincipal object. + /// Retrieve the properties and relationships of a servicePrincipal object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -326,7 +326,7 @@ public ServicePrincipalItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a servicePrincipal object. + /// Retrieve the properties and relationships of a servicePrincipal object. This API is supported in the following national cloud deployments. /// public class ServicePrincipalItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenRequestBuilder.cs index ab7129b06dc..38b5268f939 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenRequestBuilder.cs @@ -28,7 +28,7 @@ public AcquireAccessTokenRequestBuilder(Dictionary pathParameter public AcquireAccessTokenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/synchronization/acquireAccessToken", rawUrl) { } /// - /// Acquire an OAuth access token to authorize the Azure AD provisioning service to provision users into an application. + /// Acquire an OAuth access token to authorize the Azure AD provisioning service to provision users into an application. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcquireAccessTokenPostRequestBody body, Action - /// Acquire an OAuth access token to authorize the Azure AD provisioning service to provision users into an application. + /// Acquire an OAuth access token to authorize the Azure AD provisioning service to provision users into an application. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Pause/PauseRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Pause/PauseRequestBuilder.cs index 23d6959c852..816a3bd08e2 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Pause/PauseRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Pause/PauseRequestBuilder.cs @@ -28,7 +28,7 @@ public PauseRequestBuilder(Dictionary pathParameters, IRequestAd public PauseRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/synchronization/jobs/{synchronizationJob%2Did}/pause", rawUrl) { } /// - /// Temporarily stop a running synchronization job. All the progress, including job state, is persisted, and the job will continue from where it left off when a start call is made. + /// Temporarily stop a running synchronization job. All the progress, including job state, is persisted, and the job will continue from where it left off when a start call is made. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Temporarily stop a running synchronization job. All the progress, including job state, is persisted, and the job will continue from where it left off when a start call is made. + /// Temporarily stop a running synchronization job. All the progress, including job state, is persisted, and the job will continue from where it left off when a start call is made. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.cs index 4170b908d4a..c54120a6cf1 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.cs @@ -29,7 +29,7 @@ public ProvisionOnDemandRequestBuilder(Dictionary pathParameters public ProvisionOnDemandRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/synchronization/jobs/{synchronizationJob%2Did}/provisionOnDemand", rawUrl) { } /// - /// Select a user and provision the account on-demand. The rate limit for this API is 5 requests per 10 seconds. + /// Select a user and provision the account on-demand. The rate limit for this API is 5 requests per 10 seconds. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(ProvisionOnDemandPostReque return await RequestAdapter.SendAsync(requestInfo, StringKeyStringValuePair.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Select a user and provision the account on-demand. The rate limit for this API is 5 requests per 10 seconds. + /// Select a user and provision the account on-demand. The rate limit for this API is 5 requests per 10 seconds. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Restart/RestartRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Restart/RestartRequestBuilder.cs index 5c6e149f649..cd39b6ccdfc 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Restart/RestartRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Restart/RestartRequestBuilder.cs @@ -28,7 +28,7 @@ public RestartRequestBuilder(Dictionary pathParameters, IRequest public RestartRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/synchronization/jobs/{synchronizationJob%2Did}/restart", rawUrl) { } /// - /// Restart a stopped synchronization job, forcing it to reprocess all the objects in the directory. Optionally clears existing the synchronization state and previous errors. + /// Restart a stopped synchronization job, forcing it to reprocess all the objects in the directory. Optionally clears existing the synchronization state and previous errors. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(RestartPostRequestBody body, Action - /// Restart a stopped synchronization job, forcing it to reprocess all the objects in the directory. Optionally clears existing the synchronization state and previous errors. + /// Restart a stopped synchronization job, forcing it to reprocess all the objects in the directory. Optionally clears existing the synchronization state and previous errors. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs index 842768e997e..533c1465a92 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs @@ -29,7 +29,7 @@ public DiscoverRequestBuilder(Dictionary pathParameters, IReques public DiscoverRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema/directories/{directoryDefinition%2Did}/discover", rawUrl) { } /// - /// Discover the latest schema definition for provisioning to an application. + /// Discover the latest schema definition for provisioning to an application. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, DirectoryDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Discover the latest schema definition for provisioning to an application. + /// Discover the latest schema definition for provisioning to an application. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsGetResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsGetResponse.cs new file mode 100644 index 00000000000..20a1fcca923 --- /dev/null +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.ServicePrincipals.Item.Synchronization.Jobs.Item.Schema.FilterOperators { + public class FilterOperatorsGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterOperatorsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterOperatorsGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(FilterOperatorSchema.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs index 9c2fa013b74..0f2fb05e958 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs @@ -33,6 +33,26 @@ public FilterOperatorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterOperatorsGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFilterOperatorsGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterOperatorsGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterOperators + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFilterOperatorsGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsResponse.cs index 4a2c65188d7..e28651726a1 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsResponse.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.ServicePrincipals.Item.Synchronization.Jobs.Item.Schema.FilterOperators { - public class FilterOperatorsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use filterOperatorsGetResponse instead.")] + public class FilterOperatorsResponse : FilterOperatorsGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterOperatorsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(FilterOperatorSchema.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsGetResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsGetResponse.cs new file mode 100644 index 00000000000..d8b34b946a5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.ServicePrincipals.Item.Synchronization.Jobs.Item.Schema.Functions { + public class FunctionsGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FunctionsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FunctionsGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(AttributeMappingFunctionSchema.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsRequestBuilder.cs index 930dc836b02..e62b0e1b94e 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsRequestBuilder.cs @@ -33,6 +33,26 @@ public FunctionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFunctionsGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFunctionsGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FunctionsGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function functions + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFunctionsGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsResponse.cs index 095e1faab0d..bdb6bde020e 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsResponse.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.ServicePrincipals.Item.Synchronization.Jobs.Item.Schema.Functions { - public class FunctionsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use functionsGetResponse instead.")] + public class FunctionsResponse : FunctionsGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FunctionsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(AttributeMappingFunctionSchema.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs index 5f6a2070328..e17d5f3ed04 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs @@ -29,7 +29,7 @@ public ParseExpressionRequestBuilder(Dictionary pathParameters, public ParseExpressionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema/parseExpression", rawUrl) { } /// - /// Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. + /// Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(ParseExpressionPostRequestB return await RequestAdapter.SendAsync(requestInfo, ParseExpressionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. + /// Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/SchemaRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/SchemaRequestBuilder.cs index 51d0539ff60..f1c3fa08136 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/SchemaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/SchemaRequestBuilder.cs @@ -68,7 +68,7 @@ public async Task DeleteAsync(Action - /// Retrieve the schema for a given synchronization job or template. + /// Retrieve the schema for a given synchronization job or template. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -134,7 +134,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the schema for a given synchronization job or template. + /// Retrieve the schema for a given synchronization job or template. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -211,7 +211,7 @@ public SchemaRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the schema for a given synchronization job or template. + /// Retrieve the schema for a given synchronization job or template. This API is supported in the following national cloud deployments. /// public class SchemaRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Start/StartRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Start/StartRequestBuilder.cs index 5fa1312118c..73f708d5230 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Start/StartRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Start/StartRequestBuilder.cs @@ -28,7 +28,7 @@ public StartRequestBuilder(Dictionary pathParameters, IRequestAd public StartRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/synchronization/jobs/{synchronizationJob%2Did}/start", rawUrl) { } /// - /// Start an existing synchronization job. If the job is in a paused state, it will continue processing changes from the point where it was paused. If the job is in quarantine, the quarantine status will be cleared. Do not create scripts to call the start job continuously while it's running because that can cause the service to stop running. Use the start job only when the job is currently paused or in quarantine. + /// Start an existing synchronization job. If the job is in a paused state, it continues processing changes from the point where it was paused. If the job is in quarantine, the quarantine status is cleared. Don't create scripts to call the start job continuously while it's running because that can cause the service to stop running. Use the start job only when the job is currently paused or in quarantine. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Start an existing synchronization job. If the job is in a paused state, it will continue processing changes from the point where it was paused. If the job is in quarantine, the quarantine status will be cleared. Do not create scripts to call the start job continuously while it's running because that can cause the service to stop running. Use the start job only when the job is currently paused or in quarantine. + /// Start an existing synchronization job. If the job is in a paused state, it continues processing changes from the point where it was paused. If the job is in quarantine, the quarantine status is cleared. Don't create scripts to call the start job continuously while it's running because that can cause the service to stop running. Use the start job only when the job is currently paused or in quarantine. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/SynchronizationJobItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/SynchronizationJobItemRequestBuilder.cs index 6711dd1186f..f9b4a257a7e 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/SynchronizationJobItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/SynchronizationJobItemRequestBuilder.cs @@ -59,7 +59,7 @@ public SynchronizationJobItemRequestBuilder(Dictionary pathParam public SynchronizationJobItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/synchronization/jobs/{synchronizationJob%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Stop the synchronization job, and permanently delete all the state associated with it. Synchronized accounts are left as-is. + /// Stop the synchronization job, and permanently delete all the state associated with it. Synchronized accounts are left as-is. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -79,7 +79,7 @@ public async Task DeleteAsync(Action - /// Retrieve the existing synchronization job and its properties. + /// Retrieve the existing synchronization job and its properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -120,7 +120,7 @@ public async Task PatchAsync(SynchronizationJob body, Action return await RequestAdapter.SendAsync(requestInfo, SynchronizationJob.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Stop the synchronization job, and permanently delete all the state associated with it. Synchronized accounts are left as-is. + /// Stop the synchronization job, and permanently delete all the state associated with it. Synchronized accounts are left as-is. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the existing synchronization job and its properties. + /// Retrieve the existing synchronization job and its properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -221,7 +221,7 @@ public SynchronizationJobItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the existing synchronization job and its properties. + /// Retrieve the existing synchronization job and its properties. This API is supported in the following national cloud deployments. /// public class SynchronizationJobItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsRequestBuilder.cs index 5413e049ce4..d63ff198a29 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsRequestBuilder.cs @@ -28,7 +28,7 @@ public ValidateCredentialsRequestBuilder(Dictionary pathParamete public ValidateCredentialsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/synchronization/jobs/{synchronizationJob%2Did}/validateCredentials", rawUrl) { } /// - /// Validate that the credentials are valid in the tenant. + /// Validate that the credentials are valid in the tenant. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ValidateCredentialsPostRequestBody body, Action - /// Validate that the credentials are valid in the tenant. + /// Validate that the credentials are valid in the tenant. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/JobsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/JobsRequestBuilder.cs index 5913a6af7b5..b3ba65d9bc4 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/JobsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/JobsRequestBuilder.cs @@ -47,7 +47,7 @@ public JobsRequestBuilder(Dictionary pathParameters, IRequestAda public JobsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/synchronization/jobs{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List existing jobs for a given application instance (service principal). + /// List existing jobs for a given application instance (service principal). This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, SynchronizationJobCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create new synchronization job with a default synchronization schema. The job is created in a disabled state. Call Start job to start synchronization. + /// Create new synchronization job with a default synchronization schema. The job is created in a disabled state. Call Start job to start synchronization. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(SynchronizationJob body, Action< return await RequestAdapter.SendAsync(requestInfo, SynchronizationJob.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List existing jobs for a given application instance (service principal). + /// List existing jobs for a given application instance (service principal). This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new synchronization job with a default synchronization schema. The job is created in a disabled state. Call Start job to start synchronization. + /// Create new synchronization job with a default synchronization schema. The job is created in a disabled state. Call Start job to start synchronization. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public JobsRequestBuilder WithUrl(string rawUrl) { return new JobsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List existing jobs for a given application instance (service principal). + /// List existing jobs for a given application instance (service principal). This API is supported in the following national cloud deployments. /// public class JobsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs index 65b68590834..f7d2d226daa 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs @@ -29,7 +29,7 @@ public DiscoverRequestBuilder(Dictionary pathParameters, IReques public DiscoverRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema/directories/{directoryDefinition%2Did}/discover", rawUrl) { } /// - /// Discover the latest schema definition for provisioning to an application. + /// Discover the latest schema definition for provisioning to an application. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, DirectoryDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Discover the latest schema definition for provisioning to an application. + /// Discover the latest schema definition for provisioning to an application. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsGetResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsGetResponse.cs new file mode 100644 index 00000000000..9bf25bcd5ce --- /dev/null +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.ServicePrincipals.Item.Synchronization.Templates.Item.Schema.FilterOperators { + public class FilterOperatorsGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterOperatorsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterOperatorsGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(FilterOperatorSchema.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs index 0ff6ae3a2ae..ada326d77dc 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs @@ -33,6 +33,26 @@ public FilterOperatorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterOperatorsGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFilterOperatorsGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterOperatorsGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterOperators + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFilterOperatorsGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsResponse.cs index 8c660369083..8251288adc6 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsResponse.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.ServicePrincipals.Item.Synchronization.Templates.Item.Schema.FilterOperators { - public class FilterOperatorsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use filterOperatorsGetResponse instead.")] + public class FilterOperatorsResponse : FilterOperatorsGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FilterOperatorsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(FilterOperatorSchema.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsGetResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsGetResponse.cs new file mode 100644 index 00000000000..8974b15f666 --- /dev/null +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.ServicePrincipals.Item.Synchronization.Templates.Item.Schema.Functions { + public class FunctionsGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FunctionsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FunctionsGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(AttributeMappingFunctionSchema.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsRequestBuilder.cs index f361b40eb46..c5a814b6340 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsRequestBuilder.cs @@ -33,6 +33,26 @@ public FunctionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFunctionsGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFunctionsGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FunctionsGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function functions + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFunctionsGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsResponse.cs index 34ecaf3cc7c..7b1dd30606d 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsResponse.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.ServicePrincipals.Item.Synchronization.Templates.Item.Schema.Functions { - public class FunctionsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use functionsGetResponse instead.")] + public class FunctionsResponse : FunctionsGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FunctionsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(AttributeMappingFunctionSchema.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs index 9e3c4391cdb..beacb445178 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs @@ -29,7 +29,7 @@ public ParseExpressionRequestBuilder(Dictionary pathParameters, public ParseExpressionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema/parseExpression", rawUrl) { } /// - /// Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. + /// Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(ParseExpressionPostRequestB return await RequestAdapter.SendAsync(requestInfo, ParseExpressionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. + /// Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilder.cs index cee2600fa26..be6af96a1e3 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Pre-configured synchronization settings for a particular application. + /// Preconfigured synchronization settings for a particular application. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -72,7 +72,7 @@ public async Task GetAsync(Action(requestInfo, SynchronizationTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update (override) the synchronization template associated with a given application. + /// Update (override) the synchronization template associated with a given application. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Pre-configured synchronization settings for a particular application. + /// Preconfigured synchronization settings for a particular application. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update (override) the synchronization template associated with a given application. + /// Update (override) the synchronization template associated with a given application. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -195,7 +195,7 @@ public SynchronizationTemplateItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Pre-configured synchronization settings for a particular application. + /// Preconfigured synchronization settings for a particular application. /// public class SynchronizationTemplateItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/TemplatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/TemplatesRequestBuilder.cs index 0edd68f8b28..529d50d85a6 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/TemplatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/TemplatesRequestBuilder.cs @@ -42,7 +42,7 @@ public TemplatesRequestBuilder(Dictionary pathParameters, IReque public TemplatesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/synchronization/templates{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List the synchronization templates associated with a given application or service principal. + /// List the synchronization templates associated with a given application or service principal. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(SynchronizationTemplate bod return await RequestAdapter.SendAsync(requestInfo, SynchronizationTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List the synchronization templates associated with a given application or service principal. + /// List the synchronization templates associated with a given application or service principal. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public TemplatesRequestBuilder WithUrl(string rawUrl) { return new TemplatesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List the synchronization templates associated with a given application or service principal. + /// List the synchronization templates associated with a given application or service principal. This API is supported in the following national cloud deployments. /// public class TemplatesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/ServicePrincipalsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/ServicePrincipalsRequestBuilder.cs index 3223d332f28..a7c1efea8fe 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/ServicePrincipalsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/ServicePrincipalsRequestBuilder.cs @@ -62,7 +62,7 @@ public ServicePrincipalsRequestBuilder(Dictionary pathParameters public ServicePrincipalsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of servicePrincipal objects. + /// Retrieve a list of servicePrincipal objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -82,7 +82,7 @@ public async Task GetAsync(Action(requestInfo, ServicePrincipalCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new servicePrincipal object. + /// Create a new servicePrincipal object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -104,7 +104,7 @@ public async Task PostAsync(ServicePrincipal body, Action(requestInfo, ServicePrincipal.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of servicePrincipal objects. + /// Retrieve a list of servicePrincipal objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -130,7 +130,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new servicePrincipal object. + /// Create a new servicePrincipal object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -165,7 +165,7 @@ public ServicePrincipalsRequestBuilder WithUrl(string rawUrl) { return new ServicePrincipalsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of servicePrincipal objects. + /// Retrieve a list of servicePrincipal objects. This API is supported in the following national cloud deployments. /// public class ServicePrincipalsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/ValidateProperties/ValidatePropertiesRequestBuilder.cs index 8def62fabd7..f0ef9464f74 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -28,7 +28,7 @@ public ValidatePropertiesRequestBuilder(Dictionary pathParameter public ValidatePropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/validateProperties", rawUrl) { } /// - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ValidatePropertiesPostRequestBody body, Action - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/ServicePrincipalsWithAppId/ServicePrincipalsWithAppIdRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipalsWithAppId/ServicePrincipalsWithAppIdRequestBuilder.cs index 3b9160b6940..987b15eaa8c 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipalsWithAppId/ServicePrincipalsWithAppIdRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipalsWithAppId/ServicePrincipalsWithAppIdRequestBuilder.cs @@ -31,7 +31,7 @@ public ServicePrincipalsWithAppIdRequestBuilder(Dictionary pathP public ServicePrincipalsWithAppIdRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals(appId='{appId}'){?%24select,%24expand}", rawUrl) { } /// - /// Delete a servicePrincipal object. + /// Delete a servicePrincipal object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -51,7 +51,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a servicePrincipal object. + /// Retrieve the properties and relationships of a servicePrincipal object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public async Task PatchAsync(ServicePrincipal body, Action(requestInfo, ServicePrincipal.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a servicePrincipal object. + /// Delete a servicePrincipal object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -116,7 +116,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a servicePrincipal object. + /// Retrieve the properties and relationships of a servicePrincipal object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -193,7 +193,7 @@ public ServicePrincipalsWithAppIdRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a servicePrincipal object. + /// Retrieve the properties and relationships of a servicePrincipal object. This API is supported in the following national cloud deployments. /// public class ServicePrincipalsWithAppIdRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Shares/Item/CreatedByUser/CreatedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/CreatedByUser/CreatedByUserRequestBuilder.cs index 328a0a9d420..a856d14b11b 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/CreatedByUser/CreatedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/CreatedByUser/CreatedByUserRequestBuilder.cs @@ -2,6 +2,7 @@ using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Graph.Shares.Item.CreatedByUser.MailboxSettings; +using Microsoft.Graph.Shares.Item.CreatedByUser.ServiceProvisioningErrors; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -19,6 +20,10 @@ public class CreatedByUserRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new CreatedByUserRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Shares/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..57aebe151cf --- /dev/null +++ b/src/Microsoft.Graph/Generated/Shares/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Shares.Item.CreatedByUser.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Shares/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..0a5f978b81a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Shares/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Shares.Item.CreatedByUser.ServiceProvisioningErrors.Count; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Shares.Item.CreatedByUser.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \shares\{sharedDriveItem-id}\createdByUser\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/createdByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/createdByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Shares/Item/DriveItem/DriveItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/DriveItem/DriveItemRequestBuilder.cs index f1e133aeab1..fcf9523eeb0 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/DriveItem/DriveItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/DriveItem/DriveItemRequestBuilder.cs @@ -34,7 +34,7 @@ public DriveItemRequestBuilder(Dictionary pathParameters, IReque public DriveItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/driveItem{?%24select,%24expand}", rawUrl) { } /// - /// Access a shared DriveItem or a collection of shared items by using a shareId or sharing URL. To use a sharing URL with this API, your app needs to transform the URL into a sharing token. + /// Access a shared DriveItem or a collection of shared items by using a shareId or sharing URL. To use a sharing URL with this API, your app needs to transform the URL into a sharing token. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public DriveItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Access a shared DriveItem or a collection of shared items by using a shareId or sharing URL. To use a sharing URL with this API, your app needs to transform the URL into a sharing token. + /// Access a shared DriveItem or a collection of shared items by using a shareId or sharing URL. To use a sharing URL with this API, your app needs to transform the URL into a sharing token. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,7 +87,7 @@ public DriveItemRequestBuilder WithUrl(string rawUrl) { return new DriveItemRequestBuilder(rawUrl, RequestAdapter); } /// - /// Access a shared DriveItem or a collection of shared items by using a shareId or sharing URL. To use a sharing URL with this API, your app needs to transform the URL into a sharing token. + /// Access a shared DriveItem or a collection of shared items by using a shareId or sharing URL. To use a sharing URL with this API, your app needs to transform the URL into a sharing token. This API is supported in the following national cloud deployments. /// public class DriveItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Shares/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index 62d5cf153c4..fafd5f1a2c9 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs @@ -2,6 +2,7 @@ using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Graph.Shares.Item.LastModifiedByUser.MailboxSettings; +using Microsoft.Graph.Shares.Item.LastModifiedByUser.ServiceProvisioningErrors; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -19,6 +20,10 @@ public class LastModifiedByUserRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new LastModifiedByUserRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Shares/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..9ffa6f89af8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Shares/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Shares.Item.LastModifiedByUser.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Shares/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..d0f87ca402d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Shares/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Shares.Item.LastModifiedByUser.ServiceProvisioningErrors.Count; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Shares.Item.LastModifiedByUser.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \shares\{sharedDriveItem-id}\lastModifiedByUser\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Columns/ColumnsRequestBuilder.cs index 5cf741d3d3e..a1978bb48fe 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Columns/ColumnsRequestBuilder.cs @@ -42,7 +42,7 @@ public ColumnsRequestBuilder(Dictionary pathParameters, IRequest public ColumnsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/columns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [list][list]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [list][list]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ColumnDefinitionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a column for a [list][list] with a request that specifies a [columnDefinition][columnDefinition]. + /// Create a column for a list][list] with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(ColumnDefinition body, Action(requestInfo, ColumnDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [list][list]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [list][list]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a column for a [list][list] with a request that specifies a [columnDefinition][columnDefinition]. + /// Create a column for a list][list] with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ColumnsRequestBuilder WithUrl(string rawUrl) { return new ColumnsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [list][list]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [list][list]. This API is supported in the following [national cloud deployments. /// public class ColumnsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/AddCopy/AddCopyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/AddCopy/AddCopyRequestBuilder.cs index 721b24b99e9..824af640501 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/AddCopy/AddCopyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/AddCopy/AddCopyRequestBuilder.cs @@ -29,7 +29,7 @@ public AddCopyRequestBuilder(Dictionary pathParameters, IRequest public AddCopyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/contentTypes/addCopy", rawUrl) { } /// - /// Add a copy of a [content type][contentType] from a [site][site] to a [list][list]. + /// Add a copy of a content type][contentType] from a [site][site] to a [list][list]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(AddCopyPostRequestBody body, Action(requestInfo, ContentType.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a copy of a [content type][contentType] from a [site][site] to a [list][list]. + /// Add a copy of a content type][contentType] from a [site][site] to a [list][list]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs index e8e797be6f1..d43b210c86e 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs @@ -29,7 +29,7 @@ public AddCopyFromContentTypeHubRequestBuilder(Dictionary pathPa public AddCopyFromContentTypeHubRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/contentTypes/addCopyFromContentTypeHub", rawUrl) { } /// - /// Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. + /// Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(AddCopyFromContentTypeHubPostRequestBod return await RequestAdapter.SendAsync(requestInfo, ContentType.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. + /// Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/ContentTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/ContentTypesRequestBuilder.cs index efe25ee6000..5fcc84a9fcb 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/ContentTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/ContentTypesRequestBuilder.cs @@ -57,7 +57,7 @@ public ContentTypesRequestBuilder(Dictionary pathParameters, IRe public ContentTypesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/contentTypes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the collection of [contentType][contentType] resources in a [list][]. + /// Get the collection of contentType][contentType] resources in a [list][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -98,7 +98,7 @@ public async Task PostAsync(ContentType body, Action(requestInfo, ContentType.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the collection of [contentType][contentType] resources in a [list][]. + /// Get the collection of contentType][contentType] resources in a [list][]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -159,7 +159,7 @@ public ContentTypesRequestBuilder WithUrl(string rawUrl) { return new ContentTypesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the collection of [contentType][contentType] resources in a [list][]. + /// Get the collection of contentType][contentType] resources in a [list][]. This API is supported in the following [national cloud deployments. /// public class ContentTypesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs new file mode 100644 index 00000000000..e5594648ac2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Shares.Item.List.ContentTypes.GetCompatibleHubContentTypes { + public class GetCompatibleHubContentTypesGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetCompatibleHubContentTypesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetCompatibleHubContentTypesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs index e71ce6a5fdd..b3858110ff2 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs @@ -33,6 +33,26 @@ public GetCompatibleHubContentTypesRequestBuilder(string rawUrl, IRequestAdapter /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetCompatibleHubContentTypesGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetCompatibleHubContentTypesGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetCompatibleHubContentTypesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getCompatibleHubContentTypes + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetCompatibleHubContentTypesGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs index d772a8d9cd0..ae2a253db01 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Shares.Item.List.ContentTypes.GetCompatibleHubContentTypes { - public class GetCompatibleHubContentTypesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getCompatibleHubContentTypesGetResponse instead.")] + public class GetCompatibleHubContentTypesResponse : GetCompatibleHubContentTypesGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetCompatibleHubContentTypesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs index 19c0e932824..f1b0f508e7a 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs @@ -28,7 +28,7 @@ public AssociateWithHubSitesRequestBuilder(Dictionary pathParame public AssociateWithHubSitesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/contentTypes/{contentType%2Did}/associateWithHubSites", rawUrl) { } /// - /// Associate a published [content type][contentType] present in a content type hub with a list of hub sites. + /// Associate a published content type][contentType] present in a content type hub with a list of hub sites. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AssociateWithHubSitesPostRequestBody body, Action - /// Associate a published [content type][contentType] present in a content type hub with a list of hub sites. + /// Associate a published content type][contentType] present in a content type hub with a list of hub sites. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs index b170c3ee2ee..984c48b5e42 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs @@ -42,7 +42,7 @@ public ColumnsRequestBuilder(Dictionary pathParameters, IRequest public ColumnsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/contentTypes/{contentType%2Did}/columns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [content type][contentType]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ColumnDefinitionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a column to a [content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. + /// Add a column to a content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(ColumnDefinition body, Action(requestInfo, ColumnDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [content type][contentType]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a column to a [content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. + /// Add a column to a content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ColumnsRequestBuilder WithUrl(string rawUrl) { return new ColumnsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [content type][contentType]. This API is supported in the following [national cloud deployments. /// public class ColumnsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs index 10474a42f21..7d5934d9adc 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs @@ -34,7 +34,7 @@ public ColumnDefinitionItemRequestBuilder(Dictionary pathParamet public ColumnDefinitionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Remove a [column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. + /// Remove a column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + /// Retrieve the metadata for a site][], a [list][], or a [contentType][] [column][columnDefinition]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, ColumnDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update a [site][], a [list][], or a [content type][contentType] [column][columnDefinition]. + /// Update a site][], a [list][], or a [content type][contentType] [column][columnDefinition]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(ColumnDefinition body, Action(requestInfo, ColumnDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Remove a [column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. + /// Remove a column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + /// Retrieve the metadata for a site][], a [list][], or a [contentType][] [column][columnDefinition]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update a [site][], a [list][], or a [content type][contentType] [column][columnDefinition]. + /// Update a site][], a [list][], or a [content type][contentType] [column][columnDefinition]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public ColumnDefinitionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + /// Retrieve the metadata for a site][], a [list][], or a [contentType][] [column][columnDefinition]. This API is supported in the following [national cloud deployments. /// public class ColumnDefinitionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs index 0e51c6207cd..799a8cfdfb0 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs @@ -28,7 +28,7 @@ public CopyToDefaultContentLocationRequestBuilder(Dictionary pat public CopyToDefaultContentLocationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/contentTypes/{contentType%2Did}/copyToDefaultContentLocation", rawUrl) { } /// - /// Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. + /// Copy a file to a default content location in a content type][contentType]. The file can then be added as a default file or template via a POST operation. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CopyToDefaultContentLocationPostRequestBody body, Ac await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. + /// Copy a file to a default content location in a content type][contentType]. The file can then be added as a default file or template via a POST operation. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs new file mode 100644 index 00000000000..60b84743edd --- /dev/null +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Shares.Item.List.ContentTypes.Item.IsPublished { + public class IsPublishedGetResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public bool? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new isPublishedGetResponse and sets the default values. + /// + public IsPublishedGetResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static IsPublishedGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new IsPublishedGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs index 1c608ce7c7e..ddcbdd96cc6 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs @@ -33,6 +33,26 @@ public IsPublishedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsIsPublishedGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsIsPublishedGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, IsPublishedGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function isPublished + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsIsPublishedGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/IsPublished/IsPublishedResponse.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/IsPublished/IsPublishedResponse.cs index 66fd004e2ec..a20e2d1df9e 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/IsPublished/IsPublishedResponse.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/IsPublished/IsPublishedResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Shares.Item.List.ContentTypes.Item.IsPublished { - public class IsPublishedResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public bool? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new isPublishedResponse and sets the default values. - /// - public IsPublishedResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use isPublishedGetResponse instead.")] + public class IsPublishedResponse : IsPublishedGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static IsPublishedResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new IsPublishedResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new IsPublishedResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Publish/PublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Publish/PublishRequestBuilder.cs index 68d6c58f734..973b9dc7bcc 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Publish/PublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Publish/PublishRequestBuilder.cs @@ -28,7 +28,7 @@ public PublishRequestBuilder(Dictionary pathParameters, IRequest public PublishRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/contentTypes/{contentType%2Did}/publish", rawUrl) { } /// - /// Publishes a [contentType][] present in the content type hub site. + /// Publishes a contentType][] present in the content type hub site. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Publishes a [contentType][] present in the content type hub site. + /// Publishes a contentType][] present in the content type hub site. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs index 13827bb42ff..7781ab72ba6 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs @@ -28,7 +28,7 @@ public UnpublishRequestBuilder(Dictionary pathParameters, IReque public UnpublishRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/contentTypes/{contentType%2Did}/unpublish", rawUrl) { } /// - /// Unpublish a [contentType][] from a content type hub site. + /// Unpublish a contentType][] from a content type hub site. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Unpublish a [contentType][] from a content type hub site. + /// Unpublish a contentType][] from a content type hub site. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/CreatedByUser/CreatedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/CreatedByUser/CreatedByUserRequestBuilder.cs index 1ecaeae119d..f5e371c6668 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/CreatedByUser/CreatedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/CreatedByUser/CreatedByUserRequestBuilder.cs @@ -2,6 +2,7 @@ using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Graph.Shares.Item.List.CreatedByUser.MailboxSettings; +using Microsoft.Graph.Shares.Item.List.CreatedByUser.ServiceProvisioningErrors; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -19,6 +20,10 @@ public class CreatedByUserRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new CreatedByUserRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..c20054ed52c --- /dev/null +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Shares.Item.List.CreatedByUser.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/createdByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/createdByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..5d12f8524ab --- /dev/null +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Shares.Item.List.CreatedByUser.ServiceProvisioningErrors.Count; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Shares.Item.List.CreatedByUser.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \shares\{sharedDriveItem-id}\list\createdByUser\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/createdByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/createdByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs index 01cc55a65f4..0b96b87a64f 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs @@ -2,6 +2,7 @@ using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Graph.Shares.Item.List.Items.Item.CreatedByUser.MailboxSettings; +using Microsoft.Graph.Shares.Item.List.Items.Item.CreatedByUser.ServiceProvisioningErrors; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -19,6 +20,10 @@ public class CreatedByUserRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new CreatedByUserRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..021ee6f3736 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Shares.Item.List.Items.Item.CreatedByUser.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..9e7670e3d26 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Shares.Item.List.Items.Item.CreatedByUser.ServiceProvisioningErrors.Count; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Shares.Item.List.Items.Item.CreatedByUser.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \shares\{sharedDriveItem-id}\list\items\{listItem-id}\createdByUser\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs index 514e3079d71..9ddabefa732 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs @@ -42,7 +42,7 @@ public DocumentSetVersionsRequestBuilder(Dictionary pathParamete public DocumentSetVersionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/items/{listItem%2Did}/documentSetVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the versions of a document set item in a list. + /// Get a list of the versions of a document set item in a list. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, DocumentSetVersionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new version of a document set item in a list. + /// Create a new version of a document set item in a list. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(DocumentSetVersion body, Action< return await RequestAdapter.SendAsync(requestInfo, DocumentSetVersion.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the versions of a document set item in a list. + /// Get a list of the versions of a document set item in a list. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new version of a document set item in a list. + /// Create a new version of a document set item in a list. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public DocumentSetVersionsRequestBuilder WithUrl(string rawUrl) { return new DocumentSetVersionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the versions of a document set item in a list. + /// Get a list of the versions of a document set item in a list. This API is supported in the following national cloud deployments. /// public class DocumentSetVersionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs index 7409464e8c6..f2133469b02 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs @@ -39,7 +39,7 @@ public DocumentSetVersionItemRequestBuilder(Dictionary pathParam public DocumentSetVersionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a version of a document set in a list. + /// Delete a version of a document set in a list. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -59,7 +59,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a documentSetVersion object. + /// Read the properties and relationships of a documentSetVersion object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -100,7 +100,7 @@ public async Task PatchAsync(DocumentSetVersion body, Action return await RequestAdapter.SendAsync(requestInfo, DocumentSetVersion.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a version of a document set in a list. + /// Delete a version of a document set in a list. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -124,7 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a documentSetVersion object. + /// Read the properties and relationships of a documentSetVersion object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -201,7 +201,7 @@ public DocumentSetVersionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a documentSetVersion object. + /// Read the properties and relationships of a documentSetVersion object. This API is supported in the following national cloud deployments. /// public class DocumentSetVersionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs index e65b7b94dd8..a33fd6c2bd9 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs @@ -28,7 +28,7 @@ public RestoreRequestBuilder(Dictionary pathParameters, IRequest public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%2Did}/restore", rawUrl) { } /// - /// Restore a document set version. + /// Restore a document set version. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Restore a document set version. + /// Restore a document set version. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Fields/FieldsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Fields/FieldsRequestBuilder.cs index 9282a0f7c8f..4697c297e76 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Fields/FieldsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Fields/FieldsRequestBuilder.cs @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, FieldValueSet.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties on a [listItem][]. + /// Update the properties on a listItem][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -139,7 +139,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties on a [listItem][]. + /// Update the properties on a listItem][]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs new file mode 100644 index 00000000000..613976d925a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Shares.Item.List.Items.Item.GetActivitiesByInterval { + public class GetActivitiesByIntervalGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetActivitiesByIntervalGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetActivitiesByIntervalGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs index 753e0d42259..cd500df245f 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs @@ -33,6 +33,26 @@ public GetActivitiesByIntervalRequestBuilder(string rawUrl, IRequestAdapter requ /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetActivitiesByIntervalGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetActivitiesByIntervalGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetActivitiesByIntervalGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getActivitiesByInterval + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetActivitiesByIntervalGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index 18db477fe28..3340ff53371 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Shares.Item.List.Items.Item.GetActivitiesByInterval { - public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getActivitiesByIntervalGetResponse instead.")] + public class GetActivitiesByIntervalResponse : GetActivitiesByIntervalGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs new file mode 100644 index 00000000000..3f051d40374 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Shares.Item.List.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs index d8988123ec1..9d29b9077fe 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs @@ -39,6 +39,26 @@ public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalReques /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getActivitiesByInterval + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index 2e0dc48daa2..5d22717b6b8 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Shares.Item.List.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse instead.")] + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index 42ee65eb3de..36d34c8a075 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs @@ -2,6 +2,7 @@ using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Graph.Shares.Item.List.Items.Item.LastModifiedByUser.MailboxSettings; +using Microsoft.Graph.Shares.Item.List.Items.Item.LastModifiedByUser.ServiceProvisioningErrors; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -19,6 +20,10 @@ public class LastModifiedByUserRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new LastModifiedByUserRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..c4a2ea73b41 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Shares.Item.List.Items.Item.LastModifiedByUser.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..db9cacc9a71 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Shares.Item.List.Items.Item.LastModifiedByUser.ServiceProvisioningErrors.Count; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Shares.Item.List.Items.Item.LastModifiedByUser.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \shares\{sharedDriveItem-id}\list\items\{listItem-id}\lastModifiedByUser\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/ListItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/ListItemItemRequestBuilder.cs index 411becb3d05..f08c9556fdc 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/ListItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/ListItemItemRequestBuilder.cs @@ -70,7 +70,7 @@ public ListItemItemRequestBuilder(Dictionary pathParameters, IRe public ListItemItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/items/{listItem%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Removes an item from a [list][]. + /// Removes an item from a list][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -102,7 +102,7 @@ public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalReques return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(PathParameters, RequestAdapter, endDateTime, interval, startDateTime); } /// - /// Returns the metadata for an [item][] in a [list][]. + /// Returns the metadata for an item][] in a [list][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -143,7 +143,7 @@ public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalReques return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.ListItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Removes an item from a [list][]. + /// Removes an item from a list][]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -167,7 +167,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Returns the metadata for an [item][] in a [list][]. + /// Returns the metadata for an item][] in a [list][]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -244,7 +244,7 @@ public ListItemItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Returns the metadata for an [item][] in a [list][]. + /// Returns the metadata for an item][] in a [list][]. This API is supported in the following [national cloud deployments. /// public class ListItemItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs index 43ab0367063..4d914cbbfce 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs @@ -58,7 +58,7 @@ public async Task DeleteAsync(Action - /// Retrieve the metadata for a specific version of a ListItem. + /// Retrieve the metadata for a specific version of a ListItem. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -123,7 +123,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the metadata for a specific version of a ListItem. + /// Retrieve the metadata for a specific version of a ListItem. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -200,7 +200,7 @@ public ListItemVersionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the metadata for a specific version of a ListItem. + /// Retrieve the metadata for a specific version of a ListItem. This API is supported in the following national cloud deployments. /// public class ListItemVersionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs index 5069558023c..aff0982850a 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs @@ -28,7 +28,7 @@ public RestoreVersionRequestBuilder(Dictionary pathParameters, I public RestoreVersionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/items/{listItem%2Did}/versions/{listItemVersion%2Did}/restoreVersion", rawUrl) { } /// - /// Restore a previous version of a ListItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the item. + /// Restore a previous version of a ListItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the item. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Restore a previous version of a ListItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the item. + /// Restore a previous version of a ListItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the item. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Versions/VersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Versions/VersionsRequestBuilder.cs index c55d297082e..c8176e0f0ab 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Versions/VersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Versions/VersionsRequestBuilder.cs @@ -42,7 +42,7 @@ public VersionsRequestBuilder(Dictionary pathParameters, IReques public VersionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/items/{listItem%2Did}/versions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. + /// SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ListItemVersion body, Action(requestInfo, ListItemVersion.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. + /// SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public VersionsRequestBuilder WithUrl(string rawUrl) { return new VersionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. + /// SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. This API is supported in the following national cloud deployments. /// public class VersionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/ItemsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/ItemsRequestBuilder.cs index 0a430810a96..3dcf1c3b571 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/ItemsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/ItemsRequestBuilder.cs @@ -37,7 +37,7 @@ public ItemsRequestBuilder(Dictionary pathParameters, IRequestAd public ItemsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/items{?%24top,%24skip,%24search,%24filter,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the collection of [items][item] in a [list][]. + /// Get the collection of items][item] in a [list][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -57,7 +57,7 @@ public async Task GetAsync(Action(requestInfo, ListItemCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new [listItem][] in a [list][]. + /// Create a new listItem][] in a [list][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -79,7 +79,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.ListItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the collection of [items][item] in a [list][]. + /// Get the collection of items][item] in a [list][]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new [listItem][] in a [list][]. + /// Create a new listItem][] in a [list][]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -140,7 +140,7 @@ public ItemsRequestBuilder WithUrl(string rawUrl) { return new ItemsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the collection of [items][item] in a [list][]. + /// Get the collection of items][item] in a [list][]. This API is supported in the following [national cloud deployments. /// public class ItemsRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index b452802ab2f..34449f84c82 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs @@ -2,6 +2,7 @@ using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Graph.Shares.Item.List.LastModifiedByUser.MailboxSettings; +using Microsoft.Graph.Shares.Item.List.LastModifiedByUser.ServiceProvisioningErrors; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -19,6 +20,10 @@ public class LastModifiedByUserRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new LastModifiedByUserRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..096e70e9b4e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Shares.Item.List.LastModifiedByUser.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/lastModifiedByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/lastModifiedByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..698964685ae --- /dev/null +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Shares.Item.List.LastModifiedByUser.ServiceProvisioningErrors.Count; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Shares.Item.List.LastModifiedByUser.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \shares\{sharedDriveItem-id}\list\lastModifiedByUser\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/lastModifiedByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/lastModifiedByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs index 92f4f4aa0ed..1c188c78438 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs @@ -28,7 +28,7 @@ public ReauthorizeRequestBuilder(Dictionary pathParameters, IReq public ReauthorizeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/list/subscriptions/{subscription%2Did}/reauthorize", rawUrl) { } /// - /// Reauthorize a subscription when you receive a reauthorizationRequired challenge. + /// Reauthorize a subscription when you receive a reauthorizationRequired challenge. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Reauthorize a subscription when you receive a reauthorizationRequired challenge. + /// Reauthorize a subscription when you receive a reauthorizationRequired challenge. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Shares/Item/Permission/Grant/GrantPostResponse.cs b/src/Microsoft.Graph/Generated/Shares/Item/Permission/Grant/GrantPostResponse.cs new file mode 100644 index 00000000000..517ec6fb25e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Shares/Item/Permission/Grant/GrantPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Shares.Item.Permission.Grant { + public class GrantPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GrantPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GrantPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Shares/Item/Permission/Grant/GrantRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/Permission/Grant/GrantRequestBuilder.cs index 1bec5b8e4fe..9663dcab1f4 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/Permission/Grant/GrantRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/Permission/Grant/GrantRequestBuilder.cs @@ -28,13 +28,36 @@ public GrantRequestBuilder(Dictionary pathParameters, IRequestAd public GrantRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares/{sharedDriveItem%2Did}/permission/grant", rawUrl) { } /// - /// Grant users access to a link represented by a [permission][]. + /// Grant users access to a link represented by a permission][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGrantPostResponseAsync(GrantPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGrantPostResponseAsync(GrantPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GrantPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Grant users access to a link represented by a permission][]. This API is supported in the following [national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGrantPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GrantPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GrantPostRequestBody body, Action(requestInfo, GrantResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Grant users access to a link represented by a [permission][]. + /// Grant users access to a link represented by a permission][]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Shares/Item/Permission/Grant/GrantResponse.cs b/src/Microsoft.Graph/Generated/Shares/Item/Permission/Grant/GrantResponse.cs index bffee16376f..1f7aa72f211 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/Permission/Grant/GrantResponse.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/Permission/Grant/GrantResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Shares.Item.Permission.Grant { - public class GrantResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use grantPostResponse instead.")] + public class GrantResponse : GrantPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GrantResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Shares/Item/SharedDriveItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/SharedDriveItemItemRequestBuilder.cs index cb06fa78529..bfb3cba0764 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/SharedDriveItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/SharedDriveItemItemRequestBuilder.cs @@ -93,7 +93,7 @@ public async Task DeleteAsync(Action - /// Access a shared DriveItem or a collection of shared items by using a shareId or sharing URL. To use a sharing URL with this API, your app needs to transform the URL into a sharing token. + /// Access a shared DriveItem or a collection of shared items by using a shareId or sharing URL. To use a sharing URL with this API, your app needs to transform the URL into a sharing token. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -158,7 +158,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Access a shared DriveItem or a collection of shared items by using a shareId or sharing URL. To use a sharing URL with this API, your app needs to transform the URL into a sharing token. + /// Access a shared DriveItem or a collection of shared items by using a shareId or sharing URL. To use a sharing URL with this API, your app needs to transform the URL into a sharing token. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -235,7 +235,7 @@ public SharedDriveItemItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Access a shared DriveItem or a collection of shared items by using a shareId or sharing URL. To use a sharing URL with this API, your app needs to transform the URL into a sharing token. + /// Access a shared DriveItem or a collection of shared items by using a shareId or sharing URL. To use a sharing URL with this API, your app needs to transform the URL into a sharing token. This API is supported in the following national cloud deployments. /// public class SharedDriveItemItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Shares/SharesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/SharesRequestBuilder.cs index dd81c39c3b5..830676f0028 100644 --- a/src/Microsoft.Graph/Generated/Shares/SharesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/SharesRequestBuilder.cs @@ -42,7 +42,7 @@ public SharesRequestBuilder(Dictionary pathParameters, IRequestA public SharesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/shares{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Access a shared DriveItem or a collection of shared items by using a shareId or sharing URL. To use a sharing URL with this API, your app needs to transform the URL into a sharing token. + /// Access a shared DriveItem or a collection of shared items by using a shareId or sharing URL. To use a sharing URL with this API, your app needs to transform the URL into a sharing token. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(SharedDriveItem body, Action(requestInfo, SharedDriveItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Access a shared DriveItem or a collection of shared items by using a shareId or sharing URL. To use a sharing URL with this API, your app needs to transform the URL into a sharing token. + /// Access a shared DriveItem or a collection of shared items by using a shareId or sharing URL. To use a sharing URL with this API, your app needs to transform the URL into a sharing token. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public SharesRequestBuilder WithUrl(string rawUrl) { return new SharesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Access a shared DriveItem or a collection of shared items by using a shareId or sharing URL. To use a sharing URL with this API, your app needs to transform the URL into a sharing token. + /// Access a shared DriveItem or a collection of shared items by using a shareId or sharing URL. To use a sharing URL with this API, your app needs to transform the URL into a sharing token. This API is supported in the following national cloud deployments. /// public class SharesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Sites/Add/AddPostResponse.cs new file mode 100644 index 00000000000..767634e2a88 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Sites/Add/AddPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Sites.Add { + public class AddPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AddPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AddPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Site.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Sites/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Add/AddRequestBuilder.cs index d40f7407ff6..e657af349f2 100644 --- a/src/Microsoft.Graph/Generated/Sites/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Add/AddRequestBuilder.cs @@ -35,6 +35,29 @@ public AddRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AddPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Follow a user's site or multiple sites. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsAddPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Sites/Add/AddResponse.cs b/src/Microsoft.Graph/Generated/Sites/Add/AddResponse.cs index 22ef3730a8f..639ae8e240a 100644 --- a/src/Microsoft.Graph/Generated/Sites/Add/AddResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Add/AddResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Sites.Add { - public class AddResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use addPostResponse instead.")] + public class AddResponse : AddPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Site.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Sites/GetAllSites/GetAllSitesGetResponse.cs b/src/Microsoft.Graph/Generated/Sites/GetAllSites/GetAllSitesGetResponse.cs new file mode 100644 index 00000000000..ecc15bd1757 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Sites/GetAllSites/GetAllSitesGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Sites.GetAllSites { + public class GetAllSitesGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAllSitesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAllSitesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Site.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Sites/GetAllSites/GetAllSitesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/GetAllSites/GetAllSitesRequestBuilder.cs index e3362383981..4ab68baa193 100644 --- a/src/Microsoft.Graph/Generated/Sites/GetAllSites/GetAllSitesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/GetAllSites/GetAllSitesRequestBuilder.cs @@ -33,6 +33,26 @@ public GetAllSitesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetAllSitesGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetAllSitesGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAllSitesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getAllSites + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetAllSitesGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Sites/GetAllSites/GetAllSitesResponse.cs b/src/Microsoft.Graph/Generated/Sites/GetAllSites/GetAllSitesResponse.cs index 0aa5abd77d0..eb36efde226 100644 --- a/src/Microsoft.Graph/Generated/Sites/GetAllSites/GetAllSitesResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/GetAllSites/GetAllSitesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Sites.GetAllSites { - public class GetAllSitesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAllSitesGetResponse instead.")] + public class GetAllSitesResponse : GetAllSitesGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAllSitesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Site.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Analytics/AllTime/AllTimeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Analytics/AllTime/AllTimeRequestBuilder.cs index 00456650a2a..21120ff3dd5 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Analytics/AllTime/AllTimeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Analytics/AllTime/AllTimeRequestBuilder.cs @@ -29,7 +29,7 @@ public AllTimeRequestBuilder(Dictionary pathParameters, IRequest public AllTimeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/analytics/allTime{?%24select,%24expand}", rawUrl) { } /// - /// Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the [getActivitiesByInterval][] API. + /// Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the getActivitiesByInterval][] API. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, ItemActivityStat.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the [getActivitiesByInterval][] API. + /// Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the getActivitiesByInterval][] API. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -82,7 +82,7 @@ public AllTimeRequestBuilder WithUrl(string rawUrl) { return new AllTimeRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the [getActivitiesByInterval][] API. + /// Get [itemAnalytics][] about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the getActivitiesByInterval][] API. This API is supported in the following [national cloud deployments. /// public class AllTimeRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Columns/ColumnsRequestBuilder.cs index 0775cea1625..e3a6d86076e 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Columns/ColumnsRequestBuilder.cs @@ -42,7 +42,7 @@ public ColumnsRequestBuilder(Dictionary pathParameters, IRequest public ColumnsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/columns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [site][site]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [site][site]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ColumnDefinitionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a column for a [site][site] with a request that specifies a [columnDefinition][columnDefinition]. + /// Create a column for a site][site] with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(ColumnDefinition body, Action(requestInfo, ColumnDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [site][site]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [site][site]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a column for a [site][site] with a request that specifies a [columnDefinition][columnDefinition]. + /// Create a column for a site][site] with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ColumnsRequestBuilder WithUrl(string rawUrl) { return new ColumnsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [site][site]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [site][site]. This API is supported in the following [national cloud deployments. /// public class ColumnsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs index 7c77b36e968..cc726dc115e 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs @@ -29,7 +29,7 @@ public AddCopyRequestBuilder(Dictionary pathParameters, IRequest public AddCopyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/contentTypes/addCopy", rawUrl) { } /// - /// Add a copy of a [content type][contentType] from a [site][site] to a [list][list]. + /// Add a copy of a content type][contentType] from a [site][site] to a [list][list]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(AddCopyPostRequestBody body, Action(requestInfo, ContentType.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a copy of a [content type][contentType] from a [site][site] to a [list][list]. + /// Add a copy of a content type][contentType] from a [site][site] to a [list][list]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs index b7f84b91a78..a6b97f96dde 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs @@ -29,7 +29,7 @@ public AddCopyFromContentTypeHubRequestBuilder(Dictionary pathPa public AddCopyFromContentTypeHubRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/contentTypes/addCopyFromContentTypeHub", rawUrl) { } /// - /// Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. + /// Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(AddCopyFromContentTypeHubPostRequestBod return await RequestAdapter.SendAsync(requestInfo, ContentType.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. + /// Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/ContentTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/ContentTypesRequestBuilder.cs index 980c3acecfe..a57cf9a5fba 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/ContentTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/ContentTypesRequestBuilder.cs @@ -57,7 +57,7 @@ public ContentTypesRequestBuilder(Dictionary pathParameters, IRe public ContentTypesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/contentTypes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the collection of [contentType][contentType] resources in a [site][]. + /// Get the collection of contentType][contentType] resources in a [site][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -77,7 +77,7 @@ public async Task GetAsync(Action(requestInfo, ContentTypeCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new [contentType][] in a [site][]. + /// Create a new contentType][] in a [site][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -99,7 +99,7 @@ public async Task PostAsync(ContentType body, Action(requestInfo, ContentType.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the collection of [contentType][contentType] resources in a [site][]. + /// Get the collection of contentType][contentType] resources in a [site][]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -125,7 +125,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new [contentType][] in a [site][]. + /// Create a new contentType][] in a [site][]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -160,7 +160,7 @@ public ContentTypesRequestBuilder WithUrl(string rawUrl) { return new ContentTypesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the collection of [contentType][contentType] resources in a [site][]. + /// Get the collection of contentType][contentType] resources in a [site][]. This API is supported in the following [national cloud deployments. /// public class ContentTypesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs new file mode 100644 index 00000000000..5f060587d09 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Sites.Item.ContentTypes.GetCompatibleHubContentTypes { + public class GetCompatibleHubContentTypesGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetCompatibleHubContentTypesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetCompatibleHubContentTypesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs index ad4b58724f4..e0de13aba36 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs @@ -33,6 +33,26 @@ public GetCompatibleHubContentTypesRequestBuilder(string rawUrl, IRequestAdapter /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetCompatibleHubContentTypesGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetCompatibleHubContentTypesGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetCompatibleHubContentTypesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getCompatibleHubContentTypes + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetCompatibleHubContentTypesGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs index 9c1b0b38871..abf143e8b3a 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Sites.Item.ContentTypes.GetCompatibleHubContentTypes { - public class GetCompatibleHubContentTypesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getCompatibleHubContentTypesGetResponse instead.")] + public class GetCompatibleHubContentTypesResponse : GetCompatibleHubContentTypesGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetCompatibleHubContentTypesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs index 2abef5882e1..2f085b83860 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs @@ -28,7 +28,7 @@ public AssociateWithHubSitesRequestBuilder(Dictionary pathParame public AssociateWithHubSitesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/contentTypes/{contentType%2Did}/associateWithHubSites", rawUrl) { } /// - /// Associate a published [content type][contentType] present in a content type hub with a list of hub sites. + /// Associate a published content type][contentType] present in a content type hub with a list of hub sites. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AssociateWithHubSitesPostRequestBody body, Action - /// Associate a published [content type][contentType] present in a content type hub with a list of hub sites. + /// Associate a published content type][contentType] present in a content type hub with a list of hub sites. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs index cfb4f219d84..ace87fffee5 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs @@ -42,7 +42,7 @@ public ColumnsRequestBuilder(Dictionary pathParameters, IRequest public ColumnsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [content type][contentType]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ColumnDefinitionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a column to a [content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. + /// Add a column to a content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(ColumnDefinition body, Action(requestInfo, ColumnDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [content type][contentType]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a column to a [content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. + /// Add a column to a content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ColumnsRequestBuilder WithUrl(string rawUrl) { return new ColumnsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [content type][contentType]. This API is supported in the following [national cloud deployments. /// public class ColumnsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs index e33bd8e6fd9..575165f20e1 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs @@ -34,7 +34,7 @@ public ColumnDefinitionItemRequestBuilder(Dictionary pathParamet public ColumnDefinitionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Remove a [column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. + /// Remove a column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + /// Retrieve the metadata for a site][], a [list][], or a [contentType][] [column][columnDefinition]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, ColumnDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update a [site][], a [list][], or a [content type][contentType] [column][columnDefinition]. + /// Update a site][], a [list][], or a [content type][contentType] [column][columnDefinition]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(ColumnDefinition body, Action(requestInfo, ColumnDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Remove a [column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. + /// Remove a column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + /// Retrieve the metadata for a site][], a [list][], or a [contentType][] [column][columnDefinition]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update a [site][], a [list][], or a [content type][contentType] [column][columnDefinition]. + /// Update a site][], a [list][], or a [content type][contentType] [column][columnDefinition]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public ColumnDefinitionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + /// Retrieve the metadata for a site][], a [list][], or a [contentType][] [column][columnDefinition]. This API is supported in the following [national cloud deployments. /// public class ColumnDefinitionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.cs index c6dfde8d8f5..ca765988de3 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.cs @@ -79,7 +79,7 @@ public ContentTypeItemRequestBuilder(Dictionary pathParameters, public ContentTypeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/contentTypes/{contentType%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Remove a [content type][contentType] from a [list][] or a [site][]. + /// Remove a content type][contentType] from a [list][] or a [site][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -99,7 +99,7 @@ public async Task DeleteAsync(Action - /// Retrieve the metadata for a [content type][contentType] in a [site][] or a [list][]. + /// Retrieve the metadata for a content type][contentType] in a [site][] or a [list][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -119,7 +119,7 @@ public async Task GetAsync(Action(requestInfo, ContentType.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update a [content type][contentType]. + /// Update a content type][contentType]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -141,7 +141,7 @@ public async Task PatchAsync(ContentType body, Action(requestInfo, ContentType.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Remove a [content type][contentType] from a [list][] or a [site][]. + /// Remove a content type][contentType] from a [list][] or a [site][]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -165,7 +165,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the metadata for a [content type][contentType] in a [site][] or a [list][]. + /// Retrieve the metadata for a content type][contentType] in a [site][] or a [list][]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update a [content type][contentType]. + /// Update a content type][contentType]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -242,7 +242,7 @@ public ContentTypeItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the metadata for a [content type][contentType] in a [site][] or a [list][]. + /// Retrieve the metadata for a content type][contentType] in a [site][] or a [list][]. This API is supported in the following [national cloud deployments. /// public class ContentTypeItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs index 65164055103..fcdadc86a42 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs @@ -28,7 +28,7 @@ public CopyToDefaultContentLocationRequestBuilder(Dictionary pat public CopyToDefaultContentLocationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/contentTypes/{contentType%2Did}/copyToDefaultContentLocation", rawUrl) { } /// - /// Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. + /// Copy a file to a default content location in a content type][contentType]. The file can then be added as a default file or template via a POST operation. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CopyToDefaultContentLocationPostRequestBody body, Ac await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. + /// Copy a file to a default content location in a content type][contentType]. The file can then be added as a default file or template via a POST operation. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs new file mode 100644 index 00000000000..0cb9c4345ba --- /dev/null +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Sites.Item.ContentTypes.Item.IsPublished { + public class IsPublishedGetResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public bool? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new isPublishedGetResponse and sets the default values. + /// + public IsPublishedGetResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static IsPublishedGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new IsPublishedGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs index 9ed074439e8..105044351a9 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs @@ -33,6 +33,26 @@ public IsPublishedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsIsPublishedGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsIsPublishedGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, IsPublishedGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function isPublished + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsIsPublishedGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedResponse.cs index 3d05908c4ef..417e7126cbd 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Sites.Item.ContentTypes.Item.IsPublished { - public class IsPublishedResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public bool? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new isPublishedResponse and sets the default values. - /// - public IsPublishedResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use isPublishedGetResponse instead.")] + public class IsPublishedResponse : IsPublishedGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static IsPublishedResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new IsPublishedResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new IsPublishedResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Publish/PublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Publish/PublishRequestBuilder.cs index 7db5feb8dd9..c5d94848e11 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Publish/PublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Publish/PublishRequestBuilder.cs @@ -28,7 +28,7 @@ public PublishRequestBuilder(Dictionary pathParameters, IRequest public PublishRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/contentTypes/{contentType%2Did}/publish", rawUrl) { } /// - /// Publishes a [contentType][] present in the content type hub site. + /// Publishes a contentType][] present in the content type hub site. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Publishes a [contentType][] present in the content type hub site. + /// Publishes a contentType][] present in the content type hub site. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs index 380a7fa1d77..4e5c14f45f7 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs @@ -28,7 +28,7 @@ public UnpublishRequestBuilder(Dictionary pathParameters, IReque public UnpublishRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/contentTypes/{contentType%2Did}/unpublish", rawUrl) { } /// - /// Unpublish a [contentType][] from a content type hub site. + /// Unpublish a contentType][] from a content type hub site. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Unpublish a [contentType][] from a content type hub site. + /// Unpublish a contentType][] from a content type hub site. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Sites/Item/CreatedByUser/CreatedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/CreatedByUser/CreatedByUserRequestBuilder.cs index 917241fbb7f..98c1b95fe03 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/CreatedByUser/CreatedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/CreatedByUser/CreatedByUserRequestBuilder.cs @@ -2,6 +2,7 @@ using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Graph.Sites.Item.CreatedByUser.MailboxSettings; +using Microsoft.Graph.Sites.Item.CreatedByUser.ServiceProvisioningErrors; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -19,6 +20,10 @@ public class CreatedByUserRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new CreatedByUserRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..02d03522eaf --- /dev/null +++ b/src/Microsoft.Graph/Generated/Sites/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Sites.Item.CreatedByUser.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Sites/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..10fd3b37dc0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Sites/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Sites.Item.CreatedByUser.ServiceProvisioningErrors.Count; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Sites.Item.CreatedByUser.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \sites\{site-id}\createdByUser\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/createdByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/createdByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs new file mode 100644 index 00000000000..af12c5c27e8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Sites.Item.GetActivitiesByInterval { + public class GetActivitiesByIntervalGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetActivitiesByIntervalGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetActivitiesByIntervalGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs index 84027d7f4df..e6bfe20d379 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs @@ -33,6 +33,26 @@ public GetActivitiesByIntervalRequestBuilder(string rawUrl, IRequestAdapter requ /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetActivitiesByIntervalGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetActivitiesByIntervalGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetActivitiesByIntervalGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getActivitiesByInterval + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetActivitiesByIntervalGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index 7603b1779d0..ca7dc55ba3f 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Sites.Item.GetActivitiesByInterval { - public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getActivitiesByIntervalGetResponse instead.")] + public class GetActivitiesByIntervalResponse : GetActivitiesByIntervalGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs new file mode 100644 index 00000000000..6bd65b7176f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Sites.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs index 4e7eed1dcef..9b79b0f143c 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs @@ -39,6 +39,26 @@ public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalReques /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getActivitiesByInterval + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index 8b136ef4930..3b2f19403aa 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Sites.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse instead.")] + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdGetResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdGetResponse.cs new file mode 100644 index 00000000000..77871fb81b9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Sites.Item.GetApplicableContentTypesForListWithListId { + public class GetApplicableContentTypesForListWithListIdGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetApplicableContentTypesForListWithListIdGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetApplicableContentTypesForListWithListIdGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.cs index d41409a2be7..5974c8b1efd 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.cs @@ -35,6 +35,26 @@ public GetApplicableContentTypesForListWithListIdRequestBuilder(string rawUrl, I /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetApplicableContentTypesForListWithListIdGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetApplicableContentTypesForListWithListIdGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetApplicableContentTypesForListWithListIdGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getApplicableContentTypesForList + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetApplicableContentTypesForListWithListIdGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdResponse.cs index 9e99aff0a5e..60a475661c9 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Sites.Item.GetApplicableContentTypesForListWithListId { - public class GetApplicableContentTypesForListWithListIdResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getApplicableContentTypesForListWithListIdGetResponse instead.")] + public class GetApplicableContentTypesForListWithListIdResponse : GetApplicableContentTypesForListWithListIdGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetApplicableContentTypesForListWithListIdResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Sites/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index 7db1b4634e8..8aa2d38e383 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs @@ -2,6 +2,7 @@ using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Graph.Sites.Item.LastModifiedByUser.MailboxSettings; +using Microsoft.Graph.Sites.Item.LastModifiedByUser.ServiceProvisioningErrors; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -19,6 +20,10 @@ public class LastModifiedByUserRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new LastModifiedByUserRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..c1bfe0b3bde --- /dev/null +++ b/src/Microsoft.Graph/Generated/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Sites.Item.LastModifiedByUser.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..cf2ae6f8ef0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Sites.Item.LastModifiedByUser.ServiceProvisioningErrors.Count; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Sites.Item.LastModifiedByUser.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \sites\{site-id}\lastModifiedByUser\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Columns/ColumnsRequestBuilder.cs index 59994add195..367d488f8df 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Columns/ColumnsRequestBuilder.cs @@ -42,7 +42,7 @@ public ColumnsRequestBuilder(Dictionary pathParameters, IRequest public ColumnsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/columns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [list][list]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [list][list]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ColumnDefinitionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a column for a [list][list] with a request that specifies a [columnDefinition][columnDefinition]. + /// Create a column for a list][list] with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(ColumnDefinition body, Action(requestInfo, ColumnDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [list][list]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [list][list]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a column for a [list][list] with a request that specifies a [columnDefinition][columnDefinition]. + /// Create a column for a list][list] with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ColumnsRequestBuilder WithUrl(string rawUrl) { return new ColumnsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [list][list]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [list][list]. This API is supported in the following [national cloud deployments. /// public class ColumnsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs index 16433a21d21..827f471bea0 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs @@ -29,7 +29,7 @@ public AddCopyRequestBuilder(Dictionary pathParameters, IRequest public AddCopyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/addCopy", rawUrl) { } /// - /// Add a copy of a [content type][contentType] from a [site][site] to a [list][list]. + /// Add a copy of a content type][contentType] from a [site][site] to a [list][list]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(AddCopyPostRequestBody body, Action(requestInfo, ContentType.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a copy of a [content type][contentType] from a [site][site] to a [list][list]. + /// Add a copy of a content type][contentType] from a [site][site] to a [list][list]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs index f7b6980e21e..c9ac5911baf 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs @@ -29,7 +29,7 @@ public AddCopyFromContentTypeHubRequestBuilder(Dictionary pathPa public AddCopyFromContentTypeHubRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/addCopyFromContentTypeHub", rawUrl) { } /// - /// Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. + /// Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(AddCopyFromContentTypeHubPostRequestBod return await RequestAdapter.SendAsync(requestInfo, ContentType.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. + /// Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/ContentTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/ContentTypesRequestBuilder.cs index b6ba1566bff..778e055bfa2 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/ContentTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/ContentTypesRequestBuilder.cs @@ -57,7 +57,7 @@ public ContentTypesRequestBuilder(Dictionary pathParameters, IRe public ContentTypesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/contentTypes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the collection of [contentType][contentType] resources in a [list][]. + /// Get the collection of contentType][contentType] resources in a [list][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -98,7 +98,7 @@ public async Task PostAsync(ContentType body, Action(requestInfo, ContentType.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the collection of [contentType][contentType] resources in a [list][]. + /// Get the collection of contentType][contentType] resources in a [list][]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -159,7 +159,7 @@ public ContentTypesRequestBuilder WithUrl(string rawUrl) { return new ContentTypesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the collection of [contentType][contentType] resources in a [list][]. + /// Get the collection of contentType][contentType] resources in a [list][]. This API is supported in the following [national cloud deployments. /// public class ContentTypesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs new file mode 100644 index 00000000000..9da2bb896ec --- /dev/null +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Sites.Item.Lists.Item.ContentTypes.GetCompatibleHubContentTypes { + public class GetCompatibleHubContentTypesGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetCompatibleHubContentTypesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetCompatibleHubContentTypesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs index f75ea0f3f7c..1849d4a1646 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs @@ -33,6 +33,26 @@ public GetCompatibleHubContentTypesRequestBuilder(string rawUrl, IRequestAdapter /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetCompatibleHubContentTypesGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetCompatibleHubContentTypesGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetCompatibleHubContentTypesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getCompatibleHubContentTypes + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetCompatibleHubContentTypesGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs index 225dd3e418e..194791baa57 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Sites.Item.Lists.Item.ContentTypes.GetCompatibleHubContentTypes { - public class GetCompatibleHubContentTypesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getCompatibleHubContentTypesGetResponse instead.")] + public class GetCompatibleHubContentTypesResponse : GetCompatibleHubContentTypesGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetCompatibleHubContentTypesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs index a6c264accfd..5b8fdcede0f 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs @@ -28,7 +28,7 @@ public AssociateWithHubSitesRequestBuilder(Dictionary pathParame public AssociateWithHubSitesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/associateWithHubSites", rawUrl) { } /// - /// Associate a published [content type][contentType] present in a content type hub with a list of hub sites. + /// Associate a published content type][contentType] present in a content type hub with a list of hub sites. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AssociateWithHubSitesPostRequestBody body, Action - /// Associate a published [content type][contentType] present in a content type hub with a list of hub sites. + /// Associate a published content type][contentType] present in a content type hub with a list of hub sites. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs index 8217a374673..3b87382dd25 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs @@ -42,7 +42,7 @@ public ColumnsRequestBuilder(Dictionary pathParameters, IRequest public ColumnsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [content type][contentType]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ColumnDefinitionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a column to a [content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. + /// Add a column to a content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(ColumnDefinition body, Action(requestInfo, ColumnDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [content type][contentType]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a column to a [content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. + /// Add a column to a content type][contentType] in a site, or a list with a request that specifies a [columnDefinition][columnDefinition]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ColumnsRequestBuilder WithUrl(string rawUrl) { return new ColumnsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [content type][contentType]. + /// Get the collection of columns represented as columnDefinition][columnDefinition] resources in a [content type][contentType]. This API is supported in the following [national cloud deployments. /// public class ColumnsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs index 153a1fd3620..283cbfa8629 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs @@ -34,7 +34,7 @@ public ColumnDefinitionItemRequestBuilder(Dictionary pathParamet public ColumnDefinitionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Remove a [column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. + /// Remove a column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + /// Retrieve the metadata for a site][], a [list][], or a [contentType][] [column][columnDefinition]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, ColumnDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update a [site][], a [list][], or a [content type][contentType] [column][columnDefinition]. + /// Update a site][], a [list][], or a [content type][contentType] [column][columnDefinition]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(ColumnDefinition body, Action(requestInfo, ColumnDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Remove a [column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. + /// Remove a column][columndefinition] from a [site][], a [list][], or a [content type][contentType]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + /// Retrieve the metadata for a site][], a [list][], or a [contentType][] [column][columnDefinition]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update a [site][], a [list][], or a [content type][contentType] [column][columnDefinition]. + /// Update a site][], a [list][], or a [content type][contentType] [column][columnDefinition]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public ColumnDefinitionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the metadata for a [site][], a [list][], or a [contentType][] [column][columnDefinition]. + /// Retrieve the metadata for a site][], a [list][], or a [contentType][] [column][columnDefinition]. This API is supported in the following [national cloud deployments. /// public class ColumnDefinitionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs index 9b793440137..26519b2fd0f 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs @@ -28,7 +28,7 @@ public CopyToDefaultContentLocationRequestBuilder(Dictionary pat public CopyToDefaultContentLocationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/copyToDefaultContentLocation", rawUrl) { } /// - /// Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. + /// Copy a file to a default content location in a content type][contentType]. The file can then be added as a default file or template via a POST operation. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CopyToDefaultContentLocationPostRequestBody body, Ac await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation. + /// Copy a file to a default content location in a content type][contentType]. The file can then be added as a default file or template via a POST operation. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs new file mode 100644 index 00000000000..4686b138fd9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Sites.Item.Lists.Item.ContentTypes.Item.IsPublished { + public class IsPublishedGetResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public bool? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new isPublishedGetResponse and sets the default values. + /// + public IsPublishedGetResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static IsPublishedGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new IsPublishedGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs index 0ea46aa0529..f8013b175bd 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs @@ -33,6 +33,26 @@ public IsPublishedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsIsPublishedGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsIsPublishedGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, IsPublishedGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function isPublished + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsIsPublishedGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedResponse.cs index c3b3f2fc7e4..92df25c865c 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Sites.Item.Lists.Item.ContentTypes.Item.IsPublished { - public class IsPublishedResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public bool? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new isPublishedResponse and sets the default values. - /// - public IsPublishedResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use isPublishedGetResponse instead.")] + public class IsPublishedResponse : IsPublishedGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static IsPublishedResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new IsPublishedResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new IsPublishedResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Publish/PublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Publish/PublishRequestBuilder.cs index df13653f368..891dad0f773 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Publish/PublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Publish/PublishRequestBuilder.cs @@ -28,7 +28,7 @@ public PublishRequestBuilder(Dictionary pathParameters, IRequest public PublishRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/publish", rawUrl) { } /// - /// Publishes a [contentType][] present in the content type hub site. + /// Publishes a contentType][] present in the content type hub site. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Publishes a [contentType][] present in the content type hub site. + /// Publishes a contentType][] present in the content type hub site. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs index b4dd4b57cfe..9af8543c764 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs @@ -28,7 +28,7 @@ public UnpublishRequestBuilder(Dictionary pathParameters, IReque public UnpublishRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/unpublish", rawUrl) { } /// - /// Unpublish a [contentType][] from a content type hub site. + /// Unpublish a contentType][] from a content type hub site. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Unpublish a [contentType][] from a content type hub site. + /// Unpublish a contentType][] from a content type hub site. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/CreatedByUser/CreatedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/CreatedByUser/CreatedByUserRequestBuilder.cs index aa336f832bd..5d74c63e72d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/CreatedByUser/CreatedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/CreatedByUser/CreatedByUserRequestBuilder.cs @@ -2,6 +2,7 @@ using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Graph.Sites.Item.Lists.Item.CreatedByUser.MailboxSettings; +using Microsoft.Graph.Sites.Item.Lists.Item.CreatedByUser.ServiceProvisioningErrors; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -19,6 +20,10 @@ public class CreatedByUserRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new CreatedByUserRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..92c59e842a7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Sites.Item.Lists.Item.CreatedByUser.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..c5dc67ff2f5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Sites.Item.Lists.Item.CreatedByUser.ServiceProvisioningErrors.Count; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Sites.Item.Lists.Item.CreatedByUser.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \sites\{site-id}\lists\{list-id}\createdByUser\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/createdByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/createdByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs index 7a66268c80d..49c317802a7 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs @@ -2,6 +2,7 @@ using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Graph.Sites.Item.Lists.Item.Items.Item.CreatedByUser.MailboxSettings; +using Microsoft.Graph.Sites.Item.Lists.Item.Items.Item.CreatedByUser.ServiceProvisioningErrors; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -19,6 +20,10 @@ public class CreatedByUserRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new CreatedByUserRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..93a38b45b15 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Sites.Item.Lists.Item.Items.Item.CreatedByUser.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..16a97550c3b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Sites.Item.Lists.Item.Items.Item.CreatedByUser.ServiceProvisioningErrors.Count; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Sites.Item.Lists.Item.Items.Item.CreatedByUser.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \sites\{site-id}\lists\{list-id}\items\{listItem-id}\createdByUser\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs index 313648276c4..3e7ab62f628 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs @@ -42,7 +42,7 @@ public DocumentSetVersionsRequestBuilder(Dictionary pathParamete public DocumentSetVersionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/documentSetVersions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the versions of a document set item in a list. + /// Get a list of the versions of a document set item in a list. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, DocumentSetVersionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new version of a document set item in a list. + /// Create a new version of a document set item in a list. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(DocumentSetVersion body, Action< return await RequestAdapter.SendAsync(requestInfo, DocumentSetVersion.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the versions of a document set item in a list. + /// Get a list of the versions of a document set item in a list. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new version of a document set item in a list. + /// Create a new version of a document set item in a list. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public DocumentSetVersionsRequestBuilder WithUrl(string rawUrl) { return new DocumentSetVersionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the versions of a document set item in a list. + /// Get a list of the versions of a document set item in a list. This API is supported in the following national cloud deployments. /// public class DocumentSetVersionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs index 0f137b6a348..9ff439cb830 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs @@ -39,7 +39,7 @@ public DocumentSetVersionItemRequestBuilder(Dictionary pathParam public DocumentSetVersionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a version of a document set in a list. + /// Delete a version of a document set in a list. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -59,7 +59,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a documentSetVersion object. + /// Read the properties and relationships of a documentSetVersion object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -100,7 +100,7 @@ public async Task PatchAsync(DocumentSetVersion body, Action return await RequestAdapter.SendAsync(requestInfo, DocumentSetVersion.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a version of a document set in a list. + /// Delete a version of a document set in a list. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -124,7 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a documentSetVersion object. + /// Read the properties and relationships of a documentSetVersion object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -201,7 +201,7 @@ public DocumentSetVersionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a documentSetVersion object. + /// Read the properties and relationships of a documentSetVersion object. This API is supported in the following national cloud deployments. /// public class DocumentSetVersionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs index c1ee87bbe9d..90139326d59 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs @@ -28,7 +28,7 @@ public RestoreRequestBuilder(Dictionary pathParameters, IRequest public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%2Did}/restore", rawUrl) { } /// - /// Restore a document set version. + /// Restore a document set version. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Restore a document set version. + /// Restore a document set version. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Fields/FieldsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Fields/FieldsRequestBuilder.cs index daaff36753b..2f55b4991b6 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Fields/FieldsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Fields/FieldsRequestBuilder.cs @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, FieldValueSet.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties on a [listItem][]. + /// Update the properties on a listItem][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -139,7 +139,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties on a [listItem][]. + /// Update the properties on a listItem][]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs new file mode 100644 index 00000000000..044df638468 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Sites.Item.Lists.Item.Items.Item.GetActivitiesByInterval { + public class GetActivitiesByIntervalGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetActivitiesByIntervalGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetActivitiesByIntervalGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs index d401f52f027..9cf2466a072 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs @@ -33,6 +33,26 @@ public GetActivitiesByIntervalRequestBuilder(string rawUrl, IRequestAdapter requ /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetActivitiesByIntervalGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetActivitiesByIntervalGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetActivitiesByIntervalGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getActivitiesByInterval + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetActivitiesByIntervalGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs index 24dd1cb19d0..e7bca446e36 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Sites.Item.Lists.Item.Items.Item.GetActivitiesByInterval { - public class GetActivitiesByIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getActivitiesByIntervalGetResponse instead.")] + public class GetActivitiesByIntervalResponse : GetActivitiesByIntervalGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs new file mode 100644 index 00000000000..861089e23cd --- /dev/null +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Sites.Item.Lists.Item.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs index 6e74b126cb6..e19a7959749 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs @@ -39,6 +39,26 @@ public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalReques /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getActivitiesByInterval + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs index c989de3d1ad..8cc61aeca88 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Sites.Item.Lists.Item.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse instead.")] + public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse : GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index 022d98a6643..d75edb4efad 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs @@ -2,6 +2,7 @@ using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Graph.Sites.Item.Lists.Item.Items.Item.LastModifiedByUser.MailboxSettings; +using Microsoft.Graph.Sites.Item.Lists.Item.Items.Item.LastModifiedByUser.ServiceProvisioningErrors; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -19,6 +20,10 @@ public class LastModifiedByUserRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new LastModifiedByUserRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..9069c48c6b5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Sites.Item.Lists.Item.Items.Item.LastModifiedByUser.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..5ed9a5f3586 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Sites.Item.Lists.Item.Items.Item.LastModifiedByUser.ServiceProvisioningErrors.Count; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Sites.Item.Lists.Item.Items.Item.LastModifiedByUser.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \sites\{site-id}\lists\{list-id}\items\{listItem-id}\lastModifiedByUser\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.cs index 6d3a8f487bb..8fd7d026065 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.cs @@ -70,7 +70,7 @@ public ListItemItemRequestBuilder(Dictionary pathParameters, IRe public ListItemItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Removes an item from a [list][]. + /// Removes an item from a list][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -102,7 +102,7 @@ public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalReques return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(PathParameters, RequestAdapter, endDateTime, interval, startDateTime); } /// - /// Returns the metadata for an [item][] in a [list][]. + /// Returns the metadata for an item][] in a [list][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -143,7 +143,7 @@ public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalReques return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.ListItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Removes an item from a [list][]. + /// Removes an item from a list][]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -167,7 +167,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Returns the metadata for an [item][] in a [list][]. + /// Returns the metadata for an item][] in a [list][]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -244,7 +244,7 @@ public ListItemItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Returns the metadata for an [item][] in a [list][]. + /// Returns the metadata for an item][] in a [list][]. This API is supported in the following [national cloud deployments. /// public class ListItemItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs index 992bcac73f2..0994a9b9e3c 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs @@ -58,7 +58,7 @@ public async Task DeleteAsync(Action - /// Retrieve the metadata for a specific version of a ListItem. + /// Retrieve the metadata for a specific version of a ListItem. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -123,7 +123,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the metadata for a specific version of a ListItem. + /// Retrieve the metadata for a specific version of a ListItem. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -200,7 +200,7 @@ public ListItemVersionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the metadata for a specific version of a ListItem. + /// Retrieve the metadata for a specific version of a ListItem. This API is supported in the following national cloud deployments. /// public class ListItemVersionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs index f92f660ac94..d4b09f57fc3 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs @@ -28,7 +28,7 @@ public RestoreVersionRequestBuilder(Dictionary pathParameters, I public RestoreVersionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/versions/{listItemVersion%2Did}/restoreVersion", rawUrl) { } /// - /// Restore a previous version of a ListItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the item. + /// Restore a previous version of a ListItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the item. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Restore a previous version of a ListItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the item. + /// Restore a previous version of a ListItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the item. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Versions/VersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Versions/VersionsRequestBuilder.cs index f24615aac95..cb5b2e92d8c 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Versions/VersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Versions/VersionsRequestBuilder.cs @@ -42,7 +42,7 @@ public VersionsRequestBuilder(Dictionary pathParameters, IReques public VersionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/versions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. + /// SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ListItemVersion body, Action(requestInfo, ListItemVersion.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. + /// SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public VersionsRequestBuilder WithUrl(string rawUrl) { return new VersionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. + /// SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location. This API is supported in the following national cloud deployments. /// public class VersionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.cs index 607624da9a6..cde75998eaa 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.cs @@ -37,7 +37,7 @@ public ItemsRequestBuilder(Dictionary pathParameters, IRequestAd public ItemsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/items{?%24top,%24skip,%24search,%24filter,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the collection of [items][item] in a [list][]. + /// Get the collection of items][item] in a [list][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -57,7 +57,7 @@ public async Task GetAsync(Action(requestInfo, ListItemCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new [listItem][] in a [list][]. + /// Create a new listItem][] in a [list][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -79,7 +79,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.ListItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the collection of [items][item] in a [list][]. + /// Get the collection of items][item] in a [list][]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new [listItem][] in a [list][]. + /// Create a new listItem][] in a [list][]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -140,7 +140,7 @@ public ItemsRequestBuilder WithUrl(string rawUrl) { return new ItemsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the collection of [items][item] in a [list][]. + /// Get the collection of items][item] in a [list][]. This API is supported in the following [national cloud deployments. /// public class ItemsRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index 548e84cab88..e26e08c6b48 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs @@ -2,6 +2,7 @@ using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Graph.Sites.Item.Lists.Item.LastModifiedByUser.MailboxSettings; +using Microsoft.Graph.Sites.Item.Lists.Item.LastModifiedByUser.ServiceProvisioningErrors; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -19,6 +20,10 @@ public class LastModifiedByUserRequestBuilder : BaseRequestBuilder { public MailboxSettingsRequestBuilder MailboxSettings { get => new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new LastModifiedByUserRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..993fd794a0e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Sites.Item.Lists.Item.LastModifiedByUser.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..37aa1b823f5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Sites.Item.Lists.Item.LastModifiedByUser.ServiceProvisioningErrors.Count; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Sites.Item.Lists.Item.LastModifiedByUser.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \sites\{site-id}\lists\{list-id}\lastModifiedByUser\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ListItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ListItemRequestBuilder.cs index 0b73086bae3..9691f07e4f2 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ListItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ListItemRequestBuilder.cs @@ -88,7 +88,7 @@ public async Task DeleteAsync(Action - /// Get a list of rich long-running operations associated with a list. + /// Get a list of rich long-running operations associated with a list. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -153,7 +153,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a list of rich long-running operations associated with a list. + /// Get a list of rich long-running operations associated with a list. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -230,7 +230,7 @@ public ListItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a list of rich long-running operations associated with a list. + /// Get a list of rich long-running operations associated with a list. This API is supported in the following national cloud deployments. /// public class ListItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs index f18cd2bc51c..6b6e9413eba 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs @@ -28,7 +28,7 @@ public ReauthorizeRequestBuilder(Dictionary pathParameters, IReq public ReauthorizeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/subscriptions/{subscription%2Did}/reauthorize", rawUrl) { } /// - /// Reauthorize a subscription when you receive a reauthorizationRequired challenge. + /// Reauthorize a subscription when you receive a reauthorizationRequired challenge. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Reauthorize a subscription when you receive a reauthorizationRequired challenge. + /// Reauthorize a subscription when you receive a reauthorizationRequired challenge. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/ListsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/ListsRequestBuilder.cs index a0763e2940f..0f37df36365 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/ListsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/ListsRequestBuilder.cs @@ -42,7 +42,7 @@ public ListsRequestBuilder(Dictionary pathParameters, IRequestAd public ListsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/lists{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the collection of [lists][] for a [site][]. Lists with the [system][] facet are hidden by default.To list them, include system in your $select statement. + /// Get the collection of [lists][] for a [site][]. Lists with the [system][] facet are hidden by default.To list them, include system in your $select statement. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ListCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new [list][] in a [site][]. + /// Create a new list][] in a [site][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.List.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the collection of [lists][] for a [site][]. Lists with the [system][] facet are hidden by default.To list them, include system in your $select statement. + /// Get the collection of [lists][] for a [site][]. Lists with the [system][] facet are hidden by default.To list them, include system in your $select statement. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new [list][] in a [site][]. + /// Create a new list][] in a [site][]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ListsRequestBuilder WithUrl(string rawUrl) { return new ListsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the collection of [lists][] for a [site][]. Lists with the [system][] facet are hidden by default.To list them, include system in your $select statement. + /// Get the collection of [lists][] for a [site][]. Lists with the [system][] facet are hidden by default.To list them, include system in your $select statement. This API is supported in the following national cloud deployments. /// public class ListsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs index 35dfbb17ce9..026c4cb255b 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs @@ -29,7 +29,7 @@ public GetNotebookFromWebUrlRequestBuilder(Dictionary pathParame public GetNotebookFromWebUrlRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/notebooks/getNotebookFromWebUrl", rawUrl) { } /// - /// Retrieve the properties and relationships of a notebook object by using its URL path. The location can be user notebooks on Microsoft 365, group notebooks, or SharePoint site-hosted team notebooks on Microsoft 365. + /// Retrieve the properties and relationships of a notebook object by using its URL path. The location can be user notebooks on Microsoft 365, group notebooks, or SharePoint site-hosted team notebooks on Microsoft 365. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(GetNotebookFromWebUrlPostRequestB return await RequestAdapter.SendAsync(requestInfo, CopyNotebookModel.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the properties and relationships of a notebook object by using its URL path. The location can be user notebooks on Microsoft 365, group notebooks, or SharePoint site-hosted team notebooks on Microsoft 365. + /// Retrieve the properties and relationships of a notebook object by using its URL path. The location can be user notebooks on Microsoft 365, group notebooks, or SharePoint site-hosted team notebooks on Microsoft 365. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs new file mode 100644 index 00000000000..d6ec7d30a3a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Sites.Item.Onenote.Notebooks.GetRecentNotebooksWithIncludePersonalNotebooks { + public class GetRecentNotebooksWithIncludePersonalNotebooksGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetRecentNotebooksWithIncludePersonalNotebooksGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetRecentNotebooksWithIncludePersonalNotebooksGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(RecentNotebook.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs index 076140299b4..334e08d5b16 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs @@ -35,6 +35,26 @@ public GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder(string rawUr /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetRecentNotebooksWithIncludePersonalNotebooksGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetRecentNotebooksWithIncludePersonalNotebooksGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getRecentNotebooks + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetRecentNotebooksWithIncludePersonalNotebooksGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs index 4a8065c4369..b682e26475d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Sites.Item.Onenote.Notebooks.GetRecentNotebooksWithIncludePersonalNotebooks { - public class GetRecentNotebooksWithIncludePersonalNotebooksResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getRecentNotebooksWithIncludePersonalNotebooksGetResponse instead.")] + public class GetRecentNotebooksWithIncludePersonalNotebooksResponse : GetRecentNotebooksWithIncludePersonalNotebooksGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetRecentNotebooksWithIncludePersonalNotebooksResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(RecentNotebook.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs index a8b53c3cb23..5aabe93c622 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyNotebookRequestBuilder(Dictionary pathParameters, IRe public CopyNotebookRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/copyNotebook", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyNotebookPostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs index aa92be40a1d..eafd6d405e5 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs @@ -63,7 +63,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a notebook object. + /// Retrieve the properties and relationships of a notebook object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -128,7 +128,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a notebook object. + /// Retrieve the properties and relationships of a notebook object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -205,7 +205,7 @@ public NotebookItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a notebook object. + /// Retrieve the properties and relationships of a notebook object. This API is supported in the following national cloud deployments. /// public class NotebookItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs index 5e0de193c16..85a44b83a42 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionGroupsRequestBuilder(Dictionary pathParameters, IR public SectionGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sectionGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of section groups from the specified section group. + /// Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, SectionGroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of section groups from the specified section group. + /// Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public SectionGroupsRequestBuilder WithUrl(string rawUrl) { return new SectionGroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of section groups from the specified section group. + /// Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. /// public class SectionGroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index 725bd3cc054..176ae2c5dbf 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToNotebookRequestBuilder(Dictionary pathParameters, I public CopyToNotebookRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToNotebook", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToNotebookPostRequestBody body return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index 5e6c13b43c7..f45b9da8a2e 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionGroupRequestBuilder(Dictionary pathParameter public CopyToSectionGroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionGroupPostRequestBody return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 3a92c4b61c9..f2e36a60cdc 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionRequestBuilder(Dictionary pathParameters, IR public CopyToSectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", rawUrl) { } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionPostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs index 00f318de43e..cde166560ce 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs @@ -42,7 +42,7 @@ public PagesRequestBuilder(Dictionary pathParameters, IRequestAd public PagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenotePageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenotePage body, Action(requestInfo, OnenotePage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PagesRequestBuilder WithUrl(string rawUrl) { return new PagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// public class PagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs index 8bd80360535..7e541f3536d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionsRequestBuilder(Dictionary pathParameters, IReques public SectionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of onenoteSection objects from the specified section group. + /// Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenoteSectionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new onenoteSection in the specified section group. + /// Create a new onenoteSection in the specified section group. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenoteSection body, Action(requestInfo, OnenoteSection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of onenoteSection objects from the specified section group. + /// Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new onenoteSection in the specified section group. + /// Create a new onenoteSection in the specified section group. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SectionsRequestBuilder WithUrl(string rawUrl) { return new SectionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of onenoteSection objects from the specified section group. + /// Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. /// public class SectionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs index aa6b3d249ff..724d566b0fb 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionGroupsRequestBuilder(Dictionary pathParameters, IR public SectionGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of section groups from the specified notebook. + /// Retrieve a list of section groups from the specified notebook. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, SectionGroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new section group in the specified notebook. + /// Create a new section group in the specified notebook. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(SectionGroup body, Action(requestInfo, SectionGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of section groups from the specified notebook. + /// Retrieve a list of section groups from the specified notebook. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new section group in the specified notebook. + /// Create a new section group in the specified notebook. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SectionGroupsRequestBuilder WithUrl(string rawUrl) { return new SectionGroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of section groups from the specified notebook. + /// Retrieve a list of section groups from the specified notebook. This API is supported in the following national cloud deployments. /// public class SectionGroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index 77388da85bf..e1bbeb8ef58 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToNotebookRequestBuilder(Dictionary pathParameters, I public CopyToNotebookRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/copyToNotebook", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToNotebookPostRequestBody body return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index 7745407d0c9..e0512ca9e7f 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionGroupRequestBuilder(Dictionary pathParameter public CopyToSectionGroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionGroupPostRequestBody return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 070940fc8a5..d0909819b69 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionRequestBuilder(Dictionary pathParameters, IR public CopyToSectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", rawUrl) { } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionPostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs index 614461f3804..f51d0daa54d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs @@ -42,7 +42,7 @@ public PagesRequestBuilder(Dictionary pathParameters, IRequestAd public PagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenotePageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenotePage body, Action(requestInfo, OnenotePage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PagesRequestBuilder WithUrl(string rawUrl) { return new PagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// public class PagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs index 97b07048259..5ec6db0dabf 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionsRequestBuilder(Dictionary pathParameters, IReques public SectionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of onenoteSection objects from the specified notebook. + /// Retrieve a list of onenoteSection objects from the specified notebook. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenoteSectionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new onenoteSection in the specified notebook. + /// Create a new onenoteSection in the specified notebook. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenoteSection body, Action(requestInfo, OnenoteSection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of onenoteSection objects from the specified notebook. + /// Retrieve a list of onenoteSection objects from the specified notebook. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new onenoteSection in the specified notebook. + /// Create a new onenoteSection in the specified notebook. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SectionsRequestBuilder WithUrl(string rawUrl) { return new SectionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of onenoteSection objects from the specified notebook. + /// Retrieve a list of onenoteSection objects from the specified notebook. This API is supported in the following national cloud deployments. /// public class SectionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs index 3d35a0cc350..0a92d799865 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs @@ -48,7 +48,7 @@ public NotebooksRequestBuilder(Dictionary pathParameters, IReque public NotebooksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/notebooks{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of notebook objects. + /// Retrieve a list of notebook objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -76,7 +76,7 @@ public GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder GetRecentNot return new GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder(PathParameters, RequestAdapter, includePersonalNotebooks); } /// - /// Create a new OneNote notebook. + /// Create a new OneNote notebook. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -98,7 +98,7 @@ public async Task PostAsync(Notebook body, Action(requestInfo, Notebook.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of notebook objects. + /// Retrieve a list of notebook objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -124,7 +124,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new OneNote notebook. + /// Create a new OneNote notebook. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -159,7 +159,7 @@ public NotebooksRequestBuilder WithUrl(string rawUrl) { return new NotebooksRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of notebook objects. + /// Retrieve a list of notebook objects. This API is supported in the following national cloud deployments. /// public class NotebooksRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs index 8e39146098c..20945fc4fd5 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public OnenoteOperationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. /// public class OnenoteOperationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Operations/OperationsRequestBuilder.cs index 7c2f0c5023c..082d1abcce8 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Operations/OperationsRequestBuilder.cs @@ -42,7 +42,7 @@ public OperationsRequestBuilder(Dictionary pathParameters, IRequ public OperationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/operations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(OnenoteOperation body, Action(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public OperationsRequestBuilder WithUrl(string rawUrl) { return new OperationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. /// public class OperationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 136f1eb4ba7..1a07568b1ad 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionRequestBuilder(Dictionary pathParameters, IR public CopyToSectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/pages/{onenotePage%2Did}/copyToSection", rawUrl) { } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionPostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs index 96ab81709e9..01f39d62b1f 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -59,7 +59,7 @@ public OnenotePageItemRequestBuilder(Dictionary pathParameters, public OnenotePageItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/pages/{onenotePage%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a OneNote page. + /// Delete a OneNote page. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -79,7 +79,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. + /// Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -120,7 +120,7 @@ public async Task PatchAsync(OnenotePage body, Action(requestInfo, OnenotePage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a OneNote page. + /// Delete a OneNote page. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. + /// Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -221,7 +221,7 @@ public OnenotePageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. + /// Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. This API is supported in the following national cloud deployments. /// public class OnenotePageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/PagesRequestBuilder.cs index 1f285e190b8..db0713a51a0 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/PagesRequestBuilder.cs @@ -42,7 +42,7 @@ public PagesRequestBuilder(Dictionary pathParameters, IRequestAd public PagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/pages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of page objects. + /// Retrieve a list of page objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenotePageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new OneNote page in the default section of the default notebook. To create a page in a different section in the default notebook, you can use the sectionName query parameter. Example: ../onenote/pages?sectionName=My%20section The POST /onenote/pages operation is used only to create pages in the current user's default notebook. If you're targeting other notebooks, you can create pages in a specified section. + /// Create a new OneNote page in the default section of the default notebook. To create a page in a different section in the default notebook, you can use the sectionName query parameter. Example: ../onenote/pages?sectionName=My%20section The POST /onenote/pages operation is used only to create pages in the current user's default notebook. If you're targeting other notebooks, you can create pages in a specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenotePage body, Action(requestInfo, OnenotePage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of page objects. + /// Retrieve a list of page objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new OneNote page in the default section of the default notebook. To create a page in a different section in the default notebook, you can use the sectionName query parameter. Example: ../onenote/pages?sectionName=My%20section The POST /onenote/pages operation is used only to create pages in the current user's default notebook. If you're targeting other notebooks, you can create pages in a specified section. + /// Create a new OneNote page in the default section of the default notebook. To create a page in a different section in the default notebook, you can use the sectionName query parameter. Example: ../onenote/pages?sectionName=My%20section The POST /onenote/pages operation is used only to create pages in the current user's default notebook. If you're targeting other notebooks, you can create pages in a specified section. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PagesRequestBuilder WithUrl(string rawUrl) { return new PagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of page objects. + /// Retrieve a list of page objects. This API is supported in the following national cloud deployments. /// public class PagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs index 6f120472dbd..adeb534d7e5 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + /// The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -117,7 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + /// The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -194,7 +194,7 @@ public OnenoteResourceItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + /// The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. /// public class OnenoteResourceItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Resources/ResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Resources/ResourcesRequestBuilder.cs index 5b5039dd099..338059a9c8c 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Resources/ResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Resources/ResourcesRequestBuilder.cs @@ -42,7 +42,7 @@ public ResourcesRequestBuilder(Dictionary pathParameters, IReque public ResourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/resources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + /// The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(OnenoteResource body, Action(requestInfo, OnenoteResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + /// The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public ResourcesRequestBuilder WithUrl(string rawUrl) { return new ResourcesRequestBuilder(rawUrl, RequestAdapter); } /// - /// The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + /// The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. /// public class ResourcesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs index 3cb845cb638..18ad170a5d6 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs @@ -68,7 +68,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a sectionGroup object. + /// Retrieve the properties and relationships of a sectionGroup object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -133,7 +133,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a sectionGroup object. + /// Retrieve the properties and relationships of a sectionGroup object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -210,7 +210,7 @@ public SectionGroupItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a sectionGroup object. + /// Retrieve the properties and relationships of a sectionGroup object. This API is supported in the following national cloud deployments. /// public class SectionGroupItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs index 007f66dbe61..e28c0b8d420 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionGroupsRequestBuilder(Dictionary pathParameters, IR public SectionGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sectionGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of section groups from the specified section group. + /// Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, SectionGroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of section groups from the specified section group. + /// Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public SectionGroupsRequestBuilder WithUrl(string rawUrl) { return new SectionGroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of section groups from the specified section group. + /// Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. /// public class SectionGroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index 8a7f5f9eb97..f6a70a22b2a 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToNotebookRequestBuilder(Dictionary pathParameters, I public CopyToNotebookRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToNotebook", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToNotebookPostRequestBody body return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index 967ecb125ee..2cce091f9fe 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionGroupRequestBuilder(Dictionary pathParameter public CopyToSectionGroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionGroupPostRequestBody return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 07cfeb533a4..eec4d404fd4 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionRequestBuilder(Dictionary pathParameters, IR public CopyToSectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", rawUrl) { } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionPostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs index 71f698246dd..09b012fba6e 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs @@ -42,7 +42,7 @@ public PagesRequestBuilder(Dictionary pathParameters, IRequestAd public PagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenotePageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenotePage body, Action(requestInfo, OnenotePage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PagesRequestBuilder WithUrl(string rawUrl) { return new PagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// public class PagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs index 36ab39e1276..8f9f70a9c5d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionsRequestBuilder(Dictionary pathParameters, IReques public SectionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of onenoteSection objects from the specified section group. + /// Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenoteSectionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new onenoteSection in the specified section group. + /// Create a new onenoteSection in the specified section group. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenoteSection body, Action(requestInfo, OnenoteSection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of onenoteSection objects from the specified section group. + /// Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new onenoteSection in the specified section group. + /// Create a new onenoteSection in the specified section group. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SectionsRequestBuilder WithUrl(string rawUrl) { return new SectionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of onenoteSection objects from the specified section group. + /// Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. /// public class SectionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs index c9edba42e5f..122e039f4bb 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionGroupsRequestBuilder(Dictionary pathParameters, IR public SectionGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/sectionGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of sectionGroup objects. + /// Retrieve a list of sectionGroup objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(SectionGroup body, Action(requestInfo, SectionGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of sectionGroup objects. + /// Retrieve a list of sectionGroup objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SectionGroupsRequestBuilder WithUrl(string rawUrl) { return new SectionGroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of sectionGroup objects. + /// Retrieve a list of sectionGroup objects. This API is supported in the following national cloud deployments. /// public class SectionGroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index b12c52fdaea..1ec1572dbb9 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToNotebookRequestBuilder(Dictionary pathParameters, I public CopyToNotebookRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/copyToNotebook", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToNotebookPostRequestBody body return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index 42ad20f787a..efd885e8709 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionGroupRequestBuilder(Dictionary pathParameter public CopyToSectionGroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/copyToSectionGroup", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionGroupPostRequestBody return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs index ffaee6c8f05..d27a18d8f56 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs @@ -73,7 +73,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a onenoteSection object. + /// Retrieve the properties and relationships of a onenoteSection object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -138,7 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a onenoteSection object. + /// Retrieve the properties and relationships of a onenoteSection object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -215,7 +215,7 @@ public OnenoteSectionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a onenoteSection object. + /// Retrieve the properties and relationships of a onenoteSection object. This API is supported in the following national cloud deployments. /// public class OnenoteSectionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 4801746ebbe..a7acfec92a6 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionRequestBuilder(Dictionary pathParameters, IR public CopyToSectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", rawUrl) { } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionPostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs index aec63dbe795..705cad54b6e 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs @@ -42,7 +42,7 @@ public PagesRequestBuilder(Dictionary pathParameters, IRequestAd public PagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/pages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenotePageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenotePage body, Action(requestInfo, OnenotePage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PagesRequestBuilder WithUrl(string rawUrl) { return new PagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// public class PagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/SectionsRequestBuilder.cs index f3b48360771..eb1890c5054 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/SectionsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionsRequestBuilder(Dictionary pathParameters, IReques public SectionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/onenote/sections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of onenoteSection objects. + /// Retrieve a list of onenoteSection objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(OnenoteSection body, Action(requestInfo, OnenoteSection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of onenoteSection objects. + /// Retrieve a list of onenoteSection objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SectionsRequestBuilder WithUrl(string rawUrl) { return new SectionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of onenoteSection objects. + /// Retrieve a list of onenoteSection objects. This API is supported in the following national cloud deployments. /// public class SectionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs index 2d116c4375b..234e7ae26eb 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get the status of a rich long-running operation on a site or a list. + /// Get the status of a rich long-running operation on a site or a list. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the status of a rich long-running operation on a site or a list. + /// Get the status of a rich long-running operation on a site or a list. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public RichLongRunningOperationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the status of a rich long-running operation on a site or a list. + /// Get the status of a rich long-running operation on a site or a list. This API is supported in the following national cloud deployments. /// public class RichLongRunningOperationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Operations/OperationsRequestBuilder.cs index f8f4178565c..252dbff7c9d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Operations/OperationsRequestBuilder.cs @@ -42,7 +42,7 @@ public OperationsRequestBuilder(Dictionary pathParameters, IRequ public OperationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/operations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of rich long-running operations associated with a site. + /// Get a list of rich long-running operations associated with a site. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(RichLongRunningOperation b return await RequestAdapter.SendAsync(requestInfo, RichLongRunningOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of rich long-running operations associated with a site. + /// Get a list of rich long-running operations associated with a site. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public OperationsRequestBuilder WithUrl(string rawUrl) { return new OperationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of rich long-running operations associated with a site. + /// Get a list of rich long-running operations associated with a site. This API is supported in the following national cloud deployments. /// public class OperationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Item/Grant/GrantPostResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Item/Grant/GrantPostResponse.cs new file mode 100644 index 00000000000..b3389380602 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Item/Grant/GrantPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Sites.Item.Permissions.Item.Grant { + public class GrantPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GrantPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GrantPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Item/Grant/GrantRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Item/Grant/GrantRequestBuilder.cs index 2e8dbd48330..8d5a77d26c5 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Item/Grant/GrantRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Item/Grant/GrantRequestBuilder.cs @@ -28,13 +28,36 @@ public GrantRequestBuilder(Dictionary pathParameters, IRequestAd public GrantRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/permissions/{permission%2Did}/grant", rawUrl) { } /// - /// Grant users access to a link represented by a [permission][]. + /// Grant users access to a link represented by a permission][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGrantPostResponseAsync(GrantPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGrantPostResponseAsync(GrantPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GrantPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Grant users access to a link represented by a permission][]. This API is supported in the following [national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGrantPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GrantPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GrantPostRequestBody body, Action(requestInfo, GrantResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Grant users access to a link represented by a [permission][]. + /// Grant users access to a link represented by a permission][]. This API is supported in the following [national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Item/Grant/GrantResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Item/Grant/GrantResponse.cs index e1fb7601e05..d651d00c5b8 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Item/Grant/GrantResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Item/Grant/GrantResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Sites.Item.Permissions.Item.Grant { - public class GrantResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use grantPostResponse instead.")] + public class GrantResponse : GrantPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GrantResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Item/PermissionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Item/PermissionItemRequestBuilder.cs index 9bdfcf5d197..2e250babf31 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Item/PermissionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Item/PermissionItemRequestBuilder.cs @@ -34,7 +34,7 @@ public PermissionItemRequestBuilder(Dictionary pathParameters, I public PermissionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/permissions/{permission%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a permission object on a site. + /// Delete a permission object on a site. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a permission object on a site. + /// Retrieve the properties and relationships of a permission object on a site. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update an application permission object on a site. + /// Update an application permission object on a site. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a permission object on a site. + /// Delete a permission object on a site. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a permission object on a site. + /// Retrieve the properties and relationships of a permission object on a site. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update an application permission object on a site. + /// Update an application permission object on a site. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public PermissionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a permission object on a site. + /// Retrieve the properties and relationships of a permission object on a site. This API is supported in the following national cloud deployments. /// public class PermissionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Permissions/PermissionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Permissions/PermissionsRequestBuilder.cs index 4d05a5ae8c1..4052e121991 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Permissions/PermissionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Permissions/PermissionsRequestBuilder.cs @@ -42,7 +42,7 @@ public PermissionsRequestBuilder(Dictionary pathParameters, IReq public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/permissions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the permission resources from the permissions navigation property on a site. + /// Get the permission resources from the permissions navigation property on a site. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, PermissionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new permission object on a site. + /// Create a new permission object on a site. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the permission resources from the permissions navigation property on a site. + /// Get the permission resources from the permissions navigation property on a site. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new permission object on a site. + /// Create a new permission object on a site. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PermissionsRequestBuilder WithUrl(string rawUrl) { return new PermissionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the permission resources from the permissions navigation property on a site. + /// Get the permission resources from the permissions navigation property on a site. This API is supported in the following national cloud deployments. /// public class PermissionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Sites/SitesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Sites/SitesRequestBuilder.cs index c4f9e26b717..c79540ea560 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Sites/SitesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Sites/SitesRequestBuilder.cs @@ -42,7 +42,7 @@ public SitesRequestBuilder(Dictionary pathParameters, IRequestAd public SitesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/sites{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a collection of subsites defined for a [site][]. + /// Get a collection of subsites defined for a site][]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, SiteCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a collection of subsites defined for a [site][]. + /// Get a collection of subsites defined for a site][]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public SitesRequestBuilder WithUrl(string rawUrl) { return new SitesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a collection of subsites defined for a [site][]. + /// Get a collection of subsites defined for a site][]. This API is supported in the following [national cloud deployments. /// public class SitesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/GroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/GroupsRequestBuilder.cs index 2cbe511a503..20d41324d35 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/GroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/GroupsRequestBuilder.cs @@ -42,7 +42,7 @@ public GroupsRequestBuilder(Dictionary pathParameters, IRequestA public GroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStore/groups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of group objects in a term store. + /// Get a list of group objects in a term store. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, GroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new group object in a term store. + /// Create a new group object in a term store. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.TermStore.Group.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of group objects in a term store. + /// Get a list of group objects in a term store. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new group object in a term store. + /// Create a new group object in a term store. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public GroupsRequestBuilder WithUrl(string rawUrl) { return new GroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of group objects in a term store. + /// Get a list of group objects in a term store. This API is supported in the following national cloud deployments. /// public class GroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/GroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/GroupItemRequestBuilder.cs index 9bfd5065dd5..b1a26aa271f 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/GroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/GroupItemRequestBuilder.cs @@ -34,7 +34,7 @@ public GroupItemRequestBuilder(Dictionary pathParameters, IReque public GroupItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStore/groups/{group%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a group object in a term [store]. + /// Delete a group object in a term store]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a term store group object. + /// Read the properties and relationships of a term store group object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -95,7 +95,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.TermStore.Group.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a group object in a term [store]. + /// Delete a group object in a term store]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -119,7 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a term store group object. + /// Read the properties and relationships of a term store group object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -196,7 +196,7 @@ public GroupItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a term store group object. + /// Read the properties and relationships of a term store group object. This API is supported in the following national cloud deployments. /// public class GroupItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs index 7e6cb36c6d0..46c4f2be5d3 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs @@ -42,7 +42,7 @@ public ChildrenRequestBuilder(Dictionary pathParameters, IReques public ChildrenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStore/groups/{group%2Did}/sets/{set%2Did}/children{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TermCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new term object. + /// Create a new term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new term object. + /// Create a new term object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ChildrenRequestBuilder WithUrl(string rawUrl) { return new ChildrenRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// public class ChildrenRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs index c72e566d25d..fc0a695754a 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs @@ -42,7 +42,7 @@ public RelationsRequestBuilder(Dictionary pathParameters, IReque public RelationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStore/groups/{group%2Did}/sets/{set%2Did}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(Relation body, Action(requestInfo, Relation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public RelationsRequestBuilder WithUrl(string rawUrl) { return new RelationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// public class RelationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs index 1f74dbd4fd7..3f4b47c3b23 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs @@ -44,7 +44,7 @@ public TermItemRequestBuilder(Dictionary pathParameters, IReques public TermItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStore/groups/{group%2Did}/sets/{set%2Did}/terms/{term%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a term object. + /// Delete a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -64,7 +64,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a term object. + /// Update the properties of a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -106,7 +106,7 @@ public async Task PatchAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a term object. + /// Delete a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -156,7 +156,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a term object. + /// Update the properties of a term object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -207,7 +207,7 @@ public TermItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// public class TermItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs index cf925507744..8d758048f7d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs @@ -42,7 +42,7 @@ public TermsRequestBuilder(Dictionary pathParameters, IRequestAd public TermsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStore/groups/{group%2Did}/sets/{set%2Did}/terms{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public TermsRequestBuilder WithUrl(string rawUrl) { return new TermsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// public class TermsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/SetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/SetsRequestBuilder.cs index 399e984d3c7..06dbfacab9b 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/SetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/SetsRequestBuilder.cs @@ -42,7 +42,7 @@ public SetsRequestBuilder(Dictionary pathParameters, IRequestAda public SetsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStore/groups/{group%2Did}/sets{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the set objects and their properties. + /// Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.TermStore.Set.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the set objects and their properties. + /// Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SetsRequestBuilder WithUrl(string rawUrl) { return new SetsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the set objects and their properties. + /// Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. /// public class SetsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/ChildrenRequestBuilder.cs index be38ab39879..1ee761888bf 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/ChildrenRequestBuilder.cs @@ -42,7 +42,7 @@ public ChildrenRequestBuilder(Dictionary pathParameters, IReques public ChildrenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStore/sets/{set%2Did}/children{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TermCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new term object. + /// Create a new term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new term object. + /// Create a new term object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ChildrenRequestBuilder WithUrl(string rawUrl) { return new ChildrenRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// public class ChildrenRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs index a52ddffa8f8..db666767429 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs @@ -42,7 +42,7 @@ public ChildrenRequestBuilder(Dictionary pathParameters, IReques public ChildrenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TermCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new term object. + /// Create a new term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new term object. + /// Create a new term object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ChildrenRequestBuilder WithUrl(string rawUrl) { return new ChildrenRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// public class ChildrenRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs index ea746653307..f7021cb5909 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs @@ -42,7 +42,7 @@ public RelationsRequestBuilder(Dictionary pathParameters, IReque public RelationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(Relation body, Action(requestInfo, Relation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public RelationsRequestBuilder WithUrl(string rawUrl) { return new RelationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// public class RelationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs index 2523419761f..865e638a9dd 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs @@ -44,7 +44,7 @@ public TermItemRequestBuilder(Dictionary pathParameters, IReques public TermItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a term object. + /// Delete a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -64,7 +64,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a term object. + /// Update the properties of a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -106,7 +106,7 @@ public async Task PatchAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a term object. + /// Delete a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -156,7 +156,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a term object. + /// Update the properties of a term object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -207,7 +207,7 @@ public TermItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// public class TermItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs index 2be3bbdec8a..aee3a2cfa42 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs @@ -42,7 +42,7 @@ public TermsRequestBuilder(Dictionary pathParameters, IRequestAd public TermsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public TermsRequestBuilder WithUrl(string rawUrl) { return new TermsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// public class TermsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs index cbc467de662..1589a32103c 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs @@ -42,7 +42,7 @@ public SetsRequestBuilder(Dictionary pathParameters, IRequestAda public SetsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the set objects and their properties. + /// Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.TermStore.Set.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the set objects and their properties. + /// Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SetsRequestBuilder WithUrl(string rawUrl) { return new SetsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the set objects and their properties. + /// Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. /// public class SetsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Relations/RelationsRequestBuilder.cs index 60e12697d52..51a7c426446 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Relations/RelationsRequestBuilder.cs @@ -42,7 +42,7 @@ public RelationsRequestBuilder(Dictionary pathParameters, IReque public RelationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStore/sets/{set%2Did}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(Relation body, Action(requestInfo, Relation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public RelationsRequestBuilder WithUrl(string rawUrl) { return new RelationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// public class RelationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/SetItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/SetItemRequestBuilder.cs index 65d26963302..86c9ac17539 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/SetItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/SetItemRequestBuilder.cs @@ -49,7 +49,7 @@ public SetItemRequestBuilder(Dictionary pathParameters, IRequest public SetItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStore/sets/{set%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a set object. + /// Delete a set object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a set object. + /// Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.TermStore.Set.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a set object. + /// Update the properties of a set object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -111,7 +111,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.TermStore.Set.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a set object. + /// Delete a set object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -135,7 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a set object. + /// Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -161,7 +161,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a set object. + /// Update the properties of a set object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -212,7 +212,7 @@ public SetItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a set object. + /// Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. /// public class SetItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/TermItemRequestBuilder.cs index 48c1a395082..c83f4d5380c 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/TermItemRequestBuilder.cs @@ -44,7 +44,7 @@ public TermItemRequestBuilder(Dictionary pathParameters, IReques public TermItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a term object. + /// Delete a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -64,7 +64,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a term object. + /// Update the properties of a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -106,7 +106,7 @@ public async Task PatchAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a term object. + /// Delete a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -156,7 +156,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a term object. + /// Update the properties of a term object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -207,7 +207,7 @@ public TermItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// public class TermItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/TermsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/TermsRequestBuilder.cs index 341f7876356..cdf70b23b99 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/TermsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/TermsRequestBuilder.cs @@ -42,7 +42,7 @@ public TermsRequestBuilder(Dictionary pathParameters, IRequestAd public TermsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public TermsRequestBuilder WithUrl(string rawUrl) { return new TermsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// public class TermsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/SetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/SetsRequestBuilder.cs index babf14b2be0..e3364e72be7 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/SetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/SetsRequestBuilder.cs @@ -42,7 +42,7 @@ public SetsRequestBuilder(Dictionary pathParameters, IRequestAda public SetsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStore/sets{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of a set object. + /// Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, SetCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new set object. + /// Create a new set object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.TermStore.Set.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of a set object. + /// Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new set object. + /// Create a new set object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public SetsRequestBuilder WithUrl(string rawUrl) { return new SetsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of a set object. + /// Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. /// public class SetsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/TermStoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/TermStoreRequestBuilder.cs index 430e7fef268..9607a6399c2 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/TermStoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/TermStoreRequestBuilder.cs @@ -58,7 +58,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a store object. + /// Read the properties and relationships of a store object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -78,7 +78,7 @@ public async Task GetAsync(Action(requestInfo, Store.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a store object. + /// Update the properties of a store object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -124,7 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a store object. + /// Read the properties and relationships of a store object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -150,7 +150,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a store object. + /// Update the properties of a store object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -201,7 +201,7 @@ public TermStoreRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a store object. + /// Read the properties and relationships of a store object. This API is supported in the following national cloud deployments. /// public class TermStoreRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/GroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/GroupsRequestBuilder.cs index 808af9ee9c7..b84c89ce788 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/GroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/GroupsRequestBuilder.cs @@ -42,7 +42,7 @@ public GroupsRequestBuilder(Dictionary pathParameters, IRequestA public GroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStores/{store%2Did}/groups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of group objects in a term store. + /// Get a list of group objects in a term store. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, GroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new group object in a term store. + /// Create a new group object in a term store. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.TermStore.Group.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of group objects in a term store. + /// Get a list of group objects in a term store. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new group object in a term store. + /// Create a new group object in a term store. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public GroupsRequestBuilder WithUrl(string rawUrl) { return new GroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of group objects in a term store. + /// Get a list of group objects in a term store. This API is supported in the following national cloud deployments. /// public class GroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/GroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/GroupItemRequestBuilder.cs index 2495d3f0142..1c422885fe9 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/GroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/GroupItemRequestBuilder.cs @@ -34,7 +34,7 @@ public GroupItemRequestBuilder(Dictionary pathParameters, IReque public GroupItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a group object in a term [store]. + /// Delete a group object in a term store]. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a term store group object. + /// Read the properties and relationships of a term store group object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -95,7 +95,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.TermStore.Group.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a group object in a term [store]. + /// Delete a group object in a term store]. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -119,7 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a term store group object. + /// Read the properties and relationships of a term store group object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -196,7 +196,7 @@ public GroupItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a term store group object. + /// Read the properties and relationships of a term store group object. This API is supported in the following national cloud deployments. /// public class GroupItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs index a4d60dede0f..e122bab62a6 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs @@ -42,7 +42,7 @@ public ChildrenRequestBuilder(Dictionary pathParameters, IReques public ChildrenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did}/sets/{set%2Did}/children{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TermCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new term object. + /// Create a new term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new term object. + /// Create a new term object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ChildrenRequestBuilder WithUrl(string rawUrl) { return new ChildrenRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// public class ChildrenRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs index a134448a61d..a9b9a346eaa 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs @@ -42,7 +42,7 @@ public RelationsRequestBuilder(Dictionary pathParameters, IReque public RelationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did}/sets/{set%2Did}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(Relation body, Action(requestInfo, Relation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public RelationsRequestBuilder WithUrl(string rawUrl) { return new RelationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// public class RelationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs index 7063d1feb42..aac0c35112e 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs @@ -44,7 +44,7 @@ public TermItemRequestBuilder(Dictionary pathParameters, IReques public TermItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did}/sets/{set%2Did}/terms/{term%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a term object. + /// Delete a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -64,7 +64,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a term object. + /// Update the properties of a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -106,7 +106,7 @@ public async Task PatchAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a term object. + /// Delete a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -156,7 +156,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a term object. + /// Update the properties of a term object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -207,7 +207,7 @@ public TermItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// public class TermItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs index 175ba8e0a5e..140050c1132 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs @@ -42,7 +42,7 @@ public TermsRequestBuilder(Dictionary pathParameters, IRequestAd public TermsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did}/sets/{set%2Did}/terms{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public TermsRequestBuilder WithUrl(string rawUrl) { return new TermsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// public class TermsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/SetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/SetsRequestBuilder.cs index d2e1923e39e..7016190ead9 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/SetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/SetsRequestBuilder.cs @@ -42,7 +42,7 @@ public SetsRequestBuilder(Dictionary pathParameters, IRequestAda public SetsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did}/sets{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the set objects and their properties. + /// Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.TermStore.Set.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the set objects and their properties. + /// Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SetsRequestBuilder WithUrl(string rawUrl) { return new SetsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the set objects and their properties. + /// Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. /// public class SetsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/ChildrenRequestBuilder.cs index abcb9c4ab13..91e45d919c6 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/ChildrenRequestBuilder.cs @@ -42,7 +42,7 @@ public ChildrenRequestBuilder(Dictionary pathParameters, IReques public ChildrenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TermCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new term object. + /// Create a new term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new term object. + /// Create a new term object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ChildrenRequestBuilder WithUrl(string rawUrl) { return new ChildrenRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// public class ChildrenRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs index 9b53394e851..8bd5512588e 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs @@ -42,7 +42,7 @@ public ChildrenRequestBuilder(Dictionary pathParameters, IReques public ChildrenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TermCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new term object. + /// Create a new term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new term object. + /// Create a new term object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ChildrenRequestBuilder WithUrl(string rawUrl) { return new ChildrenRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the first level children of a [set] or [term] resource using the children navigation property. + /// Get the first level children of a set] or [term] resource using the children navigation property. This API is supported in the following [national cloud deployments. /// public class ChildrenRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs index b428da7364f..35a8bd165f7 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs @@ -42,7 +42,7 @@ public RelationsRequestBuilder(Dictionary pathParameters, IReque public RelationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(Relation body, Action(requestInfo, Relation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public RelationsRequestBuilder WithUrl(string rawUrl) { return new RelationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// public class RelationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs index 03e81067af8..d00fddfa61e 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs @@ -44,7 +44,7 @@ public TermItemRequestBuilder(Dictionary pathParameters, IReques public TermItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a term object. + /// Delete a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -64,7 +64,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a term object. + /// Update the properties of a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -106,7 +106,7 @@ public async Task PatchAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a term object. + /// Delete a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -156,7 +156,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a term object. + /// Update the properties of a term object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -207,7 +207,7 @@ public TermItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// public class TermItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs index 8df6341801c..25d3cf98946 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs @@ -42,7 +42,7 @@ public TermsRequestBuilder(Dictionary pathParameters, IRequestAd public TermsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public TermsRequestBuilder WithUrl(string rawUrl) { return new TermsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// public class TermsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs index 706e32358e5..aa5f2602eb0 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs @@ -42,7 +42,7 @@ public SetsRequestBuilder(Dictionary pathParameters, IRequestAda public SetsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the set objects and their properties. + /// Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.TermStore.Set.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the set objects and their properties. + /// Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SetsRequestBuilder WithUrl(string rawUrl) { return new SetsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the set objects and their properties. + /// Get a list of the set objects and their properties. This API is supported in the following national cloud deployments. /// public class SetsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/RelationsRequestBuilder.cs index d827c24bcb3..54c9c52787a 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/RelationsRequestBuilder.cs @@ -42,7 +42,7 @@ public RelationsRequestBuilder(Dictionary pathParameters, IReque public RelationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/relations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(Relation body, Action(requestInfo, Relation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public RelationsRequestBuilder WithUrl(string rawUrl) { return new RelationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the different relation of a [term] or [set] from the relations navigation property. + /// Get the different relation of a term] or [set] from the relations navigation property. This API is supported in the following [national cloud deployments. /// public class RelationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/SetItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/SetItemRequestBuilder.cs index b42fc99e2f8..2e426aeae08 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/SetItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/SetItemRequestBuilder.cs @@ -49,7 +49,7 @@ public SetItemRequestBuilder(Dictionary pathParameters, IRequest public SetItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a set object. + /// Delete a set object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a set object. + /// Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.TermStore.Set.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a set object. + /// Update the properties of a set object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -111,7 +111,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.TermStore.Set.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a set object. + /// Delete a set object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -135,7 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a set object. + /// Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -161,7 +161,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a set object. + /// Update the properties of a set object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -212,7 +212,7 @@ public SetItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a set object. + /// Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. /// public class SetItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs index 48239e5a0ee..47190a50369 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs @@ -44,7 +44,7 @@ public TermItemRequestBuilder(Dictionary pathParameters, IReques public TermItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a term object. + /// Delete a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -64,7 +64,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a term object. + /// Update the properties of a term object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -106,7 +106,7 @@ public async Task PatchAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a term object. + /// Delete a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -156,7 +156,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a term object. + /// Update the properties of a term object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -207,7 +207,7 @@ public TermItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// public class TermItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/TermsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/TermsRequestBuilder.cs index bb9121cf6ed..571352a6d72 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/TermsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/TermsRequestBuilder.cs @@ -42,7 +42,7 @@ public TermsRequestBuilder(Dictionary pathParameters, IRequestAd public TermsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(Term body, Action(requestInfo, Term.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public TermsRequestBuilder WithUrl(string rawUrl) { return new TermsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of a term object. + /// Read the properties and relationships of a term object. This API is supported in the following national cloud deployments. /// public class TermsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/SetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/SetsRequestBuilder.cs index 5b669e25ac6..432c3d59920 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/SetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/SetsRequestBuilder.cs @@ -42,7 +42,7 @@ public SetsRequestBuilder(Dictionary pathParameters, IRequestAda public SetsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/termStores/{store%2Did}/sets{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of a set object. + /// Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, SetCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new set object. + /// Create a new set object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.TermStore.Set.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties and relationships of a set object. + /// Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new set object. + /// Create a new set object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public SetsRequestBuilder WithUrl(string rawUrl) { return new SetsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read the properties and relationships of a set object. + /// Read the properties and relationships of a set object. This API is supported in the following national cloud deployments. /// public class SetsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/Remove/RemovePostResponse.cs b/src/Microsoft.Graph/Generated/Sites/Remove/RemovePostResponse.cs new file mode 100644 index 00000000000..da14dcb2167 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Sites/Remove/RemovePostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Sites.Remove { + public class RemovePostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new RemovePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new RemovePostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Site.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Sites/Remove/RemoveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Remove/RemoveRequestBuilder.cs index 1b48a27dae3..4528f6463f2 100644 --- a/src/Microsoft.Graph/Generated/Sites/Remove/RemoveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Remove/RemoveRequestBuilder.cs @@ -35,6 +35,29 @@ public RemoveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsRemovePostResponseAsync(RemovePostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsRemovePostResponseAsync(RemovePostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, RemovePostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Unfollow a user's site or multiple sites. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsRemovePostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(RemovePostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Sites/Remove/RemoveResponse.cs b/src/Microsoft.Graph/Generated/Sites/Remove/RemoveResponse.cs index ac64c2b721e..8f533dc4561 100644 --- a/src/Microsoft.Graph/Generated/Sites/Remove/RemoveResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Remove/RemoveResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Sites.Remove { - public class RemoveResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use removePostResponse instead.")] + public class RemoveResponse : RemovePostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RemoveResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Site.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Sites/SitesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/SitesRequestBuilder.cs index d470f8ad6e6..e81568a5290 100644 --- a/src/Microsoft.Graph/Generated/Sites/SitesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/SitesRequestBuilder.cs @@ -57,8 +57,8 @@ public SitesRequestBuilder(Dictionary pathParameters, IRequestAd public SitesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Search across a SharePoint tenant for [sites][] that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. - /// Find more info here + /// List all available [sites][] in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a [$search][] query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites][]. For more guidance about building applications that use site discovery for scanning purposes, see [Best practices for discovering files and detecting changes at scale. This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -77,7 +77,7 @@ public async Task GetAsync(Action(requestInfo, SiteCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Search across a SharePoint tenant for [sites][] that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. + /// List all available [sites][] in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a [$search][] query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites][]. For more guidance about building applications that use site discovery for scanning purposes, see [Best practices for discovering files and detecting changes at scale. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public SitesRequestBuilder WithUrl(string rawUrl) { return new SitesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Search across a SharePoint tenant for [sites][] that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. + /// List all available [sites][] in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a [$search][] query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites][]. For more guidance about building applications that use site discovery for scanning purposes, see [Best practices for discovering files and detecting changes at scale. This API is supported in the following national cloud deployments. /// public class SitesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/BookingBusinessesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/BookingBusinessesRequestBuilder.cs index 3db72a4c615..99416f1cf9d 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/BookingBusinessesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/BookingBusinessesRequestBuilder.cs @@ -42,7 +42,7 @@ public BookingBusinessesRequestBuilder(Dictionary pathParameters public BookingBusinessesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/bookingBusinesses{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a collection of bookingBusiness objects that has been created for the tenant. This operation returns only the id and displayName of each Microsoft Bookings business in the collection. For performance considerations, it does not return other properties. You can get the other properties of a Bookings business by specifying its id in a GET operation. + /// Get a collection of bookingBusiness objects that has been created for the tenant. This operation returns only the id and displayName of each Microsoft Bookings business in the collection. For performance considerations, it does not return other properties. You can get the other properties of a Bookings business by specifying its id in a GET operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, BookingBusinessCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new Microsoft Bookings business in a tenant. This is the first step in setting up a Bookings business where you must specify the business display name. You can include other information such as business address, web site address, and scheduling policy, or set that information later by updating the bookingBusiness. + /// Create a new Microsoft Bookings business in a tenant. This is the first step in setting up a Bookings business where you must specify the business display name. You can include other information such as business address, web site address, and scheduling policy, or set that information later by updating the bookingBusiness. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(BookingBusiness body, Action(requestInfo, BookingBusiness.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a collection of bookingBusiness objects that has been created for the tenant. This operation returns only the id and displayName of each Microsoft Bookings business in the collection. For performance considerations, it does not return other properties. You can get the other properties of a Bookings business by specifying its id in a GET operation. + /// Get a collection of bookingBusiness objects that has been created for the tenant. This operation returns only the id and displayName of each Microsoft Bookings business in the collection. For performance considerations, it does not return other properties. You can get the other properties of a Bookings business by specifying its id in a GET operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new Microsoft Bookings business in a tenant. This is the first step in setting up a Bookings business where you must specify the business display name. You can include other information such as business address, web site address, and scheduling policy, or set that information later by updating the bookingBusiness. + /// Create a new Microsoft Bookings business in a tenant. This is the first step in setting up a Bookings business where you must specify the business display name. You can include other information such as business address, web site address, and scheduling policy, or set that information later by updating the bookingBusiness. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public BookingBusinessesRequestBuilder WithUrl(string rawUrl) { return new BookingBusinessesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a collection of bookingBusiness objects that has been created for the tenant. This operation returns only the id and displayName of each Microsoft Bookings business in the collection. For performance considerations, it does not return other properties. You can get the other properties of a Bookings business by specifying its id in a GET operation. + /// Get a collection of bookingBusiness objects that has been created for the tenant. This operation returns only the id and displayName of each Microsoft Bookings business in the collection. For performance considerations, it does not return other properties. You can get the other properties of a Bookings business by specifying its id in a GET operation. This API is supported in the following national cloud deployments. /// public class BookingBusinessesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Appointments/AppointmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Appointments/AppointmentsRequestBuilder.cs index fa443c8641f..94dff63181f 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Appointments/AppointmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Appointments/AppointmentsRequestBuilder.cs @@ -42,7 +42,7 @@ public AppointmentsRequestBuilder(Dictionary pathParameters, IRe public AppointmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/bookingBusinesses/{bookingBusiness%2Did}/appointments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of bookingAppointment objects for the specified bookingBusiness. + /// Get a list of bookingAppointment objects for the specified bookingBusiness. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, BookingAppointmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new bookingAppointment for the specified bookingBusiness. + /// Create a new bookingAppointment for the specified bookingBusiness. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(BookingAppointment body, Action< return await RequestAdapter.SendAsync(requestInfo, BookingAppointment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of bookingAppointment objects for the specified bookingBusiness. + /// Get a list of bookingAppointment objects for the specified bookingBusiness. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new bookingAppointment for the specified bookingBusiness. + /// Create a new bookingAppointment for the specified bookingBusiness. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public AppointmentsRequestBuilder WithUrl(string rawUrl) { return new AppointmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of bookingAppointment objects for the specified bookingBusiness. + /// Get a list of bookingAppointment objects for the specified bookingBusiness. This API is supported in the following national cloud deployments. /// public class AppointmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Appointments/Item/BookingAppointmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Appointments/Item/BookingAppointmentItemRequestBuilder.cs index b701f39abff..bf48929dabe 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Appointments/Item/BookingAppointmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Appointments/Item/BookingAppointmentItemRequestBuilder.cs @@ -34,7 +34,7 @@ public BookingAppointmentItemRequestBuilder(Dictionary pathParam public BookingAppointmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/bookingBusinesses/{bookingBusiness%2Did}/appointments/{bookingAppointment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a bookingAppointment in the specified bookingBusiness. + /// Delete a bookingAppointment in the specified bookingBusiness. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Get the properties and relationships of a bookingAppointment object in the specified bookingBusiness. The startDateTime and endDateTime properties are always returned in UTC. + /// Get the properties and relationships of a bookingAppointment object in the specified bookingBusiness. The startDateTime and endDateTime properties are always returned in UTC. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, BookingAppointment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a bookingAppointment object in the specified bookingBusiness. + /// Update the properties of a bookingAppointment object in the specified bookingBusiness. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(BookingAppointment body, Action return await RequestAdapter.SendAsync(requestInfo, BookingAppointment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a bookingAppointment in the specified bookingBusiness. + /// Delete a bookingAppointment in the specified bookingBusiness. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties and relationships of a bookingAppointment object in the specified bookingBusiness. The startDateTime and endDateTime properties are always returned in UTC. + /// Get the properties and relationships of a bookingAppointment object in the specified bookingBusiness. The startDateTime and endDateTime properties are always returned in UTC. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a bookingAppointment object in the specified bookingBusiness. + /// Update the properties of a bookingAppointment object in the specified bookingBusiness. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public BookingAppointmentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the properties and relationships of a bookingAppointment object in the specified bookingBusiness. The startDateTime and endDateTime properties are always returned in UTC. + /// Get the properties and relationships of a bookingAppointment object in the specified bookingBusiness. The startDateTime and endDateTime properties are always returned in UTC. This API is supported in the following national cloud deployments. /// public class BookingAppointmentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Appointments/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Appointments/Item/Cancel/CancelRequestBuilder.cs index 9dcc1efab71..b7af10908f3 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Appointments/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Appointments/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/bookingBusinesses/{bookingBusiness%2Did}/appointments/{bookingAppointment%2Did}/cancel", rawUrl) { } /// - /// Cancel the specified bookingAppointment in the specified bookingBusiness and send a message to the involved customer and staff members. + /// Cancel the specified bookingAppointment in the specified bookingBusiness and send a message to the involved customer and staff members. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// Cancel the specified bookingAppointment in the specified bookingBusiness and send a message to the involved customer and staff members. + /// Cancel the specified bookingAppointment in the specified bookingBusiness and send a message to the involved customer and staff members. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/BookingBusinessItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/BookingBusinessItemRequestBuilder.cs index d5866f16d19..b840be69ef2 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/BookingBusinessItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/BookingBusinessItemRequestBuilder.cs @@ -74,7 +74,7 @@ public BookingBusinessItemRequestBuilder(Dictionary pathParamete public BookingBusinessItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/bookingBusinesses/{bookingBusiness%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a bookingBusiness object. + /// Delete a bookingBusiness object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -94,7 +94,7 @@ public async Task DeleteAsync(Action - /// Get the properties and relationships of a bookingBusiness object. + /// Get the properties and relationships of a bookingBusiness object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public async Task GetAsync(Action(requestInfo, BookingBusiness.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a bookingBusiness object. + /// Update the properties of a bookingBusiness object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -136,7 +136,7 @@ public async Task PatchAsync(BookingBusiness body, Action(requestInfo, BookingBusiness.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a bookingBusiness object. + /// Delete a bookingBusiness object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -160,7 +160,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties and relationships of a bookingBusiness object. + /// Get the properties and relationships of a bookingBusiness object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -186,7 +186,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a bookingBusiness object. + /// Update the properties of a bookingBusiness object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -237,7 +237,7 @@ public BookingBusinessItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the properties and relationships of a bookingBusiness object. + /// Get the properties and relationships of a bookingBusiness object. This API is supported in the following national cloud deployments. /// public class BookingBusinessItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs index 1c280afa631..42e30e5023f 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/bookingBusinesses/{bookingBusiness%2Did}/calendarView/{bookingAppointment%2Did}/cancel", rawUrl) { } /// - /// Cancel the specified bookingAppointment in the specified bookingBusiness and send a message to the involved customer and staff members. + /// Cancel the specified bookingAppointment in the specified bookingBusiness and send a message to the involved customer and staff members. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// Cancel the specified bookingAppointment in the specified bookingBusiness and send a message to the involved customer and staff members. + /// Cancel the specified bookingAppointment in the specified bookingBusiness and send a message to the involved customer and staff members. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CustomQuestions/CustomQuestionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CustomQuestions/CustomQuestionsRequestBuilder.cs index 9ac186c0726..104b57b6847 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CustomQuestions/CustomQuestionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CustomQuestions/CustomQuestionsRequestBuilder.cs @@ -42,7 +42,7 @@ public CustomQuestionsRequestBuilder(Dictionary pathParameters, public CustomQuestionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/bookingBusinesses/{bookingBusiness%2Did}/customQuestions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the bookingCustomQuestion resources associated with a bookingBusiness. + /// Get the bookingCustomQuestion resources associated with a bookingBusiness. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, BookingCustomQuestionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new bookingCustomQuestion object. + /// Create a new bookingCustomQuestion object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(BookingCustomQuestion body, A return await RequestAdapter.SendAsync(requestInfo, BookingCustomQuestion.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the bookingCustomQuestion resources associated with a bookingBusiness. + /// Get the bookingCustomQuestion resources associated with a bookingBusiness. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new bookingCustomQuestion object. + /// Create a new bookingCustomQuestion object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public CustomQuestionsRequestBuilder WithUrl(string rawUrl) { return new CustomQuestionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the bookingCustomQuestion resources associated with a bookingBusiness. + /// Get the bookingCustomQuestion resources associated with a bookingBusiness. This API is supported in the following national cloud deployments. /// public class CustomQuestionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CustomQuestions/Item/BookingCustomQuestionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CustomQuestions/Item/BookingCustomQuestionItemRequestBuilder.cs index 8c1996f8fd2..2e89a7ae03b 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CustomQuestions/Item/BookingCustomQuestionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CustomQuestions/Item/BookingCustomQuestionItemRequestBuilder.cs @@ -29,7 +29,7 @@ public BookingCustomQuestionItemRequestBuilder(Dictionary pathPa public BookingCustomQuestionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/bookingBusinesses/{bookingBusiness%2Did}/customQuestions/{bookingCustomQuestion%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a bookingCustomQuestion object. + /// Delete a bookingCustomQuestion object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a bookingCustomQuestion object. + /// Read the properties and relationships of a bookingCustomQuestion object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, BookingCustomQuestion.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a bookingCustomQuestion object. + /// Update the properties of a bookingCustomQuestion object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(BookingCustomQuestion body, return await RequestAdapter.SendAsync(requestInfo, BookingCustomQuestion.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a bookingCustomQuestion object. + /// Delete a bookingCustomQuestion object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a bookingCustomQuestion object. + /// Read the properties and relationships of a bookingCustomQuestion object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a bookingCustomQuestion object. + /// Update the properties of a bookingCustomQuestion object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public BookingCustomQuestionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a bookingCustomQuestion object. + /// Read the properties and relationships of a bookingCustomQuestion object. This API is supported in the following national cloud deployments. /// public class BookingCustomQuestionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Customers/CustomersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Customers/CustomersRequestBuilder.cs index 85c56881fda..66d3a376f0c 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Customers/CustomersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Customers/CustomersRequestBuilder.cs @@ -42,7 +42,7 @@ public CustomersRequestBuilder(Dictionary pathParameters, IReque public CustomersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/bookingBusinesses/{bookingBusiness%2Did}/customers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of bookingCustomer objects of a business. + /// Get a list of bookingCustomer objects of a business. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, BookingCustomerBaseCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new bookingCustomer object. + /// Create a new bookingCustomer object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(BookingCustomerBase body, Actio return await RequestAdapter.SendAsync(requestInfo, BookingCustomerBase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of bookingCustomer objects of a business. + /// Get a list of bookingCustomer objects of a business. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new bookingCustomer object. + /// Create a new bookingCustomer object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public CustomersRequestBuilder WithUrl(string rawUrl) { return new CustomersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of bookingCustomer objects of a business. + /// Get a list of bookingCustomer objects of a business. This API is supported in the following national cloud deployments. /// public class CustomersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Customers/Item/BookingCustomerBaseItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Customers/Item/BookingCustomerBaseItemRequestBuilder.cs index 3149e9ee464..7d33a67c354 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Customers/Item/BookingCustomerBaseItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Customers/Item/BookingCustomerBaseItemRequestBuilder.cs @@ -29,7 +29,7 @@ public BookingCustomerBaseItemRequestBuilder(Dictionary pathPara public BookingCustomerBaseItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/bookingBusinesses/{bookingBusiness%2Did}/customers/{bookingCustomerBase%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete the specified bookingCustomer object. + /// Delete the specified bookingCustomer object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get the properties and relationships of a bookingCustomer object. + /// Get the properties and relationships of a bookingCustomer object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, BookingCustomerBase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a bookingCustomer object. + /// Update the properties of a bookingCustomer object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(BookingCustomerBase body, Acti return await RequestAdapter.SendAsync(requestInfo, BookingCustomerBase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete the specified bookingCustomer object. + /// Delete the specified bookingCustomer object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties and relationships of a bookingCustomer object. + /// Get the properties and relationships of a bookingCustomer object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a bookingCustomer object. + /// Update the properties of a bookingCustomer object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public BookingCustomerBaseItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the properties and relationships of a bookingCustomer object. + /// Get the properties and relationships of a bookingCustomer object. This API is supported in the following national cloud deployments. /// public class BookingCustomerBaseItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/GetStaffAvailability/GetStaffAvailabilityPostResponse.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/GetStaffAvailability/GetStaffAvailabilityPostResponse.cs new file mode 100644 index 00000000000..a95fc3864e0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/GetStaffAvailability/GetStaffAvailabilityPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Solutions.BookingBusinesses.Item.GetStaffAvailability { + public class GetStaffAvailabilityPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetStaffAvailabilityPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetStaffAvailabilityPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(StaffAvailabilityItem.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/GetStaffAvailability/GetStaffAvailabilityRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/GetStaffAvailability/GetStaffAvailabilityRequestBuilder.cs index d221329c03b..c80ab5d1dbc 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/GetStaffAvailability/GetStaffAvailabilityRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/GetStaffAvailability/GetStaffAvailabilityRequestBuilder.cs @@ -28,13 +28,36 @@ public GetStaffAvailabilityRequestBuilder(Dictionary pathParamet public GetStaffAvailabilityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/bookingBusinesses/{bookingBusiness%2Did}/getStaffAvailability", rawUrl) { } /// - /// Get the availability information of staff members of a Microsoft Bookings calendar. + /// Get the availability information of staff members of a Microsoft Bookings calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetStaffAvailabilityPostResponseAsync(GetStaffAvailabilityPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetStaffAvailabilityPostResponseAsync(GetStaffAvailabilityPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetStaffAvailabilityPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the availability information of staff members of a Microsoft Bookings calendar. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetStaffAvailabilityPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetStaffAvailabilityPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetStaffAvailabilityPo return await RequestAdapter.SendAsync(requestInfo, GetStaffAvailabilityResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the availability information of staff members of a Microsoft Bookings calendar. + /// Get the availability information of staff members of a Microsoft Bookings calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/GetStaffAvailability/GetStaffAvailabilityResponse.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/GetStaffAvailability/GetStaffAvailabilityResponse.cs index 9d3448d6e93..e665e16436e 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/GetStaffAvailability/GetStaffAvailabilityResponse.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/GetStaffAvailability/GetStaffAvailabilityResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Solutions.BookingBusinesses.Item.GetStaffAvailability { - public class GetStaffAvailabilityResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getStaffAvailabilityPostResponse instead.")] + public class GetStaffAvailabilityResponse : GetStaffAvailabilityPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetStaffAvailabilityResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(StaffAvailabilityItem.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Publish/PublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Publish/PublishRequestBuilder.cs index 88e3ebb242a..f41f8695e6d 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Publish/PublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Publish/PublishRequestBuilder.cs @@ -28,7 +28,7 @@ public PublishRequestBuilder(Dictionary pathParameters, IRequest public PublishRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/bookingBusinesses/{bookingBusiness%2Did}/publish", rawUrl) { } /// - /// Make the scheduling page of a business available to external customers. Set the isPublished property to true, and the publicUrl property to the URL of the scheduling page. + /// Make the scheduling page of a business available to external customers. Set the isPublished property to true, and the publicUrl property to the URL of the scheduling page. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Make the scheduling page of a business available to external customers. Set the isPublished property to true, and the publicUrl property to the URL of the scheduling page. + /// Make the scheduling page of a business available to external customers. Set the isPublished property to true, and the publicUrl property to the URL of the scheduling page. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Services/Item/BookingServiceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Services/Item/BookingServiceItemRequestBuilder.cs index b43df72fd4c..1eb130b0491 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Services/Item/BookingServiceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Services/Item/BookingServiceItemRequestBuilder.cs @@ -29,7 +29,7 @@ public BookingServiceItemRequestBuilder(Dictionary pathParameter public BookingServiceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/bookingBusinesses/{bookingBusiness%2Did}/services/{bookingService%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a bookingService object in the specified bookingBusiness. + /// Delete a bookingService object in the specified bookingBusiness. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get the properties and relationships of a bookingService object in the specified bookingBusiness. + /// Get the properties and relationships of a bookingService object in the specified bookingBusiness. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, BookingService.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a bookingService object in the specified bookingBusiness. The following are some examples you can customize for a service:- Price- Typical length of an appointment- Reminders- Any time buffer to set up before or finish up after the service- Scheduling policy parameters, such as minimum notice to book or cancel, and whether customers can select specific staff members for an appointment. + /// Update the properties of a bookingService object in the specified bookingBusiness. The following are some examples you can customize for a service:- Price- Typical length of an appointment- Reminders- Any time buffer to set up before or finish up after the service- Scheduling policy parameters, such as minimum notice to book or cancel, and whether customers can select specific staff members for an appointment. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(BookingService body, Action(requestInfo, BookingService.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a bookingService object in the specified bookingBusiness. + /// Delete a bookingService object in the specified bookingBusiness. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties and relationships of a bookingService object in the specified bookingBusiness. + /// Get the properties and relationships of a bookingService object in the specified bookingBusiness. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a bookingService object in the specified bookingBusiness. The following are some examples you can customize for a service:- Price- Typical length of an appointment- Reminders- Any time buffer to set up before or finish up after the service- Scheduling policy parameters, such as minimum notice to book or cancel, and whether customers can select specific staff members for an appointment. + /// Update the properties of a bookingService object in the specified bookingBusiness. The following are some examples you can customize for a service:- Price- Typical length of an appointment- Reminders- Any time buffer to set up before or finish up after the service- Scheduling policy parameters, such as minimum notice to book or cancel, and whether customers can select specific staff members for an appointment. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public BookingServiceItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the properties and relationships of a bookingService object in the specified bookingBusiness. + /// Get the properties and relationships of a bookingService object in the specified bookingBusiness. This API is supported in the following national cloud deployments. /// public class BookingServiceItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Services/ServicesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Services/ServicesRequestBuilder.cs index 7ec61db1290..d97fca3b36a 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Services/ServicesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Services/ServicesRequestBuilder.cs @@ -42,7 +42,7 @@ public ServicesRequestBuilder(Dictionary pathParameters, IReques public ServicesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/bookingBusinesses/{bookingBusiness%2Did}/services{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of bookingService objects in the specified bookingBusiness. + /// Get a list of bookingService objects in the specified bookingBusiness. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, BookingServiceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new bookingService for the specified bookingBusiness. + /// Create a new bookingService for the specified bookingBusiness. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(BookingService body, Action(requestInfo, BookingService.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of bookingService objects in the specified bookingBusiness. + /// Get a list of bookingService objects in the specified bookingBusiness. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new bookingService for the specified bookingBusiness. + /// Create a new bookingService for the specified bookingBusiness. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ServicesRequestBuilder WithUrl(string rawUrl) { return new ServicesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of bookingService objects in the specified bookingBusiness. + /// Get a list of bookingService objects in the specified bookingBusiness. This API is supported in the following national cloud deployments. /// public class ServicesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/StaffMembers/Item/BookingStaffMemberBaseItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/StaffMembers/Item/BookingStaffMemberBaseItemRequestBuilder.cs index 94c26d22b4f..83036ef3cd5 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/StaffMembers/Item/BookingStaffMemberBaseItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/StaffMembers/Item/BookingStaffMemberBaseItemRequestBuilder.cs @@ -29,7 +29,7 @@ public BookingStaffMemberBaseItemRequestBuilder(Dictionary pathP public BookingStaffMemberBaseItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/bookingBusinesses/{bookingBusiness%2Did}/staffMembers/{bookingStaffMemberBase%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a bookingStaffMember in the specified bookingBusiness. + /// Delete a bookingStaffMember in the specified bookingBusiness. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get the properties and relationships of a bookingStaffMember in the specified bookingBusiness. + /// Get the properties and relationships of a bookingStaffMember in the specified bookingBusiness. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, BookingStaffMemberBase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a bookingStaffMember in the specified bookingBusiness. + /// Update the properties of a bookingStaffMember in the specified bookingBusiness. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(BookingStaffMemberBase body return await RequestAdapter.SendAsync(requestInfo, BookingStaffMemberBase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a bookingStaffMember in the specified bookingBusiness. + /// Delete a bookingStaffMember in the specified bookingBusiness. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties and relationships of a bookingStaffMember in the specified bookingBusiness. + /// Get the properties and relationships of a bookingStaffMember in the specified bookingBusiness. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a bookingStaffMember in the specified bookingBusiness. + /// Update the properties of a bookingStaffMember in the specified bookingBusiness. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public BookingStaffMemberBaseItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the properties and relationships of a bookingStaffMember in the specified bookingBusiness. + /// Get the properties and relationships of a bookingStaffMember in the specified bookingBusiness. This API is supported in the following national cloud deployments. /// public class BookingStaffMemberBaseItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/StaffMembers/StaffMembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/StaffMembers/StaffMembersRequestBuilder.cs index d28720c633d..d406614bea0 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/StaffMembers/StaffMembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/StaffMembers/StaffMembersRequestBuilder.cs @@ -42,7 +42,7 @@ public StaffMembersRequestBuilder(Dictionary pathParameters, IRe public StaffMembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/bookingBusinesses/{bookingBusiness%2Did}/staffMembers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of bookingStaffMember objects in the specified bookingBusiness. + /// Get a list of bookingStaffMember objects in the specified bookingBusiness. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, BookingStaffMemberBaseCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new bookingStaffMember in the specified bookingBusiness. + /// Create a new bookingStaffMember in the specified bookingBusiness. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(BookingStaffMemberBase body, return await RequestAdapter.SendAsync(requestInfo, BookingStaffMemberBase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of bookingStaffMember objects in the specified bookingBusiness. + /// Get a list of bookingStaffMember objects in the specified bookingBusiness. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new bookingStaffMember in the specified bookingBusiness. + /// Create a new bookingStaffMember in the specified bookingBusiness. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public StaffMembersRequestBuilder WithUrl(string rawUrl) { return new StaffMembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of bookingStaffMember objects in the specified bookingBusiness. + /// Get a list of bookingStaffMember objects in the specified bookingBusiness. This API is supported in the following national cloud deployments. /// public class StaffMembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Unpublish/UnpublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Unpublish/UnpublishRequestBuilder.cs index ca62163cb93..c3623eeff3e 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Unpublish/UnpublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Unpublish/UnpublishRequestBuilder.cs @@ -28,7 +28,7 @@ public UnpublishRequestBuilder(Dictionary pathParameters, IReque public UnpublishRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/bookingBusinesses/{bookingBusiness%2Did}/unpublish", rawUrl) { } /// - /// Make the scheduling page of this business not available to external customers. Set the isPublished property to false, and the publicUrl property to null. + /// Make the scheduling page of this business not available to external customers. Set the isPublished property to false, and the publicUrl property to null. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Make the scheduling page of this business not available to external customers. Set the isPublished property to false, and the publicUrl property to null. + /// Make the scheduling page of this business not available to external customers. Set the isPublished property to false, and the publicUrl property to null. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingCurrencies/BookingCurrenciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingCurrencies/BookingCurrenciesRequestBuilder.cs index 78337c7eb27..0daed5e1086 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingCurrencies/BookingCurrenciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingCurrencies/BookingCurrenciesRequestBuilder.cs @@ -42,7 +42,7 @@ public BookingCurrenciesRequestBuilder(Dictionary pathParameters public BookingCurrenciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/bookingCurrencies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of bookingCurrency objects available to a Microsoft Bookings business. + /// Get a list of bookingCurrency objects available to a Microsoft Bookings business. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(BookingCurrency body, Action(requestInfo, BookingCurrency.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of bookingCurrency objects available to a Microsoft Bookings business. + /// Get a list of bookingCurrency objects available to a Microsoft Bookings business. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public BookingCurrenciesRequestBuilder WithUrl(string rawUrl) { return new BookingCurrenciesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of bookingCurrency objects available to a Microsoft Bookings business. + /// Get a list of bookingCurrency objects available to a Microsoft Bookings business. This API is supported in the following national cloud deployments. /// public class BookingCurrenciesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingCurrencies/Item/BookingCurrencyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingCurrencies/Item/BookingCurrencyItemRequestBuilder.cs index 50d357f9fce..fee4e332b13 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingCurrencies/Item/BookingCurrencyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingCurrencies/Item/BookingCurrencyItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get the properties of a bookingCurrency object that is available to a Microsoft Bookings business. Use the id property, which is the currency code, to specify the currency. + /// Get the properties of a bookingCurrency object that is available to a Microsoft Bookings business. Use the id property, which is the currency code, to specify the currency. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties of a bookingCurrency object that is available to a Microsoft Bookings business. Use the id property, which is the currency code, to specify the currency. + /// Get the properties of a bookingCurrency object that is available to a Microsoft Bookings business. Use the id property, which is the currency code, to specify the currency. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public BookingCurrencyItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the properties of a bookingCurrency object that is available to a Microsoft Bookings business. Use the id property, which is the currency code, to specify the currency. + /// Get the properties of a bookingCurrency object that is available to a Microsoft Bookings business. Use the id property, which is the currency code, to specify the currency. This API is supported in the following national cloud deployments. /// public class BookingCurrencyItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/SubscribedSkus/Item/SubscribedSkuItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/SubscribedSkus/Item/SubscribedSkuItemRequestBuilder.cs index fe8aade5c10..c2d2fdd8450 100644 --- a/src/Microsoft.Graph/Generated/SubscribedSkus/Item/SubscribedSkuItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/SubscribedSkus/Item/SubscribedSkuItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get a specific commercial subscription that an organization has acquired. + /// Get a specific commercial subscription that an organization has acquired. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a specific commercial subscription that an organization has acquired. + /// Get a specific commercial subscription that an organization has acquired. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public SubscribedSkuItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a specific commercial subscription that an organization has acquired. + /// Get a specific commercial subscription that an organization has acquired. This API is supported in the following national cloud deployments. /// public class SubscribedSkuItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/SubscribedSkus/SubscribedSkusRequestBuilder.cs b/src/Microsoft.Graph/Generated/SubscribedSkus/SubscribedSkusRequestBuilder.cs index 8a2f8ae38a7..7cc95aa53f8 100644 --- a/src/Microsoft.Graph/Generated/SubscribedSkus/SubscribedSkusRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/SubscribedSkus/SubscribedSkusRequestBuilder.cs @@ -37,7 +37,7 @@ public SubscribedSkusRequestBuilder(Dictionary pathParameters, I public SubscribedSkusRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/subscribedSkus{?%24search,%24orderby,%24select}", rawUrl) { } /// - /// Get the list of commercial subscriptions that an organization has acquired. For the mapping of license names as displayed on the Azure portal or the Microsoft 365 admin center against their Microsoft Graph skuId and skuPartNumber properties, see Product names and service plan identifiers for licensing. + /// Get the list of commercial subscriptions that an organization has acquired. For the mapping of license names as displayed on the Microsoft Entra admin center or the Microsoft 365 admin center against their Microsoft Graph skuId and skuPartNumber properties, see Product names and service plan identifiers for licensing. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -78,7 +78,7 @@ public async Task PostAsync(SubscribedSku body, Action(requestInfo, SubscribedSku.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of commercial subscriptions that an organization has acquired. For the mapping of license names as displayed on the Azure portal or the Microsoft 365 admin center against their Microsoft Graph skuId and skuPartNumber properties, see Product names and service plan identifiers for licensing. + /// Get the list of commercial subscriptions that an organization has acquired. For the mapping of license names as displayed on the Microsoft Entra admin center or the Microsoft 365 admin center against their Microsoft Graph skuId and skuPartNumber properties, see Product names and service plan identifiers for licensing. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -139,7 +139,7 @@ public SubscribedSkusRequestBuilder WithUrl(string rawUrl) { return new SubscribedSkusRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of commercial subscriptions that an organization has acquired. For the mapping of license names as displayed on the Azure portal or the Microsoft 365 admin center against their Microsoft Graph skuId and skuPartNumber properties, see Product names and service plan identifiers for licensing. + /// Get the list of commercial subscriptions that an organization has acquired. For the mapping of license names as displayed on the Microsoft Entra admin center or the Microsoft 365 admin center against their Microsoft Graph skuId and skuPartNumber properties, see Product names and service plan identifiers for licensing. This API is supported in the following national cloud deployments. /// public class SubscribedSkusRequestBuilderGetQueryParameters { /// Order items by property values diff --git a/src/Microsoft.Graph/Generated/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs index 3449673ff5c..5b33768220d 100644 --- a/src/Microsoft.Graph/Generated/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs @@ -28,7 +28,7 @@ public ReauthorizeRequestBuilder(Dictionary pathParameters, IReq public ReauthorizeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/subscriptions/{subscription%2Did}/reauthorize", rawUrl) { } /// - /// Reauthorize a subscription when you receive a reauthorizationRequired challenge. + /// Reauthorize a subscription when you receive a reauthorizationRequired challenge. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Reauthorize a subscription when you receive a reauthorizationRequired challenge. + /// Reauthorize a subscription when you receive a reauthorizationRequired challenge. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Subscriptions/Item/SubscriptionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Subscriptions/Item/SubscriptionItemRequestBuilder.cs index 8f4bd73b397..112b3a32cf0 100644 --- a/src/Microsoft.Graph/Generated/Subscriptions/Item/SubscriptionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Subscriptions/Item/SubscriptionItemRequestBuilder.cs @@ -34,7 +34,7 @@ public SubscriptionItemRequestBuilder(Dictionary pathParameters, public SubscriptionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/subscriptions/{subscription%2Did}{?%24select}", rawUrl) { } /// - /// Delete a subscription. For the list of resources that support subscribing to change notifications, see the table in the Permissions section. + /// Delete a subscription. For the list of resources that support subscribing to change notifications, see the table in the Permissions section. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a subscription. See the table in the Permissions section for the list of resources that support subscribing to change notifications. + /// Retrieve the properties and relationships of a subscription. See the table in the Permissions section for the list of resources that support subscribing to change notifications. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, Subscription.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Renew a subscription by extending its expiry time. The table in the Permissions section lists the resources that support subscribing to change notifications. Subscriptions expire after a length of time that varies by resource type. In order to avoid missing change notifications, an app should renew its subscriptions well in advance of their expiry date. See subscription for maximum length of a subscription for each resource type. + /// Renew a subscription by extending its expiry time. The table in the Permissions section lists the resources that support subscribing to change notifications. Subscriptions expire after a length of time that varies by resource type. In order to avoid missing change notifications, an app should renew its subscriptions well in advance of their expiry date. See subscription for maximum length of a subscription for each resource type. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(Subscription body, Action(requestInfo, Subscription.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a subscription. For the list of resources that support subscribing to change notifications, see the table in the Permissions section. + /// Delete a subscription. For the list of resources that support subscribing to change notifications, see the table in the Permissions section. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a subscription. See the table in the Permissions section for the list of resources that support subscribing to change notifications. + /// Retrieve the properties and relationships of a subscription. See the table in the Permissions section for the list of resources that support subscribing to change notifications. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Renew a subscription by extending its expiry time. The table in the Permissions section lists the resources that support subscribing to change notifications. Subscriptions expire after a length of time that varies by resource type. In order to avoid missing change notifications, an app should renew its subscriptions well in advance of their expiry date. See subscription for maximum length of a subscription for each resource type. + /// Renew a subscription by extending its expiry time. The table in the Permissions section lists the resources that support subscribing to change notifications. Subscriptions expire after a length of time that varies by resource type. In order to avoid missing change notifications, an app should renew its subscriptions well in advance of their expiry date. See subscription for maximum length of a subscription for each resource type. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public SubscriptionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a subscription. See the table in the Permissions section for the list of resources that support subscribing to change notifications. + /// Retrieve the properties and relationships of a subscription. See the table in the Permissions section for the list of resources that support subscribing to change notifications. This API is supported in the following national cloud deployments. /// public class SubscriptionItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Subscriptions/SubscriptionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Subscriptions/SubscriptionsRequestBuilder.cs index fc85f051eeb..54c0a438632 100644 --- a/src/Microsoft.Graph/Generated/Subscriptions/SubscriptionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Subscriptions/SubscriptionsRequestBuilder.cs @@ -37,7 +37,7 @@ public SubscriptionsRequestBuilder(Dictionary pathParameters, IR public SubscriptionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/subscriptions{?%24search,%24select}", rawUrl) { } /// - /// Retrieve the properties and relationships of webhook subscriptions, based on the app ID, the user, and the user's role with a tenant. The content of the response depends on the context in which the app is calling; for details, see the scenarios in the Permissions section. + /// Retrieve the properties and relationships of webhook subscriptions, based on the app ID, the user, and the user's role with a tenant. The content of the response depends on the context in which the app is calling; for details, see the scenarios in the Permissions section. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -57,7 +57,7 @@ public async Task GetAsync(Action(requestInfo, SubscriptionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Subscribes a listener application to receive change notifications when the requested type of changes occur to the specified resource in Microsoft Graph. To identify the resources for which you can create subscriptions and the limitations on subscriptions, see Set up notifications for changes in resource data: Supported resources. Some resources support rich notifications, that is, notifications that include resource data. For more information about these resources, see Set up change notifications that include resource data: Supported resources. + /// Subscribes a listener application to receive change notifications when the requested type of changes occur to the specified resource in Microsoft Graph. To identify the resources for which you can create subscriptions and the limitations on subscriptions, see Set up notifications for changes in resource data: Supported resources. Some resources support rich notifications, that is, notifications that include resource data. For more information about these resources, see Set up change notifications that include resource data: Supported resources. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -79,7 +79,7 @@ public async Task PostAsync(Subscription body, Action(requestInfo, Subscription.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the properties and relationships of webhook subscriptions, based on the app ID, the user, and the user's role with a tenant. The content of the response depends on the context in which the app is calling; for details, see the scenarios in the Permissions section. + /// Retrieve the properties and relationships of webhook subscriptions, based on the app ID, the user, and the user's role with a tenant. The content of the response depends on the context in which the app is calling; for details, see the scenarios in the Permissions section. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Subscribes a listener application to receive change notifications when the requested type of changes occur to the specified resource in Microsoft Graph. To identify the resources for which you can create subscriptions and the limitations on subscriptions, see Set up notifications for changes in resource data: Supported resources. Some resources support rich notifications, that is, notifications that include resource data. For more information about these resources, see Set up change notifications that include resource data: Supported resources. + /// Subscribes a listener application to receive change notifications when the requested type of changes occur to the specified resource in Microsoft Graph. To identify the resources for which you can create subscriptions and the limitations on subscriptions, see Set up notifications for changes in resource data: Supported resources. Some resources support rich notifications, that is, notifications that include resource data. For more information about these resources, see Set up change notifications that include resource data: Supported resources. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -140,7 +140,7 @@ public SubscriptionsRequestBuilder WithUrl(string rawUrl) { return new SubscriptionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the properties and relationships of webhook subscriptions, based on the app ID, the user, and the user's role with a tenant. The content of the response depends on the context in which the app is calling; for details, see the scenarios in the Permissions section. + /// Retrieve the properties and relationships of webhook subscriptions, based on the app ID, the user, and the user's role with a tenant. The content of the response depends on the context in which the app is calling; for details, see the scenarios in the Permissions section. This API is supported in the following national cloud deployments. /// public class SubscriptionsRequestBuilderGetQueryParameters { /// Search items by search phrases diff --git a/src/Microsoft.Graph/Generated/Teams/GetAllMessages/GetAllMessagesGetResponse.cs b/src/Microsoft.Graph/Generated/Teams/GetAllMessages/GetAllMessagesGetResponse.cs new file mode 100644 index 00000000000..9fda42986f1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Teams/GetAllMessages/GetAllMessagesGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Teams.GetAllMessages { + public class GetAllMessagesGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAllMessagesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAllMessagesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Teams/GetAllMessages/GetAllMessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/GetAllMessages/GetAllMessagesRequestBuilder.cs index 9f41be4b577..5cff23d88da 100644 --- a/src/Microsoft.Graph/Generated/Teams/GetAllMessages/GetAllMessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/GetAllMessages/GetAllMessagesRequestBuilder.cs @@ -33,6 +33,26 @@ public GetAllMessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetAllMessagesGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetAllMessagesGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAllMessagesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getAllMessages + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetAllMessagesGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Teams/GetAllMessages/GetAllMessagesResponse.cs b/src/Microsoft.Graph/Generated/Teams/GetAllMessages/GetAllMessagesResponse.cs index 5f9ae68e60e..9e700eba3c0 100644 --- a/src/Microsoft.Graph/Generated/Teams/GetAllMessages/GetAllMessagesResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/GetAllMessages/GetAllMessagesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Teams.GetAllMessages { - public class GetAllMessagesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAllMessagesGetResponse instead.")] + public class GetAllMessagesResponse : GetAllMessagesGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAllMessagesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Teams/Item/AllChannels/AllChannelsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/AllChannels/AllChannelsRequestBuilder.cs index 5540b3b879d..24553f692ea 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/AllChannels/AllChannelsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/AllChannels/AllChannelsRequestBuilder.cs @@ -42,7 +42,7 @@ public AllChannelsRequestBuilder(Dictionary pathParameters, IReq public AllChannelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/allChannels{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of channels either in this team or shared with this team (incoming channels). + /// Get the list of channels either in this team or shared with this team (incoming channels). This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ChannelCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of channels either in this team or shared with this team (incoming channels). + /// Get the list of channels either in this team or shared with this team (incoming channels). This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public AllChannelsRequestBuilder WithUrl(string rawUrl) { return new AllChannelsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of channels either in this team or shared with this team (incoming channels). + /// Get the list of channels either in this team or shared with this team (incoming channels). This API is supported in the following national cloud deployments. /// public class AllChannelsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Archive/ArchiveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Archive/ArchiveRequestBuilder.cs index 2625303a178..b2bdf0d5cd0 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Archive/ArchiveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Archive/ArchiveRequestBuilder.cs @@ -28,7 +28,7 @@ public ArchiveRequestBuilder(Dictionary pathParameters, IRequest public ArchiveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/archive", rawUrl) { } /// - /// Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. + /// Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ArchivePostRequestBody body, Action - /// Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. + /// Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/ChannelsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/ChannelsRequestBuilder.cs index cdbf3e670b3..570fd2e0f33 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/ChannelsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/ChannelsRequestBuilder.cs @@ -47,7 +47,7 @@ public ChannelsRequestBuilder(Dictionary pathParameters, IReques public ChannelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of channels in this team. + /// Retrieve the list of channels in this team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ChannelCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This is the name that appears to the user in Microsoft Teams. If you're creating a private channel, you can add a maximum of 200 members. + /// Create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This is the name that appears to the user in Microsoft Teams. If you're creating a private channel, you can add a maximum of 200 members. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Channel body, Action(requestInfo, Channel.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of channels in this team. + /// Retrieve the list of channels in this team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This is the name that appears to the user in Microsoft Teams. If you're creating a private channel, you can add a maximum of 200 members. + /// Create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This is the name that appears to the user in Microsoft Teams. If you're creating a private channel, you can add a maximum of 200 members. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public ChannelsRequestBuilder WithUrl(string rawUrl) { return new ChannelsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of channels in this team. + /// Retrieve the list of channels in this team. This API is supported in the following national cloud deployments. /// public class ChannelsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/GetAllMessages/GetAllMessagesGetResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/GetAllMessages/GetAllMessagesGetResponse.cs new file mode 100644 index 00000000000..e2889cf248e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/GetAllMessages/GetAllMessagesGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Teams.Item.Channels.GetAllMessages { + public class GetAllMessagesGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAllMessagesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAllMessagesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs index 597cd68309e..2f5f6a9f630 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs @@ -33,6 +33,26 @@ public GetAllMessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetAllMessagesGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetAllMessagesGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAllMessagesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getAllMessages + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetAllMessagesGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/GetAllMessages/GetAllMessagesResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/GetAllMessages/GetAllMessagesResponse.cs index c4aa231b9f9..53eb64350ea 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/GetAllMessages/GetAllMessagesResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/GetAllMessages/GetAllMessagesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Teams.Item.Channels.GetAllMessages { - public class GetAllMessagesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAllMessagesGetResponse instead.")] + public class GetAllMessagesResponse : GetAllMessagesGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAllMessagesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/ChannelItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/ChannelItemRequestBuilder.cs index c32431816c8..a07fb33e05d 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/ChannelItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/ChannelItemRequestBuilder.cs @@ -74,7 +74,7 @@ public ChannelItemRequestBuilder(Dictionary pathParameters, IReq public ChannelItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete the channel. + /// Delete the channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -94,7 +94,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information. + /// Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public async Task GetAsync(Action(requestInfo, Channel.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of the specified channel. + /// Update the properties of the specified channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -136,7 +136,7 @@ public async Task PatchAsync(Channel body, Action(requestInfo, Channel.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete the channel. + /// Delete the channel. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -160,7 +160,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information. + /// Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -186,7 +186,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of the specified channel. + /// Update the properties of the specified channel. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -237,7 +237,7 @@ public ChannelItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information. + /// Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information. This API is supported in the following national cloud deployments. /// public class ChannelItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs index da5eadef289..ea9c815910b 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs @@ -28,7 +28,7 @@ public CompleteMigrationRequestBuilder(Dictionary pathParameters public CompleteMigrationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/completeMigration", rawUrl) { } /// - /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs new file mode 100644 index 00000000000..218f789a1d7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Teams.Item.Channels.Item.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName { + public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public bool? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse and sets the default values. + /// + public DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs index cd068c2cd6b..8eba7e0756b 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs @@ -33,6 +33,26 @@ public DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrinci /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function doesUserHaveAccess + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs index 1b353be1bcf..da47d720f91 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Teams.Item.Channels.Item.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName { - public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public bool? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse and sets the default values. - /// - public DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse instead.")] + public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse : DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs index 39b9f0129c8..da6d9f5347e 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs @@ -34,7 +34,7 @@ public FilesFolderRequestBuilder(Dictionary pathParameters, IReq public FilesFolderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/filesFolder{?%24select,%24expand}", rawUrl) { } /// - /// Get the metadata for the location where the files of a channel are stored. + /// Get the metadata for the location where the files of a channel are stored. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public FilesFolderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the metadata for the location where the files of a channel are stored. + /// Get the metadata for the location where the files of a channel are stored. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,7 +87,7 @@ public FilesFolderRequestBuilder WithUrl(string rawUrl) { return new FilesFolderRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the metadata for the location where the files of a channel are stored. + /// Get the metadata for the location where the files of a channel are stored. This API is supported in the following national cloud deployments. /// public class FilesFolderRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Add/AddPostResponse.cs new file mode 100644 index 00000000000..d64487911ce --- /dev/null +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Add/AddPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Teams.Item.Channels.Item.Members.Add { + public class AddPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AddPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AddPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Add/AddRequestBuilder.cs index 1f48f82dc7e..0acf557eb78 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Add/AddRequestBuilder.cs @@ -28,13 +28,36 @@ public AddRequestBuilder(Dictionary pathParameters, IRequestAdap public AddRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/members/add", rawUrl) { } /// - /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AddPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsAddPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(AddPostRequestBody body, Action(requestInfo, AddResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Add/AddResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Add/AddResponse.cs index 6d4cf9d8d59..ec7c58493de 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Add/AddResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Add/AddResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Teams.Item.Channels.Item.Members.Add { - public class AddResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use addPostResponse instead.")] + public class AddResponse : AddPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index d01e7e139db..6fb8a11834e 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -29,8 +29,8 @@ public ConversationMemberItemRequestBuilder(Dictionary pathParam public ConversationMemberItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/members/{conversationMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. - /// Find more info here + /// Delete a conversationMember from a channel. This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get a conversationMember from a channel. + /// Get a conversationMember from a channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a team or channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(ConversationMember body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Delete a conversationMember from a channel. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a conversationMember from a channel. + /// Get a conversationMember from a channel. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a team or channel. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public ConversationMemberItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a conversationMember from a channel. + /// Get a conversationMember from a channel. This API is supported in the following national cloud deployments. /// public class ConversationMemberItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/MembersRequestBuilder.cs index 7a3baad1f02..a4cbfa19b9e 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/MembersRequestBuilder.cs @@ -47,7 +47,7 @@ public MembersRequestBuilder(Dictionary pathParameters, IRequest public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/members{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a conversationMember to a channel. + /// Add a conversationMember to a channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(ConversationMember body, Action< return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a conversationMember to a channel. + /// Add a conversationMember to a channel. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public MembersRequestBuilder WithUrl(string rawUrl) { return new MembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. This API is supported in the following national cloud deployments. /// public class MembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..4379e00de1f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Teams.Item.Channels.Item.Messages.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs index 43f77e03b72..c1a7ee71156 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Delta/DeltaResponse.cs index bedeef06194..92d2d0602c4 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Teams.Item.Channels.Item.Messages.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs index b5e72c5d0f9..a2f4d554fbd 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs @@ -78,7 +78,7 @@ public async Task DeleteAsync(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -98,7 +98,7 @@ public async Task GetAsync(Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. + /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -144,7 +144,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,7 +170,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. + /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -221,7 +221,7 @@ public ChatMessageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// public class ChatMessageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs index d0173c490b8..a874b839e90 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -42,7 +42,7 @@ public HostedContentsRequestBuilder(Dictionary pathParameters, I public HostedContentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ChatMessageHostedContent b return await RequestAdapter.SendAsync(requestInfo, ChatMessageHostedContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public HostedContentsRequestBuilder WithUrl(string rawUrl) { return new HostedContentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// public class HostedContentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 1f0724d9165..32a548726dc 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public ChatMessageHostedContentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..9b750cc6cd2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Teams.Item.Channels.Item.Messages.Item.Replies.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs index 90c886ba270..ae2925300f0 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs index 01df369a9b7..526d54be2b1 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Teams.Item.Channels.Item.Messages.Item.Replies.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs index 952b7a47de5..e82702ead54 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs @@ -73,7 +73,7 @@ public async Task DeleteAsync(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -138,7 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -215,7 +215,7 @@ public ChatMessageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// public class ChatMessageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs index 00d64bc9e56..ffced85855e 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -42,7 +42,7 @@ public HostedContentsRequestBuilder(Dictionary pathParameters, I public HostedContentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ChatMessageHostedContent b return await RequestAdapter.SendAsync(requestInfo, ChatMessageHostedContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public HostedContentsRequestBuilder WithUrl(string rawUrl) { return new HostedContentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// public class HostedContentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 57e8f775a76..2a6dcdd9cff 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public ChatMessageHostedContentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs index 3dbb42488a2..834deb33492 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public SoftDeleteRequestBuilder(Dictionary pathParameters, IRequ public SoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/softDelete", rawUrl) { } /// - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index 83ff106f2f5..c2ba3fc8de2 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public UndoSoftDeleteRequestBuilder(Dictionary pathParameters, I public UndoSoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/undoSoftDelete", rawUrl) { } /// - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs index 42dcbcd9102..71b0d5b9d97 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -47,7 +47,7 @@ public RepliesRequestBuilder(Dictionary pathParameters, IRequest public RepliesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public RepliesRequestBuilder WithUrl(string rawUrl) { return new RepliesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// public class RepliesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs index d3d5b826eb1..f45b18cc8a9 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public SoftDeleteRequestBuilder(Dictionary pathParameters, IRequ public SoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/softDelete", rawUrl) { } /// - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index ca0589544d7..35fd7692468 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public UndoSoftDeleteRequestBuilder(Dictionary pathParameters, I public UndoSoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/undoSoftDelete", rawUrl) { } /// - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs index b4375cc973b..87ca3772386 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs @@ -47,7 +47,7 @@ public MessagesRequestBuilder(Dictionary pathParameters, IReques public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/messages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified channel. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public MessagesRequestBuilder WithUrl(string rawUrl) { return new MessagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// public class MessagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs index fe082abfc8f..d8c755e77f1 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs @@ -29,7 +29,7 @@ public ProvisionEmailRequestBuilder(Dictionary pathParameters, I public ProvisionEmailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/provisionEmail", rawUrl) { } /// - /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. + /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, ProvisionChannelEmailResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. + /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs index 2888c19da03..836fdd571cf 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs @@ -28,7 +28,7 @@ public RemoveEmailRequestBuilder(Dictionary pathParameters, IReq public RemoveEmailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/removeEmail", rawUrl) { } /// - /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. + /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. + /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs index ab3ed1c9598..b5a61842dd9 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs @@ -42,7 +42,7 @@ public AllowedMembersRequestBuilder(Dictionary pathParameters, I public AllowedMembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public AllowedMembersRequestBuilder WithUrl(string rawUrl) { return new AllowedMembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant This API is supported in the following national cloud deployments. /// public class AllowedMembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs index 4dd126f02ef..7ca8a4be748 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs @@ -39,7 +39,7 @@ public SharedWithChannelTeamInfoItemRequestBuilder(Dictionary pa public SharedWithChannelTeamInfoItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. + /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -59,7 +59,7 @@ public async Task DeleteAsync(Action - /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -100,7 +100,7 @@ public async Task PatchAsync(SharedWithChannelTeamInf return await RequestAdapter.SendAsync(requestInfo, SharedWithChannelTeamInfo.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. + /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -124,7 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -201,7 +201,7 @@ public SharedWithChannelTeamInfoItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// public class SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs index 796ce926ecb..666add60312 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs @@ -42,7 +42,7 @@ public SharedWithTeamsRequestBuilder(Dictionary pathParameters, public SharedWithTeamsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/sharedWithTeams{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(SharedWithChannelTeamInfo return await RequestAdapter.SendAsync(requestInfo, SharedWithChannelTeamInfo.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SharedWithTeamsRequestBuilder WithUrl(string rawUrl) { return new SharedWithTeamsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// public class SharedWithTeamsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs index 5efd64e69be..aae5f770cca 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs @@ -29,7 +29,7 @@ public TeamsAppRequestBuilder(Dictionary pathParameters, IReques public TeamsAppRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/tabs/{teamsTab%2Did}/teamsApp{?%24select,%24expand}", rawUrl) { } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -48,7 +48,7 @@ public TeamsAppRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.TeamsApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +81,7 @@ public TeamsAppRequestBuilder WithUrl(string rawUrl) { return new TeamsAppRequestBuilder(rawUrl, RequestAdapter); } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// public class TeamsAppRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs index 3822c6942dd..57426b54222 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs @@ -34,7 +34,7 @@ public TeamsTabItemRequestBuilder(Dictionary pathParameters, IRe public TeamsTabItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/tabs/{teamsTab%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Removes (unpins) a tab from the specified channel within a team. + /// Removes (unpins) a tab from the specified channel within a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of the specified tab in a channel within a team. + /// Retrieve the properties and relationships of the specified tab in a channel within a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of the specified tab.This can be used to configure the content of the tab. + /// Update the properties of the specified tab.This can be used to configure the content of the tab. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(TeamsTab body, Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Removes (unpins) a tab from the specified channel within a team. + /// Removes (unpins) a tab from the specified channel within a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of the specified tab in a channel within a team. + /// Retrieve the properties and relationships of the specified tab in a channel within a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of the specified tab.This can be used to configure the content of the tab. + /// Update the properties of the specified tab.This can be used to configure the content of the tab. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public TeamsTabItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of the specified tab in a channel within a team. + /// Retrieve the properties and relationships of the specified tab in a channel within a team. This API is supported in the following national cloud deployments. /// public class TeamsTabItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Tabs/TabsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Tabs/TabsRequestBuilder.cs index 95dd322ad8a..f7b9a917d9a 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Tabs/TabsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Tabs/TabsRequestBuilder.cs @@ -42,7 +42,7 @@ public TabsRequestBuilder(Dictionary pathParameters, IRequestAda public TabsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/tabs{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of tabs in the specified channel within a team. + /// Retrieve the list of tabs in the specified channel within a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TeamsTabCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TeamsTab body, Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of tabs in the specified channel within a team. + /// Retrieve the list of tabs in the specified channel within a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public TabsRequestBuilder WithUrl(string rawUrl) { return new TabsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of tabs in the specified channel within a team. + /// Retrieve the list of tabs in the specified channel within a team. This API is supported in the following national cloud deployments. /// public class TabsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Clone/CloneRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Clone/CloneRequestBuilder.cs index 6c9c0b1850e..1c53e636438 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Clone/CloneRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Clone/CloneRequestBuilder.cs @@ -28,7 +28,7 @@ public CloneRequestBuilder(Dictionary pathParameters, IRequestAd public CloneRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/clone", rawUrl) { } /// - /// Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they aren't configured. The tabs are displayed on the tab bar in Microsoft Teams, and the first time a user opens them, they must go through the configuration screen. If the user who opens the tab doesn't have permission to configure apps, they'll see a message that says that the tab isn't configured. Cloning is a long-running operation. After the POST clone returns, you need to GET the operation returned by the Location: header to see if it's running, succeeded, or failed. You should continue to GET until the status isn't running. The recommended delay between GETs is 5 seconds. + /// Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they aren't configured. The tabs are displayed on the tab bar in Microsoft Teams, and the first time a user opens them, they must go through the configuration screen. If the user who opens the tab doesn't have permission to configure apps, they'll see a message that says that the tab isn't configured. Cloning is a long-running operation. After the POST clone returns, you need to GET the operation returned by the Location: header to see if it's running, succeeded, or failed. You should continue to GET until the status isn't running. The recommended delay between GETs is 5 seconds. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ClonePostRequestBody body, Action - /// Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they aren't configured. The tabs are displayed on the tab bar in Microsoft Teams, and the first time a user opens them, they must go through the configuration screen. If the user who opens the tab doesn't have permission to configure apps, they'll see a message that says that the tab isn't configured. Cloning is a long-running operation. After the POST clone returns, you need to GET the operation returned by the Location: header to see if it's running, succeeded, or failed. You should continue to GET until the status isn't running. The recommended delay between GETs is 5 seconds. + /// Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they aren't configured. The tabs are displayed on the tab bar in Microsoft Teams, and the first time a user opens them, they must go through the configuration screen. If the user who opens the tab doesn't have permission to configure apps, they'll see a message that says that the tab isn't configured. Cloning is a long-running operation. After the POST clone returns, you need to GET the operation returned by the Location: header to see if it's running, succeeded, or failed. You should continue to GET until the status isn't running. The recommended delay between GETs is 5 seconds. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teams/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs index 2ded0d5bc85..21ade374ea3 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs @@ -28,7 +28,7 @@ public CompleteMigrationRequestBuilder(Dictionary pathParameters public CompleteMigrationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/completeMigration", rawUrl) { } /// - /// Complete the message migration process by removing migration mode from a team. Migration mode is a special state where certain operations are barred, like message POST and membership operations during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + /// Complete the message migration process by removing migration mode from a team. Migration mode is a special state where certain operations are barred, like message POST and membership operations during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Complete the message migration process by removing migration mode from a team. Migration mode is a special state where certain operations are barred, like message POST and membership operations during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + /// Complete the message migration process by removing migration mode from a team. Migration mode is a special state where certain operations are barred, like message POST and membership operations during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Group/GroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Group/GroupRequestBuilder.cs index 0a0a7bb2035..fdd302c3593 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Group/GroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Group/GroupRequestBuilder.cs @@ -1,6 +1,7 @@ // using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; +using Microsoft.Graph.Teams.Item.Group.ServiceProvisioningErrors; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -14,6 +15,10 @@ namespace Microsoft.Graph.Teams.Item.Group { /// Provides operations to manage the group property of the microsoft.graph.team entity. /// public class GroupRequestBuilder : BaseRequestBuilder { + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new GroupRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..92b8124e245 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Teams/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Teams.Item.Group.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/group/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/group/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..917b359a7ed --- /dev/null +++ b/src/Microsoft.Graph/Generated/Teams/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Teams.Item.Group.ServiceProvisioningErrors.Count; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Teams.Item.Group.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \teams\{team-id}\group\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/group/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/group/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Teams/Item/IncomingChannels/IncomingChannelsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/IncomingChannels/IncomingChannelsRequestBuilder.cs index 9e22f1722d6..944004a687e 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/IncomingChannels/IncomingChannelsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/IncomingChannels/IncomingChannelsRequestBuilder.cs @@ -42,7 +42,7 @@ public IncomingChannelsRequestBuilder(Dictionary pathParameters, public IncomingChannelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/incomingChannels{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of incoming channels (channels shared with a team). + /// Get the list of incoming channels (channels shared with a team). This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ChannelCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of incoming channels (channels shared with a team). + /// Get the list of incoming channels (channels shared with a team). This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public IncomingChannelsRequestBuilder WithUrl(string rawUrl) { return new IncomingChannelsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of incoming channels (channels shared with a team). + /// Get the list of incoming channels (channels shared with a team). This API is supported in the following national cloud deployments. /// public class IncomingChannelsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/InstalledAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/InstalledAppsRequestBuilder.cs index 965f09486b4..680db4c4c12 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/InstalledAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/InstalledAppsRequestBuilder.cs @@ -42,7 +42,7 @@ public InstalledAppsRequestBuilder(Dictionary pathParameters, IR public InstalledAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/installedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of apps installed in the specified team. + /// Retrieve a list of apps installed in the specified team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TeamsAppInstallationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Install an app to the specified team. + /// Install an app to the specified team. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TeamsAppInstallation body, Act return await RequestAdapter.SendAsync(requestInfo, TeamsAppInstallation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of apps installed in the specified team. + /// Retrieve a list of apps installed in the specified team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Install an app to the specified team. + /// Install an app to the specified team. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public InstalledAppsRequestBuilder WithUrl(string rawUrl) { return new InstalledAppsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of apps installed in the specified team. + /// Retrieve a list of apps installed in the specified team. This API is supported in the following national cloud deployments. /// public class InstalledAppsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs index dd2d542f654..839bc5a34b6 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs @@ -44,7 +44,7 @@ public TeamsAppInstallationItemRequestBuilder(Dictionary pathPar public TeamsAppInstallationItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/installedApps/{teamsAppInstallation%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Uninstalls an app from the specified team. + /// Uninstalls an app from the specified team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -64,7 +64,7 @@ public async Task DeleteAsync(Action - /// Retrieve the app installed in the specified team. + /// Retrieve the app installed in the specified team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -105,7 +105,7 @@ public async Task PatchAsync(TeamsAppInstallation body, Ac return await RequestAdapter.SendAsync(requestInfo, TeamsAppInstallation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Uninstalls an app from the specified team. + /// Uninstalls an app from the specified team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,7 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the app installed in the specified team. + /// Retrieve the app installed in the specified team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -206,7 +206,7 @@ public TeamsAppInstallationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the app installed in the specified team. + /// Retrieve the app installed in the specified team. This API is supported in the following national cloud deployments. /// public class TeamsAppInstallationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs index 14cdeb828d2..010cdc2178a 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs @@ -28,7 +28,7 @@ public UpgradeRequestBuilder(Dictionary pathParameters, IRequest public UpgradeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/installedApps/{teamsAppInstallation%2Did}/upgrade", rawUrl) { } /// - /// Upgrade an app installation within a chat. + /// Upgrade an app installation within a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(UpgradePostRequestBody body, Action - /// Upgrade an app installation within a chat. + /// Upgrade an app installation within a chat. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Members/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/Members/Add/AddPostResponse.cs new file mode 100644 index 00000000000..3d45e5a4088 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Teams/Item/Members/Add/AddPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Teams.Item.Members.Add { + public class AddPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AddPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AddPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Members/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Members/Add/AddRequestBuilder.cs index 3e1ab20bce4..fc101da9c30 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Members/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Members/Add/AddRequestBuilder.cs @@ -28,13 +28,36 @@ public AddRequestBuilder(Dictionary pathParameters, IRequestAdap public AddRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/members/add", rawUrl) { } /// - /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AddPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsAddPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(AddPostRequestBody body, Action(requestInfo, AddResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Members/Add/AddResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/Members/Add/AddResponse.cs index 47ead37b3c8..23f6592991a 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Members/Add/AddResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Members/Add/AddResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Teams.Item.Members.Add { - public class AddResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use addPostResponse instead.")] + public class AddResponse : AddPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index ca991277b88..8d925a994aa 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -29,7 +29,7 @@ public ConversationMemberItemRequestBuilder(Dictionary pathParam public ConversationMemberItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/members/{conversationMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Remove a conversationMember from a team. + /// Remove a conversationMember from a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get a conversationMember from a team. + /// Get a conversationMember from a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team. + /// Update the role of a conversationMember in a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(ConversationMember body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Remove a conversationMember from a team. + /// Remove a conversationMember from a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a conversationMember from a team. + /// Get a conversationMember from a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team. + /// Update the role of a conversationMember in a team. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public ConversationMemberItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a conversationMember from a team. + /// Get a conversationMember from a team. This API is supported in the following national cloud deployments. /// public class ConversationMemberItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Members/MembersRequestBuilder.cs index 6cc3a6c3882..e17a63a72d8 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Members/MembersRequestBuilder.cs @@ -47,7 +47,7 @@ public MembersRequestBuilder(Dictionary pathParameters, IRequest public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/members{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the conversationMember collection of a team. + /// Get the conversationMember collection of a team. The membership IDs returned by the server must be treated as opaque strings. The client should not try to parse or make assumptions about these resource IDs. In the future, membership results may include users from various tenants, as indicated in the response. Clients should avoid assuming that all members exclusively belong to the current tenant. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a new conversationMember to a team. + /// Add a new conversationMember to a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(ConversationMember body, Action< return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the conversationMember collection of a team. + /// Get the conversationMember collection of a team. The membership IDs returned by the server must be treated as opaque strings. The client should not try to parse or make assumptions about these resource IDs. In the future, membership results may include users from various tenants, as indicated in the response. Clients should avoid assuming that all members exclusively belong to the current tenant. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a new conversationMember to a team. + /// Add a new conversationMember to a team. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public MembersRequestBuilder WithUrl(string rawUrl) { return new MembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the conversationMember collection of a team. + /// Get the conversationMember collection of a team. The membership IDs returned by the server must be treated as opaque strings. The client should not try to parse or make assumptions about these resource IDs. In the future, membership results may include users from various tenants, as indicated in the response. Clients should avoid assuming that all members exclusively belong to the current tenant. This API is supported in the following national cloud deployments. /// public class MembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..1f5feca3cb2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Teams.Item.PermissionGrants.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Delta/DeltaRequestBuilder.cs index 18304aad07d..5c1890805d4 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Delta/DeltaResponse.cs index e47ef209290..e73242d2ab2 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Teams.Item.PermissionGrants.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs new file mode 100644 index 00000000000..064a0b252d5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Teams.Item.PermissionGrants.GetAvailableExtensionProperties { + public class GetAvailableExtensionPropertiesPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAvailableExtensionPropertiesPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index d89b7ccf898..3af45f9c08e 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -28,13 +28,36 @@ public GetAvailableExtensionPropertiesRequestBuilder(Dictionary public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/permissionGrants/getAvailableExtensionProperties", rawUrl) { } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetAvailableExtensionPropertiesPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetAvailabl return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index cca600af7f9..cbad9453fcb 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Teams.Item.PermissionGrants.GetAvailableExtensionProperties { - public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAvailableExtensionPropertiesPostResponse instead.")] + public class GetAvailableExtensionPropertiesResponse : GetAvailableExtensionPropertiesPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/GetByIds/GetByIdsPostResponse.cs new file mode 100644 index 00000000000..2e5732221e8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/GetByIds/GetByIdsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Teams.Item.PermissionGrants.GetByIds { + public class GetByIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetByIdsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs index 6eeade1c25a..af1636a65b0 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetByIdsRequestBuilder(Dictionary pathParameters, IReques public GetByIdsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/permissionGrants/getByIds", rawUrl) { } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetByIdsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetByIdsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetByIdsPostRequestBody body, Acti return await RequestAdapter.SendAsync(requestInfo, GetByIdsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/GetByIds/GetByIdsResponse.cs index c310412acf1..f55e082952f 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/GetByIds/GetByIdsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Teams.Item.PermissionGrants.GetByIds { - public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getByIdsPostResponse instead.")] + public class GetByIdsResponse : GetByIdsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..1629eb5979a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Teams.Item.PermissionGrants.Item.CheckMemberGroups { + public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index d42f681add8..f3f8bb53dbd 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index ee3ae971781..13d02c10321 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Teams.Item.PermissionGrants.Item.CheckMemberGroups { - public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberGroupsPostResponse instead.")] + public class CheckMemberGroupsResponse : CheckMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..342090595fd --- /dev/null +++ b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Teams.Item.PermissionGrants.Item.CheckMemberObjects { + public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index ce960e8331e..20d6e984587 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -34,6 +34,28 @@ public CheckMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAd /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action checkMemberObjects + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index 420228ec42b..a0eea2b637f 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Teams.Item.PermissionGrants.Item.CheckMemberObjects { - public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberObjectsPostResponse instead.")] + public class CheckMemberObjectsResponse : CheckMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..56b21282e92 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Teams.Item.PermissionGrants.Item.GetMemberGroups { + public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index 56f79eb769d..c8e2cd8000c 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberGroupsRequestBuilder(Dictionary pathParameters, public GetMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/getMemberGroups", rawUrl) { } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberGroupsPostRequestB return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs index f9a4200703d..384aba6d680 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Teams.Item.PermissionGrants.Item.GetMemberGroups { - public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberGroupsPostResponse instead.")] + public class GetMemberGroupsResponse : GetMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..368a5a79ac2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Teams.Item.PermissionGrants.Item.GetMemberObjects { + public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index a683718bee7..893c146ec1a 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberObjectsRequestBuilder(Dictionary pathParameters, public GetMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/getMemberObjects", rawUrl) { } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberObjectsPostReques return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs index b6e7bf91ac3..05517cacbe5 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Teams.Item.PermissionGrants.Item.GetMemberObjects { - public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberObjectsPostResponse instead.")] + public class GetMemberObjectsResponse : GetMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs index 0b5668b2169..978dcf8c70d 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs @@ -29,7 +29,7 @@ public RestoreRequestBuilder(Dictionary pathParameters, IRequest public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs index 458437f5f8d..0dccee8c610 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs @@ -62,7 +62,7 @@ public PermissionGrantsRequestBuilder(Dictionary pathParameters, public PermissionGrantsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/permissionGrants{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. + /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -103,7 +103,7 @@ public async Task PostAsync(ResourceSpecificPer return await RequestAdapter.SendAsync(requestInfo, ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. + /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,7 +164,7 @@ public PermissionGrantsRequestBuilder WithUrl(string rawUrl) { return new PermissionGrantsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. + /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is supported in the following national cloud deployments. /// public class PermissionGrantsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs index 51d099db6c2..61c4b81b9b4 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -28,7 +28,7 @@ public ValidatePropertiesRequestBuilder(Dictionary pathParameter public ValidatePropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/permissionGrants/validateProperties", rawUrl) { } /// - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ValidatePropertiesPostRequestBody body, Action - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Photo/PhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Photo/PhotoRequestBuilder.cs index 96223d21f7c..17083c8b6d2 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Photo/PhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Photo/PhotoRequestBuilder.cs @@ -34,7 +34,7 @@ public PhotoRequestBuilder(Dictionary pathParameters, IRequestAd public PhotoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/photo{?%24select,%24expand}", rawUrl) { } /// - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -75,7 +75,7 @@ public async Task PatchAsync(ProfilePhoto body, Action(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -136,7 +136,7 @@ public PhotoRequestBuilder WithUrl(string rawUrl) { return new PhotoRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is supported in the following national cloud deployments. /// public class PhotoRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.cs index 6291055eb57..b3037f8ee34 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.cs @@ -28,7 +28,7 @@ public CompleteMigrationRequestBuilder(Dictionary pathParameters public CompleteMigrationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/completeMigration", rawUrl) { } /// - /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs new file mode 100644 index 00000000000..eb89caa20d5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Teams.Item.PrimaryChannel.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName { + public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public bool? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse and sets the default values. + /// + public DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs index f6973813636..36e2b0e3866 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs @@ -33,6 +33,26 @@ public DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrinci /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function doesUserHaveAccess + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs index d9bf05f7de1..9b4a0889159 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Teams.Item.PrimaryChannel.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName { - public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public bool? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse and sets the default values. - /// - public DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse instead.")] + public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse : DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs index 6c4f7ef8b33..c47ef63734e 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs @@ -34,7 +34,7 @@ public FilesFolderRequestBuilder(Dictionary pathParameters, IReq public FilesFolderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/filesFolder{?%24select,%24expand}", rawUrl) { } /// - /// Get the metadata for the location where the files of a channel are stored. + /// Get the metadata for the location where the files of a channel are stored. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public FilesFolderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the metadata for the location where the files of a channel are stored. + /// Get the metadata for the location where the files of a channel are stored. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,7 +87,7 @@ public FilesFolderRequestBuilder WithUrl(string rawUrl) { return new FilesFolderRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the metadata for the location where the files of a channel are stored. + /// Get the metadata for the location where the files of a channel are stored. This API is supported in the following national cloud deployments. /// public class FilesFolderRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Add/AddPostResponse.cs new file mode 100644 index 00000000000..0aeed31f705 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Add/AddPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Teams.Item.PrimaryChannel.Members.Add { + public class AddPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AddPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AddPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Add/AddRequestBuilder.cs index 75af6396002..0158bdd9707 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Add/AddRequestBuilder.cs @@ -28,13 +28,36 @@ public AddRequestBuilder(Dictionary pathParameters, IRequestAdap public AddRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/members/add", rawUrl) { } /// - /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AddPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsAddPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(AddPostRequestBody body, Action(requestInfo, AddResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Add/AddResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Add/AddResponse.cs index f94b02ee502..f221567c793 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Add/AddResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Add/AddResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Teams.Item.PrimaryChannel.Members.Add { - public class AddResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use addPostResponse instead.")] + public class AddResponse : AddPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs index 7f8f521cd1e..4e8f44d5307 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -29,8 +29,8 @@ public ConversationMemberItemRequestBuilder(Dictionary pathParam public ConversationMemberItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/members/{conversationMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. - /// Find more info here + /// Delete a conversationMember from a channel. This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get a conversationMember from a channel. + /// Get a conversationMember from a channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a team or channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(ConversationMember body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Delete a conversationMember from a channel. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a conversationMember from a channel. + /// Get a conversationMember from a channel. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a team or channel. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public ConversationMemberItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a conversationMember from a channel. + /// Get a conversationMember from a channel. This API is supported in the following national cloud deployments. /// public class ConversationMemberItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs index a769caa4906..3802c80c97a 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs @@ -47,7 +47,7 @@ public MembersRequestBuilder(Dictionary pathParameters, IRequest public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/members{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a conversationMember to a channel. + /// Add a conversationMember to a channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(ConversationMember body, Action< return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a conversationMember to a channel. + /// Add a conversationMember to a channel. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public MembersRequestBuilder WithUrl(string rawUrl) { return new MembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. This API is supported in the following national cloud deployments. /// public class MembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..934892e7ce4 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Teams.Item.PrimaryChannel.Messages.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.cs index d3d98d81dfd..13fab3723fc 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Delta/DeltaResponse.cs index 4489439c837..bd7d7104b8e 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Teams.Item.PrimaryChannel.Messages.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs index 5c88737b4e0..107d51186e4 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs @@ -78,7 +78,7 @@ public async Task DeleteAsync(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -98,7 +98,7 @@ public async Task GetAsync(Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. + /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -144,7 +144,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,7 +170,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. + /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -221,7 +221,7 @@ public ChatMessageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// public class ChatMessageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs index 363f801b9e2..07e13320ad0 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -42,7 +42,7 @@ public HostedContentsRequestBuilder(Dictionary pathParameters, I public HostedContentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/messages/{chatMessage%2Did}/hostedContents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ChatMessageHostedContent b return await RequestAdapter.SendAsync(requestInfo, ChatMessageHostedContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public HostedContentsRequestBuilder WithUrl(string rawUrl) { return new HostedContentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// public class HostedContentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index bfa7af92283..17947c92a13 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public ChatMessageHostedContentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..80a8a490af6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Teams.Item.PrimaryChannel.Messages.Item.Replies.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs index c15dd16ce6e..a5c092823fc 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaResponse.cs index 0c76adcaf8c..63bb18bd36b 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Teams.Item.PrimaryChannel.Messages.Item.Replies.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs index cef8db6cd07..93bbee7b298 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs @@ -73,7 +73,7 @@ public async Task DeleteAsync(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -138,7 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -215,7 +215,7 @@ public ChatMessageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// public class ChatMessageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs index abcf42ea076..c4a12331174 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -42,7 +42,7 @@ public HostedContentsRequestBuilder(Dictionary pathParameters, I public HostedContentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ChatMessageHostedContent b return await RequestAdapter.SendAsync(requestInfo, ChatMessageHostedContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public HostedContentsRequestBuilder WithUrl(string rawUrl) { return new HostedContentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// public class HostedContentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 964472b4856..9c0a8a99a04 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public ChatMessageHostedContentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs index 7f3ea8d937e..f0a9a7a6be0 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public SoftDeleteRequestBuilder(Dictionary pathParameters, IRequ public SoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/softDelete", rawUrl) { } /// - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index ea42c282675..c66e782fb5e 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public UndoSoftDeleteRequestBuilder(Dictionary pathParameters, I public UndoSoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/undoSoftDelete", rawUrl) { } /// - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs index b9bd7083a6f..f5eeeee9a73 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -47,7 +47,7 @@ public RepliesRequestBuilder(Dictionary pathParameters, IRequest public RepliesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/messages/{chatMessage%2Did}/replies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public RepliesRequestBuilder WithUrl(string rawUrl) { return new RepliesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// public class RepliesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs index 5604be67677..429f827973e 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public SoftDeleteRequestBuilder(Dictionary pathParameters, IRequ public SoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/messages/{chatMessage%2Did}/softDelete", rawUrl) { } /// - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index d00f77b3aa3..39e479197be 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public UndoSoftDeleteRequestBuilder(Dictionary pathParameters, I public UndoSoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/messages/{chatMessage%2Did}/undoSoftDelete", rawUrl) { } /// - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs index 6eadd2d244c..983d5df4bb2 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs @@ -47,7 +47,7 @@ public MessagesRequestBuilder(Dictionary pathParameters, IReques public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/messages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified channel. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public MessagesRequestBuilder WithUrl(string rawUrl) { return new MessagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// public class MessagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.cs index 1b94214be0a..a6403c02ac8 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.cs @@ -93,7 +93,7 @@ public async Task DeleteAsync(Action - /// Get the default channel, General, of a team. + /// Get the default channel, General, of a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -158,7 +158,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the default channel, General, of a team. + /// Get the default channel, General, of a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -235,7 +235,7 @@ public PrimaryChannelRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the default channel, General, of a team. + /// Get the default channel, General, of a team. This API is supported in the following national cloud deployments. /// public class PrimaryChannelRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.cs index 6e69322e9fa..313ce8d9225 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.cs @@ -29,7 +29,7 @@ public ProvisionEmailRequestBuilder(Dictionary pathParameters, I public ProvisionEmailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/provisionEmail", rawUrl) { } /// - /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. + /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, ProvisionChannelEmailResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. + /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.cs index 466d75f6f88..9d9511010b7 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.cs @@ -28,7 +28,7 @@ public RemoveEmailRequestBuilder(Dictionary pathParameters, IReq public RemoveEmailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/removeEmail", rawUrl) { } /// - /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. + /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. + /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs index 7ea3bb6f587..f3dc52ed0e0 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs @@ -42,7 +42,7 @@ public AllowedMembersRequestBuilder(Dictionary pathParameters, I public AllowedMembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public AllowedMembersRequestBuilder WithUrl(string rawUrl) { return new AllowedMembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant This API is supported in the following national cloud deployments. /// public class AllowedMembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs index 18e0da1b32f..1edd20acd28 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs @@ -39,7 +39,7 @@ public SharedWithChannelTeamInfoItemRequestBuilder(Dictionary pa public SharedWithChannelTeamInfoItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. + /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -59,7 +59,7 @@ public async Task DeleteAsync(Action - /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -100,7 +100,7 @@ public async Task PatchAsync(SharedWithChannelTeamInf return await RequestAdapter.SendAsync(requestInfo, SharedWithChannelTeamInfo.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. + /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -124,7 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -201,7 +201,7 @@ public SharedWithChannelTeamInfoItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// public class SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs index 09af32b16ab..5431b7e28ee 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs @@ -42,7 +42,7 @@ public SharedWithTeamsRequestBuilder(Dictionary pathParameters, public SharedWithTeamsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/sharedWithTeams{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(SharedWithChannelTeamInfo return await RequestAdapter.SendAsync(requestInfo, SharedWithChannelTeamInfo.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SharedWithTeamsRequestBuilder WithUrl(string rawUrl) { return new SharedWithTeamsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// public class SharedWithTeamsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs index 0ab7c7c844b..2dd6d38e12e 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs @@ -29,7 +29,7 @@ public TeamsAppRequestBuilder(Dictionary pathParameters, IReques public TeamsAppRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/tabs/{teamsTab%2Did}/teamsApp{?%24select,%24expand}", rawUrl) { } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -48,7 +48,7 @@ public TeamsAppRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.TeamsApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +81,7 @@ public TeamsAppRequestBuilder WithUrl(string rawUrl) { return new TeamsAppRequestBuilder(rawUrl, RequestAdapter); } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// public class TeamsAppRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs index 5b55dedf6d0..4b878cb1122 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs @@ -34,7 +34,7 @@ public TeamsTabItemRequestBuilder(Dictionary pathParameters, IRe public TeamsTabItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/tabs/{teamsTab%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Removes (unpins) a tab from the specified channel within a team. + /// Removes (unpins) a tab from the specified channel within a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of the specified tab in a channel within a team. + /// Retrieve the properties and relationships of the specified tab in a channel within a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of the specified tab.This can be used to configure the content of the tab. + /// Update the properties of the specified tab.This can be used to configure the content of the tab. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(TeamsTab body, Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Removes (unpins) a tab from the specified channel within a team. + /// Removes (unpins) a tab from the specified channel within a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of the specified tab in a channel within a team. + /// Retrieve the properties and relationships of the specified tab in a channel within a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of the specified tab.This can be used to configure the content of the tab. + /// Update the properties of the specified tab.This can be used to configure the content of the tab. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public TeamsTabItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of the specified tab in a channel within a team. + /// Retrieve the properties and relationships of the specified tab in a channel within a team. This API is supported in the following national cloud deployments. /// public class TeamsTabItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Tabs/TabsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Tabs/TabsRequestBuilder.cs index 333cba370ab..eea4b07919f 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Tabs/TabsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Tabs/TabsRequestBuilder.cs @@ -42,7 +42,7 @@ public TabsRequestBuilder(Dictionary pathParameters, IRequestAda public TabsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/tabs{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of tabs in the specified channel within a team. + /// Retrieve the list of tabs in the specified channel within a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TeamsTabCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TeamsTab body, Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of tabs in the specified channel within a team. + /// Retrieve the list of tabs in the specified channel within a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public TabsRequestBuilder WithUrl(string rawUrl) { return new TabsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of tabs in the specified channel within a team. + /// Retrieve the list of tabs in the specified channel within a team. This API is supported in the following national cloud deployments. /// public class TabsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.cs index 965c763bce3..41166a2a13f 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of an offerShiftRequest object. + /// Retrieve the properties and relationships of an offerShiftRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of an offerShiftRequest object. + /// Retrieve the properties and relationships of an offerShiftRequest object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public OfferShiftRequestItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of an offerShiftRequest object. + /// Retrieve the properties and relationships of an offerShiftRequest object. This API is supported in the following national cloud deployments. /// public class OfferShiftRequestItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs index ede6cf161bf..40f6afe92f1 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs @@ -42,7 +42,7 @@ public OfferShiftRequestsRequestBuilder(Dictionary pathParameter public OfferShiftRequestsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/schedule/offerShiftRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the properties and relationships of all offerShiftRequest objects in a team. + /// Retrieve the properties and relationships of all offerShiftRequest objects in a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OfferShiftRequestCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an instance of an offerShiftRequest. + /// Create an instance of an offerShiftRequest. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OfferShiftRequest body, Action(requestInfo, OfferShiftRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the properties and relationships of all offerShiftRequest objects in a team. + /// Retrieve the properties and relationships of all offerShiftRequest objects in a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an instance of an offerShiftRequest. + /// Create an instance of an offerShiftRequest. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public OfferShiftRequestsRequestBuilder WithUrl(string rawUrl) { return new OfferShiftRequestsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the properties and relationships of all offerShiftRequest objects in a team. + /// Retrieve the properties and relationships of all offerShiftRequest objects in a team. This API is supported in the following national cloud deployments. /// public class OfferShiftRequestsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs index bdaab212885..55e6f13a96e 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of an openShiftChangeRequest object. + /// Retrieve the properties and relationships of an openShiftChangeRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of an openShiftChangeRequest object. + /// Retrieve the properties and relationships of an openShiftChangeRequest object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public OpenShiftChangeRequestItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of an openShiftChangeRequest object. + /// Retrieve the properties and relationships of an openShiftChangeRequest object. This API is supported in the following national cloud deployments. /// public class OpenShiftChangeRequestItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs index 9f210a781aa..d41b01b263a 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs @@ -42,7 +42,7 @@ public OpenShiftChangeRequestsRequestBuilder(Dictionary pathPara public OpenShiftChangeRequestsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/schedule/openShiftChangeRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of openShiftChangeRequest objects in a team. + /// Retrieve a list of openShiftChangeRequest objects in a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OpenShiftChangeRequestCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create instance of an openShiftChangeRequest object. + /// Create instance of an openShiftChangeRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OpenShiftChangeRequest body, return await RequestAdapter.SendAsync(requestInfo, OpenShiftChangeRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of openShiftChangeRequest objects in a team. + /// Retrieve a list of openShiftChangeRequest objects in a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create instance of an openShiftChangeRequest object. + /// Create instance of an openShiftChangeRequest object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public OpenShiftChangeRequestsRequestBuilder WithUrl(string rawUrl) { return new OpenShiftChangeRequestsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of openShiftChangeRequest objects in a team. + /// Retrieve a list of openShiftChangeRequest objects in a team. This API is supported in the following national cloud deployments. /// public class OpenShiftChangeRequestsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs index d44007eac49..a21186e200c 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs @@ -29,7 +29,7 @@ public OpenShiftItemRequestBuilder(Dictionary pathParameters, IR public OpenShiftItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/schedule/openShifts/{openShift%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an openShift object. + /// Delete an openShift object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of an openshift object. + /// Retrieve the properties and relationships of an openshift object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -91,7 +91,7 @@ public async Task PatchAsync(OpenShift body, Action(requestInfo, OpenShift.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an openShift object. + /// Delete an openShift object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of an openshift object. + /// Retrieve the properties and relationships of an openshift object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -192,7 +192,7 @@ public OpenShiftItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of an openshift object. + /// Retrieve the properties and relationships of an openshift object. This API is supported in the following national cloud deployments. /// public class OpenShiftItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs index 7012c5fcd4c..32a3a3d353d 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs @@ -42,7 +42,7 @@ public OpenShiftsRequestBuilder(Dictionary pathParameters, IRequ public OpenShiftsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/schedule/openShifts{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List openShift objects in a team. + /// List openShift objects in a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OpenShiftCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an instance of an openShift object. + /// Create an instance of an openShift object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OpenShift body, Action(requestInfo, OpenShift.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List openShift objects in a team. + /// List openShift objects in a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an instance of an openShift object. + /// Create an instance of an openShift object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public OpenShiftsRequestBuilder WithUrl(string rawUrl) { return new OpenShiftsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List openShift objects in a team. + /// List openShift objects in a team. This API is supported in the following national cloud deployments. /// public class OpenShiftsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/ScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/ScheduleRequestBuilder.cs index ea9e632a330..3d4adb13f49 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/ScheduleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/ScheduleRequestBuilder.cs @@ -98,7 +98,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule. + /// Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -163,7 +163,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule. + /// Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -240,7 +240,7 @@ public ScheduleRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule. + /// Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule. This API is supported in the following national cloud deployments. /// public class ScheduleRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.cs index c9fd76fe4be..7cff79f73b8 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.cs @@ -29,7 +29,7 @@ public SchedulingGroupItemRequestBuilder(Dictionary pathParamete public SchedulingGroupItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/schedule/schedulingGroups/{schedulingGroup%2Did}{?%24select}", rawUrl) { } /// - /// Mark a schedulingGroup as inactive by setting its isActive property.This method does not remove the schedulingGroup from the schedule. Existing shift instances assigned to the scheduling group remain part of the group. + /// Mark a schedulingGroup as inactive by setting its isActive property.This method does not remove the schedulingGroup from the schedule. Existing shift instances assigned to the scheduling group remain part of the group. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a schedulingGroup by ID. + /// Retrieve the properties and relationships of a schedulingGroup by ID. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -91,7 +91,7 @@ public async Task PatchAsync(SchedulingGroup body, Action(requestInfo, SchedulingGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Mark a schedulingGroup as inactive by setting its isActive property.This method does not remove the schedulingGroup from the schedule. Existing shift instances assigned to the scheduling group remain part of the group. + /// Mark a schedulingGroup as inactive by setting its isActive property.This method does not remove the schedulingGroup from the schedule. Existing shift instances assigned to the scheduling group remain part of the group. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a schedulingGroup by ID. + /// Retrieve the properties and relationships of a schedulingGroup by ID. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -192,7 +192,7 @@ public SchedulingGroupItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a schedulingGroup by ID. + /// Retrieve the properties and relationships of a schedulingGroup by ID. This API is supported in the following national cloud deployments. /// public class SchedulingGroupItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs index 683f735eebd..bfc9a2e57fe 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs @@ -42,7 +42,7 @@ public SchedulingGroupsRequestBuilder(Dictionary pathParameters, public SchedulingGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/schedule/schedulingGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get the list of schedulingGroups in this schedule. + /// Get the list of schedulingGroups in this schedule. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, SchedulingGroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new schedulingGroup. + /// Create a new schedulingGroup. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(SchedulingGroup body, Action(requestInfo, SchedulingGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of schedulingGroups in this schedule. + /// Get the list of schedulingGroups in this schedule. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new schedulingGroup. + /// Create a new schedulingGroup. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SchedulingGroupsRequestBuilder WithUrl(string rawUrl) { return new SchedulingGroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of schedulingGroups in this schedule. + /// Get the list of schedulingGroups in this schedule. This API is supported in the following national cloud deployments. /// public class SchedulingGroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/Share/ShareRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/Share/ShareRequestBuilder.cs index 923ab1221a1..2d51c999a33 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/Share/ShareRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/Share/ShareRequestBuilder.cs @@ -28,7 +28,7 @@ public ShareRequestBuilder(Dictionary pathParameters, IRequestAd public ShareRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/schedule/share", rawUrl) { } /// - /// Share a schedule time range with schedule members.Make the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers.Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. + /// Share a schedule time range with schedule members.Make the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers.Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SharePostRequestBody body, Action - /// Share a schedule time range with schedule members.Make the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers.Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. + /// Share a schedule time range with schedule members.Make the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers.Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs index ccab2c6a160..efd6f60dd17 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs @@ -29,7 +29,7 @@ public ShiftItemRequestBuilder(Dictionary pathParameters, IReque public ShiftItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/schedule/shifts/{shift%2Did}{?%24select}", rawUrl) { } /// - /// Delete a shift from the schedule. + /// Delete a shift from the schedule. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a shift object by ID. + /// Retrieve the properties and relationships of a shift object by ID. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -91,7 +91,7 @@ public async Task PatchAsync(Shift body, Action(requestInfo, Shift.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a shift from the schedule. + /// Delete a shift from the schedule. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a shift object by ID. + /// Retrieve the properties and relationships of a shift object by ID. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -192,7 +192,7 @@ public ShiftItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a shift object by ID. + /// Retrieve the properties and relationships of a shift object by ID. This API is supported in the following national cloud deployments. /// public class ShiftItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/Shifts/ShiftsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/Shifts/ShiftsRequestBuilder.cs index e9007e43a59..92f981b9fb5 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/Shifts/ShiftsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/Shifts/ShiftsRequestBuilder.cs @@ -42,7 +42,7 @@ public ShiftsRequestBuilder(Dictionary pathParameters, IRequestA public ShiftsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/schedule/shifts{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get the list of shift instances in a schedule. + /// Get the list of shift instances in a schedule. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ShiftCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new shift instance in a schedule. The duration of a shift cannot be less than 1 minute or longer than 24 hours. + /// Create a new shift instance in a schedule. The duration of a shift cannot be less than 1 minute or longer than 24 hours. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(Shift body, Action(requestInfo, Shift.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of shift instances in a schedule. + /// Get the list of shift instances in a schedule. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new shift instance in a schedule. The duration of a shift cannot be less than 1 minute or longer than 24 hours. + /// Create a new shift instance in a schedule. The duration of a shift cannot be less than 1 minute or longer than 24 hours. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ShiftsRequestBuilder WithUrl(string rawUrl) { return new ShiftsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of shift instances in a schedule. + /// Get the list of shift instances in a schedule. This API is supported in the following national cloud deployments. /// public class ShiftsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.cs index da33eaadc75..0e64555b2e3 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a swapShiftsChangeRequest object. + /// Retrieve the properties and relationships of a swapShiftsChangeRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a swapShiftsChangeRequest object. + /// Retrieve the properties and relationships of a swapShiftsChangeRequest object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public SwapShiftsChangeRequestItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a swapShiftsChangeRequest object. + /// Retrieve the properties and relationships of a swapShiftsChangeRequest object. This API is supported in the following national cloud deployments. /// public class SwapShiftsChangeRequestItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs index 845c6277b21..86a83879260 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs @@ -42,7 +42,7 @@ public SwapShiftsChangeRequestsRequestBuilder(Dictionary pathPar public SwapShiftsChangeRequestsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/schedule/swapShiftsChangeRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of swapShiftsChangeRequest objects in the team. + /// Retrieve a list of swapShiftsChangeRequest objects in the team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, SwapShiftsChangeRequestCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an instance of a swapShiftsChangeRequest object. + /// Create an instance of a swapShiftsChangeRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(SwapShiftsChangeRequest bod return await RequestAdapter.SendAsync(requestInfo, SwapShiftsChangeRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of swapShiftsChangeRequest objects in the team. + /// Retrieve a list of swapShiftsChangeRequest objects in the team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an instance of a swapShiftsChangeRequest object. + /// Create an instance of a swapShiftsChangeRequest object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SwapShiftsChangeRequestsRequestBuilder WithUrl(string rawUrl) { return new SwapShiftsChangeRequestsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of swapShiftsChangeRequest objects in the team. + /// Retrieve a list of swapShiftsChangeRequest objects in the team. This API is supported in the following national cloud deployments. /// public class SwapShiftsChangeRequestsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.cs index f6c58ca140b..882f7f82e71 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.cs @@ -29,7 +29,7 @@ public TimeOffReasonItemRequestBuilder(Dictionary pathParameters public TimeOffReasonItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/schedule/timeOffReasons/{timeOffReason%2Did}{?%24select}", rawUrl) { } /// - /// Mark a timeOffReason as inactive by setting the isActive property. Every team must include at least one timeoff reason. This method does not remove the specified timeOffReason instance. timeOffItem instances that have been assigned this reason remain assigned to this reason. + /// Mark a timeOffReason as inactive by setting the isActive property. Every team must include at least one timeoff reason. This method doesn't remove the specified timeOffReason instance. timeOffItem instances that have been assigned this reason remain assigned to this reason. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a timeOffReason object by ID. + /// Retrieve the properties and relationships of a timeOffReason object by ID. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -91,7 +91,7 @@ public async Task PatchAsync(TimeOffReason body, Action(requestInfo, TimeOffReason.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Mark a timeOffReason as inactive by setting the isActive property. Every team must include at least one timeoff reason. This method does not remove the specified timeOffReason instance. timeOffItem instances that have been assigned this reason remain assigned to this reason. + /// Mark a timeOffReason as inactive by setting the isActive property. Every team must include at least one timeoff reason. This method doesn't remove the specified timeOffReason instance. timeOffItem instances that have been assigned this reason remain assigned to this reason. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a timeOffReason object by ID. + /// Retrieve the properties and relationships of a timeOffReason object by ID. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -192,7 +192,7 @@ public TimeOffReasonItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a timeOffReason object by ID. + /// Retrieve the properties and relationships of a timeOffReason object by ID. This API is supported in the following national cloud deployments. /// public class TimeOffReasonItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs index 0a93df9a8f4..e956681e0f8 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs @@ -42,7 +42,7 @@ public TimeOffReasonsRequestBuilder(Dictionary pathParameters, I public TimeOffReasonsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/schedule/timeOffReasons{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get the list of timeOffReasons in a schedule. + /// Get the list of timeOffReasons in a schedule. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TimeOffReasonCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new timeOffReason. + /// Create a new timeOffReason. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TimeOffReason body, Action(requestInfo, TimeOffReason.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of timeOffReasons in a schedule. + /// Get the list of timeOffReasons in a schedule. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new timeOffReason. + /// Create a new timeOffReason. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public TimeOffReasonsRequestBuilder WithUrl(string rawUrl) { return new TimeOffReasonsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of timeOffReasons in a schedule. + /// Get the list of timeOffReasons in a schedule. This API is supported in the following national cloud deployments. /// public class TimeOffReasonsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.cs index 495032e1423..95009ee385e 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.cs @@ -29,7 +29,7 @@ public TimeOffRequestItemRequestBuilder(Dictionary pathParameter public TimeOffRequestItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/schedule/timeOffRequests/{timeOffRequest%2Did}{?%24select}", rawUrl) { } /// - /// Delete a timeOffRequest object. + /// Delete a timeOffRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a timeoffrequest object. + /// Retrieve the properties and relationships of a timeoffrequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(TimeOffRequest body, Action(requestInfo, TimeOffRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a timeOffRequest object. + /// Delete a timeOffRequest object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a timeoffrequest object. + /// Retrieve the properties and relationships of a timeoffrequest object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public TimeOffRequestItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a timeoffrequest object. + /// Retrieve the properties and relationships of a timeoffrequest object. This API is supported in the following national cloud deployments. /// public class TimeOffRequestItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs index d286a81f9f4..c4805c34fe9 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs @@ -42,7 +42,7 @@ public TimeOffRequestsRequestBuilder(Dictionary pathParameters, public TimeOffRequestsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/schedule/timeOffRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Retrieve a list of timeOffRequest objects in the team. + /// Retrieve a list of timeOffRequest objects in the team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(TimeOffRequest body, Action(requestInfo, TimeOffRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of timeOffRequest objects in the team. + /// Retrieve a list of timeOffRequest objects in the team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public TimeOffRequestsRequestBuilder WithUrl(string rawUrl) { return new TimeOffRequestsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of timeOffRequest objects in the team. + /// Retrieve a list of timeOffRequest objects in the team. This API is supported in the following national cloud deployments. /// public class TimeOffRequestsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.cs index f13b6effcec..eebe6745687 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.cs @@ -29,7 +29,7 @@ public TimeOffItemRequestBuilder(Dictionary pathParameters, IReq public TimeOffItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/schedule/timesOff/{timeOff%2Did}{?%24select}", rawUrl) { } /// - /// Delete a timeOff instance from a schedule. + /// Delete a timeOff instance from a schedule. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a timeOff object by ID. + /// Retrieve the properties and relationships of a timeOff object by ID. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -91,7 +91,7 @@ public async Task PatchAsync(TimeOff body, Action(requestInfo, TimeOff.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a timeOff instance from a schedule. + /// Delete a timeOff instance from a schedule. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a timeOff object by ID. + /// Retrieve the properties and relationships of a timeOff object by ID. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -192,7 +192,7 @@ public TimeOffItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a timeOff object by ID. + /// Retrieve the properties and relationships of a timeOff object by ID. This API is supported in the following national cloud deployments. /// public class TimeOffItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimesOff/TimesOffRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimesOff/TimesOffRequestBuilder.cs index e6f8b917b15..d96eaaea821 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimesOff/TimesOffRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimesOff/TimesOffRequestBuilder.cs @@ -42,7 +42,7 @@ public TimesOffRequestBuilder(Dictionary pathParameters, IReques public TimesOffRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/schedule/timesOff{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get the list of timeOff instances in a schedule. + /// Get the list of timeOff instances in a schedule. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TimeOffCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new timeOff instance in a schedule. + /// Create a new timeOff instance in a schedule. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TimeOff body, Action(requestInfo, TimeOff.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of timeOff instances in a schedule. + /// Get the list of timeOff instances in a schedule. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new timeOff instance in a schedule. + /// Create a new timeOff instance in a schedule. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public TimesOffRequestBuilder WithUrl(string rawUrl) { return new TimesOffRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of timeOff instances in a schedule. + /// Get the list of timeOff instances in a schedule. This API is supported in the following national cloud deployments. /// public class TimesOffRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs index a1136eb2caf..300570a3857 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs @@ -28,7 +28,7 @@ public SendActivityNotificationRequestBuilder(Dictionary pathPar public SendActivityNotificationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/sendActivityNotification", rawUrl) { } /// - /// Send an activity feed notification in the scope of a team. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. + /// Send an activity feed notification in the scope of a team. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SendActivityNotificationPostRequestBody body, Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send an activity feed notification in the scope of a team. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. + /// Send an activity feed notification in the scope of a team. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs index d66026689a2..bcd8340a853 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs @@ -29,7 +29,7 @@ public TeamworkTagMemberItemRequestBuilder(Dictionary pathParame public TeamworkTagMemberItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/tags/{teamworkTag%2Did}/members/{teamworkTagMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a member from a standard tag in a team. + /// Delete a member from a standard tag in a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get the properties and relationships of a member of a standard tag in a team. + /// Get the properties and relationships of a member of a standard tag in a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(TeamworkTagMember body, Action(requestInfo, TeamworkTagMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a member from a standard tag in a team. + /// Delete a member from a standard tag in a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties and relationships of a member of a standard tag in a team. + /// Get the properties and relationships of a member of a standard tag in a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public TeamworkTagMemberItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the properties and relationships of a member of a standard tag in a team. + /// Get the properties and relationships of a member of a standard tag in a team. This API is supported in the following national cloud deployments. /// public class TeamworkTagMemberItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/Members/MembersRequestBuilder.cs index e344ffa5430..a0a9445c414 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/Members/MembersRequestBuilder.cs @@ -42,7 +42,7 @@ public MembersRequestBuilder(Dictionary pathParameters, IRequest public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/tags/{teamworkTag%2Did}/members{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the members of a standard tag in a team and their properties. + /// Get a list of the members of a standard tag in a team and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TeamworkTagMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new teamworkTagMember object in a team. + /// Create a new teamworkTagMember object in a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TeamworkTagMember body, Action(requestInfo, TeamworkTagMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the members of a standard tag in a team and their properties. + /// Get a list of the members of a standard tag in a team and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new teamworkTagMember object in a team. + /// Create a new teamworkTagMember object in a team. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public MembersRequestBuilder WithUrl(string rawUrl) { return new MembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the members of a standard tag in a team and their properties. + /// Get a list of the members of a standard tag in a team and their properties. This API is supported in the following national cloud deployments. /// public class MembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs index 898bdc7138a..8d87ced9bf5 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs @@ -34,7 +34,7 @@ public TeamworkTagItemRequestBuilder(Dictionary pathParameters, public TeamworkTagItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/tags/{teamworkTag%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a tag object permanently. + /// Delete a tag object permanently. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a tag object. + /// Read the properties and relationships of a tag object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, TeamworkTag.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a tag object. + /// Update the properties of a tag object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(TeamworkTag body, Action(requestInfo, TeamworkTag.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a tag object permanently. + /// Delete a tag object permanently. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a tag object. + /// Read the properties and relationships of a tag object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a tag object. + /// Update the properties of a tag object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public TeamworkTagItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a tag object. + /// Read the properties and relationships of a tag object. This API is supported in the following national cloud deployments. /// public class TeamworkTagItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Tags/TagsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Tags/TagsRequestBuilder.cs index f08853fb757..d725781fb34 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Tags/TagsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Tags/TagsRequestBuilder.cs @@ -42,7 +42,7 @@ public TagsRequestBuilder(Dictionary pathParameters, IRequestAda public TagsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/tags{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the tag objects and their properties. + /// Get a list of the tag objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TeamworkTagCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a standard tag for members in a team. + /// Create a standard tag for members in a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TeamworkTag body, Action(requestInfo, TeamworkTag.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the tag objects and their properties. + /// Get a list of the tag objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a standard tag for members in a team. + /// Create a standard tag for members in a team. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public TagsRequestBuilder WithUrl(string rawUrl) { return new TagsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the tag objects and their properties. + /// Get a list of the tag objects and their properties. This API is supported in the following national cloud deployments. /// public class TagsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/TeamItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/TeamItemRequestBuilder.cs index e805e711274..1f7d915043d 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/TeamItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/TeamItemRequestBuilder.cs @@ -138,7 +138,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of the specified team. + /// Retrieve the properties and relationships of the specified team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -158,7 +158,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Team.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of the specified team. + /// Update the properties of the specified team. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -204,7 +204,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of the specified team. + /// Retrieve the properties and relationships of the specified team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -230,7 +230,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of the specified team. + /// Update the properties of the specified team. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -281,7 +281,7 @@ public TeamItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of the specified team. + /// Retrieve the properties and relationships of the specified team. This API is supported in the following national cloud deployments. /// public class TeamItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Unarchive/UnarchiveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Unarchive/UnarchiveRequestBuilder.cs index b95c618d264..f68daadfb05 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Unarchive/UnarchiveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Unarchive/UnarchiveRequestBuilder.cs @@ -28,7 +28,7 @@ public UnarchiveRequestBuilder(Dictionary pathParameters, IReque public UnarchiveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/unarchive", rawUrl) { } /// - /// Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. + /// Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. + /// Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Teams/TeamsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/TeamsRequestBuilder.cs index ca1e692dd7b..ef7b2669d6a 100644 --- a/src/Microsoft.Graph/Generated/Teams/TeamsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/TeamsRequestBuilder.cs @@ -47,7 +47,7 @@ public TeamsRequestBuilder(Dictionary pathParameters, IRequestAd public TeamsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all teams in an organization. + /// List all teams in an organization. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, TeamCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new team. + /// Create a new team. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Team.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all teams in an organization. + /// List all teams in an organization. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new team. + /// Create a new team. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public TeamsRequestBuilder WithUrl(string rawUrl) { return new TeamsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all teams in an organization. + /// List all teams in an organization. This API is supported in the following national cloud deployments. /// public class TeamsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/DeletedTeamsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/DeletedTeamsRequestBuilder.cs index 48fd92f76a7..7b34791ed04 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/DeletedTeamsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/DeletedTeamsRequestBuilder.cs @@ -47,7 +47,7 @@ public DeletedTeamsRequestBuilder(Dictionary pathParameters, IRe public DeletedTeamsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teamwork/deletedTeams{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the deletedTeam objects and their properties. + /// Get a list of the deletedTeam objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -88,7 +88,7 @@ public async Task PostAsync(DeletedTeam body, Action(requestInfo, DeletedTeam.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the deletedTeam objects and their properties. + /// Get a list of the deletedTeam objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -149,7 +149,7 @@ public DeletedTeamsRequestBuilder WithUrl(string rawUrl) { return new DeletedTeamsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the deletedTeam objects and their properties. + /// Get a list of the deletedTeam objects and their properties. This API is supported in the following national cloud deployments. /// public class DeletedTeamsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/GetAllMessages/GetAllMessagesGetResponse.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/GetAllMessages/GetAllMessagesGetResponse.cs new file mode 100644 index 00000000000..67cd196e8b6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/GetAllMessages/GetAllMessagesGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Teamwork.DeletedTeams.GetAllMessages { + public class GetAllMessagesGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAllMessagesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAllMessagesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/GetAllMessages/GetAllMessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/GetAllMessages/GetAllMessagesRequestBuilder.cs index 7bc83a43fb4..51b24831612 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/GetAllMessages/GetAllMessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/GetAllMessages/GetAllMessagesRequestBuilder.cs @@ -33,6 +33,26 @@ public GetAllMessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetAllMessagesGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetAllMessagesGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAllMessagesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getAllMessages + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetAllMessagesGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/GetAllMessages/GetAllMessagesResponse.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/GetAllMessages/GetAllMessagesResponse.cs index 5d5221d7972..235de0ae3ea 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/GetAllMessages/GetAllMessagesResponse.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/GetAllMessages/GetAllMessagesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Teamwork.DeletedTeams.GetAllMessages { - public class GetAllMessagesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAllMessagesGetResponse instead.")] + public class GetAllMessagesResponse : GetAllMessagesGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAllMessagesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllMessages/GetAllMessagesGetResponse.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllMessages/GetAllMessagesGetResponse.cs new file mode 100644 index 00000000000..1de197aea0e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllMessages/GetAllMessagesGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Teamwork.DeletedTeams.Item.Channels.GetAllMessages { + public class GetAllMessagesGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAllMessagesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAllMessagesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs index 27edc1e17a3..e1d53488400 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs @@ -33,6 +33,26 @@ public GetAllMessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetAllMessagesGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetAllMessagesGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAllMessagesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getAllMessages + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetAllMessagesGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllMessages/GetAllMessagesResponse.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllMessages/GetAllMessagesResponse.cs index d06f850f5fb..82a9ec1ebda 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllMessages/GetAllMessagesResponse.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllMessages/GetAllMessagesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Teamwork.DeletedTeams.Item.Channels.GetAllMessages { - public class GetAllMessagesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAllMessagesGetResponse instead.")] + public class GetAllMessagesResponse : GetAllMessagesGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAllMessagesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs index 61220137cba..fb9c5b3341d 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs @@ -28,7 +28,7 @@ public CompleteMigrationRequestBuilder(Dictionary pathParameters public CompleteMigrationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/completeMigration", rawUrl) { } /// - /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs new file mode 100644 index 00000000000..098c7ebcee2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Teamwork.DeletedTeams.Item.Channels.Item.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName { + public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public bool? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse and sets the default values. + /// + public DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs index b96e7017826..ea8c8db2f71 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs @@ -33,6 +33,26 @@ public DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrinci /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function doesUserHaveAccess + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs index cd38e761a75..90440aa7b70 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Teamwork.DeletedTeams.Item.Channels.Item.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName { - public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public bool? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse and sets the default values. - /// - public DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse instead.")] + public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse : DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs index 80daa6ec1a1..bbbe053ac31 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs @@ -34,7 +34,7 @@ public FilesFolderRequestBuilder(Dictionary pathParameters, IReq public FilesFolderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/filesFolder{?%24select,%24expand}", rawUrl) { } /// - /// Get the metadata for the location where the files of a channel are stored. + /// Get the metadata for the location where the files of a channel are stored. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public FilesFolderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the metadata for the location where the files of a channel are stored. + /// Get the metadata for the location where the files of a channel are stored. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,7 +87,7 @@ public FilesFolderRequestBuilder WithUrl(string rawUrl) { return new FilesFolderRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the metadata for the location where the files of a channel are stored. + /// Get the metadata for the location where the files of a channel are stored. This API is supported in the following national cloud deployments. /// public class FilesFolderRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Add/AddPostResponse.cs new file mode 100644 index 00000000000..dea0dede9b7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Add/AddPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Teamwork.DeletedTeams.Item.Channels.Item.Members.Add { + public class AddPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AddPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AddPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Add/AddRequestBuilder.cs index 78bd644879f..8a9c2f86e40 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Add/AddRequestBuilder.cs @@ -28,13 +28,36 @@ public AddRequestBuilder(Dictionary pathParameters, IRequestAdap public AddRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/members/add", rawUrl) { } /// - /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AddPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsAddPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(AddPostRequestBody body, Action(requestInfo, AddResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Add/AddResponse.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Add/AddResponse.cs index bd59fa89974..4cc3e1b8f57 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Add/AddResponse.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Add/AddResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Teamwork.DeletedTeams.Item.Channels.Item.Members.Add { - public class AddResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use addPostResponse instead.")] + public class AddResponse : AddPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index d4536b0835d..1b682c9393b 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -29,8 +29,8 @@ public ConversationMemberItemRequestBuilder(Dictionary pathParam public ConversationMemberItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/members/{conversationMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. - /// Find more info here + /// Delete a conversationMember from a channel. This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get a conversationMember from a channel. + /// Get a conversationMember from a channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a team or channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(ConversationMember body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Delete a conversationMember from a channel. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a conversationMember from a channel. + /// Get a conversationMember from a channel. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a team or channel. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public ConversationMemberItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a conversationMember from a channel. + /// Get a conversationMember from a channel. This API is supported in the following national cloud deployments. /// public class ConversationMemberItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs index 9e254a5421a..5ad71be3c98 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs @@ -47,7 +47,7 @@ public MembersRequestBuilder(Dictionary pathParameters, IRequest public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/members{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a conversationMember to a channel. + /// Add a conversationMember to a channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(ConversationMember body, Action< return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a conversationMember to a channel. + /// Add a conversationMember to a channel. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public MembersRequestBuilder WithUrl(string rawUrl) { return new MembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. This API is supported in the following national cloud deployments. /// public class MembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..6a21bdd63e7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Teamwork.DeletedTeams.Item.Channels.Item.Messages.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs index 47cc366a619..e2e7f1ee7f1 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Delta/DeltaResponse.cs index abe4c7f2167..a64eb42793d 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Teamwork.DeletedTeams.Item.Channels.Item.Messages.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs index b59ee461881..f86f2bd00fc 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs @@ -78,7 +78,7 @@ public async Task DeleteAsync(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -98,7 +98,7 @@ public async Task GetAsync(Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. + /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -144,7 +144,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,7 +170,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. + /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -221,7 +221,7 @@ public ChatMessageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// public class ChatMessageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs index ef6c82a3857..a5dbc9f1f7f 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -42,7 +42,7 @@ public HostedContentsRequestBuilder(Dictionary pathParameters, I public HostedContentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ChatMessageHostedContent b return await RequestAdapter.SendAsync(requestInfo, ChatMessageHostedContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public HostedContentsRequestBuilder WithUrl(string rawUrl) { return new HostedContentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// public class HostedContentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index a2021137922..8fb743bb2e1 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public ChatMessageHostedContentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..172bb11311d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Teamwork.DeletedTeams.Item.Channels.Item.Messages.Item.Replies.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs index 1f1875faec0..2cc97bed303 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs index 6790f97945e..22e18a46fd3 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Teamwork.DeletedTeams.Item.Channels.Item.Messages.Item.Replies.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs index 83c2c19ba1a..8bb9bf1f095 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs @@ -73,7 +73,7 @@ public async Task DeleteAsync(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -138,7 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -215,7 +215,7 @@ public ChatMessageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// public class ChatMessageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs index abf26ab601f..8362507c9ac 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -42,7 +42,7 @@ public HostedContentsRequestBuilder(Dictionary pathParameters, I public HostedContentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ChatMessageHostedContent b return await RequestAdapter.SendAsync(requestInfo, ChatMessageHostedContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public HostedContentsRequestBuilder WithUrl(string rawUrl) { return new HostedContentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// public class HostedContentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index d4195a0815e..71ca862c07a 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public ChatMessageHostedContentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs index b4a1512ef91..948fa4291ec 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public SoftDeleteRequestBuilder(Dictionary pathParameters, IRequ public SoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/softDelete", rawUrl) { } /// - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index a0694e68780..253f340efaf 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public UndoSoftDeleteRequestBuilder(Dictionary pathParameters, I public UndoSoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/undoSoftDelete", rawUrl) { } /// - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs index ec6156712b9..c10961fd4c5 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -47,7 +47,7 @@ public RepliesRequestBuilder(Dictionary pathParameters, IRequest public RepliesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public RepliesRequestBuilder WithUrl(string rawUrl) { return new RepliesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// public class RepliesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs index 7f119bcf6f3..3e5c47e1b49 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public SoftDeleteRequestBuilder(Dictionary pathParameters, IRequ public SoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/softDelete", rawUrl) { } /// - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index 422c44e6821..e71df3c0d6d 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public UndoSoftDeleteRequestBuilder(Dictionary pathParameters, I public UndoSoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/undoSoftDelete", rawUrl) { } /// - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs index a7a02fe1ab4..8f630e8fc2a 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs @@ -47,7 +47,7 @@ public MessagesRequestBuilder(Dictionary pathParameters, IReques public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified channel. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public MessagesRequestBuilder WithUrl(string rawUrl) { return new MessagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// public class MessagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs index c6cc452b7ea..41e99f208c5 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs @@ -29,7 +29,7 @@ public ProvisionEmailRequestBuilder(Dictionary pathParameters, I public ProvisionEmailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/provisionEmail", rawUrl) { } /// - /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. + /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, ProvisionChannelEmailResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. + /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs index f4af0a96486..b38776b8015 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs @@ -28,7 +28,7 @@ public RemoveEmailRequestBuilder(Dictionary pathParameters, IReq public RemoveEmailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/removeEmail", rawUrl) { } /// - /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. + /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. + /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs index 30c6ec6525d..ed1cc1347ff 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs @@ -42,7 +42,7 @@ public AllowedMembersRequestBuilder(Dictionary pathParameters, I public AllowedMembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public AllowedMembersRequestBuilder WithUrl(string rawUrl) { return new AllowedMembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant This API is supported in the following national cloud deployments. /// public class AllowedMembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs index 65130366be8..ac22b5aa1d2 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs @@ -39,7 +39,7 @@ public SharedWithChannelTeamInfoItemRequestBuilder(Dictionary pa public SharedWithChannelTeamInfoItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. + /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -59,7 +59,7 @@ public async Task DeleteAsync(Action - /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -100,7 +100,7 @@ public async Task PatchAsync(SharedWithChannelTeamInf return await RequestAdapter.SendAsync(requestInfo, SharedWithChannelTeamInfo.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. + /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -124,7 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -201,7 +201,7 @@ public SharedWithChannelTeamInfoItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// public class SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs index 91e1633a766..830254e859c 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs @@ -42,7 +42,7 @@ public SharedWithTeamsRequestBuilder(Dictionary pathParameters, public SharedWithTeamsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/sharedWithTeams{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(SharedWithChannelTeamInfo return await RequestAdapter.SendAsync(requestInfo, SharedWithChannelTeamInfo.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SharedWithTeamsRequestBuilder WithUrl(string rawUrl) { return new SharedWithTeamsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// public class SharedWithTeamsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs index 4c5863c543e..4620b3de413 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs @@ -29,7 +29,7 @@ public TeamsAppRequestBuilder(Dictionary pathParameters, IReques public TeamsAppRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/tabs/{teamsTab%2Did}/teamsApp{?%24select,%24expand}", rawUrl) { } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -48,7 +48,7 @@ public TeamsAppRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.TeamsApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +81,7 @@ public TeamsAppRequestBuilder WithUrl(string rawUrl) { return new TeamsAppRequestBuilder(rawUrl, RequestAdapter); } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// public class TeamsAppRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs index acb6b3da7c8..ed9b0b8960d 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs @@ -34,7 +34,7 @@ public TeamsTabItemRequestBuilder(Dictionary pathParameters, IRe public TeamsTabItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/tabs/{teamsTab%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Removes (unpins) a tab from the specified channel within a team. + /// Removes (unpins) a tab from the specified channel within a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of the specified tab in a channel within a team. + /// Retrieve the properties and relationships of the specified tab in a channel within a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of the specified tab.This can be used to configure the content of the tab. + /// Update the properties of the specified tab.This can be used to configure the content of the tab. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(TeamsTab body, Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Removes (unpins) a tab from the specified channel within a team. + /// Removes (unpins) a tab from the specified channel within a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of the specified tab in a channel within a team. + /// Retrieve the properties and relationships of the specified tab in a channel within a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of the specified tab.This can be used to configure the content of the tab. + /// Update the properties of the specified tab.This can be used to configure the content of the tab. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public TeamsTabItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of the specified tab in a channel within a team. + /// Retrieve the properties and relationships of the specified tab in a channel within a team. This API is supported in the following national cloud deployments. /// public class TeamsTabItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/TabsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/TabsRequestBuilder.cs index 78f7b4e8f15..58eac04a7c1 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/TabsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/TabsRequestBuilder.cs @@ -42,7 +42,7 @@ public TabsRequestBuilder(Dictionary pathParameters, IRequestAda public TabsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/tabs{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of tabs in the specified channel within a team. + /// Retrieve the list of tabs in the specified channel within a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TeamsTabCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TeamsTab body, Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of tabs in the specified channel within a team. + /// Retrieve the list of tabs in the specified channel within a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public TabsRequestBuilder WithUrl(string rawUrl) { return new TabsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of tabs in the specified channel within a team. + /// Retrieve the list of tabs in the specified channel within a team. This API is supported in the following national cloud deployments. /// public class TabsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teamwork/SendActivityNotificationToRecipients/SendActivityNotificationToRecipientsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/SendActivityNotificationToRecipients/SendActivityNotificationToRecipientsRequestBuilder.cs index 2d9e7e4400d..61b60ea9fb7 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/SendActivityNotificationToRecipients/SendActivityNotificationToRecipientsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/SendActivityNotificationToRecipients/SendActivityNotificationToRecipientsRequestBuilder.cs @@ -28,7 +28,7 @@ public SendActivityNotificationToRecipientsRequestBuilder(Dictionary - /// Send activity feed notifications to multiple users, in bulk. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. + /// Send activity feed notifications to multiple users, in bulk. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SendActivityNotificationToRecipientsPostRequestBody await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send activity feed notifications to multiple users, in bulk. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. + /// Send activity feed notifications to multiple users, in bulk. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teamwork/TeamsAppSettings/TeamsAppSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/TeamsAppSettings/TeamsAppSettingsRequestBuilder.cs index ee037c9d16c..a5671a3e6b6 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/TeamsAppSettings/TeamsAppSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/TeamsAppSettings/TeamsAppSettingsRequestBuilder.cs @@ -48,7 +48,8 @@ public async Task DeleteAsync(Action - /// Get teamsAppSettings from teamwork + /// Get the tenant-wide teamsAppSettings for all Teams apps in the tenant. This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -67,7 +68,8 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.TeamsAppSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the navigation property teamsAppSettings in teamwork + /// Update the tenant-wide teamsAppSettings for all Teams apps in the tenant. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -112,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get teamsAppSettings from teamwork + /// Get the tenant-wide teamsAppSettings for all Teams apps in the tenant. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -138,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property teamsAppSettings in teamwork + /// Update the tenant-wide teamsAppSettings for all Teams apps in the tenant. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -189,7 +191,7 @@ public TeamsAppSettingsRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get teamsAppSettings from teamwork + /// Get the tenant-wide teamsAppSettings for all Teams apps in the tenant. This API is supported in the following national cloud deployments. /// public class TeamsAppSettingsRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teamwork/WorkforceIntegrations/Item/WorkforceIntegrationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/WorkforceIntegrations/Item/WorkforceIntegrationItemRequestBuilder.cs index 813617bc2c1..5e0c244619f 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/WorkforceIntegrations/Item/WorkforceIntegrationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/WorkforceIntegrations/Item/WorkforceIntegrationItemRequestBuilder.cs @@ -29,7 +29,7 @@ public WorkforceIntegrationItemRequestBuilder(Dictionary pathPar public WorkforceIntegrationItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teamwork/workforceIntegrations/{workforceIntegration%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an instance of a workforceIntegration. + /// Delete an instance of a workforceIntegration. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a workforceIntegration object. + /// Retrieve the properties and relationships of a workforceIntegration object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, WorkforceIntegration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a workforceIntegration object. + /// Update the properties of a workforceIntegration object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(WorkforceIntegration body, Ac return await RequestAdapter.SendAsync(requestInfo, WorkforceIntegration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an instance of a workforceIntegration. + /// Delete an instance of a workforceIntegration. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a workforceIntegration object. + /// Retrieve the properties and relationships of a workforceIntegration object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a workforceIntegration object. + /// Update the properties of a workforceIntegration object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public WorkforceIntegrationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a workforceIntegration object. + /// Retrieve the properties and relationships of a workforceIntegration object. This API is supported in the following national cloud deployments. /// public class WorkforceIntegrationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teamwork/WorkforceIntegrations/WorkforceIntegrationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/WorkforceIntegrations/WorkforceIntegrationsRequestBuilder.cs index 4d896d69b17..39cedeab63b 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/WorkforceIntegrations/WorkforceIntegrationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/WorkforceIntegrations/WorkforceIntegrationsRequestBuilder.cs @@ -42,7 +42,7 @@ public WorkforceIntegrationsRequestBuilder(Dictionary pathParame public WorkforceIntegrationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teamwork/workforceIntegrations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of workforceIntegration objects. + /// Retrieve a list of workforceIntegration objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, WorkforceIntegrationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new workforceIntegration object.You can set up which entities you want to receive Shifts synchronous change notifications on and set entities to configure filtering by WFM rules eligibility for, including swap requests. + /// Create a new workforceIntegration object.You can set up which entities you want to receive Shifts synchronous change notifications on and set entities to configure filtering by WFM rules eligibility for, including swap requests. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(WorkforceIntegration body, Act return await RequestAdapter.SendAsync(requestInfo, WorkforceIntegration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of workforceIntegration objects. + /// Retrieve a list of workforceIntegration objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new workforceIntegration object.You can set up which entities you want to receive Shifts synchronous change notifications on and set entities to configure filtering by WFM rules eligibility for, including swap requests. + /// Create a new workforceIntegration object.You can set up which entities you want to receive Shifts synchronous change notifications on and set entities to configure filtering by WFM rules eligibility for, including swap requests. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public WorkforceIntegrationsRequestBuilder WithUrl(string rawUrl) { return new WorkforceIntegrationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of workforceIntegration objects. + /// Retrieve a list of workforceIntegration objects. This API is supported in the following national cloud deployments. /// public class WorkforceIntegrationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/DelegatedAdminCustomersRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/DelegatedAdminCustomersRequestBuilder.cs index 17a6bb634e7..2c3f185659e 100644 --- a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/DelegatedAdminCustomersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/DelegatedAdminCustomersRequestBuilder.cs @@ -42,7 +42,7 @@ public DelegatedAdminCustomersRequestBuilder(Dictionary pathPara public DelegatedAdminCustomersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/tenantRelationships/delegatedAdminCustomers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the delegatedAdminCustomer objects and their properties. + /// Get a list of the delegatedAdminCustomer objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(DelegatedAdminCustomer body, return await RequestAdapter.SendAsync(requestInfo, DelegatedAdminCustomer.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the delegatedAdminCustomer objects and their properties. + /// Get a list of the delegatedAdminCustomer objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public DelegatedAdminCustomersRequestBuilder WithUrl(string rawUrl) { return new DelegatedAdminCustomersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the delegatedAdminCustomer objects and their properties. + /// Get a list of the delegatedAdminCustomer objects and their properties. This API is supported in the following national cloud deployments. /// public class DelegatedAdminCustomersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/Item/DelegatedAdminCustomerItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/Item/DelegatedAdminCustomerItemRequestBuilder.cs index 1377f41225e..6553023fff1 100644 --- a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/Item/DelegatedAdminCustomerItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/Item/DelegatedAdminCustomerItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Read the properties of a delegatedAdminCustomer object. + /// Read the properties of a delegatedAdminCustomer object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties of a delegatedAdminCustomer object. + /// Read the properties of a delegatedAdminCustomer object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public DelegatedAdminCustomerItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties of a delegatedAdminCustomer object. + /// Read the properties of a delegatedAdminCustomer object. This API is supported in the following national cloud deployments. /// public class DelegatedAdminCustomerItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/Item/ServiceManagementDetails/ServiceManagementDetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/Item/ServiceManagementDetails/ServiceManagementDetailsRequestBuilder.cs index b12ce8acd7f..0488ffcc63e 100644 --- a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/Item/ServiceManagementDetails/ServiceManagementDetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/Item/ServiceManagementDetails/ServiceManagementDetailsRequestBuilder.cs @@ -42,7 +42,7 @@ public ServiceManagementDetailsRequestBuilder(Dictionary pathPar public ServiceManagementDetailsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/tenantRelationships/delegatedAdminCustomers/{delegatedAdminCustomer%2Did}/serviceManagementDetails{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the delegatedAdminServiceManagementDetail objects and their properties. + /// Get a list of the delegatedAdminServiceManagementDetail objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(DelegatedAdmi return await RequestAdapter.SendAsync(requestInfo, DelegatedAdminServiceManagementDetail.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the delegatedAdminServiceManagementDetail objects and their properties. + /// Get a list of the delegatedAdminServiceManagementDetail objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public ServiceManagementDetailsRequestBuilder WithUrl(string rawUrl) { return new ServiceManagementDetailsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the delegatedAdminServiceManagementDetail objects and their properties. + /// Get a list of the delegatedAdminServiceManagementDetail objects and their properties. This API is supported in the following national cloud deployments. /// public class ServiceManagementDetailsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/DelegatedAdminRelationshipsRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/DelegatedAdminRelationshipsRequestBuilder.cs index 9f79d32444b..3a90a9d4d57 100644 --- a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/DelegatedAdminRelationshipsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/DelegatedAdminRelationshipsRequestBuilder.cs @@ -42,7 +42,7 @@ public DelegatedAdminRelationshipsRequestBuilder(Dictionary path public DelegatedAdminRelationshipsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/tenantRelationships/delegatedAdminRelationships{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the delegatedAdminRelationship objects and their properties. + /// Get a list of the delegatedAdminRelationship objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action< return await RequestAdapter.SendAsync(requestInfo, DelegatedAdminRelationshipCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new delegatedAdminRelationship object. + /// Create a new delegatedAdminRelationship object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(DelegatedAdminRelationsh return await RequestAdapter.SendAsync(requestInfo, DelegatedAdminRelationship.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the delegatedAdminRelationship objects and their properties. + /// Get a list of the delegatedAdminRelationship objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new delegatedAdminRelationship object. + /// Create a new delegatedAdminRelationship object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public DelegatedAdminRelationshipsRequestBuilder WithUrl(string rawUrl) { return new DelegatedAdminRelationshipsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the delegatedAdminRelationship objects and their properties. + /// Get a list of the delegatedAdminRelationship objects and their properties. This API is supported in the following national cloud deployments. /// public class DelegatedAdminRelationshipsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/AccessAssignments/AccessAssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/AccessAssignments/AccessAssignmentsRequestBuilder.cs index 2c1c52ec760..dc130b4ddf0 100644 --- a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/AccessAssignments/AccessAssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/AccessAssignments/AccessAssignmentsRequestBuilder.cs @@ -42,7 +42,7 @@ public AccessAssignmentsRequestBuilder(Dictionary pathParameters public AccessAssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/tenantRelationships/delegatedAdminRelationships/{delegatedAdminRelationship%2Did}/accessAssignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the delegatedAdminAccessAssignment objects and their properties. + /// Get a list of the delegatedAdminAccessAssignment objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Act return await RequestAdapter.SendAsync(requestInfo, DelegatedAdminAccessAssignmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new delegatedAdminAccessAssignment object. + /// Create a new delegatedAdminAccessAssignment object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(DelegatedAdminAccess return await RequestAdapter.SendAsync(requestInfo, DelegatedAdminAccessAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the delegatedAdminAccessAssignment objects and their properties. + /// Get a list of the delegatedAdminAccessAssignment objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new delegatedAdminAccessAssignment object. + /// Create a new delegatedAdminAccessAssignment object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public AccessAssignmentsRequestBuilder WithUrl(string rawUrl) { return new AccessAssignmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the delegatedAdminAccessAssignment objects and their properties. + /// Get a list of the delegatedAdminAccessAssignment objects and their properties. This API is supported in the following national cloud deployments. /// public class AccessAssignmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/AccessAssignments/Item/DelegatedAdminAccessAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/AccessAssignments/Item/DelegatedAdminAccessAssignmentItemRequestBuilder.cs index b6171bf7149..f134d8765c3 100644 --- a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/AccessAssignments/Item/DelegatedAdminAccessAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/AccessAssignments/Item/DelegatedAdminAccessAssignmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public DelegatedAdminAccessAssignmentItemRequestBuilder(Dictionary - /// Delete a delegatedAdminAccessAssignment object. + /// Delete a delegatedAdminAccessAssignment object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Read the properties of a delegatedAdminAccessAssignment object. + /// Read the properties of a delegatedAdminAccessAssignment object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DelegatedAdminAccessAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a delegatedAdminAccessAssignment object. + /// Update the properties of a delegatedAdminAccessAssignment object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(DelegatedAdminAcces return await RequestAdapter.SendAsync(requestInfo, DelegatedAdminAccessAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a delegatedAdminAccessAssignment object. + /// Delete a delegatedAdminAccessAssignment object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties of a delegatedAdminAccessAssignment object. + /// Read the properties of a delegatedAdminAccessAssignment object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a delegatedAdminAccessAssignment object. + /// Update the properties of a delegatedAdminAccessAssignment object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public DelegatedAdminAccessAssignmentItemRequestBuilderDeleteRequestConfiguratio } } /// - /// Read the properties of a delegatedAdminAccessAssignment object. + /// Read the properties of a delegatedAdminAccessAssignment object. This API is supported in the following national cloud deployments. /// public class DelegatedAdminAccessAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/DelegatedAdminRelationshipItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/DelegatedAdminRelationshipItemRequestBuilder.cs index 44ab8035cda..78ec1ff7a99 100644 --- a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/DelegatedAdminRelationshipItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/DelegatedAdminRelationshipItemRequestBuilder.cs @@ -44,7 +44,7 @@ public DelegatedAdminRelationshipItemRequestBuilder(Dictionary p public DelegatedAdminRelationshipItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/tenantRelationships/delegatedAdminRelationships/{delegatedAdminRelationship%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a delegatedAdminRelationship object. A relationship can only be deleted if it's in the 'created' status. + /// Delete a delegatedAdminRelationship object. A relationship can only be deleted if it's in the 'created' status. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -64,7 +64,7 @@ public async Task DeleteAsync(Action - /// Read the properties of a delegatedAdminRelationship object. + /// Read the properties of a delegatedAdminRelationship object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, DelegatedAdminRelationship.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a delegatedAdminRelationship object. A relationship can only be updated if it's in the created status. + /// Update the properties of a delegatedAdminRelationship object. A relationship can only be updated if it's in the created status. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -106,7 +106,7 @@ public async Task PatchAsync(DelegatedAdminRelations return await RequestAdapter.SendAsync(requestInfo, DelegatedAdminRelationship.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a delegatedAdminRelationship object. A relationship can only be deleted if it's in the 'created' status. + /// Delete a delegatedAdminRelationship object. A relationship can only be deleted if it's in the 'created' status. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties of a delegatedAdminRelationship object. + /// Read the properties of a delegatedAdminRelationship object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -156,7 +156,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a delegatedAdminRelationship object. A relationship can only be updated if it's in the created status. + /// Update the properties of a delegatedAdminRelationship object. A relationship can only be updated if it's in the created status. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -207,7 +207,7 @@ public DelegatedAdminRelationshipItemRequestBuilderDeleteRequestConfiguration() } } /// - /// Read the properties of a delegatedAdminRelationship object. + /// Read the properties of a delegatedAdminRelationship object. This API is supported in the following national cloud deployments. /// public class DelegatedAdminRelationshipItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Operations/Item/DelegatedAdminRelationshipOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Operations/Item/DelegatedAdminRelationshipOperationItemRequestBuilder.cs index 876cc207e7c..ad7a0c84aff 100644 --- a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Operations/Item/DelegatedAdminRelationshipOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Operations/Item/DelegatedAdminRelationshipOperationItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Read the properties of a delegatedAdminRelationshipOperation object. + /// Read the properties of a delegatedAdminRelationshipOperation object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties of a delegatedAdminRelationshipOperation object. + /// Read the properties of a delegatedAdminRelationshipOperation object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public DelegatedAdminRelationshipOperationItemRequestBuilderDeleteRequestConfigu } } /// - /// Read the properties of a delegatedAdminRelationshipOperation object. + /// Read the properties of a delegatedAdminRelationshipOperation object. This API is supported in the following national cloud deployments. /// public class DelegatedAdminRelationshipOperationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Operations/OperationsRequestBuilder.cs index 93c9132d6df..ba1060b9392 100644 --- a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Operations/OperationsRequestBuilder.cs @@ -42,7 +42,7 @@ public OperationsRequestBuilder(Dictionary pathParameters, IRequ public OperationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/tenantRelationships/delegatedAdminRelationships/{delegatedAdminRelationship%2Did}/operations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the delegatedAdminRelationshipOperation objects and their properties. + /// Get a list of the delegatedAdminRelationshipOperation objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(DelegatedAdminR return await RequestAdapter.SendAsync(requestInfo, DelegatedAdminRelationshipOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the delegatedAdminRelationshipOperation objects and their properties. + /// Get a list of the delegatedAdminRelationshipOperation objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public OperationsRequestBuilder WithUrl(string rawUrl) { return new OperationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the delegatedAdminRelationshipOperation objects and their properties. + /// Get a list of the delegatedAdminRelationshipOperation objects and their properties. This API is supported in the following national cloud deployments. /// public class OperationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Requests/Item/DelegatedAdminRelationshipRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Requests/Item/DelegatedAdminRelationshipRequestItemRequestBuilder.cs index 76284d7e664..ec3bf98dee6 100644 --- a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Requests/Item/DelegatedAdminRelationshipRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Requests/Item/DelegatedAdminRelationshipRequestItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a delegatedAdminRelationshipRequest object. + /// Read the properties and relationships of a delegatedAdminRelationshipRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a delegatedAdminRelationshipRequest object. + /// Read the properties and relationships of a delegatedAdminRelationshipRequest object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public DelegatedAdminRelationshipRequestItemRequestBuilderDeleteRequestConfigura } } /// - /// Read the properties and relationships of a delegatedAdminRelationshipRequest object. + /// Read the properties and relationships of a delegatedAdminRelationshipRequest object. This API is supported in the following national cloud deployments. /// public class DelegatedAdminRelationshipRequestItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Requests/RequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Requests/RequestsRequestBuilder.cs index 32323dcfd37..94bce1588cd 100644 --- a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Requests/RequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Requests/RequestsRequestBuilder.cs @@ -42,7 +42,7 @@ public RequestsRequestBuilder(Dictionary pathParameters, IReques public RequestsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/tenantRelationships/delegatedAdminRelationships/{delegatedAdminRelationship%2Did}/requests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the delegatedAdminRelationshipRequest objects and their properties. + /// Get a list of the delegatedAdminRelationshipRequest objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync( return await RequestAdapter.SendAsync(requestInfo, DelegatedAdminRelationshipRequestCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new delegatedAdminRelationshipRequest object. + /// Create a new delegatedAdminRelationshipRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(DelegatedAdminRel return await RequestAdapter.SendAsync(requestInfo, DelegatedAdminRelationshipRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the delegatedAdminRelationshipRequest objects and their properties. + /// Get a list of the delegatedAdminRelationshipRequest objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new delegatedAdminRelationshipRequest object. + /// Create a new delegatedAdminRelationshipRequest object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public RequestsRequestBuilder WithUrl(string rawUrl) { return new RequestsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the delegatedAdminRelationshipRequest objects and their properties. + /// Get a list of the delegatedAdminRelationshipRequest objects and their properties. This API is supported in the following national cloud deployments. /// public class RequestsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..9c4bb79316e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.User.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Delta/DeltaRequestBuilder.cs index 650872ae86a..78ed42f5c38 100644 --- a/src/Microsoft.Graph/Generated/Users/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Users/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Delta/DeltaResponse.cs index 3bcb0dfb156..42ce8ea86bf 100644 --- a/src/Microsoft.Graph/Generated/Users/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.User.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/Users/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs new file mode 100644 index 00000000000..b7b2eeec3f4 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.GetAvailableExtensionProperties { + public class GetAvailableExtensionPropertiesPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAvailableExtensionPropertiesPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index d23ae1840e0..419d5af72b1 100644 --- a/src/Microsoft.Graph/Generated/Users/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -28,13 +28,36 @@ public GetAvailableExtensionPropertiesRequestBuilder(Dictionary public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/getAvailableExtensionProperties", rawUrl) { } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetAvailableExtensionPropertiesPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetAvailabl return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/Users/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index 09bab1d4af0..8c8916e47aa 100644 --- a/src/Microsoft.Graph/Generated/Users/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.GetAvailableExtensionProperties { - public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAvailableExtensionPropertiesPostResponse instead.")] + public class GetAvailableExtensionPropertiesResponse : GetAvailableExtensionPropertiesPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/Users/GetByIds/GetByIdsPostResponse.cs new file mode 100644 index 00000000000..c5afc5cb350 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/GetByIds/GetByIdsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.GetByIds { + public class GetByIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetByIdsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/GetByIds/GetByIdsRequestBuilder.cs index 06ba8ac0bdc..984f0da6ad0 100644 --- a/src/Microsoft.Graph/Generated/Users/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/GetByIds/GetByIdsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetByIdsRequestBuilder(Dictionary pathParameters, IReques public GetByIdsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/getByIds", rawUrl) { } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetByIdsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetByIdsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetByIdsPostRequestBody body, Acti return await RequestAdapter.SendAsync(requestInfo, GetByIdsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/Users/GetByIds/GetByIdsResponse.cs index 69ff58aaaa5..5c692450f41 100644 --- a/src/Microsoft.Graph/Generated/Users/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/GetByIds/GetByIdsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.GetByIds { - public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getByIdsPostResponse instead.")] + public class GetByIdsResponse : GetByIdsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Activities/ActivitiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Activities/ActivitiesRequestBuilder.cs index 5258ce58eaf..97ed3063234 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Activities/ActivitiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Activities/ActivitiesRequestBuilder.cs @@ -47,7 +47,7 @@ public ActivitiesRequestBuilder(Dictionary pathParameters, IRequ public ActivitiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/activities{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get activities for a given user. Unlike the recent OData function, activities without histories will be returned. The permission UserActivity.ReadWrite.CreatedByApp will apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is particularly active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. + /// Get activities for a given user. Unlike the recent OData function, activities without histories will be returned. The permission UserActivity.ReadWrite.CreatedByApp will apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is particularly active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -88,7 +88,7 @@ public async Task PostAsync(UserActivity body, Action(requestInfo, UserActivity.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get activities for a given user. Unlike the recent OData function, activities without histories will be returned. The permission UserActivity.ReadWrite.CreatedByApp will apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is particularly active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. + /// Get activities for a given user. Unlike the recent OData function, activities without histories will be returned. The permission UserActivity.ReadWrite.CreatedByApp will apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is particularly active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -149,7 +149,7 @@ public ActivitiesRequestBuilder WithUrl(string rawUrl) { return new ActivitiesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get activities for a given user. Unlike the recent OData function, activities without histories will be returned. The permission UserActivity.ReadWrite.CreatedByApp will apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is particularly active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. + /// Get activities for a given user. Unlike the recent OData function, activities without histories will be returned. The permission UserActivity.ReadWrite.CreatedByApp will apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is particularly active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. This API is supported in the following national cloud deployments. /// public class ActivitiesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.cs index eee97f38a24..e2c5a6f2306 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.cs @@ -72,7 +72,7 @@ public async Task GetAsync(Action(requestInfo, ActivityHistoryItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an existing history item for an existing user activity. + /// Delete an existing history item for an existing user activity. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -144,7 +144,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Delete an existing history item for an existing user activity. + /// Delete an existing history item for an existing user activity. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/UserActivityItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/UserActivityItemRequestBuilder.cs index 4125cc84e46..fcfd02c3f88 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/UserActivityItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/UserActivityItemRequestBuilder.cs @@ -34,7 +34,7 @@ public UserActivityItemRequestBuilder(Dictionary pathParameters, public UserActivityItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/activities/{userActivity%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an existing user activity for your app. + /// Delete an existing user activity for your app. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -94,7 +94,7 @@ public async Task PatchAsync(UserActivity body, Action(requestInfo, UserActivity.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an existing user activity for your app. + /// Delete an existing user activity for your app. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/Activities/Recent/RecentGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Activities/Recent/RecentGetResponse.cs new file mode 100644 index 00000000000..03ccdfb880e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Activities/Recent/RecentGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.Activities.Recent { + public class RecentGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new RecentGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new RecentGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(UserActivity.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Activities/Recent/RecentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Activities/Recent/RecentRequestBuilder.cs index 1c3f738f14e..5324664d250 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Activities/Recent/RecentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Activities/Recent/RecentRequestBuilder.cs @@ -28,12 +28,33 @@ public RecentRequestBuilder(Dictionary pathParameters, IRequestA public RecentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/activities/recent(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get recent activities for a given user. This OData function has some default behaviors included to make it operate like a 'most recently used' API. The service will query for the most recent historyItems, and then pull those related activities. Activities will be sorted according to the most recent lastModified on the historyItem. This means that activities without historyItems will not be included in the response. The UserActivity.ReadWrite.CreatedByApp permission will also apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is particularly active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. + /// Get recent activities for a given user. This OData function has some default behaviors included to make it operate like a 'most recently used' API. The service queries for the most recent historyItems, and then pull those related activities. Activities are sorted according to the most recent lastModified on the historyItem. This means that activities without historyItems won't be included in the response. The UserActivity.ReadWrite.CreatedByApp permission will also apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsRecentGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsRecentGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, RecentGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get recent activities for a given user. This OData function has some default behaviors included to make it operate like a 'most recently used' API. The service queries for the most recent historyItems, and then pull those related activities. Activities are sorted according to the most recent lastModified on the historyItem. This means that activities without historyItems won't be included in the response. The UserActivity.ReadWrite.CreatedByApp permission will also apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsRecentGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, RecentResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get recent activities for a given user. This OData function has some default behaviors included to make it operate like a 'most recently used' API. The service will query for the most recent historyItems, and then pull those related activities. Activities will be sorted according to the most recent lastModified on the historyItem. This means that activities without historyItems will not be included in the response. The UserActivity.ReadWrite.CreatedByApp permission will also apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is particularly active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. + /// Get recent activities for a given user. This OData function has some default behaviors included to make it operate like a 'most recently used' API. The service queries for the most recent historyItems, and then pull those related activities. Activities are sorted according to the most recent lastModified on the historyItem. This means that activities without historyItems won't be included in the response. The UserActivity.ReadWrite.CreatedByApp permission will also apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public RecentRequestBuilder WithUrl(string rawUrl) { return new RecentRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get recent activities for a given user. This OData function has some default behaviors included to make it operate like a 'most recently used' API. The service will query for the most recent historyItems, and then pull those related activities. Activities will be sorted according to the most recent lastModified on the historyItem. This means that activities without historyItems will not be included in the response. The UserActivity.ReadWrite.CreatedByApp permission will also apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is particularly active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. + /// Get recent activities for a given user. This OData function has some default behaviors included to make it operate like a 'most recently used' API. The service queries for the most recent historyItems, and then pull those related activities. Activities are sorted according to the most recent lastModified on the historyItem. This means that activities without historyItems won't be included in the response. The UserActivity.ReadWrite.CreatedByApp permission will also apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. This API is supported in the following national cloud deployments. /// public class RecentRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Activities/Recent/RecentResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Activities/Recent/RecentResponse.cs index fa543875ff1..b441f84cc6e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Activities/Recent/RecentResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Activities/Recent/RecentResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.Activities.Recent { - public class RecentResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use recentGetResponse instead.")] + public class RecentResponse : RecentGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RecentResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(UserActivity.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/AgreementAcceptances/AgreementAcceptancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/AgreementAcceptances/AgreementAcceptancesRequestBuilder.cs index 800e1e75f98..e8c0274d378 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/AgreementAcceptances/AgreementAcceptancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/AgreementAcceptances/AgreementAcceptancesRequestBuilder.cs @@ -42,7 +42,7 @@ public AgreementAcceptancesRequestBuilder(Dictionary pathParamet public AgreementAcceptancesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/agreementAcceptances{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the signed-in user's agreementAcceptance objects. + /// Retrieve the signed-in user's agreementAcceptance objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, AgreementAcceptanceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the signed-in user's agreementAcceptance objects. + /// Retrieve the signed-in user's agreementAcceptance objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public AgreementAcceptancesRequestBuilder WithUrl(string rawUrl) { return new AgreementAcceptancesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the signed-in user's agreementAcceptance objects. + /// Retrieve the signed-in user's agreementAcceptance objects. This API is supported in the following national cloud deployments. /// public class AgreementAcceptancesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.cs index c6d84305a28..e18269589e4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.cs @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, AppRoleAssignmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to assign an app role to a user. To grant an app role assignment to a user, you need three identifiers: + /// Use this API to assign an app role to a user. To grant an app role assignment to a user, you need three identifiers: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to assign an app role to a user. To grant an app role assignment to a user, you need three identifiers: + /// Use this API to assign an app role to a user. To grant an app role assignment to a user, you need three identifiers: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.cs index cbf515a11d4..094bef32561 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AppRoleAssignmentItemRequestBuilder(Dictionary pathParame public AppRoleAssignmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/appRoleAssignments/{appRoleAssignment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an appRoleAssignment that has been granted to a user. + /// Delete an appRoleAssignment that has been granted to a user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task PatchAsync(AppRoleAssignment body, Action(requestInfo, AppRoleAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an appRoleAssignment that has been granted to a user. + /// Delete an appRoleAssignment that has been granted to a user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/AssignLicense/AssignLicenseRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/AssignLicense/AssignLicenseRequestBuilder.cs index 97e68b32004..c6967bb7dac 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/AssignLicense/AssignLicenseRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/AssignLicense/AssignLicenseRequestBuilder.cs @@ -29,7 +29,7 @@ public AssignLicenseRequestBuilder(Dictionary pathParameters, IR public AssignLicenseRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/assignLicense", rawUrl) { } /// - /// Add or remove subscriptions for the user. You can also enable and disable specific plans associated with a subscription. + /// Add or remove subscriptions for the user. You can also enable and disable specific plans associated with a subscription. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public AssignLicenseRequestBuilder(string rawUrl, IRequestAdapter requestAdapter return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add or remove subscriptions for the user. You can also enable and disable specific plans associated with a subscription. + /// Add or remove subscriptions for the user. You can also enable and disable specific plans associated with a subscription. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/EmailMethods/EmailMethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/EmailMethods/EmailMethodsRequestBuilder.cs index 07b75383b32..7fb2f30e500 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/EmailMethods/EmailMethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/EmailMethods/EmailMethodsRequestBuilder.cs @@ -42,7 +42,7 @@ public EmailMethodsRequestBuilder(Dictionary pathParameters, IRe public EmailMethodsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/emailMethods{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of a user's emailAuthenticationMethod objects and their properties. This API will return only a single object in the collection as only one email method can be set for a user. + /// Retrieve a list of a user's emailAuthenticationMethod objects and their properties. This API will return only a single object in the collection as only one email method can be set for a user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, EmailAuthenticationMethodCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Set a user's emailAuthenticationMethod object. Email authentication is a self-service password reset method. A user may only have one email authentication method. + /// Set a user's emailAuthenticationMethod object. Email authentication is a self-service password reset method. A user may only have one email authentication method. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(EmailAuthenticationMethod return await RequestAdapter.SendAsync(requestInfo, EmailAuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of a user's emailAuthenticationMethod objects and their properties. This API will return only a single object in the collection as only one email method can be set for a user. + /// Retrieve a list of a user's emailAuthenticationMethod objects and their properties. This API will return only a single object in the collection as only one email method can be set for a user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Set a user's emailAuthenticationMethod object. Email authentication is a self-service password reset method. A user may only have one email authentication method. + /// Set a user's emailAuthenticationMethod object. Email authentication is a self-service password reset method. A user may only have one email authentication method. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public EmailMethodsRequestBuilder WithUrl(string rawUrl) { return new EmailMethodsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of a user's emailAuthenticationMethod objects and their properties. This API will return only a single object in the collection as only one email method can be set for a user. + /// Retrieve a list of a user's emailAuthenticationMethod objects and their properties. This API will return only a single object in the collection as only one email method can be set for a user. This API is supported in the following national cloud deployments. /// public class EmailMethodsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/EmailMethods/Item/EmailAuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/EmailMethods/Item/EmailAuthenticationMethodItemRequestBuilder.cs index 11f99067ed7..49e9c960f19 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/EmailMethods/Item/EmailAuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/EmailMethods/Item/EmailAuthenticationMethodItemRequestBuilder.cs @@ -29,7 +29,7 @@ public EmailAuthenticationMethodItemRequestBuilder(Dictionary pa public EmailAuthenticationMethodItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/emailMethods/{emailAuthenticationMethod%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a user's emailAuthenticationMethod object. + /// Deletes a user's emailAuthenticationMethod object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve a user's single email authentication method object. + /// Retrieve a user's single email authentication method object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, EmailAuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update a user's email address represented by an emailAuthenticationMethod object. + /// Update a user's email address represented by an emailAuthenticationMethod object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(EmailAuthenticationMetho return await RequestAdapter.SendAsync(requestInfo, EmailAuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a user's emailAuthenticationMethod object. + /// Deletes a user's emailAuthenticationMethod object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a user's single email authentication method object. + /// Retrieve a user's single email authentication method object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update a user's email address represented by an emailAuthenticationMethod object. + /// Update a user's email address represented by an emailAuthenticationMethod object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public EmailAuthenticationMethodItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a user's single email authentication method object. + /// Retrieve a user's single email authentication method object. This API is supported in the following national cloud deployments. /// public class EmailAuthenticationMethodItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Fido2Methods/Fido2MethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Fido2Methods/Fido2MethodsRequestBuilder.cs index 784aaa3ce1a..bb930f6a654 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Fido2Methods/Fido2MethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Fido2Methods/Fido2MethodsRequestBuilder.cs @@ -42,7 +42,7 @@ public Fido2MethodsRequestBuilder(Dictionary pathParameters, IRe public Fido2MethodsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/fido2Methods{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of a user's FIDO2 Security Key Authentication Method objects and their properties. + /// Retrieve a list of a user's FIDO2 Security Key Authentication Method objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, Fido2AuthenticationMethodCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of a user's FIDO2 Security Key Authentication Method objects and their properties. + /// Retrieve a list of a user's FIDO2 Security Key Authentication Method objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public Fido2MethodsRequestBuilder WithUrl(string rawUrl) { return new Fido2MethodsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of a user's FIDO2 Security Key Authentication Method objects and their properties. + /// Retrieve a list of a user's FIDO2 Security Key Authentication Method objects and their properties. This API is supported in the following national cloud deployments. /// public class Fido2MethodsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Fido2Methods/Item/Fido2AuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Fido2Methods/Item/Fido2AuthenticationMethodItemRequestBuilder.cs index 0d36c6308a9..a5b12fe72f3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Fido2Methods/Item/Fido2AuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Fido2Methods/Item/Fido2AuthenticationMethodItemRequestBuilder.cs @@ -29,7 +29,7 @@ public Fido2AuthenticationMethodItemRequestBuilder(Dictionary pa public Fido2AuthenticationMethodItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/fido2Methods/{fido2AuthenticationMethod%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a user's FIDO2 Security Key Authentication Method object. + /// Deletes a user's FIDO2 Security Key Authentication Method object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve a user's single FIDO2 Security Key Authentication Method object. + /// Retrieve a user's single FIDO2 Security Key Authentication Method object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, Fido2AuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a user's FIDO2 Security Key Authentication Method object. + /// Deletes a user's FIDO2 Security Key Authentication Method object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -93,7 +93,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a user's single FIDO2 Security Key Authentication Method object. + /// Retrieve a user's single FIDO2 Security Key Authentication Method object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -142,7 +142,7 @@ public Fido2AuthenticationMethodItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a user's single FIDO2 Security Key Authentication Method object. + /// Retrieve a user's single FIDO2 Security Key Authentication Method object. This API is supported in the following national cloud deployments. /// public class Fido2AuthenticationMethodItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/Item/AuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/Item/AuthenticationMethodItemRequestBuilder.cs index e6acf78e19c..9df2721e5d9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/Item/AuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/Item/AuthenticationMethodItemRequestBuilder.cs @@ -34,7 +34,7 @@ public AuthenticationMethodItemRequestBuilder(Dictionary pathPar public AuthenticationMethodItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/methods/{authenticationMethod%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Retrieve the properties and relationships of an authenticationMethod object. + /// Retrieve the properties and relationships of an authenticationMethod object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -75,7 +75,7 @@ public async Task PatchAsync(AuthenticationMethod body, Ac return await RequestAdapter.SendAsync(requestInfo, AuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the properties and relationships of an authenticationMethod object. + /// Retrieve the properties and relationships of an authenticationMethod object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -136,7 +136,7 @@ public AuthenticationMethodItemRequestBuilder WithUrl(string rawUrl) { return new AuthenticationMethodItemRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the properties and relationships of an authenticationMethod object. + /// Retrieve the properties and relationships of an authenticationMethod object. This API is supported in the following national cloud deployments. /// public class AuthenticationMethodItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/Item/ResetPassword/ResetPasswordRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/Item/ResetPassword/ResetPasswordRequestBuilder.cs index 4f799ed9f11..4e56c38b979 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/Item/ResetPassword/ResetPasswordRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/Item/ResetPassword/ResetPasswordRequestBuilder.cs @@ -29,7 +29,7 @@ public ResetPasswordRequestBuilder(Dictionary pathParameters, IR public ResetPasswordRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/methods/{authenticationMethod%2Did}/resetPassword", rawUrl) { } /// - /// Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and cannot be performed on a user's own account. This flow writes the new password to Azure Active Directory and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and will return a Location header with a link where the caller can periodically check for the status of the reset operation. + /// Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and cannot be performed on a user's own account. This flow writes the new password to Azure Active Directory and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and will return a Location header with a link where the caller can periodically check for the status of the reset operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(ResetPasswordPostRequestBody return await RequestAdapter.SendAsync(requestInfo, PasswordResetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and cannot be performed on a user's own account. This flow writes the new password to Azure Active Directory and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and will return a Location header with a link where the caller can periodically check for the status of the reset operation. + /// Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and cannot be performed on a user's own account. This flow writes the new password to Azure Active Directory and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and will return a Location header with a link where the caller can periodically check for the status of the reset operation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/MethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/MethodsRequestBuilder.cs index f007537ad59..ffb375e5c5c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/MethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/MethodsRequestBuilder.cs @@ -42,7 +42,7 @@ public MethodsRequestBuilder(Dictionary pathParameters, IRequest public MethodsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/methods{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Azure AD authentication methods API overview for a list of currently supported methods. + /// Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Azure AD authentication methods API overview for a list of currently supported methods. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(AuthenticationMethod body, Act return await RequestAdapter.SendAsync(requestInfo, AuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Azure AD authentication methods API overview for a list of currently supported methods. + /// Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Azure AD authentication methods API overview for a list of currently supported methods. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public MethodsRequestBuilder WithUrl(string rawUrl) { return new MethodsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Azure AD authentication methods API overview for a list of currently supported methods. + /// Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Azure AD authentication methods API overview for a list of currently supported methods. This API is supported in the following national cloud deployments. /// public class MethodsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/Device/DeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/Device/DeviceRequestBuilder.cs index d56007b78cb..731c0bd710a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/Device/DeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/Device/DeviceRequestBuilder.cs @@ -29,7 +29,7 @@ public DeviceRequestBuilder(Dictionary pathParameters, IRequestA public DeviceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/microsoftAuthenticatorMethods/{microsoftAuthenticatorAuthenticationMethod%2Did}/device{?%24select,%24expand}", rawUrl) { } /// - /// The registered device on which Microsoft Authenticator resides. This property is null if the device is not registered for passwordless Phone Sign-In. + /// The registered device on which Microsoft Authenticator resides. This property is null if the device isn't registered for passwordless Phone Sign-In. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -48,7 +48,7 @@ public DeviceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Device.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The registered device on which Microsoft Authenticator resides. This property is null if the device is not registered for passwordless Phone Sign-In. + /// The registered device on which Microsoft Authenticator resides. This property is null if the device isn't registered for passwordless Phone Sign-In. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +81,7 @@ public DeviceRequestBuilder WithUrl(string rawUrl) { return new DeviceRequestBuilder(rawUrl, RequestAdapter); } /// - /// The registered device on which Microsoft Authenticator resides. This property is null if the device is not registered for passwordless Phone Sign-In. + /// The registered device on which Microsoft Authenticator resides. This property is null if the device isn't registered for passwordless Phone Sign-In. /// public class DeviceRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/MicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/MicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder.cs index d95807dd2ac..d562c7eb938 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/MicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/MicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder.cs @@ -34,7 +34,7 @@ public MicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder(Dictionary - /// Deletes a microsoftAuthenticatorAuthenticationMethod object. + /// Deletes a microsoftAuthenticatorAuthenticationMethod object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a microsoftAuthenticatorAuthenticationMethod object. + /// Read the properties and relationships of a microsoftAuthenticatorAuthenticationMethod object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, MicrosoftAuthenticatorAuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a microsoftAuthenticatorAuthenticationMethod object. + /// Deletes a microsoftAuthenticatorAuthenticationMethod object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -98,7 +98,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a microsoftAuthenticatorAuthenticationMethod object. + /// Read the properties and relationships of a microsoftAuthenticatorAuthenticationMethod object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,7 +147,7 @@ public MicrosoftAuthenticatorAuthenticationMethodItemRequestBuilderDeleteRequest } } /// - /// Read the properties and relationships of a microsoftAuthenticatorAuthenticationMethod object. + /// Read the properties and relationships of a microsoftAuthenticatorAuthenticationMethod object. This API is supported in the following national cloud deployments. /// public class MicrosoftAuthenticatorAuthenticationMethodItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/MicrosoftAuthenticatorMethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/MicrosoftAuthenticatorMethodsRequestBuilder.cs index 3e9c155b093..ecc8d8629b4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/MicrosoftAuthenticatorMethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/MicrosoftAuthenticatorMethodsRequestBuilder.cs @@ -42,7 +42,7 @@ public MicrosoftAuthenticatorMethodsRequestBuilder(Dictionary pa public MicrosoftAuthenticatorMethodsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/microsoftAuthenticatorMethods{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the microsoftAuthenticatorAuthenticationMethod objects and their properties. + /// Get a list of the microsoftAuthenticatorAuthenticationMethod objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task return await RequestAdapter.SendAsync(requestInfo, MicrosoftAuthenticatorAuthenticationMethodCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the microsoftAuthenticatorAuthenticationMethod objects and their properties. + /// Get a list of the microsoftAuthenticatorAuthenticationMethod objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public MicrosoftAuthenticatorMethodsRequestBuilder WithUrl(string rawUrl) { return new MicrosoftAuthenticatorMethodsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the microsoftAuthenticatorAuthenticationMethod objects and their properties. + /// Get a list of the microsoftAuthenticatorAuthenticationMethod objects and their properties. This API is supported in the following national cloud deployments. /// public class MicrosoftAuthenticatorMethodsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Operations/Item/LongRunningOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Operations/Item/LongRunningOperationItemRequestBuilder.cs index 6b291a0ed1c..0b17a613a6d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Operations/Item/LongRunningOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Operations/Item/LongRunningOperationItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. + /// Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. + /// Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public LongRunningOperationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. + /// Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. This API is supported in the following national cloud deployments. /// public class LongRunningOperationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Operations/OperationsRequestBuilder.cs index 76f38750586..7d1a955105c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Operations/OperationsRequestBuilder.cs @@ -42,7 +42,7 @@ public OperationsRequestBuilder(Dictionary pathParameters, IRequ public OperationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/operations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. + /// Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(LongRunningOperation body, Act return await RequestAdapter.SendAsync(requestInfo, LongRunningOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. + /// Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public OperationsRequestBuilder WithUrl(string rawUrl) { return new OperationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. + /// Retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. This API is supported in the following national cloud deployments. /// public class OperationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/PasswordMethods/Item/PasswordAuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/PasswordMethods/Item/PasswordAuthenticationMethodItemRequestBuilder.cs index a263405f3f7..97c111e5bd1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/PasswordMethods/Item/PasswordAuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/PasswordMethods/Item/PasswordAuthenticationMethodItemRequestBuilder.cs @@ -29,7 +29,7 @@ public PasswordAuthenticationMethodItemRequestBuilder(Dictionary public PasswordAuthenticationMethodItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/passwordMethods/{passwordAuthenticationMethod%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Retrieve a password that's registered to a user, represented by a passwordAuthenticationMethod object. For security, the password itself will never be returned in the object and the password property is always null. + /// Retrieve a password that's registered to a user, represented by a passwordAuthenticationMethod object. For security, the password itself will never be returned in the object and the password property is always null. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, PasswordAuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a password that's registered to a user, represented by a passwordAuthenticationMethod object. For security, the password itself will never be returned in the object and the password property is always null. + /// Retrieve a password that's registered to a user, represented by a passwordAuthenticationMethod object. For security, the password itself will never be returned in the object and the password property is always null. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -82,7 +82,7 @@ public PasswordAuthenticationMethodItemRequestBuilder WithUrl(string rawUrl) { return new PasswordAuthenticationMethodItemRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a password that's registered to a user, represented by a passwordAuthenticationMethod object. For security, the password itself will never be returned in the object and the password property is always null. + /// Retrieve a password that's registered to a user, represented by a passwordAuthenticationMethod object. For security, the password itself will never be returned in the object and the password property is always null. This API is supported in the following national cloud deployments. /// public class PasswordAuthenticationMethodItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/PasswordMethods/PasswordMethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/PasswordMethods/PasswordMethodsRequestBuilder.cs index b49c4c443df..907e6ad47a8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/PasswordMethods/PasswordMethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/PasswordMethods/PasswordMethodsRequestBuilder.cs @@ -42,7 +42,7 @@ public PasswordMethodsRequestBuilder(Dictionary pathParameters, public PasswordMethodsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/passwordMethods{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of the passwords registered to a user, represented by a passwordAuthenticationMethod object. This will return exactly one object, as a user can have exactly one password. For security, the password itself will never be returned in the object and the password property is always null. + /// Retrieve a list of the passwords registered to a user, represented by a passwordAuthenticationMethod object. This will return exactly one object, as a user can have exactly one password. For security, the password itself will never be returned in the object and the password property is always null. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(PasswordAuthentication return await RequestAdapter.SendAsync(requestInfo, PasswordAuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of the passwords registered to a user, represented by a passwordAuthenticationMethod object. This will return exactly one object, as a user can have exactly one password. For security, the password itself will never be returned in the object and the password property is always null. + /// Retrieve a list of the passwords registered to a user, represented by a passwordAuthenticationMethod object. This will return exactly one object, as a user can have exactly one password. For security, the password itself will never be returned in the object and the password property is always null. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public PasswordMethodsRequestBuilder WithUrl(string rawUrl) { return new PasswordMethodsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of the passwords registered to a user, represented by a passwordAuthenticationMethod object. This will return exactly one object, as a user can have exactly one password. For security, the password itself will never be returned in the object and the password property is always null. + /// Retrieve a list of the passwords registered to a user, represented by a passwordAuthenticationMethod object. This will return exactly one object, as a user can have exactly one password. For security, the password itself will never be returned in the object and the password property is always null. This API is supported in the following national cloud deployments. /// public class PasswordMethodsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/Item/DisableSmsSignIn/DisableSmsSignInRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/Item/DisableSmsSignIn/DisableSmsSignInRequestBuilder.cs index 85995847334..8673cdfa94e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/Item/DisableSmsSignIn/DisableSmsSignInRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/Item/DisableSmsSignIn/DisableSmsSignInRequestBuilder.cs @@ -28,7 +28,7 @@ public DisableSmsSignInRequestBuilder(Dictionary pathParameters, public DisableSmsSignInRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/phoneMethods/{phoneAuthenticationMethod%2Did}/disableSmsSignIn", rawUrl) { } /// - /// Disable SMS sign-in for an existing mobile phone number registered to a user. The number will no longer be available for SMS sign-in, which can prevent your user from signing in. + /// Disable SMS sign-in for an existing mobile phone number registered to a user. The number will no longer be available for SMS sign-in, which can prevent your user from signing in. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Disable SMS sign-in for an existing mobile phone number registered to a user. The number will no longer be available for SMS sign-in, which can prevent your user from signing in. + /// Disable SMS sign-in for an existing mobile phone number registered to a user. The number will no longer be available for SMS sign-in, which can prevent your user from signing in. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/Item/EnableSmsSignIn/EnableSmsSignInRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/Item/EnableSmsSignIn/EnableSmsSignInRequestBuilder.cs index c0cb33170b0..f928c479328 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/Item/EnableSmsSignIn/EnableSmsSignInRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/Item/EnableSmsSignIn/EnableSmsSignInRequestBuilder.cs @@ -28,7 +28,7 @@ public EnableSmsSignInRequestBuilder(Dictionary pathParameters, public EnableSmsSignInRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/phoneMethods/{phoneAuthenticationMethod%2Did}/enableSmsSignIn", rawUrl) { } /// - /// Enable SMS sign-in for an existing mobile phone number registered to a user. To be successfully enabled: + /// Enable SMS sign-in for an existing mobile phone number registered to a user. To be successfully enabled: This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Enable SMS sign-in for an existing mobile phone number registered to a user. To be successfully enabled: + /// Enable SMS sign-in for an existing mobile phone number registered to a user. To be successfully enabled: This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/Item/PhoneAuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/Item/PhoneAuthenticationMethodItemRequestBuilder.cs index a205ca8a83d..6c5dfd181b3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/Item/PhoneAuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/Item/PhoneAuthenticationMethodItemRequestBuilder.cs @@ -39,7 +39,7 @@ public PhoneAuthenticationMethodItemRequestBuilder(Dictionary pa public PhoneAuthenticationMethodItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/phoneMethods/{phoneAuthenticationMethod%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a user's phone authentication method. This removes the phone number from the user and they will no longer be able to use the number for authentication, whether via SMS or voice calls. A user cannot have an alternateMobile number without a mobile number. If you want to remove a mobile number from a user that also has an alternateMobile number, first update the mobile number to the new number, then delete the alternateMobile number. If the phone number is the user's default Azure multi-factor authentication (MFA) authentication method, it cannot be deleted. Have the user change their default authentication method, and then delete the number. + /// Delete a user's phone authentication method. This removes the phone number from the user and they'll no longer be able to use the number for authentication, whether via SMS or voice calls. A user can't have an alternateMobile number without a mobile number. If you want to remove a mobile number from a user that also has an alternateMobile number, first update the mobile number to the new number, then delete the alternateMobile number. If the phone number is the user's default Azure multi-factor authentication (MFA) authentication method, it can't be deleted. Have the user change their default authentication method, and then delete the number. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -59,7 +59,7 @@ public async Task DeleteAsync(Action - /// Retrieve a single phoneAuthenticationMethod object for a user. This method is available only for standard Azure AD and B2B users, but not B2C users. + /// Retrieve a single phoneAuthenticationMethod object for a user. This method is available only for standard Azure AD and B2B users, but not B2C users. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -79,7 +79,7 @@ public async Task GetAsync(Action(requestInfo, PhoneAuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update a user's phone number associated with a phone authentication method object. You can't change a phone's type. To change a phone's type, add a new number of the desired type and then delete the object with the original type. If a user is enabled by policy to use SMS to sign in and the mobile number is changed, the system will attempt to register the number for use in that system. + /// Update a user's phone number associated with a phone authentication method object. You can't change a phone's type. To change a phone's type, add a new number of the desired type and then delete the object with the original type. If a user is enabled by policy to use SMS to sign in and the mobile number is changed, the system will attempt to register the number for use in that system. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -101,7 +101,7 @@ public async Task PatchAsync(PhoneAuthenticationMetho return await RequestAdapter.SendAsync(requestInfo, PhoneAuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a user's phone authentication method. This removes the phone number from the user and they will no longer be able to use the number for authentication, whether via SMS or voice calls. A user cannot have an alternateMobile number without a mobile number. If you want to remove a mobile number from a user that also has an alternateMobile number, first update the mobile number to the new number, then delete the alternateMobile number. If the phone number is the user's default Azure multi-factor authentication (MFA) authentication method, it cannot be deleted. Have the user change their default authentication method, and then delete the number. + /// Delete a user's phone authentication method. This removes the phone number from the user and they'll no longer be able to use the number for authentication, whether via SMS or voice calls. A user can't have an alternateMobile number without a mobile number. If you want to remove a mobile number from a user that also has an alternateMobile number, first update the mobile number to the new number, then delete the alternateMobile number. If the phone number is the user's default Azure multi-factor authentication (MFA) authentication method, it can't be deleted. Have the user change their default authentication method, and then delete the number. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -125,7 +125,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a single phoneAuthenticationMethod object for a user. This method is available only for standard Azure AD and B2B users, but not B2C users. + /// Retrieve a single phoneAuthenticationMethod object for a user. This method is available only for standard Azure AD and B2B users, but not B2C users. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -151,7 +151,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update a user's phone number associated with a phone authentication method object. You can't change a phone's type. To change a phone's type, add a new number of the desired type and then delete the object with the original type. If a user is enabled by policy to use SMS to sign in and the mobile number is changed, the system will attempt to register the number for use in that system. + /// Update a user's phone number associated with a phone authentication method object. You can't change a phone's type. To change a phone's type, add a new number of the desired type and then delete the object with the original type. If a user is enabled by policy to use SMS to sign in and the mobile number is changed, the system will attempt to register the number for use in that system. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -202,7 +202,7 @@ public PhoneAuthenticationMethodItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a single phoneAuthenticationMethod object for a user. This method is available only for standard Azure AD and B2B users, but not B2C users. + /// Retrieve a single phoneAuthenticationMethod object for a user. This method is available only for standard Azure AD and B2B users, but not B2C users. This API is supported in the following national cloud deployments. /// public class PhoneAuthenticationMethodItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/PhoneMethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/PhoneMethodsRequestBuilder.cs index d7cf797fea0..d181a8657f2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/PhoneMethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/PhoneMethodsRequestBuilder.cs @@ -42,7 +42,7 @@ public PhoneMethodsRequestBuilder(Dictionary pathParameters, IRe public PhoneMethodsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/phoneMethods{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of phone authentication method objects for a user. This will return up to three objects, as a user can have up to three phones usable for authentication. This method is available only for standard Azure AD and B2B users, but not B2C users. + /// Retrieve a list of phone authentication method objects for a user. This will return up to three objects, as a user can have up to three phones usable for authentication. This method is available only for standard Azure AD and B2B users, but not B2C users. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action

(requestInfo, PhoneAuthenticationMethodCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } ///

- /// Add a new phone authentication method for a user. A user may only have one phone of each type, captured in the phoneType property. This means, for example, adding a mobile phone to a user with a preexisting mobile phone will fail. Additionally, a user must always have a mobile phone before adding an alternateMobile phone. Adding a phone number makes it available for use in both Azure multi-factor authentication (MFA) and self-service password reset (SSPR), if enabled. Additionally, if a user is enabled by policy to use SMS sign-in and a mobile number is added, the system will attempt to register the number for use in that system. + /// Add a new phone authentication method for a user. A user may only have one phone of each type, captured in the phoneType property. This means, for example, adding a mobile phone to a user with a pre-existing mobile phone fails. Additionally, a user must always have a mobile phone before adding an alternateMobile phone. Adding a phone number makes it available for use in both Azure multi-factor authentication (MFA) and self-service password reset (SSPR), if enabled. Additionally, if a user is enabled by policy to use SMS sign-in and a mobile number is added, the system attempts to register the number for use in that system. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(PhoneAuthenticationMethod return await RequestAdapter.SendAsync(requestInfo, PhoneAuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of phone authentication method objects for a user. This will return up to three objects, as a user can have up to three phones usable for authentication. This method is available only for standard Azure AD and B2B users, but not B2C users. + /// Retrieve a list of phone authentication method objects for a user. This will return up to three objects, as a user can have up to three phones usable for authentication. This method is available only for standard Azure AD and B2B users, but not B2C users. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a new phone authentication method for a user. A user may only have one phone of each type, captured in the phoneType property. This means, for example, adding a mobile phone to a user with a preexisting mobile phone will fail. Additionally, a user must always have a mobile phone before adding an alternateMobile phone. Adding a phone number makes it available for use in both Azure multi-factor authentication (MFA) and self-service password reset (SSPR), if enabled. Additionally, if a user is enabled by policy to use SMS sign-in and a mobile number is added, the system will attempt to register the number for use in that system. + /// Add a new phone authentication method for a user. A user may only have one phone of each type, captured in the phoneType property. This means, for example, adding a mobile phone to a user with a pre-existing mobile phone fails. Additionally, a user must always have a mobile phone before adding an alternateMobile phone. Adding a phone number makes it available for use in both Azure multi-factor authentication (MFA) and self-service password reset (SSPR), if enabled. Additionally, if a user is enabled by policy to use SMS sign-in and a mobile number is added, the system attempts to register the number for use in that system. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PhoneMethodsRequestBuilder WithUrl(string rawUrl) { return new PhoneMethodsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of phone authentication method objects for a user. This will return up to three objects, as a user can have up to three phones usable for authentication. This method is available only for standard Azure AD and B2B users, but not B2C users. + /// Retrieve a list of phone authentication method objects for a user. This will return up to three objects, as a user can have up to three phones usable for authentication. This method is available only for standard Azure AD and B2B users, but not B2C users. This API is supported in the following national cloud deployments. /// public class PhoneMethodsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/SoftwareOathMethods/Item/SoftwareOathAuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/SoftwareOathMethods/Item/SoftwareOathAuthenticationMethodItemRequestBuilder.cs index 89c0783e094..22424aa3ea2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/SoftwareOathMethods/Item/SoftwareOathAuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/SoftwareOathMethods/Item/SoftwareOathAuthenticationMethodItemRequestBuilder.cs @@ -29,7 +29,7 @@ public SoftwareOathAuthenticationMethodItemRequestBuilder(Dictionary - /// Delete a user's Software OATH token authentication method object. + /// Delete a user's Software OATH token authentication method object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve a user's single Software OATH token authentication method object and its properties. + /// Retrieve a user's single Software OATH token authentication method object and its properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, SoftwareOathAuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a user's Software OATH token authentication method object. + /// Delete a user's Software OATH token authentication method object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -93,7 +93,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a user's single Software OATH token authentication method object and its properties. + /// Retrieve a user's single Software OATH token authentication method object and its properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -142,7 +142,7 @@ public SoftwareOathAuthenticationMethodItemRequestBuilderDeleteRequestConfigurat } } /// - /// Retrieve a user's single Software OATH token authentication method object and its properties. + /// Retrieve a user's single Software OATH token authentication method object and its properties. This API is supported in the following national cloud deployments. /// public class SoftwareOathAuthenticationMethodItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/SoftwareOathMethods/SoftwareOathMethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/SoftwareOathMethods/SoftwareOathMethodsRequestBuilder.cs index 1802ad273bf..eeb7883da99 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/SoftwareOathMethods/SoftwareOathMethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/SoftwareOathMethods/SoftwareOathMethodsRequestBuilder.cs @@ -42,7 +42,7 @@ public SoftwareOathMethodsRequestBuilder(Dictionary pathParamete public SoftwareOathMethodsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/softwareOathMethods{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of a user's software OATH token authentication method objects and their properties. + /// Retrieve a list of a user's software OATH token authentication method objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(A return await RequestAdapter.SendAsync(requestInfo, SoftwareOathAuthenticationMethodCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of a user's software OATH token authentication method objects and their properties. + /// Retrieve a list of a user's software OATH token authentication method objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public SoftwareOathMethodsRequestBuilder WithUrl(string rawUrl) { return new SoftwareOathMethodsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of a user's software OATH token authentication method objects and their properties. + /// Retrieve a list of a user's software OATH token authentication method objects and their properties. This API is supported in the following national cloud deployments. /// public class SoftwareOathMethodsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/TemporaryAccessPassMethods/Item/TemporaryAccessPassAuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/TemporaryAccessPassMethods/Item/TemporaryAccessPassAuthenticationMethodItemRequestBuilder.cs index 8463b3a2819..be01de243cb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/TemporaryAccessPassMethods/Item/TemporaryAccessPassAuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/TemporaryAccessPassMethods/Item/TemporaryAccessPassAuthenticationMethodItemRequestBuilder.cs @@ -29,7 +29,7 @@ public TemporaryAccessPassAuthenticationMethodItemRequestBuilder(Dictionary - /// Delete a users's temporaryAccessPassAuthenticationMethod object. + /// Delete a users's temporaryAccessPassAuthenticationMethod object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve a user's single temporaryAccessPassAuthenticationMethod object. + /// Retrieve a user's single temporaryAccessPassAuthenticationMethod object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, TemporaryAccessPassAuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a users's temporaryAccessPassAuthenticationMethod object. + /// Delete a users's temporaryAccessPassAuthenticationMethod object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -93,7 +93,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a user's single temporaryAccessPassAuthenticationMethod object. + /// Retrieve a user's single temporaryAccessPassAuthenticationMethod object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -142,7 +142,7 @@ public TemporaryAccessPassAuthenticationMethodItemRequestBuilderDeleteRequestCon } } /// - /// Retrieve a user's single temporaryAccessPassAuthenticationMethod object. + /// Retrieve a user's single temporaryAccessPassAuthenticationMethod object. This API is supported in the following national cloud deployments. /// public class TemporaryAccessPassAuthenticationMethodItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/TemporaryAccessPassMethods/TemporaryAccessPassMethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/TemporaryAccessPassMethods/TemporaryAccessPassMethodsRequestBuilder.cs index 1c8dde804aa..31011f3918e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/TemporaryAccessPassMethods/TemporaryAccessPassMethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/TemporaryAccessPassMethods/TemporaryAccessPassMethodsRequestBuilder.cs @@ -42,7 +42,7 @@ public TemporaryAccessPassMethodsRequestBuilder(Dictionary pathP public TemporaryAccessPassMethodsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/temporaryAccessPassMethods{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of a user's temporaryAccessPassAuthenticationMethod objects and their properties. This API will only return a single object in the collection as a user can have only one Temporary Access Pass method. + /// Retrieve a list of a user's temporaryAccessPassAuthenticationMethod objects and their properties. This API will only return a single object in the collection as a user can have only one Temporary Access Pass method. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task Get return await RequestAdapter.SendAsync(requestInfo, TemporaryAccessPassAuthenticationMethodCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new temporaryAccessPassAuthenticationMethod object on a user. A user can only have one Temporary Access Pass that's usable within its specified lifetime. If the user requires a new Temporary Access Pass while the current Temporary Access Pass is valid, the admin can create a new Temporary Access Pass for the user, the previous Temporary Access Pass will be deleted, and a new Temporary Access Pass will be created. + /// Create a new temporaryAccessPassAuthenticationMethod object on a user. A user can only have one Temporary Access Pass that's usable within its specified lifetime. If the user requires a new Temporary Access Pass while the current Temporary Access Pass is valid, the admin can create a new Temporary Access Pass for the user, the previous Temporary Access Pass will be deleted, and a new Temporary Access Pass will be created. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TemporaryAc return await RequestAdapter.SendAsync(requestInfo, TemporaryAccessPassAuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of a user's temporaryAccessPassAuthenticationMethod objects and their properties. This API will only return a single object in the collection as a user can have only one Temporary Access Pass method. + /// Retrieve a list of a user's temporaryAccessPassAuthenticationMethod objects and their properties. This API will only return a single object in the collection as a user can have only one Temporary Access Pass method. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new temporaryAccessPassAuthenticationMethod object on a user. A user can only have one Temporary Access Pass that's usable within its specified lifetime. If the user requires a new Temporary Access Pass while the current Temporary Access Pass is valid, the admin can create a new Temporary Access Pass for the user, the previous Temporary Access Pass will be deleted, and a new Temporary Access Pass will be created. + /// Create a new temporaryAccessPassAuthenticationMethod object on a user. A user can only have one Temporary Access Pass that's usable within its specified lifetime. If the user requires a new Temporary Access Pass while the current Temporary Access Pass is valid, the admin can create a new Temporary Access Pass for the user, the previous Temporary Access Pass will be deleted, and a new Temporary Access Pass will be created. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public TemporaryAccessPassMethodsRequestBuilder WithUrl(string rawUrl) { return new TemporaryAccessPassMethodsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of a user's temporaryAccessPassAuthenticationMethod objects and their properties. This API will only return a single object in the collection as a user can have only one Temporary Access Pass method. + /// Retrieve a list of a user's temporaryAccessPassAuthenticationMethod objects and their properties. This API will only return a single object in the collection as a user can have only one Temporary Access Pass method. This API is supported in the following national cloud deployments. /// public class TemporaryAccessPassMethodsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/WindowsHelloForBusinessAuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/WindowsHelloForBusinessAuthenticationMethodItemRequestBuilder.cs index c81c6c44f7e..f3eb3fd6b78 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/WindowsHelloForBusinessAuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/WindowsHelloForBusinessAuthenticationMethodItemRequestBuilder.cs @@ -34,7 +34,7 @@ public WindowsHelloForBusinessAuthenticationMethodItemRequestBuilder(Dictionary< public WindowsHelloForBusinessAuthenticationMethodItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/windowsHelloForBusinessMethods/{windowsHelloForBusinessAuthenticationMethod%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a windowsHelloForBusinessAuthenticationMethod object. + /// Deletes a windowsHelloForBusinessAuthenticationMethod object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a windowsHelloForBusinessAuthenticationMethod object. + /// Read the properties and relationships of a windowsHelloForBusinessAuthenticationMethod object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, WindowsHelloForBusinessAuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a windowsHelloForBusinessAuthenticationMethod object. + /// Deletes a windowsHelloForBusinessAuthenticationMethod object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -98,7 +98,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a windowsHelloForBusinessAuthenticationMethod object. + /// Read the properties and relationships of a windowsHelloForBusinessAuthenticationMethod object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,7 +147,7 @@ public WindowsHelloForBusinessAuthenticationMethodItemRequestBuilderDeleteReques } } /// - /// Read the properties and relationships of a windowsHelloForBusinessAuthenticationMethod object. + /// Read the properties and relationships of a windowsHelloForBusinessAuthenticationMethod object. This API is supported in the following national cloud deployments. /// public class WindowsHelloForBusinessAuthenticationMethodItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/WindowsHelloForBusinessMethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/WindowsHelloForBusinessMethodsRequestBuilder.cs index ee7323df046..8dee0151ffe 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/WindowsHelloForBusinessMethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/WindowsHelloForBusinessMethodsRequestBuilder.cs @@ -42,7 +42,7 @@ public WindowsHelloForBusinessMethodsRequestBuilder(Dictionary p public WindowsHelloForBusinessMethodsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/windowsHelloForBusinessMethods{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the windowsHelloForBusinessAuthenticationMethod objects and their properties. + /// Get a list of the windowsHelloForBusinessAuthenticationMethod objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task return await RequestAdapter.SendAsync(requestInfo, WindowsHelloForBusinessAuthenticationMethodCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the windowsHelloForBusinessAuthenticationMethod objects and their properties. + /// Get a list of the windowsHelloForBusinessAuthenticationMethod objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public WindowsHelloForBusinessMethodsRequestBuilder WithUrl(string rawUrl) { return new WindowsHelloForBusinessMethodsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the windowsHelloForBusinessAuthenticationMethod objects and their properties. + /// Get a list of the windowsHelloForBusinessAuthenticationMethod objects and their properties. This API is supported in the following national cloud deployments. /// public class WindowsHelloForBusinessMethodsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs new file mode 100644 index 00000000000..682572e5c55 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.Calendar.AllowedCalendarSharingRolesWithUser { + public class AllowedCalendarSharingRolesWithUserGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AllowedCalendarSharingRolesWithUserGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AllowedCalendarSharingRolesWithUserGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfEnumValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfEnumValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs index 59a6b2cccaf..35ef37320c1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs @@ -35,6 +35,26 @@ public AllowedCalendarSharingRolesWithUserRequestBuilder(string rawUrl, IRequest /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsAllowedCalendarSharingRolesWithUserGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsAllowedCalendarSharingRolesWithUserGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AllowedCalendarSharingRolesWithUserGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function allowedCalendarSharingRoles + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsAllowedCalendarSharingRolesWithUserGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs index aa15131f98c..c51aa12e9a3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.Calendar.AllowedCalendarSharingRolesWithUser { - public class AllowedCalendarSharingRolesWithUserResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use allowedCalendarSharingRolesWithUserGetResponse instead.")] + public class AllowedCalendarSharingRolesWithUserResponse : AllowedCalendarSharingRolesWithUserGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AllowedCalendarSharingRolesWithUserResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfEnumValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfEnumValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs index 590ec523a96..90187ef2f63 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs @@ -42,7 +42,7 @@ public CalendarPermissionsRequestBuilder(Dictionary pathParamete public CalendarPermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarPermissions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. + /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, CalendarPermissionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. + /// Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(CalendarPermission body, Action< return await RequestAdapter.SendAsync(requestInfo, CalendarPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. + /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. + /// Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public CalendarPermissionsRequestBuilder WithUrl(string rawUrl) { return new CalendarPermissionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. + /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. This API is supported in the following national cloud deployments. /// public class CalendarPermissionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs index 92c567a355c..8a38db60c75 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs @@ -29,7 +29,7 @@ public CalendarPermissionItemRequestBuilder(Dictionary pathParam public CalendarPermissionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarPermissions/{calendarPermission%2Did}{?%24select}", rawUrl) { } /// - /// Delete calendarPermission. + /// Delete calendarPermission. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get the specified permissions object of a user or group calendar that has been shared. + /// Get the specified permissions object of a user or group calendar that has been shared. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, CalendarPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the permissions assigned to an existing sharee or delegate, through the corresponding <b>calendarPermission</b> object for a calendar. + /// Update the permissions assigned to an existing share recipient or delegate, through the corresponding <b>calendarPermission</b> object for a calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(CalendarPermission body, Action return await RequestAdapter.SendAsync(requestInfo, CalendarPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete calendarPermission. + /// Delete calendarPermission. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the specified permissions object of a user or group calendar that has been shared. + /// Get the specified permissions object of a user or group calendar that has been shared. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the permissions assigned to an existing sharee or delegate, through the corresponding <b>calendarPermission</b> object for a calendar. + /// Update the permissions assigned to an existing share recipient or delegate, through the corresponding <b>calendarPermission</b> object for a calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public CalendarPermissionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the specified permissions object of a user or group calendar that has been shared. + /// Get the specified permissions object of a user or group calendar that has been shared. This API is supported in the following national cloud deployments. /// public class CalendarPermissionItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarRequestBuilder.cs index e75312b2526..a9e9890214f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarRequestBuilder.cs @@ -58,7 +58,7 @@ public CalendarRequestBuilder(Dictionary pathParameters, IReques public CalendarRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar{?%24select}", rawUrl) { } /// - /// Get the properties and relationships of a calendar object. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. There are two scenarios where an app can get another user's calendar: + /// Get the properties and relationships of a calendar object. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. There are two scenarios where an app can get another user's calendar: This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -78,7 +78,7 @@ public CalendarRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Calendar.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a calendar object. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. + /// Update the properties of a calendar object. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -100,7 +100,7 @@ public CalendarRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Calendar.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the properties and relationships of a calendar object. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. There are two scenarios where an app can get another user's calendar: + /// Get the properties and relationships of a calendar object. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. There are two scenarios where an app can get another user's calendar: This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -126,7 +126,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a calendar object. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. + /// Update the properties of a calendar object. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -161,7 +161,7 @@ public CalendarRequestBuilder WithUrl(string rawUrl) { return new CalendarRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the properties and relationships of a calendar object. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. There are two scenarios where an app can get another user's calendar: + /// Get the properties and relationships of a calendar object. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. There are two scenarios where an app can get another user's calendar: This API is supported in the following national cloud deployments. /// public class CalendarRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..d027b4f8a91 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.Calendar.CalendarView.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.cs index a434ab4edfd..508a8bcdab8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Delta/DeltaResponse.cs index cfdcb001c41..e073679d0fe 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.Calendar.CalendarView.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.cs index da9a2297067..b39669b2d8c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 1bc6f519761..7a50e985a2f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 8ec91570fdd..29b578ed27f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index d4351fecf0f..56f85e7ce16 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.cs index eae93f29803..2264aafb768 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.cs index 2ac1b62f1b5..95ff628bce6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs index 81f36dbbf33..aeb70a85558 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs index b915ef9f94e..e5db0790309 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 59921f1bfcd..bbc1f85364c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.cs index 8bd3aec99ee..ceb8cd1f63a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..d611bd9673f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.Calendar.CalendarView.Item.Instances.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs index 20e15745470..0cc89a519ca 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaResponse.cs index f39373005f8..967c9b1c2c6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.Calendar.CalendarView.Item.Instances.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index cc0c4cebda9..0eb9c46a4c3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 1c5c6c5aa48..190094976b0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 621ae6491ce..4dc6036ab15 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 75605b2697c..b9671105e7f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index a981acf4ea9..b5234d40720 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index ced68911d8f..3979b079ddb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index c57da412bb7..56be2aaed8d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index 4c347294f45..807cf359e07 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 5dbd28cc342..b24d0e48c3a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index 313d9470c8c..20c100dad5f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 2d613ce84ac..094381dc823 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 7c879cb0327..e4c2379bf9b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 9a201b036bc..b59fd6e4d64 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 199267ef294..862cc5dfd59 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..123381e1cc0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.Calendar.Events.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Delta/DeltaRequestBuilder.cs index bbfcb283546..cfa61856e7f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Delta/DeltaResponse.cs index 56135f2aa39..98a2522b574 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.Calendar.Events.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/EventsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/EventsRequestBuilder.cs index b3674d9af70..f17dbff0de6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/EventsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/EventsRequestBuilder.cs @@ -47,7 +47,7 @@ public EventsRequestBuilder(Dictionary pathParameters, IRequestA public EventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. + /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to create a new event in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. + /// Use this API to create a new event in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Event body, Action(requestInfo, Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. + /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new event in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. + /// Use this API to create a new event in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public EventsRequestBuilder WithUrl(string rawUrl) { return new EventsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. + /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. This API is supported in the following national cloud deployments. /// public class EventsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.cs index 1ddf49d2449..21e844769a9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs index beeeefce18c..1972a230e0f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index c72c2a98bd7..bbdf2e934e5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 76fb70fb92f..d82dcbdae7e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.cs index b1349316fb6..2c4a23c0e9c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.cs index 5a91bd82e18..7f033818b0c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs index 9d17fbf7903..56f7ec73d90 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/EventItemRequestBuilder.cs index 0f4649b4ad2..68f3dd00654 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/EventItemRequestBuilder.cs @@ -122,7 +122,7 @@ public async Task GetAsync(Action(requestInfo, Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update an event object. + /// Update an event object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -194,7 +194,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update an event object. + /// Update an event object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs index e6dbbed6ab9..518de872ef1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 52f201ac036..749aaf9fc92 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.cs index 6d5e3e34f19..7706208e084 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..24d72ff8c62 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.Calendar.Events.Item.Instances.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.cs index 19daab30985..26dd414bd97 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaResponse.cs index a33277fc8c3..6b017a275c7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.Calendar.Events.Item.Instances.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index 616d11b5b86..d0ed3bebd01 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 212b6e45c11..669bb5e2eba 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 2df58823ae6..64188b50bed 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 741134167f7..3c9b3668dff 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index 281f2c0e8a3..b60b224c9ee 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index 3c9ca0f5156..ba92424149e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index a1ce7a0031f..ab423f1afad 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index 3e92a5d3928..5c4f9da65c6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 83555f2835d..7aa78ca5857 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index 96254e2dbba..ecac8b856b8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 2e1f132d44b..566c0041e8d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 6beb85bddc7..5f0070e2c10 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 98d8679066e..17dfef601b9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 79912f565db..6450ce9968d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/GetSchedule/GetSchedulePostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/GetSchedule/GetSchedulePostResponse.cs new file mode 100644 index 00000000000..d347478daf3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/GetSchedule/GetSchedulePostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.Calendar.GetSchedule { + public class GetSchedulePostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetSchedulePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetSchedulePostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ScheduleInformation.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.cs index 6c9d41cc8c0..3fb795640c8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.cs @@ -28,13 +28,36 @@ public GetScheduleRequestBuilder(Dictionary pathParameters, IReq public GetScheduleRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/getSchedule", rawUrl) { } /// - /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. + /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetSchedulePostResponseAsync(GetSchedulePostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetSchedulePostResponseAsync(GetSchedulePostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetSchedulePostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetSchedulePostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetSchedulePostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetSchedulePostRequestBody body return await RequestAdapter.SendAsync(requestInfo, GetScheduleResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. + /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/GetSchedule/GetScheduleResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/GetSchedule/GetScheduleResponse.cs index b4299bffa59..47ad327a6f8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/GetSchedule/GetScheduleResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/GetSchedule/GetScheduleResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.Calendar.GetSchedule { - public class GetScheduleResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getSchedulePostResponse instead.")] + public class GetScheduleResponse : GetSchedulePostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetScheduleResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ScheduleInformation.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/CalendarGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/CalendarGroupsRequestBuilder.cs index 0f3b0a87052..c160be16b95 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/CalendarGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/CalendarGroupsRequestBuilder.cs @@ -42,7 +42,7 @@ public CalendarGroupsRequestBuilder(Dictionary pathParameters, I public CalendarGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get the user's calendar groups. + /// Get the user's calendar groups. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, CalendarGroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to create a new CalendarGroup. + /// Use this API to create a new CalendarGroup. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(CalendarGroup body, Action(requestInfo, CalendarGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the user's calendar groups. + /// Get the user's calendar groups. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new CalendarGroup. + /// Use this API to create a new CalendarGroup. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public CalendarGroupsRequestBuilder WithUrl(string rawUrl) { return new CalendarGroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the user's calendar groups. + /// Get the user's calendar groups. This API is supported in the following national cloud deployments. /// public class CalendarGroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/CalendarGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/CalendarGroupItemRequestBuilder.cs index a429bbc0e2f..1aea161d57d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/CalendarGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/CalendarGroupItemRequestBuilder.cs @@ -34,7 +34,7 @@ public CalendarGroupItemRequestBuilder(Dictionary pathParameters public CalendarGroupItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}{?%24select}", rawUrl) { } /// - /// Delete a calendar group other than the default calendar group. + /// Delete a calendar group other than the default calendar group. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a calendar group object. + /// Retrieve the properties and relationships of a calendar group object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, CalendarGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of calendargroup object. + /// Update the properties of calendargroup object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(CalendarGroup body, Action(requestInfo, CalendarGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a calendar group other than the default calendar group. + /// Delete a calendar group other than the default calendar group. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a calendar group object. + /// Retrieve the properties and relationships of a calendar group object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of calendargroup object. + /// Update the properties of calendargroup object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public CalendarGroupItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a calendar group object. + /// Retrieve the properties and relationships of a calendar group object. This API is supported in the following national cloud deployments. /// public class CalendarGroupItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/CalendarsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/CalendarsRequestBuilder.cs index 60ca6144641..e1170398479 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/CalendarsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/CalendarsRequestBuilder.cs @@ -42,7 +42,7 @@ public CalendarsRequestBuilder(Dictionary pathParameters, IReque public CalendarsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Retrieve a list of calendars belonging to a calendar group. + /// Retrieve a list of calendars belonging to a calendar group. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, CalendarCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to create a new calendar in a calendar group for a user. + /// Use this API to create a new calendar in a calendar group for a user. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Calendar.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of calendars belonging to a calendar group. + /// Retrieve a list of calendars belonging to a calendar group. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new calendar in a calendar group for a user. + /// Use this API to create a new calendar in a calendar group for a user. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public CalendarsRequestBuilder WithUrl(string rawUrl) { return new CalendarsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of calendars belonging to a calendar group. + /// Retrieve a list of calendars belonging to a calendar group. This API is supported in the following national cloud deployments. /// public class CalendarsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs new file mode 100644 index 00000000000..78003bc9f1d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.CalendarGroups.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser { + public class AllowedCalendarSharingRolesWithUserGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AllowedCalendarSharingRolesWithUserGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AllowedCalendarSharingRolesWithUserGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfEnumValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfEnumValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs index 72e6de41e34..a26b972fa3d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs @@ -35,6 +35,26 @@ public AllowedCalendarSharingRolesWithUserRequestBuilder(string rawUrl, IRequest /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsAllowedCalendarSharingRolesWithUserGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsAllowedCalendarSharingRolesWithUserGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AllowedCalendarSharingRolesWithUserGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function allowedCalendarSharingRoles + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsAllowedCalendarSharingRolesWithUserGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs index 7be52ef635a..39c5a8e48b3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.CalendarGroups.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser { - public class AllowedCalendarSharingRolesWithUserResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use allowedCalendarSharingRolesWithUserGetResponse instead.")] + public class AllowedCalendarSharingRolesWithUserResponse : AllowedCalendarSharingRolesWithUserGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AllowedCalendarSharingRolesWithUserResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfEnumValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfEnumValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs index e5c69c01146..c004bb830d3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs @@ -42,7 +42,7 @@ public CalendarPermissionsRequestBuilder(Dictionary pathParamete public CalendarPermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarPermissions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. + /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, CalendarPermissionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. + /// Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(CalendarPermission body, Action< return await RequestAdapter.SendAsync(requestInfo, CalendarPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. + /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. + /// Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public CalendarPermissionsRequestBuilder WithUrl(string rawUrl) { return new CalendarPermissionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. + /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. This API is supported in the following national cloud deployments. /// public class CalendarPermissionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs index f019c221e4b..c9dc6ae12ed 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs @@ -29,7 +29,7 @@ public CalendarPermissionItemRequestBuilder(Dictionary pathParam public CalendarPermissionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarPermissions/{calendarPermission%2Did}{?%24select}", rawUrl) { } /// - /// Delete calendarPermission. + /// Delete calendarPermission. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get the specified permissions object of a user or group calendar that has been shared. + /// Get the specified permissions object of a user or group calendar that has been shared. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, CalendarPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the permissions assigned to an existing sharee or delegate, through the corresponding <b>calendarPermission</b> object for a calendar. + /// Update the permissions assigned to an existing share recipient or delegate, through the corresponding <b>calendarPermission</b> object for a calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(CalendarPermission body, Action return await RequestAdapter.SendAsync(requestInfo, CalendarPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete calendarPermission. + /// Delete calendarPermission. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the specified permissions object of a user or group calendar that has been shared. + /// Get the specified permissions object of a user or group calendar that has been shared. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the permissions assigned to an existing sharee or delegate, through the corresponding <b>calendarPermission</b> object for a calendar. + /// Update the permissions assigned to an existing share recipient or delegate, through the corresponding <b>calendarPermission</b> object for a calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public CalendarPermissionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the specified permissions object of a user or group calendar that has been shared. + /// Get the specified permissions object of a user or group calendar that has been shared. This API is supported in the following national cloud deployments. /// public class CalendarPermissionItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs index 706678e5254..39b98f887a6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs @@ -47,7 +47,7 @@ public CalendarViewRequestBuilder(Dictionary pathParameters, IRe public CalendarViewRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get the occurrences, exceptions and single instances of events in a calendar view defined by a time range,from a user's default calendar (../me/calendarView) or some other calendar of the user's. + /// Get the occurrences, exceptions and single instances of events in a calendar view defined by a time range,from a user's default calendar (../me/calendarView) or some other calendar of the user's. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the occurrences, exceptions and single instances of events in a calendar view defined by a time range,from a user's default calendar (../me/calendarView) or some other calendar of the user's. + /// Get the occurrences, exceptions and single instances of events in a calendar view defined by a time range,from a user's default calendar (../me/calendarView) or some other calendar of the user's. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -100,7 +100,7 @@ public CalendarViewRequestBuilder WithUrl(string rawUrl) { return new CalendarViewRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the occurrences, exceptions and single instances of events in a calendar view defined by a time range,from a user's default calendar (../me/calendarView) or some other calendar of the user's. + /// Get the occurrences, exceptions and single instances of events in a calendar view defined by a time range,from a user's default calendar (../me/calendarView) or some other calendar of the user's. This API is supported in the following national cloud deployments. /// public class CalendarViewRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..96c2ab83056 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarView.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs index 2260c92e4d2..3743068d630 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaResponse.cs index 7a7ba0a6f47..2a1d88d03c6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarView.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs index 11bb6c28fc4..054aebf21b1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 84cd82d59f2..f5bef44d5b6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index eac93c4f0be..3976feec89b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 4244ee3bf67..47c99b9207e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs index 13d3ae0fc3a..11379c23edb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs index 9d70558afe8..5dc2c12b777 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs index 412cac31cae..4396b5bd36c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs index 6bc6e002579..09e59c38f98 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index dfa8d03771d..7180f474f1c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs index cf76d655a77..21a5bf8772b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..2e271efa8ec --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarView.Item.Instances.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs index ef000392a48..4204b24b14f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs index 63c13738dc6..7ad725a4614 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarView.Item.Instances.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index 678c25441f6..27d20bb5321 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 70b411c641e..dbc296f90b8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index ee27d582088..2ae63fc5a4e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index f62603dc15e..803b2f02956 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index b60f6e6d873..eb6d11ae5d8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index a140269c395..2924b3216e3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index 0dd502af9a8..4323692e633 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index dcae8435e2e..637e3f37c1b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 7215f76d469..f1f37269d08 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index b5b54746d38..99e7d6647d9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 41db1dd2030..405b91652e3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 062fccd2e17..d8ae286888c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index ec0fe57e2a9..9a092b784b4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 5cb19725ec2..748b3c8d0ba 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..6392190d2a5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs index 5ce7fe1c503..fd1e9effde8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaResponse.cs index ace1b822dff..825534d088e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/EventsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/EventsRequestBuilder.cs index abce6f66bd0..dd82666f1ab 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/EventsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/EventsRequestBuilder.cs @@ -47,7 +47,7 @@ public EventsRequestBuilder(Dictionary pathParameters, IRequestA public EventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. + /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to create a new event in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. + /// Use this API to create a new event in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Event body, Action(requestInfo, Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. + /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new event in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. + /// Use this API to create a new event in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public EventsRequestBuilder WithUrl(string rawUrl) { return new EventsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. + /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. This API is supported in the following national cloud deployments. /// public class EventsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs index 901c4dcd5fe..43e4d1b0fcb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index d8fd301a494..9de4802b878 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 9ad3042225a..c3840975106 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index d65f15e041d..d98ef47f374 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs index b6910942913..dfcfcc410b9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs index 1f6eb1f79c2..82ee2637afe 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs index c56b4a4ddb3..89add8f1cdc 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.cs index 12cef7e845a..5bbd644c903 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.cs @@ -122,7 +122,7 @@ public async Task GetAsync(Action(requestInfo, Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update an event object. + /// Update an event object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -194,7 +194,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update an event object. + /// Update an event object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs index 1d2b5633d99..f8b4e8eb348 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 7b77245a702..406df3afc7c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs index 8f0c974934f..3ad42718f6a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..c8a56596e69 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Instances.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs index 05892b6dbda..4a9465a707e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs index 7cd3da75ead..634bc1c4dd3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Instances.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index d616d670b04..1814f2c507c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 9b417a500de..e8b43d989a5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 36879403ecd..f621bca88e8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 96f113dcc85..30b5aba795d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index dc94ea26fbe..094baf1ff8d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index 6480e038cf4..8fdd08d6534 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index 8f08efa6f3a..84436d926ce 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index ceb745933fb..f7bb1d41fd2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 653094acada..c646a2556eb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index 22e765bde08..0008aff9b1f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 267924e1ebb..3dc1ce3530b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 0c7b26b5550..4512a93295a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 751cd149410..1ff29f39da2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index ba0b024e61b..394bd508eff 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs new file mode 100644 index 00000000000..8354eb90782 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.CalendarGroups.Item.Calendars.Item.GetSchedule { + public class GetSchedulePostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetSchedulePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetSchedulePostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ScheduleInformation.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs index dc20b816c04..1c07b3f2abf 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs @@ -28,13 +28,36 @@ public GetScheduleRequestBuilder(Dictionary pathParameters, IReq public GetScheduleRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/getSchedule", rawUrl) { } /// - /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. + /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetSchedulePostResponseAsync(GetSchedulePostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetSchedulePostResponseAsync(GetSchedulePostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetSchedulePostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetSchedulePostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetSchedulePostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetSchedulePostRequestBody body return await RequestAdapter.SendAsync(requestInfo, GetScheduleResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. + /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleResponse.cs index 48547946ba1..10946546a9e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.CalendarGroups.Item.Calendars.Item.GetSchedule { - public class GetScheduleResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getSchedulePostResponse instead.")] + public class GetScheduleResponse : GetSchedulePostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetScheduleResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ScheduleInformation.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..a97a6f0613a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.CalendarView.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Delta/DeltaRequestBuilder.cs index 5f6c32f9227..afdda6c01e6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Delta/DeltaResponse.cs index 7703173d35b..5408a9a4b42 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.CalendarView.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs index 0d73785743a..64a8ace84eb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 6466dd7194e..145e5738e96 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 885992072f8..c74dbed4ee8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index e7d5116fab1..aac514a2908 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs index ae8bb2a162a..7e2eb577829 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs index 93cf01ab3e5..5010d15fc99 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs index 213f36607f6..8ad29153623 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs index 2e282aa1a11..fe4a55b5e6f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index f13ebc355c1..5448dbe3141 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs index b935598194a..1314d448830 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..b126dfee4c2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.CalendarView.Item.Instances.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs index af1cc84ef86..7a91fd58672 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs index d7c478a7f4c..aafe37017a3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.CalendarView.Item.Instances.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index f0d13fe0a3e..f3800685297 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index a0b4e3bd86e..95f80bf1ec2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 6ffd988daa6..ad19d17aec9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 6135c420355..ce142576e7e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index bf4bea2515f..f710b00d145 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index 1bd3c7765e0..a88a1c9abf8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index 8e31947fa45..68146478a21 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index a8cdf36e90e..4666286a74c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index ff4e13e36d5..0815029ee2d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index 338dfa62fe6..dc7e227f899 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 2f26013a579..64d50ef01c7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 43a82ff3d67..d7ae8c4b3ba 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 14efee5c5bc..b2b2cf6991f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 9bc44f098e0..ad9091d5a5a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/CalendarsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/CalendarsRequestBuilder.cs index 14793ebaf8f..dff844b8928 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/CalendarsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/CalendarsRequestBuilder.cs @@ -42,7 +42,7 @@ public CalendarsRequestBuilder(Dictionary pathParameters, IReque public CalendarsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get all the user's calendars (/calendars navigation property), get the calendars from the default calendar group or from a specific calendar group. + /// Get all the user's calendars (/calendars navigation property), get the calendars from the default calendar group or from a specific calendar group. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, CalendarCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new calendar for a user. + /// Create a new calendar for a user. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Calendar.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get all the user's calendars (/calendars navigation property), get the calendars from the default calendar group or from a specific calendar group. + /// Get all the user's calendars (/calendars navigation property), get the calendars from the default calendar group or from a specific calendar group. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new calendar for a user. + /// Create a new calendar for a user. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public CalendarsRequestBuilder WithUrl(string rawUrl) { return new CalendarsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get all the user's calendars (/calendars navigation property), get the calendars from the default calendar group or from a specific calendar group. + /// Get all the user's calendars (/calendars navigation property), get the calendars from the default calendar group or from a specific calendar group. This API is supported in the following national cloud deployments. /// public class CalendarsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs new file mode 100644 index 00000000000..0409ce4a6d0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser { + public class AllowedCalendarSharingRolesWithUserGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AllowedCalendarSharingRolesWithUserGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AllowedCalendarSharingRolesWithUserGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfEnumValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfEnumValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs index 15da5196707..5701d8a816a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs @@ -35,6 +35,26 @@ public AllowedCalendarSharingRolesWithUserRequestBuilder(string rawUrl, IRequest /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsAllowedCalendarSharingRolesWithUserGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsAllowedCalendarSharingRolesWithUserGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AllowedCalendarSharingRolesWithUserGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function allowedCalendarSharingRoles + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsAllowedCalendarSharingRolesWithUserGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs index 7e4115cd52c..78ade8f4dc2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser { - public class AllowedCalendarSharingRolesWithUserResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use allowedCalendarSharingRolesWithUserGetResponse instead.")] + public class AllowedCalendarSharingRolesWithUserResponse : AllowedCalendarSharingRolesWithUserGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AllowedCalendarSharingRolesWithUserResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfEnumValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfEnumValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs index e1d3bcdf250..f2dda04241c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs @@ -42,7 +42,7 @@ public CalendarPermissionsRequestBuilder(Dictionary pathParamete public CalendarPermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarPermissions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. + /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, CalendarPermissionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. + /// Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(CalendarPermission body, Action< return await RequestAdapter.SendAsync(requestInfo, CalendarPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. + /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. + /// Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public CalendarPermissionsRequestBuilder WithUrl(string rawUrl) { return new CalendarPermissionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. + /// Get a collection of calendarPermission resources that describe the identity and roles of users with whom the specified calendar has been shared or delegated. Here, the calendar can be a user calendar or group calendar. This API is supported in the following national cloud deployments. /// public class CalendarPermissionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs index 79516524da5..120c85cf9c9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs @@ -29,7 +29,7 @@ public CalendarPermissionItemRequestBuilder(Dictionary pathParam public CalendarPermissionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarPermissions/{calendarPermission%2Did}{?%24select}", rawUrl) { } /// - /// Delete calendarPermission. + /// Delete calendarPermission. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get the specified permissions object of a user or group calendar that has been shared. + /// Get the specified permissions object of a user or group calendar that has been shared. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, CalendarPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the permissions assigned to an existing sharee or delegate, through the corresponding <b>calendarPermission</b> object for a calendar. + /// Update the permissions assigned to an existing share recipient or delegate, through the corresponding <b>calendarPermission</b> object for a calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(CalendarPermission body, Action return await RequestAdapter.SendAsync(requestInfo, CalendarPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete calendarPermission. + /// Delete calendarPermission. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the specified permissions object of a user or group calendar that has been shared. + /// Get the specified permissions object of a user or group calendar that has been shared. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the permissions assigned to an existing sharee or delegate, through the corresponding <b>calendarPermission</b> object for a calendar. + /// Update the permissions assigned to an existing share recipient or delegate, through the corresponding <b>calendarPermission</b> object for a calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public CalendarPermissionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the specified permissions object of a user or group calendar that has been shared. + /// Get the specified permissions object of a user or group calendar that has been shared. This API is supported in the following national cloud deployments. /// public class CalendarPermissionItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..1b5b51fef0b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.Calendars.Item.CalendarView.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs index 9780032192d..a8d55b06ef1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Delta/DeltaResponse.cs index d80461b1cde..f090aeed100 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.Calendars.Item.CalendarView.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs index d23b5022e2a..64c6400e4b5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 6419af91faf..3e3a1b1e389 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 37f2ace547f..809de11a8e2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 0df5c3377cd..783d1117522 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs index 7f11912c226..26370059d06 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs index 6b5a51a2388..e6b36ec1de7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs index 06557e563d2..d06ff9885eb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs index e6b5ae50852..6ae07d48dba 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index f1c670b4748..32e01225e72 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs index 0383dde3f77..d564c708211 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..495f1bc4cb9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.Calendars.Item.CalendarView.Item.Instances.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs index f62f2a12b10..0fcfd20f2ba 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs index 8773784ff1b..c0a2255e011 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.Calendars.Item.CalendarView.Item.Instances.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index 47b85a08db9..05960ebcdcd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index d32ccf86b68..d7a74971f6b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index a3e76d79c05..e70b102c5e4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 2c27451bbd9..041a825b37b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index e3e3acd537b..f53f1e4bce2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index 26ecd1dad46..23aa8bb042a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index 21e7ba1aa8c..0ae128d6980 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index 98f882490b7..6e522aa59f8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 054522cc63a..436977f7dfc 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index 46f72c03283..8bfbd2a58c6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 0bf1555e697..83c4d0e638f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 17d8e9368d6..c43fb4ec549 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 92b0a833770..89790b5be1e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index deb73709705..80b2e154fda 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..4bb956ab887 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.Calendars.Item.Events.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs index 52d57b19059..9e5da69bd11 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Delta/DeltaResponse.cs index 33e3f4156eb..ade167732ec 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.Calendars.Item.Events.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/EventsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/EventsRequestBuilder.cs index 101ee9fde2f..814910207f8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/EventsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/EventsRequestBuilder.cs @@ -47,7 +47,7 @@ public EventsRequestBuilder(Dictionary pathParameters, IRequestA public EventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. + /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to create a new event in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. + /// Use this API to create a new event in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Event body, Action(requestInfo, Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. + /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new event in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. + /// Use this API to create a new event in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public EventsRequestBuilder WithUrl(string rawUrl) { return new EventsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. + /// Retrieve a list of events in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. The list of events contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. This API is supported in the following national cloud deployments. /// public class EventsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs index 0a522362dbb..c20e8e01e2d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index b494a166c09..9702b92cd2b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index e3032e76f1e..17fa748d150 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index d6b430dff34..39abfd3f957 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs index 8b49f08dfd8..3f08a4105c5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs index e8408792368..5b0c48db8be 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs index ccf7f372ef5..e8d69bdbeb4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.cs index 3f56bdae6ff..e5bed7453df 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.cs @@ -122,7 +122,7 @@ public async Task GetAsync(Action(requestInfo, Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update an event object. + /// Update an event object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -194,7 +194,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update an event object. + /// Update an event object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs index f94627032a2..f16e9d05672 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 844640cb805..b7cf6f5a766 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs index fa3b21622ce..a06d34a6d98 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..7183dc0bb6b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.Calendars.Item.Events.Item.Instances.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs index 3617bed3dc2..69b969beee7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs index fa5c7f5a5ee..0d09bd5f135 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.Calendars.Item.Events.Item.Instances.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index 568875a34e5..2621065cf66 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index a9bd0df2b85..9752aac2a1b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index cd333b1ed9c..f453f701c53 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index e3c9321b578..923dc11d236 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index edaddc426f0..e53a8d24dc1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index 5f93d3cd035..50cc48cc19f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index b798a0b1288..c89acf13236 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index b3158c5bc55..18be83bd4ea 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index b60d9dd7b61..217f02af1ef 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index be34920b0f1..f8f054da57a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 09e0a7df417..3a33b078d88 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index e505a7c0afc..10f73b0fc0f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 3bd1b38418d..eef69b0c5d7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 1ce6e9451a0..a1283122a80 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs new file mode 100644 index 00000000000..93c6cb45ec8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.Calendars.Item.GetSchedule { + public class GetSchedulePostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetSchedulePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetSchedulePostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ScheduleInformation.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs index 05c6b37a2b0..ac3f9b1de4f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs @@ -28,13 +28,36 @@ public GetScheduleRequestBuilder(Dictionary pathParameters, IReq public GetScheduleRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/getSchedule", rawUrl) { } /// - /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. + /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetSchedulePostResponseAsync(GetSchedulePostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetSchedulePostResponseAsync(GetSchedulePostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetSchedulePostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetSchedulePostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetSchedulePostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetSchedulePostRequestBody body return await RequestAdapter.SendAsync(requestInfo, GetScheduleResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. + /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/GetSchedule/GetScheduleResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/GetSchedule/GetScheduleResponse.cs index 05fb918dd08..629197056ef 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/GetSchedule/GetScheduleResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/GetSchedule/GetScheduleResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.Calendars.Item.GetSchedule { - public class GetScheduleResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getSchedulePostResponse instead.")] + public class GetScheduleResponse : GetSchedulePostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetScheduleResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ScheduleInformation.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/ChangePassword/ChangePasswordRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ChangePassword/ChangePasswordRequestBuilder.cs index 8039837d12b..ec23e40b790 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ChangePassword/ChangePasswordRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ChangePassword/ChangePasswordRequestBuilder.cs @@ -28,7 +28,7 @@ public ChangePasswordRequestBuilder(Dictionary pathParameters, I public ChangePasswordRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/changePassword", rawUrl) { } /// - /// Enable the user to update their password. Any user can update their password without belonging to any administrator role. + /// Enable the user to update their password. Any user can update their password without belonging to any administrator role. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ChangePasswordPostRequestBody body, Action - /// Enable the user to update their password. Any user can update their password without belonging to any administrator role. + /// Enable the user to update their password. Any user can update their password without belonging to any administrator role. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/ChatsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/ChatsRequestBuilder.cs index d23b18dddd5..eab447226dd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/ChatsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/ChatsRequestBuilder.cs @@ -47,7 +47,7 @@ public ChatsRequestBuilder(Dictionary pathParameters, IRequestAd public ChatsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of chats that the user is part of. This method supports federation. When a user ID is provided, the calling application must belong to the same tenant that the user belongs to. + /// Retrieve the list of chats that the user is part of. This method supports federation. When a user ID is provided, the calling application must belong to the same tenant that the user belongs to. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -88,7 +88,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Chat.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of chats that the user is part of. This method supports federation. When a user ID is provided, the calling application must belong to the same tenant that the user belongs to. + /// Retrieve the list of chats that the user is part of. This method supports federation. When a user ID is provided, the calling application must belong to the same tenant that the user belongs to. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -149,7 +149,7 @@ public ChatsRequestBuilder WithUrl(string rawUrl) { return new ChatsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of chats that the user is part of. This method supports federation. When a user ID is provided, the calling application must belong to the same tenant that the user belongs to. + /// Retrieve the list of chats that the user is part of. This method supports federation. When a user ID is provided, the calling application must belong to the same tenant that the user belongs to. This API is supported in the following national cloud deployments. /// public class ChatsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/GetAllMessages/GetAllMessagesGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/GetAllMessages/GetAllMessagesGetResponse.cs new file mode 100644 index 00000000000..ee2bd5644fe --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/GetAllMessages/GetAllMessagesGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.Chats.GetAllMessages { + public class GetAllMessagesGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAllMessagesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAllMessagesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/GetAllMessages/GetAllMessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/GetAllMessages/GetAllMessagesRequestBuilder.cs index 3e425e3ffde..2d77a2cdabb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/GetAllMessages/GetAllMessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/GetAllMessages/GetAllMessagesRequestBuilder.cs @@ -33,6 +33,26 @@ public GetAllMessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetAllMessagesGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetAllMessagesGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAllMessagesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getAllMessages + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetAllMessagesGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/GetAllMessages/GetAllMessagesResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/GetAllMessages/GetAllMessagesResponse.cs index 99a612b217c..114c54b820f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/GetAllMessages/GetAllMessagesResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/GetAllMessages/GetAllMessagesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.Chats.GetAllMessages { - public class GetAllMessagesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAllMessagesGetResponse instead.")] + public class GetAllMessagesResponse : GetAllMessagesGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAllMessagesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/ChatItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/ChatItemRequestBuilder.cs index 60aa1e6476f..a82c415043a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/ChatItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/ChatItemRequestBuilder.cs @@ -108,7 +108,7 @@ public async Task DeleteAsync(Action - /// Retrieve a single chat (without its messages). This method supports federation. To access a chat, at least one chat member must belong to the tenant the request initiated from. + /// Retrieve a single chat (without its messages). This method supports federation. To access a chat, at least one chat member must belong to the tenant the request initiated from. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -173,7 +173,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a single chat (without its messages). This method supports federation. To access a chat, at least one chat member must belong to the tenant the request initiated from. + /// Retrieve a single chat (without its messages). This method supports federation. To access a chat, at least one chat member must belong to the tenant the request initiated from. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -250,7 +250,7 @@ public ChatItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a single chat (without its messages). This method supports federation. To access a chat, at least one chat member must belong to the tenant the request initiated from. + /// Retrieve a single chat (without its messages). This method supports federation. To access a chat, at least one chat member must belong to the tenant the request initiated from. This API is supported in the following national cloud deployments. /// public class ChatItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/HideForUser/HideForUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/HideForUser/HideForUserRequestBuilder.cs index 3e9f94530b9..8df619214f1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/HideForUser/HideForUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/HideForUser/HideForUserRequestBuilder.cs @@ -28,7 +28,7 @@ public HideForUserRequestBuilder(Dictionary pathParameters, IReq public HideForUserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/hideForUser", rawUrl) { } /// - /// Hide a chat for a user. + /// Hide a chat for a user. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(HideForUserPostRequestBody body, Action - /// Hide a chat for a user. + /// Hide a chat for a user. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.cs index 5646a8ec5cf..b0f651da562 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.cs @@ -42,7 +42,7 @@ public InstalledAppsRequestBuilder(Dictionary pathParameters, IR public InstalledAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/installedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all app installations within a chat. + /// List all app installations within a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TeamsAppInstallationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Install a teamsApp to the specified chat. + /// Install a teamsApp to the specified chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TeamsAppInstallation body, Act return await RequestAdapter.SendAsync(requestInfo, TeamsAppInstallation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all app installations within a chat. + /// List all app installations within a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Install a teamsApp to the specified chat. + /// Install a teamsApp to the specified chat. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public InstalledAppsRequestBuilder WithUrl(string rawUrl) { return new InstalledAppsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all app installations within a chat. + /// List all app installations within a chat. This API is supported in the following national cloud deployments. /// public class InstalledAppsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs index 79be723faaf..64297ce2401 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs @@ -44,7 +44,7 @@ public TeamsAppInstallationItemRequestBuilder(Dictionary pathPar public TeamsAppInstallationItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/installedApps/{teamsAppInstallation%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Uninstall an app installed within a chat. + /// Uninstall an app installed within a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -64,7 +64,7 @@ public async Task DeleteAsync(Action - /// Get an app installed in a chat. + /// Get an app installed in a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -105,7 +105,7 @@ public async Task PatchAsync(TeamsAppInstallation body, Ac return await RequestAdapter.SendAsync(requestInfo, TeamsAppInstallation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Uninstall an app installed within a chat. + /// Uninstall an app installed within a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,7 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an app installed in a chat. + /// Get an app installed in a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -206,7 +206,7 @@ public TeamsAppInstallationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an app installed in a chat. + /// Get an app installed in a chat. This API is supported in the following national cloud deployments. /// public class TeamsAppInstallationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs index 832760e3429..3b62bfc00eb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs @@ -28,7 +28,7 @@ public UpgradeRequestBuilder(Dictionary pathParameters, IRequest public UpgradeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/installedApps/{teamsAppInstallation%2Did}/upgrade", rawUrl) { } /// - /// Upgrade an app installation within a chat. + /// Upgrade an app installation within a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(UpgradePostRequestBody body, Action - /// Upgrade an app installation within a chat. + /// Upgrade an app installation within a chat. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.cs index 5ecd9338ccf..9e281b664d3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.cs @@ -28,7 +28,7 @@ public MarkChatReadForUserRequestBuilder(Dictionary pathParamete public MarkChatReadForUserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/markChatReadForUser", rawUrl) { } /// - /// Mark a chat as read for a user. + /// Mark a chat as read for a user. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(MarkChatReadForUserPostRequestBody body, Action - /// Mark a chat as read for a user. + /// Mark a chat as read for a user. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.cs index 04f8d37e5cb..fd774c2874d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.cs @@ -28,7 +28,7 @@ public MarkChatUnreadForUserRequestBuilder(Dictionary pathParame public MarkChatUnreadForUserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/markChatUnreadForUser", rawUrl) { } /// - /// Mark a chat as unread for a user. + /// Mark a chat as unread for a user. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(MarkChatUnreadForUserPostRequestBody body, Action - /// Mark a chat as unread for a user. + /// Mark a chat as unread for a user. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Add/AddPostResponse.cs new file mode 100644 index 00000000000..dd017144d01 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Add/AddPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.Chats.Item.Members.Add { + public class AddPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AddPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AddPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Add/AddRequestBuilder.cs index c00b1f54551..7f97ab76046 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Add/AddRequestBuilder.cs @@ -28,13 +28,36 @@ public AddRequestBuilder(Dictionary pathParameters, IRequestAdap public AddRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/members/add", rawUrl) { } /// - /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AddPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsAddPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(AddPostRequestBody body, Action(requestInfo, AddResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Add/AddResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Add/AddResponse.cs index 8edf1e1c650..a89fab29921 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Add/AddResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Add/AddResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.Chats.Item.Members.Add { - public class AddResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use addPostResponse instead.")] + public class AddResponse : AddPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index 33355c2bc99..ad555f5a828 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -29,7 +29,7 @@ public ConversationMemberItemRequestBuilder(Dictionary pathParam public ConversationMemberItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/members/{conversationMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Remove a conversationMember from a chat. + /// Remove a conversationMember from a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve a conversationMember from a chat or channel. + /// Retrieve a conversationMember from a chat or channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(ConversationMember body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Remove a conversationMember from a chat. + /// Remove a conversationMember from a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a conversationMember from a chat or channel. + /// Retrieve a conversationMember from a chat or channel. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public ConversationMemberItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a conversationMember from a chat or channel. + /// Retrieve a conversationMember from a chat or channel. This API is supported in the following national cloud deployments. /// public class ConversationMemberItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/MembersRequestBuilder.cs index f7cf1bda3c4..acc489a0c75 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/MembersRequestBuilder.cs @@ -47,7 +47,7 @@ public MembersRequestBuilder(Dictionary pathParameters, IRequest public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/members{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all conversation members in a chat or channel. + /// List all conversation members in a chat or channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a conversationMember to a chat. + /// Add a conversationMember to a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(ConversationMember body, Action< return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all conversation members in a chat or channel. + /// List all conversation members in a chat or channel. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a conversationMember to a chat. + /// Add a conversationMember to a chat. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public MembersRequestBuilder WithUrl(string rawUrl) { return new MembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all conversation members in a chat or channel. + /// List all conversation members in a chat or channel. This API is supported in the following national cloud deployments. /// public class MembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..5c7dbade9fe --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.Chats.Item.Messages.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Delta/DeltaRequestBuilder.cs index 8f5f9fed4c3..dedd9f9cf8c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Delta/DeltaResponse.cs index 4f510b3fa8a..32828cb892c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.Chats.Item.Messages.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.cs index 79f4a058426..1b78a4b5bd8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.cs @@ -78,7 +78,7 @@ public async Task DeleteAsync(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -143,7 +143,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -220,7 +220,7 @@ public ChatMessageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// public class ChatMessageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs index 03d8b2877c2..d0da53acf70 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -42,7 +42,7 @@ public HostedContentsRequestBuilder(Dictionary pathParameters, I public HostedContentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/messages/{chatMessage%2Did}/hostedContents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ChatMessageHostedContent b return await RequestAdapter.SendAsync(requestInfo, ChatMessageHostedContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public HostedContentsRequestBuilder WithUrl(string rawUrl) { return new HostedContentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// public class HostedContentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 5764c8af692..4e167e9e56d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public ChatMessageHostedContentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..c355c1ee9d6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.Chats.Item.Messages.Item.Replies.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs index 6edde1497ed..ddd09a7cee8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Delta/DeltaResponse.cs index 580abf6605a..f32e03238a0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.Chats.Item.Messages.Item.Replies.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs index ee1e789186c..50f2297fe8d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs @@ -73,7 +73,7 @@ public async Task DeleteAsync(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -138,7 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -215,7 +215,7 @@ public ChatMessageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// public class ChatMessageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs index ee5f8425217..aa7414b8bfa 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -42,7 +42,7 @@ public HostedContentsRequestBuilder(Dictionary pathParameters, I public HostedContentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ChatMessageHostedContent b return await RequestAdapter.SendAsync(requestInfo, ChatMessageHostedContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public HostedContentsRequestBuilder WithUrl(string rawUrl) { return new HostedContentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// public class HostedContentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 83c11bfa9ec..49dd74f9832 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public ChatMessageHostedContentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs index 5ff3f2b679d..41223c45117 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public SoftDeleteRequestBuilder(Dictionary pathParameters, IRequ public SoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/softDelete", rawUrl) { } /// - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index ea4bcf31e8f..b9dbe2ee404 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public UndoSoftDeleteRequestBuilder(Dictionary pathParameters, I public UndoSoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/undoSoftDelete", rawUrl) { } /// - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs index d56c5113175..1329a984120 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -47,7 +47,7 @@ public RepliesRequestBuilder(Dictionary pathParameters, IRequest public RepliesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public RepliesRequestBuilder WithUrl(string rawUrl) { return new RepliesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// public class RepliesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs index f2b924507b0..21134819daa 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public SoftDeleteRequestBuilder(Dictionary pathParameters, IRequ public SoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/messages/{chatMessage%2Did}/softDelete", rawUrl) { } /// - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index 3d62ab1106b..d6f0adf5a04 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public UndoSoftDeleteRequestBuilder(Dictionary pathParameters, I public UndoSoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/messages/{chatMessage%2Did}/undoSoftDelete", rawUrl) { } /// - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.cs index a8c2c3f9080..de369d56d8e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.cs @@ -47,7 +47,7 @@ public MessagesRequestBuilder(Dictionary pathParameters, IReques public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/messages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of messages in a chat. This method supports federation. To list chat messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages in a chat. This method supports federation. To list chat messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified channel or a chat. - /// Find more info here + /// Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of messages in a chat. This method supports federation. To list chat messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages in a chat. This method supports federation. To list chat messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel or a chat. + /// Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public MessagesRequestBuilder WithUrl(string rawUrl) { return new MessagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of messages in a chat. This method supports federation. To list chat messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages in a chat. This method supports federation. To list chat messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// public class MessagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..7daba67f1da --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.Chats.Item.PermissionGrants.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Delta/DeltaRequestBuilder.cs index 01606edd6a1..f72f23f6a82 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Delta/DeltaResponse.cs index 1c76c58c86b..75c20fee76d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.Chats.Item.PermissionGrants.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs new file mode 100644 index 00000000000..187f06bb7e8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.Chats.Item.PermissionGrants.GetAvailableExtensionProperties { + public class GetAvailableExtensionPropertiesPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAvailableExtensionPropertiesPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index 6d9970bf65e..f9649f2be46 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -28,13 +28,36 @@ public GetAvailableExtensionPropertiesRequestBuilder(Dictionary public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/permissionGrants/getAvailableExtensionProperties", rawUrl) { } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetAvailableExtensionPropertiesPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetAvailabl return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index 96d4767c701..c906fedb705 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.Chats.Item.PermissionGrants.GetAvailableExtensionProperties { - public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAvailableExtensionPropertiesPostResponse instead.")] + public class GetAvailableExtensionPropertiesResponse : GetAvailableExtensionPropertiesPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/GetByIds/GetByIdsPostResponse.cs new file mode 100644 index 00000000000..52beea6454c --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/GetByIds/GetByIdsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.Chats.Item.PermissionGrants.GetByIds { + public class GetByIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetByIdsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs index 0e3cd1d8802..7fda901809a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetByIdsRequestBuilder(Dictionary pathParameters, IReques public GetByIdsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/permissionGrants/getByIds", rawUrl) { } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetByIdsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetByIdsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetByIdsPostRequestBody body, Acti return await RequestAdapter.SendAsync(requestInfo, GetByIdsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/GetByIds/GetByIdsResponse.cs index 69d865bf74c..b9a61675731 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/GetByIds/GetByIdsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.Chats.Item.PermissionGrants.GetByIds { - public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getByIdsPostResponse instead.")] + public class GetByIdsResponse : GetByIdsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..82fd19981f0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.Chats.Item.PermissionGrants.Item.CheckMemberGroups { + public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index efceb7be6b7..b78b2c3de4f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index d9f8318f332..8df176c5853 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.Chats.Item.PermissionGrants.Item.CheckMemberGroups { - public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberGroupsPostResponse instead.")] + public class CheckMemberGroupsResponse : CheckMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..34057c32236 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.Chats.Item.PermissionGrants.Item.CheckMemberObjects { + public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index c490f9d01d3..55b5e3ca5f2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -34,6 +34,28 @@ public CheckMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAd /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action checkMemberObjects + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index fb359156274..9024a4c66fb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.Chats.Item.PermissionGrants.Item.CheckMemberObjects { - public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberObjectsPostResponse instead.")] + public class CheckMemberObjectsResponse : CheckMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..eb9a794a193 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.Chats.Item.PermissionGrants.Item.GetMemberGroups { + public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index 2dea16c50bb..ef0c0f9fce9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberGroupsRequestBuilder(Dictionary pathParameters, public GetMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/getMemberGroups", rawUrl) { } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberGroupsPostRequestB return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs index 5e8d849f706..830dc9bcf5e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.Chats.Item.PermissionGrants.Item.GetMemberGroups { - public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberGroupsPostResponse instead.")] + public class GetMemberGroupsResponse : GetMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..bc01299a84f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.Chats.Item.PermissionGrants.Item.GetMemberObjects { + public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index c96f37c3fa5..bc407c911e5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberObjectsRequestBuilder(Dictionary pathParameters, public GetMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/getMemberObjects", rawUrl) { } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberObjectsPostReques return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs index 56380a2c40a..aa62f847a90 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.Chats.Item.PermissionGrants.Item.GetMemberObjects { - public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberObjectsPostResponse instead.")] + public class GetMemberObjectsResponse : GetMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs index c5ffd8bda91..1cb851e2f63 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs @@ -29,7 +29,7 @@ public RestoreRequestBuilder(Dictionary pathParameters, IRequest public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs index 401ee5205a7..7e7e14854df 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs @@ -62,7 +62,7 @@ public PermissionGrantsRequestBuilder(Dictionary pathParameters, public PermissionGrantsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/permissionGrants{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all resource-specific permission grants on the chat. This list specifies the Azure AD apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. + /// List all resource-specific permission grants on the chat. This list specifies the Azure AD apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -103,7 +103,7 @@ public async Task PostAsync(ResourceSpecificPer return await RequestAdapter.SendAsync(requestInfo, ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all resource-specific permission grants on the chat. This list specifies the Azure AD apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. + /// List all resource-specific permission grants on the chat. This list specifies the Azure AD apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,7 +164,7 @@ public PermissionGrantsRequestBuilder WithUrl(string rawUrl) { return new PermissionGrantsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all resource-specific permission grants on the chat. This list specifies the Azure AD apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. + /// List all resource-specific permission grants on the chat. This list specifies the Azure AD apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is supported in the following national cloud deployments. /// public class PermissionGrantsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs index 9b57611e8e2..9d05882bb1e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -28,7 +28,7 @@ public ValidatePropertiesRequestBuilder(Dictionary pathParameter public ValidatePropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/permissionGrants/validateProperties", rawUrl) { } /// - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ValidatePropertiesPostRequestBody body, Action - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.cs index 3d4c4656f2f..d23f9b654c2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.cs @@ -34,7 +34,7 @@ public PinnedChatMessageInfoItemRequestBuilder(Dictionary pathPa public PinnedChatMessageInfoItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/pinnedMessages/{pinnedChatMessageInfo%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Unpin a message from a chat. + /// Unpin a message from a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -94,7 +94,7 @@ public async Task PatchAsync(PinnedChatMessageInfo body, return await RequestAdapter.SendAsync(requestInfo, PinnedChatMessageInfo.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Unpin a message from a chat. + /// Unpin a message from a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.cs index e7bbcf3ae78..26421e18fa4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.cs @@ -42,7 +42,7 @@ public PinnedMessagesRequestBuilder(Dictionary pathParameters, I public PinnedMessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/pinnedMessages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of pinnedChatMessages in a chat. + /// Get a list of pinnedChatMessages in a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, PinnedChatMessageInfoCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Pin a chat message in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can pin a chat message. + /// Pin a chat message in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can pin a chat message. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(PinnedChatMessageInfo body, A return await RequestAdapter.SendAsync(requestInfo, PinnedChatMessageInfo.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of pinnedChatMessages in a chat. + /// Get a list of pinnedChatMessages in a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Pin a chat message in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can pin a chat message. + /// Pin a chat message in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can pin a chat message. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PinnedMessagesRequestBuilder WithUrl(string rawUrl) { return new PinnedMessagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of pinnedChatMessages in a chat. + /// Get a list of pinnedChatMessages in a chat. This API is supported in the following national cloud deployments. /// public class PinnedMessagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs index f6e47c90362..3c8093a8951 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs @@ -28,7 +28,7 @@ public SendActivityNotificationRequestBuilder(Dictionary pathPar public SendActivityNotificationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/sendActivityNotification", rawUrl) { } /// - /// Send an activity feed notification in scope of a chat. For more details about sending notifications and the requirements for doing so, see sending Teams activity notifications. + /// Send an activity feed notification in scope of a chat. For more details about sending notifications and the requirements for doing so, see sending Teams activity notifications. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SendActivityNotificationPostRequestBody body, Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send an activity feed notification in scope of a chat. For more details about sending notifications and the requirements for doing so, see sending Teams activity notifications. + /// Send an activity feed notification in scope of a chat. For more details about sending notifications and the requirements for doing so, see sending Teams activity notifications. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs index 3f5777f494d..7776848327e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs @@ -29,7 +29,7 @@ public TeamsAppRequestBuilder(Dictionary pathParameters, IReques public TeamsAppRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/tabs/{teamsTab%2Did}/teamsApp{?%24select,%24expand}", rawUrl) { } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -48,7 +48,7 @@ public TeamsAppRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.TeamsApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +81,7 @@ public TeamsAppRequestBuilder WithUrl(string rawUrl) { return new TeamsAppRequestBuilder(rawUrl, RequestAdapter); } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// public class TeamsAppRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs index e03d55d764f..4852264ffce 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs @@ -34,7 +34,7 @@ public TeamsTabItemRequestBuilder(Dictionary pathParameters, IRe public TeamsTabItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/tabs/{teamsTab%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Remove (unpin) a tab from the specified chat. + /// Remove (unpin) a tab from the specified chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of the specified tab in a chat. + /// Retrieve the properties and relationships of the specified tab in a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of the specified tab in a chat. This can be used to configure the content of the tab. + /// Update the properties of the specified tab in a chat. This can be used to configure the content of the tab. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(TeamsTab body, Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Remove (unpin) a tab from the specified chat. + /// Remove (unpin) a tab from the specified chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of the specified tab in a chat. + /// Retrieve the properties and relationships of the specified tab in a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of the specified tab in a chat. This can be used to configure the content of the tab. + /// Update the properties of the specified tab in a chat. This can be used to configure the content of the tab. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public TeamsTabItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of the specified tab in a chat. + /// Retrieve the properties and relationships of the specified tab in a chat. This API is supported in the following national cloud deployments. /// public class TeamsTabItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Tabs/TabsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Tabs/TabsRequestBuilder.cs index ec73dc570c5..41df93209a1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Tabs/TabsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Tabs/TabsRequestBuilder.cs @@ -42,7 +42,7 @@ public TabsRequestBuilder(Dictionary pathParameters, IRequestAda public TabsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/tabs{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of tabs in the specified chat. + /// Retrieve the list of tabs in the specified chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TeamsTabCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add (pin) a tab to the specified chat. The corresponding app must already be installed in the chat. + /// Add (pin) a tab to the specified chat. The corresponding app must already be installed in the chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TeamsTab body, Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of tabs in the specified chat. + /// Retrieve the list of tabs in the specified chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add (pin) a tab to the specified chat. The corresponding app must already be installed in the chat. + /// Add (pin) a tab to the specified chat. The corresponding app must already be installed in the chat. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public TabsRequestBuilder WithUrl(string rawUrl) { return new TabsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of tabs in the specified chat. + /// Retrieve the list of tabs in the specified chat. This API is supported in the following national cloud deployments. /// public class TabsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.cs index 15968302087..7313c791131 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.cs @@ -28,7 +28,7 @@ public UnhideForUserRequestBuilder(Dictionary pathParameters, IR public UnhideForUserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/unhideForUser", rawUrl) { } /// - /// Unhide a chat for a user. + /// Unhide a chat for a user. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(UnhideForUserPostRequestBody body, Action - /// Unhide a chat for a user. + /// Unhide a chat for a user. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..5aa591f662d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.CheckMemberGroups { + public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index 4828986747f..b4c3a9548e1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index a509ccfc76a..0c251e99a6c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.CheckMemberGroups { - public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberGroupsPostResponse instead.")] + public class CheckMemberGroupsResponse : CheckMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..0174c9365f8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.CheckMemberObjects { + public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index 1e35e3d8b82..e062b836ea6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -34,6 +34,28 @@ public CheckMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAd /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action checkMemberObjects + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Users/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index 31660d9f5ca..ec835974db2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.CheckMemberObjects { - public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberObjectsPostResponse instead.")] + public class CheckMemberObjectsResponse : CheckMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/ContactFoldersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/ContactFoldersRequestBuilder.cs index b70c3b1aa69..fb44fca33a2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/ContactFoldersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/ContactFoldersRequestBuilder.cs @@ -47,7 +47,7 @@ public ContactFoldersRequestBuilder(Dictionary pathParameters, I public ContactFoldersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/contactFolders{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the contact folder collection in the default Contacts folder of the signed-in user. + /// Get the contact folder collection in the default Contacts folder of the signed-in user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ContactFolderCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new contactFolder under the user's default contacts folder. You can also create a new contactfolder as a child of any specified contact folder. + /// Create a new contactFolder under the user's default contacts folder. You can also create a new contactfolder as a child of any specified contact folder. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(ContactFolder body, Action(requestInfo, ContactFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the contact folder collection in the default Contacts folder of the signed-in user. + /// Get the contact folder collection in the default Contacts folder of the signed-in user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new contactFolder under the user's default contacts folder. You can also create a new contactfolder as a child of any specified contact folder. + /// Create a new contactFolder under the user's default contacts folder. You can also create a new contactfolder as a child of any specified contact folder. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public ContactFoldersRequestBuilder WithUrl(string rawUrl) { return new ContactFoldersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the contact folder collection in the default Contacts folder of the signed-in user. + /// Get the contact folder collection in the default Contacts folder of the signed-in user. This API is supported in the following national cloud deployments. /// public class ContactFoldersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..a6ea8351b17 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.ContactFolders.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ContactFolder.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Delta/DeltaRequestBuilder.cs index 1ccde3390d3..31a17ddb24b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/contactFolders/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. + /// Get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. + /// Get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. + /// Get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Delta/DeltaResponse.cs index ada7d681831..d4bd477cb21 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.ContactFolders.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ContactFolder.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs index d0dff5ad57b..776d35c920d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs @@ -47,7 +47,7 @@ public ChildFoldersRequestBuilder(Dictionary pathParameters, IRe public ChildFoldersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/contactFolders/{contactFolder%2Did}/childFolders{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a collection of child folders under the specified contact folder. + /// Get a collection of child folders under the specified contact folder. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ContactFolderCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new contactFolder as a child of a specified folder. You can also create a new contactFolder under the user's default contact folder. + /// Create a new contactFolder as a child of a specified folder. You can also create a new contactFolder under the user's default contact folder. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(ContactFolder body, Action(requestInfo, ContactFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a collection of child folders under the specified contact folder. + /// Get a collection of child folders under the specified contact folder. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new contactFolder as a child of a specified folder. You can also create a new contactFolder under the user's default contact folder. + /// Create a new contactFolder as a child of a specified folder. You can also create a new contactFolder under the user's default contact folder. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public ChildFoldersRequestBuilder WithUrl(string rawUrl) { return new ChildFoldersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a collection of child folders under the specified contact folder. + /// Get a collection of child folders under the specified contact folder. This API is supported in the following national cloud deployments. /// public class ChildFoldersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..9ef638b230f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.ContactFolders.Item.ChildFolders.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ContactFolder.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs index 75ecb7c3c92..b9ebfb2757f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/contactFolders/{contactFolder%2Did}/childFolders/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. + /// Get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. + /// Get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. + /// Get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Delta/DeltaResponse.cs index 1c4d455f155..d95dbb992d9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.ContactFolders.Item.ChildFolders.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ContactFolder.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/ContactsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/ContactsRequestBuilder.cs index 0abde2ae3fd..5ef9e7b016d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/ContactsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/ContactsRequestBuilder.cs @@ -47,7 +47,7 @@ public ContactsRequestBuilder(Dictionary pathParameters, IReques public ContactsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/contactFolders/{contactFolder%2Did}/childFolders/{contactFolder%2Did1}/contacts{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a contact collection from the default Contacts folder of the signed-in user (.../me/contacts), or from the specified contact folder. + /// Get a contact collection from the default Contacts folder of the signed-in user (.../me/contacts), or from the specified contact folder. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ContactCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a contact to the root Contacts folder or to the contacts endpoint of another contact folder. + /// Add a contact to the root Contacts folder or to the contacts endpoint of another contact folder. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Contact body, Action(requestInfo, Contact.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a contact collection from the default Contacts folder of the signed-in user (.../me/contacts), or from the specified contact folder. + /// Get a contact collection from the default Contacts folder of the signed-in user (.../me/contacts), or from the specified contact folder. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a contact to the root Contacts folder or to the contacts endpoint of another contact folder. + /// Add a contact to the root Contacts folder or to the contacts endpoint of another contact folder. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public ContactsRequestBuilder WithUrl(string rawUrl) { return new ContactsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a contact collection from the default Contacts folder of the signed-in user (.../me/contacts), or from the specified contact folder. + /// Get a contact collection from the default Contacts folder of the signed-in user (.../me/contacts), or from the specified contact folder. This API is supported in the following national cloud deployments. /// public class ContactsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..96a4992a159 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.ContactFolders.Item.ChildFolders.Item.Contacts.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Contact.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaRequestBuilder.cs index aeba5b21e96..0d24b3642f8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/contactFolders/{contactFolder%2Did}/childFolders/{contactFolder%2Did1}/contacts/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. + /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. + /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. + /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaResponse.cs index 85bcb6b3e8b..edadd6edb4e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.ContactFolders.Item.ChildFolders.Item.Contacts.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Contact.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ContactFolderItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ContactFolderItemRequestBuilder.cs index b3c759a8232..a91217002a6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ContactFolderItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ContactFolderItemRequestBuilder.cs @@ -39,7 +39,7 @@ public ContactFolderItemRequestBuilder(Dictionary pathParameters public ContactFolderItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/contactFolders/{contactFolder%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete contactFolder other than the default contactFolder. + /// Delete contactFolder other than the default contactFolder. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -59,7 +59,7 @@ public async Task DeleteAsync(Action - /// Get a contact folder by using the contact folder ID. There are two scenarios where an app can get another user's contact folder: + /// Get a contact folder by using the contact folder ID. There are two scenarios where an app can get another user's contact folder: This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -79,7 +79,7 @@ public async Task GetAsync(Action(requestInfo, ContactFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of contactfolder object. + /// Update the properties of contactfolder object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -101,7 +101,7 @@ public async Task PatchAsync(ContactFolder body, Action(requestInfo, ContactFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete contactFolder other than the default contactFolder. + /// Delete contactFolder other than the default contactFolder. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -125,7 +125,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a contact folder by using the contact folder ID. There are two scenarios where an app can get another user's contact folder: + /// Get a contact folder by using the contact folder ID. There are two scenarios where an app can get another user's contact folder: This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -151,7 +151,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of contactfolder object. + /// Update the properties of contactfolder object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -202,7 +202,7 @@ public ContactFolderItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a contact folder by using the contact folder ID. There are two scenarios where an app can get another user's contact folder: + /// Get a contact folder by using the contact folder ID. There are two scenarios where an app can get another user's contact folder: This API is supported in the following national cloud deployments. /// public class ContactFolderItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/ContactsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/ContactsRequestBuilder.cs index 9b252934582..4c5e73942a9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/ContactsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/ContactsRequestBuilder.cs @@ -47,7 +47,7 @@ public ContactsRequestBuilder(Dictionary pathParameters, IReques public ContactsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/contactFolders/{contactFolder%2Did}/contacts{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a contact collection from the default Contacts folder of the signed-in user (.../me/contacts), or from the specified contact folder. + /// Get a contact collection from the default Contacts folder of the signed-in user (.../me/contacts), or from the specified contact folder. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ContactCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a contact to the root Contacts folder or to the contacts endpoint of another contact folder. + /// Add a contact to the root Contacts folder or to the contacts endpoint of another contact folder. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Contact body, Action(requestInfo, Contact.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a contact collection from the default Contacts folder of the signed-in user (.../me/contacts), or from the specified contact folder. + /// Get a contact collection from the default Contacts folder of the signed-in user (.../me/contacts), or from the specified contact folder. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a contact to the root Contacts folder or to the contacts endpoint of another contact folder. + /// Add a contact to the root Contacts folder or to the contacts endpoint of another contact folder. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public ContactsRequestBuilder WithUrl(string rawUrl) { return new ContactsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a contact collection from the default Contacts folder of the signed-in user (.../me/contacts), or from the specified contact folder. + /// Get a contact collection from the default Contacts folder of the signed-in user (.../me/contacts), or from the specified contact folder. This API is supported in the following national cloud deployments. /// public class ContactsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..27476a54bc2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.ContactFolders.Item.Contacts.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Contact.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Delta/DeltaRequestBuilder.cs index 76412e3f3ee..1e65ca07a5e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/contactFolders/{contactFolder%2Did}/contacts/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. + /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. + /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. + /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Delta/DeltaResponse.cs index 90fe52c01a0..41cb117c3a4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.ContactFolders.Item.Contacts.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Contact.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Contacts/ContactsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Contacts/ContactsRequestBuilder.cs index d43c882cda0..13bc90be227 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Contacts/ContactsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Contacts/ContactsRequestBuilder.cs @@ -47,7 +47,7 @@ public ContactsRequestBuilder(Dictionary pathParameters, IReques public ContactsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/contacts{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a contact collection from the default contacts folder of the signed-in user. There are two scenarios where an app can get contacts in another user's contact folder: + /// Get a contact collection from the default contacts folder of the signed-in user. There are two scenarios where an app can get contacts in another user's contact folder: This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ContactCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a contact to the root Contacts folder or to the contacts endpoint of another contact folder. + /// Add a contact to the root Contacts folder or to the contacts endpoint of another contact folder. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Contact body, Action(requestInfo, Contact.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a contact collection from the default contacts folder of the signed-in user. There are two scenarios where an app can get contacts in another user's contact folder: + /// Get a contact collection from the default contacts folder of the signed-in user. There are two scenarios where an app can get contacts in another user's contact folder: This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a contact to the root Contacts folder or to the contacts endpoint of another contact folder. + /// Add a contact to the root Contacts folder or to the contacts endpoint of another contact folder. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public ContactsRequestBuilder WithUrl(string rawUrl) { return new ContactsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a contact collection from the default contacts folder of the signed-in user. There are two scenarios where an app can get contacts in another user's contact folder: + /// Get a contact collection from the default contacts folder of the signed-in user. There are two scenarios where an app can get contacts in another user's contact folder: This API is supported in the following national cloud deployments. /// public class ContactsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Contacts/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Contacts/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..0e0c09570b6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Contacts/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.Contacts.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Contact.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Contacts/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Contacts/Delta/DeltaRequestBuilder.cs index 71c435105a0..964d49176df 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Contacts/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Contacts/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/contacts/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. + /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. + /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. + /// Get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Contacts/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Contacts/Delta/DeltaResponse.cs index 74eaacaa1f3..b0c0770ee9f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Contacts/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Contacts/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.Contacts.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Contact.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Contacts/Item/ContactItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Contacts/Item/ContactItemRequestBuilder.cs index 0ec7d8d4330..612002a426c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Contacts/Item/ContactItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Contacts/Item/ContactItemRequestBuilder.cs @@ -39,7 +39,7 @@ public ContactItemRequestBuilder(Dictionary pathParameters, IReq public ContactItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/contacts/{contact%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a contact. + /// Delete a contact. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -59,7 +59,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a contact object. There are two scenarios where an app can get a contact in another user's contact folder: + /// Retrieve the properties and relationships of a contact object. There are two scenarios where an app can get a contact in another user's contact folder: This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -79,7 +79,7 @@ public async Task GetAsync(Action(requestInfo, Contact.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a contact object. + /// Update the properties of a contact object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -101,7 +101,7 @@ public async Task PatchAsync(Contact body, Action(requestInfo, Contact.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a contact. + /// Delete a contact. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -125,7 +125,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a contact object. There are two scenarios where an app can get a contact in another user's contact folder: + /// Retrieve the properties and relationships of a contact object. There are two scenarios where an app can get a contact in another user's contact folder: This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -151,7 +151,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a contact object. + /// Update the properties of a contact object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -202,7 +202,7 @@ public ContactItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a contact object. There are two scenarios where an app can get a contact in another user's contact folder: + /// Retrieve the properties and relationships of a contact object. There are two scenarios where an app can get a contact in another user's contact folder: This API is supported in the following national cloud deployments. /// public class ContactItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/CreatedObjects/CreatedObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CreatedObjects/CreatedObjectsRequestBuilder.cs index 833538a5696..7e4dab02118 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CreatedObjects/CreatedObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CreatedObjects/CreatedObjectsRequestBuilder.cs @@ -47,7 +47,7 @@ public CreatedObjectsRequestBuilder(Dictionary pathParameters, I public CreatedObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/createdObjects{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of directory objects that were created by the user. This API returns only those directory objects that were created by a user who isn't in any administrator role; otherwise, it returns an empty object. + /// Get a list of directory objects that were created by the user. This API returns only those directory objects that were created by a user who isn't in any administrator role; otherwise, it returns an empty object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, DirectoryObjectCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of directory objects that were created by the user. This API returns only those directory objects that were created by a user who isn't in any administrator role; otherwise, it returns an empty object. + /// Get a list of directory objects that were created by the user. This API returns only those directory objects that were created by a user who isn't in any administrator role; otherwise, it returns an empty object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -100,7 +100,7 @@ public CreatedObjectsRequestBuilder WithUrl(string rawUrl) { return new CreatedObjectsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of directory objects that were created by the user. This API returns only those directory objects that were created by a user who isn't in any administrator role; otherwise, it returns an empty object. + /// Get a list of directory objects that were created by the user. This API returns only those directory objects that were created by a user who isn't in any administrator role; otherwise, it returns an empty object. This API is supported in the following national cloud deployments. /// public class CreatedObjectsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Drive/DriveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Drive/DriveRequestBuilder.cs index 371e2588dcd..80dcb5edd49 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Drive/DriveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Drive/DriveRequestBuilder.cs @@ -29,7 +29,7 @@ public DriveRequestBuilder(Dictionary pathParameters, IRequestAd public DriveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/drive{?%24select,%24expand}", rawUrl) { } /// - /// Retrieve the properties and relationships of a Drive resource. A Drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries. + /// Retrieve the properties and relationships of a Drive resource. A Drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public DriveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Drive.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the properties and relationships of a Drive resource. A Drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries. + /// Retrieve the properties and relationships of a Drive resource. A Drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -82,7 +82,7 @@ public DriveRequestBuilder WithUrl(string rawUrl) { return new DriveRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the properties and relationships of a Drive resource. A Drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries. + /// Retrieve the properties and relationships of a Drive resource. A Drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries. This API is supported in the following national cloud deployments. /// public class DriveRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Drives/DrivesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Drives/DrivesRequestBuilder.cs index 2c255bafc3b..55121c147f3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Drives/DrivesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Drives/DrivesRequestBuilder.cs @@ -42,7 +42,7 @@ public DrivesRequestBuilder(Dictionary pathParameters, IRequestA public DrivesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/drives{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of Drive resources available for a target User, Group, or Site. + /// Retrieve the list of Drive resources available for a target User, Group, or Site. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, DriveCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of Drive resources available for a target User, Group, or Site. + /// Retrieve the list of Drive resources available for a target User, Group, or Site. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public DrivesRequestBuilder WithUrl(string rawUrl) { return new DrivesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of Drive resources available for a target User, Group, or Site. + /// Retrieve the list of Drive resources available for a target User, Group, or Site. This API is supported in the following national cloud deployments. /// public class DrivesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs index 38cac0dffa9..973aedc05ed 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs @@ -29,7 +29,7 @@ public LearningCourseActivityItemRequestBuilder(Dictionary pathP public LearningCourseActivityItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/employeeExperience/learningCourseActivities/{learningCourseActivity%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. + /// Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, LearningCourseActivity.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. + /// Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -82,7 +82,7 @@ public LearningCourseActivityItemRequestBuilder WithUrl(string rawUrl) { return new LearningCourseActivityItemRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. + /// Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. This API is supported in the following national cloud deployments. /// public class LearningCourseActivityItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs index 9ad25964afd..6b3ef413962 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs @@ -42,7 +42,7 @@ public LearningCourseActivitiesRequestBuilder(Dictionary pathPar public LearningCourseActivitiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/employeeExperience/learningCourseActivities{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the learningCourseActivity objects (assigned or self-initiated) for a user. + /// Get a list of the learningCourseActivity objects (assigned or self-initiated) for a user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, LearningCourseActivityCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the learningCourseActivity objects (assigned or self-initiated) for a user. + /// Get a list of the learningCourseActivity objects (assigned or self-initiated) for a user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public LearningCourseActivitiesRequestBuilder WithUrl(string rawUrl) { return new LearningCourseActivitiesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the learningCourseActivity objects (assigned or self-initiated) for a user. + /// Get a list of the learningCourseActivity objects (assigned or self-initiated) for a user. This API is supported in the following national cloud deployments. /// public class LearningCourseActivitiesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..bb88606d36d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.Events.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Delta/DeltaRequestBuilder.cs index aee11d324ff..cd168b0d043 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Delta/DeltaResponse.cs index c4ea45e00a4..6731ab7b7b0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.Events.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/EventsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/EventsRequestBuilder.cs index cd04867fd93..3bc9af8e21e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/EventsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/EventsRequestBuilder.cs @@ -47,7 +47,7 @@ public EventsRequestBuilder(Dictionary pathParameters, IRequestA public EventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of event objects in the user's mailbox. The list contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. Currently, this operation returns event bodies in only HTML format. There are two scenarios where an app can get events in another user's calendar: + /// Get a list of event objects in the user's mailbox. The list contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. Currently, this operation returns event bodies in only HTML format. There are two scenarios where an app can get events in another user's calendar: This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create one or more multi-value extended properties in a new or existing instance of a resource. The following user resources are supported: As well as the following group resources: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. - /// Find more info here + /// Create one or more single-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task PostAsync(Event body, Action(requestInfo, Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of event objects in the user's mailbox. The list contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. Currently, this operation returns event bodies in only HTML format. There are two scenarios where an app can get events in another user's calendar: + /// Get a list of event objects in the user's mailbox. The list contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. Currently, this operation returns event bodies in only HTML format. There are two scenarios where an app can get events in another user's calendar: This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create one or more multi-value extended properties in a new or existing instance of a resource. The following user resources are supported: As well as the following group resources: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. + /// Create one or more single-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public EventsRequestBuilder WithUrl(string rawUrl) { return new EventsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of event objects in the user's mailbox. The list contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. Currently, this operation returns event bodies in only HTML format. There are two scenarios where an app can get events in another user's calendar: + /// Get a list of event objects in the user's mailbox. The list contains single instance meetings and series masters. To get expanded event instances, you can get the calendar view, or get the instances of an event. Currently, this operation returns event bodies in only HTML format. There are two scenarios where an app can get events in another user's calendar: This API is supported in the following national cloud deployments. /// public class EventsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Accept/AcceptRequestBuilder.cs index dcc0b8b9c04..cb780491097 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index b99b544a268..b58d5e419e0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index de223a46c9e..1f780c1d9b5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 398484b61fc..ccc0f3a2abc 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Cancel/CancelRequestBuilder.cs index e5d73bccd51..129ffc079cb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Decline/DeclineRequestBuilder.cs index a194fd8808e..a894cfacc8e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs index 5f3a45b30f9..380e23f711d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/EventItemRequestBuilder.cs index 804fde36928..70a41645a2c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/EventItemRequestBuilder.cs @@ -84,7 +84,7 @@ public EventItemRequestBuilder(Dictionary pathParameters, IReque public EventItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Removes the specified event from the containing calendar. If the event is a meeting, deleting the event on the organizer's calendar sends a cancellation message to the meeting attendees. + /// Removes the specified event from the containing calendar. If the event is a meeting, deleting the event on the organizer's calendar sends a cancellation message to the meeting attendees. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -104,7 +104,7 @@ public async Task DeleteAsync(Action - /// Get the properties and relationships of the specified event object. Currently, this operation returns event bodies in only HTML format. There are two scenarios where an app can get an event in another user's calendar: Since the event resource supports extensions, you can also use the GET operation to get custom properties and extension data in an event instance. + /// Get the properties and relationships of the specified event object. Currently, this operation returns event bodies in only HTML format. There are two scenarios where an app can get an event in another user's calendar: Since the event resource supports extensions, you can also use the GET operation to get custom properties and extension data in an event instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -124,7 +124,7 @@ public async Task GetAsync(Action(requestInfo, Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of the event object. + /// Update the properties of the event object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -146,7 +146,7 @@ public async Task PatchAsync(Event body, Action(requestInfo, Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Removes the specified event from the containing calendar. If the event is a meeting, deleting the event on the organizer's calendar sends a cancellation message to the meeting attendees. + /// Removes the specified event from the containing calendar. If the event is a meeting, deleting the event on the organizer's calendar sends a cancellation message to the meeting attendees. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,7 +170,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties and relationships of the specified event object. Currently, this operation returns event bodies in only HTML format. There are two scenarios where an app can get an event in another user's calendar: Since the event resource supports extensions, you can also use the GET operation to get custom properties and extension data in an event instance. + /// Get the properties and relationships of the specified event object. Currently, this operation returns event bodies in only HTML format. There are two scenarios where an app can get an event in another user's calendar: Since the event resource supports extensions, you can also use the GET operation to get custom properties and extension data in an event instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -196,7 +196,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of the event object. + /// Update the properties of the event object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -247,7 +247,7 @@ public EventItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the properties and relationships of the specified event object. Currently, this operation returns event bodies in only HTML format. There are two scenarios where an app can get an event in another user's calendar: Since the event resource supports extensions, you can also use the GET operation to get custom properties and extension data in an event instance. + /// Get the properties and relationships of the specified event object. Currently, this operation returns event bodies in only HTML format. There are two scenarios where an app can get an event in another user's calendar: Since the event resource supports extensions, you can also use the GET operation to get custom properties and extension data in an event instance. This API is supported in the following national cloud deployments. /// public class EventItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs index dc5ece7294a..0c2672b5f61 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 47d1a65ebbc..79a063f0f2a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Forward/ForwardRequestBuilder.cs index b3360d09728..243ce5501f1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..fd54bb9421b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.Events.Item.Instances.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs index 6096055af45..95b0894b229 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/instances/delta(){?startDateTime*,endDateTime*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. + /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Delta/DeltaResponse.cs index 2b1a6831c9c..55a9b445903 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.Events.Item.Instances.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index 8ba6d605b78..6faf71c6771 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public AcceptRequestBuilder(Dictionary pathParameters, IRequestA public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/instances/{event%2Did1}/accept", rawUrl) { } /// - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcceptPostRequestBody body, Action - /// Accept the specified event in a user calendar. + /// Accept the specified event in a user calendar. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index bbc3cfc616d..f4d1388ae21 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to an event. + /// Retrieve a list of attachment objects attached to an event. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 3b708c01e2a..f04fcf38084 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 53bcb6022c8..9db4a96b566 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -29,7 +29,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an attachment from a user calendar event, mail message, or group post. + /// Delete an attachment from a user calendar event, mail message, or group post. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index 69fb52f7975..1b089b84d84 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/instances/{event%2Did1}/cancel", rawUrl) { } /// - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(CancelPostRequestBody body, Action - /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index 808b292c4ff..7b8caada057 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -28,7 +28,7 @@ public DeclineRequestBuilder(Dictionary pathParameters, IRequest public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/instances/{event%2Did1}/decline", rawUrl) { } /// - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(DeclinePostRequestBody body, Action - /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index 4b2d6a3166d..41e9f1ca4c1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public DismissReminderRequestBuilder(Dictionary pathParameters, public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/instances/{event%2Did1}/dismissReminder", rawUrl) { } /// - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// Dismiss a reminder that has been triggered for an event in a user calendar. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index 41222d04aae..e49ffbe66f8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/instances/{event%2Did1}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 97e9b3a9891..6588222c6f1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index ab200a3de26..5ea2a8c6d71 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/instances/{event%2Did1}/forward", rawUrl) { } /// - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 960638e8a9e..46507c26e3a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/instances/{event%2Did1}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 3a76f03deda..6b5a313e5f2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/instances/{event%2Did1}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 911fc0a0ba9..bb5616a8bb6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -28,7 +28,7 @@ public SnoozeReminderRequestBuilder(Dictionary pathParameters, I public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/snoozeReminder", rawUrl) { } /// - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SnoozeReminderPostRequestBody body, Action - /// Postpone a reminder for an event in a user calendar until a new time. + /// Postpone a reminder for an event in a user calendar until a new time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 256d3d3e2ac..eb0ed64ef24 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -28,7 +28,7 @@ public TentativelyAcceptRequestBuilder(Dictionary pathParameters public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/tentativelyAccept", rawUrl) { } /// - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(TentativelyAcceptPostRequestBody body, Action - /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/ExportPersonalData/ExportPersonalDataRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ExportPersonalData/ExportPersonalDataRequestBuilder.cs index 4734cf3300b..f9e8ce784aa 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ExportPersonalData/ExportPersonalDataRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ExportPersonalData/ExportPersonalDataRequestBuilder.cs @@ -28,7 +28,7 @@ public ExportPersonalDataRequestBuilder(Dictionary pathParameter public ExportPersonalDataRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/exportPersonalData", rawUrl) { } /// - /// Submit a data policy operation request from a company administrator or an application to export an organizational user's data. This data includes the user's data stored in OneDrive and their activity reports. For more guidance about exporting data while complying with regulations, see Data Subject Requests and the GDPR and CCPA. + /// Submit a data policy operation request from a company administrator or an application to export an organizational user's data. This data includes the user's data stored in OneDrive and their activity reports. For more guidance about exporting data while complying with regulations, see Data Subject Requests and the GDPR and CCPA. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ExportPersonalDataPostRequestBody body, Action - /// Submit a data policy operation request from a company administrator or an application to export an organizational user's data. This data includes the user's data stored in OneDrive and their activity reports. For more guidance about exporting data while complying with regulations, see Data Subject Requests and the GDPR and CCPA. + /// Submit a data policy operation request from a company administrator or an application to export an organizational user's data. This data includes the user's data stored in OneDrive and their activity reports. For more guidance about exporting data while complying with regulations, see Data Subject Requests and the GDPR and CCPA. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/FindMeetingTimes/FindMeetingTimesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/FindMeetingTimes/FindMeetingTimesRequestBuilder.cs index 5c07a04fb3b..24f6780db8c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/FindMeetingTimes/FindMeetingTimesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/FindMeetingTimes/FindMeetingTimesRequestBuilder.cs @@ -29,7 +29,7 @@ public FindMeetingTimesRequestBuilder(Dictionary pathParameters, public FindMeetingTimesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/findMeetingTimes", rawUrl) { } /// - /// Suggest meeting times and locations based on organizer and attendee availability, and time or location constraints specified as parameters. If findMeetingTimes cannot return any meeting suggestions, the response would indicate a reason in the emptySuggestionsReason property. Based on this value, you can better adjust the parameters and call findMeetingTimes again. The algorithm used to suggest meeting times and locations undergoes fine-tuning from time to time. In scenarios like test environments where the input parameters and calendar data remain static, expect that the suggested results may differ over time. + /// Suggest meeting times and locations based on organizer and attendee availability, and time or location constraints specified as parameters. If findMeetingTimes cannot return any meeting suggestions, the response would indicate a reason in the emptySuggestionsReason property. Based on this value, you can better adjust the parameters and call findMeetingTimes again. The algorithm used to suggest meeting times and locations undergoes fine-tuning from time to time. In scenarios like test environments where the input parameters and calendar data remain static, expect that the suggested results may differ over time. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(FindMeetingTimesPostRe return await RequestAdapter.SendAsync(requestInfo, MeetingTimeSuggestionsResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Suggest meeting times and locations based on organizer and attendee availability, and time or location constraints specified as parameters. If findMeetingTimes cannot return any meeting suggestions, the response would indicate a reason in the emptySuggestionsReason property. Based on this value, you can better adjust the parameters and call findMeetingTimes again. The algorithm used to suggest meeting times and locations undergoes fine-tuning from time to time. In scenarios like test environments where the input parameters and calendar data remain static, expect that the suggested results may differ over time. + /// Suggest meeting times and locations based on organizer and attendee availability, and time or location constraints specified as parameters. If findMeetingTimes cannot return any meeting suggestions, the response would indicate a reason in the emptySuggestionsReason property. Based on this value, you can better adjust the parameters and call findMeetingTimes again. The algorithm used to suggest meeting times and locations undergoes fine-tuning from time to time. In scenarios like test environments where the input parameters and calendar data remain static, expect that the suggested results may differ over time. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/FollowedSites/FollowedSitesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/FollowedSites/FollowedSitesRequestBuilder.cs index 58693fce090..2e752108002 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/FollowedSites/FollowedSitesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/FollowedSites/FollowedSitesRequestBuilder.cs @@ -42,7 +42,7 @@ public FollowedSitesRequestBuilder(Dictionary pathParameters, IR public FollowedSitesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/followedSites{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List the sites that have been followed by the signed in user. + /// List the sites that have been followed by the signed in user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, SiteCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List the sites that have been followed by the signed in user. + /// List the sites that have been followed by the signed in user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public FollowedSitesRequestBuilder WithUrl(string rawUrl) { return new FollowedSitesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List the sites that have been followed by the signed in user. + /// List the sites that have been followed by the signed in user. This API is supported in the following national cloud deployments. /// public class FollowedSitesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetMailTips/GetMailTipsPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/GetMailTips/GetMailTipsPostResponse.cs new file mode 100644 index 00000000000..9c6bde011b9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/GetMailTips/GetMailTipsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.GetMailTips { + public class GetMailTipsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMailTipsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMailTipsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(MailTips.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetMailTips/GetMailTipsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/GetMailTips/GetMailTipsRequestBuilder.cs index 25a63cbcd6c..1810e8734ac 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/GetMailTips/GetMailTipsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/GetMailTips/GetMailTipsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMailTipsRequestBuilder(Dictionary pathParameters, IReq public GetMailTipsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/getMailTips", rawUrl) { } /// - /// Get the MailTips of one or more recipients as available to the signed-in user. Note that by making a POST call to the getMailTips action, you can request specific types of MailTips tobe returned for more than one recipient at one time. The requested MailTips are returned in a mailTips collection. + /// Get the MailTips of one or more recipients as available to the signed-in user. Note that by making a POST call to the getMailTips action, you can request specific types of MailTips tobe returned for more than one recipient at one time. The requested MailTips are returned in a mailTips collection. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMailTipsPostResponseAsync(GetMailTipsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMailTipsPostResponseAsync(GetMailTipsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMailTipsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the MailTips of one or more recipients as available to the signed-in user. Note that by making a POST call to the getMailTips action, you can request specific types of MailTips tobe returned for more than one recipient at one time. The requested MailTips are returned in a mailTips collection. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMailTipsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMailTipsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMailTipsPostRequestBody body return await RequestAdapter.SendAsync(requestInfo, GetMailTipsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the MailTips of one or more recipients as available to the signed-in user. Note that by making a POST call to the getMailTips action, you can request specific types of MailTips tobe returned for more than one recipient at one time. The requested MailTips are returned in a mailTips collection. + /// Get the MailTips of one or more recipients as available to the signed-in user. Note that by making a POST call to the getMailTips action, you can request specific types of MailTips tobe returned for more than one recipient at one time. The requested MailTips are returned in a mailTips collection. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetMailTips/GetMailTipsResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/GetMailTips/GetMailTipsResponse.cs index 80bd94bbb9b..092336df9ed 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/GetMailTips/GetMailTipsResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/GetMailTips/GetMailTipsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.GetMailTips { - public class GetMailTipsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMailTipsPostResponse instead.")] + public class GetMailTipsResponse : GetMailTipsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMailTipsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(MailTips.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesGetResponse.cs new file mode 100644 index 00000000000..490d2e97b9e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.GetManagedAppDiagnosticStatuses { + public class GetManagedAppDiagnosticStatusesGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetManagedAppDiagnosticStatusesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetManagedAppDiagnosticStatusesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ManagedAppDiagnosticStatus.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesRequestBuilder.cs index 33f2b41bd32..3d09b2565da 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesRequestBuilder.cs @@ -33,6 +33,26 @@ public GetManagedAppDiagnosticStatusesRequestBuilder(string rawUrl, IRequestAdap /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetManagedAppDiagnosticStatusesGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetManagedAppDiagnosticStatusesGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetManagedAppDiagnosticStatusesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Gets diagnostics validation status for a given user. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetManagedAppDiagnosticStatusesGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesResponse.cs index 1bb85bf35df..31818813501 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.GetManagedAppDiagnosticStatuses { - public class GetManagedAppDiagnosticStatusesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getManagedAppDiagnosticStatusesGetResponse instead.")] + public class GetManagedAppDiagnosticStatusesResponse : GetManagedAppDiagnosticStatusesGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetManagedAppDiagnosticStatusesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ManagedAppDiagnosticStatus.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppPolicies/GetManagedAppPoliciesGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppPolicies/GetManagedAppPoliciesGetResponse.cs new file mode 100644 index 00000000000..5f01c46e0f3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppPolicies/GetManagedAppPoliciesGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.GetManagedAppPolicies { + public class GetManagedAppPoliciesGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetManagedAppPoliciesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetManagedAppPoliciesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ManagedAppPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppPolicies/GetManagedAppPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppPolicies/GetManagedAppPoliciesRequestBuilder.cs index 9e02de8bd89..93a600dfe93 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppPolicies/GetManagedAppPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppPolicies/GetManagedAppPoliciesRequestBuilder.cs @@ -33,6 +33,26 @@ public GetManagedAppPoliciesRequestBuilder(string rawUrl, IRequestAdapter reques /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetManagedAppPoliciesGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetManagedAppPoliciesGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetManagedAppPoliciesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Gets app restrictions for a given user. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetManagedAppPoliciesGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppPolicies/GetManagedAppPoliciesResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppPolicies/GetManagedAppPoliciesResponse.cs index fbc5761f023..d24012dbdab 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppPolicies/GetManagedAppPoliciesResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppPolicies/GetManagedAppPoliciesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.GetManagedAppPolicies { - public class GetManagedAppPoliciesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getManagedAppPoliciesGetResponse instead.")] + public class GetManagedAppPoliciesResponse : GetManagedAppPoliciesGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetManagedAppPoliciesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ManagedAppPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresGetResponse.cs new file mode 100644 index 00000000000..714b2366474 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.GetManagedDevicesWithAppFailures { + public class GetManagedDevicesWithAppFailuresGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetManagedDevicesWithAppFailuresGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetManagedDevicesWithAppFailuresGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresRequestBuilder.cs index 9fdfe146bdd..2cea5162396 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresRequestBuilder.cs @@ -33,6 +33,26 @@ public GetManagedDevicesWithAppFailuresRequestBuilder(string rawUrl, IRequestAda /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetManagedDevicesWithAppFailuresGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetManagedDevicesWithAppFailuresGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetManagedDevicesWithAppFailuresGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Retrieves the list of devices with failed apps + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetManagedDevicesWithAppFailuresGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresResponse.cs index 40ac624d4d3..d7f439618f0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.GetManagedDevicesWithAppFailures { - public class GetManagedDevicesWithAppFailuresResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getManagedDevicesWithAppFailuresGetResponse instead.")] + public class GetManagedDevicesWithAppFailuresResponse : GetManagedDevicesWithAppFailuresGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetManagedDevicesWithAppFailuresResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..0ccf103531d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.GetMemberGroups { + public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index c065685c1d9..a7925d16886 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberGroupsRequestBuilder(Dictionary pathParameters, public GetMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/getMemberGroups", rawUrl) { } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberGroupsPostRequestB return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/GetMemberGroups/GetMemberGroupsResponse.cs index cc9a43fbe4b..a9dd0c6adc0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.GetMemberGroups { - public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberGroupsPostResponse instead.")] + public class GetMemberGroupsResponse : GetMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..9327f4cc00e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.GetMemberObjects { + public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index a96560bea3d..4b067490753 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberObjectsRequestBuilder(Dictionary pathParameters, public GetMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/getMemberObjects", rawUrl) { } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberObjectsPostReques return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/GetMemberObjects/GetMemberObjectsResponse.cs index 748c451a3fa..c28e562b491 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.GetMemberObjects { - public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberObjectsPostResponse instead.")] + public class GetMemberObjectsResponse : GetMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/InferenceClassification/Overrides/Item/InferenceClassificationOverrideItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/InferenceClassification/Overrides/Item/InferenceClassificationOverrideItemRequestBuilder.cs index 42ae5492a0b..1daec578bf5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/InferenceClassification/Overrides/Item/InferenceClassificationOverrideItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/InferenceClassification/Overrides/Item/InferenceClassificationOverrideItemRequestBuilder.cs @@ -29,7 +29,7 @@ public InferenceClassificationOverrideItemRequestBuilder(Dictionary - /// Delete an override specified by its ID. + /// Delete an override specified by its ID. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, InferenceClassificationOverride.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Change the classifyAs field of an override as specified. You cannot use PATCH to change any other fields in an inferenceClassificationOverride instance. If an override exists for a sender and the sender changes his/her display name, you can use POST to force an update to the name field in the existing override. If an override exists for a sender and the sender changes his/her SMTP address, deleting the existing override and creating a new one withthe new SMTP address is the only way to 'update' the override for this sender. + /// Change the classifyAs field of an override as specified. You cannot use PATCH to change any other fields in an inferenceClassificationOverride instance. If an override exists for a sender and the sender changes his/her display name, you can use POST to force an update to the name field in the existing override. If an override exists for a sender and the sender changes his/her SMTP address, deleting the existing override and creating a new one withthe new SMTP address is the only way to 'update' the override for this sender. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -90,7 +90,7 @@ public async Task PatchAsync(InferenceClassific return await RequestAdapter.SendAsync(requestInfo, InferenceClassificationOverride.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an override specified by its ID. + /// Delete an override specified by its ID. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Change the classifyAs field of an override as specified. You cannot use PATCH to change any other fields in an inferenceClassificationOverride instance. If an override exists for a sender and the sender changes his/her display name, you can use POST to force an update to the name field in the existing override. If an override exists for a sender and the sender changes his/her SMTP address, deleting the existing override and creating a new one withthe new SMTP address is the only way to 'update' the override for this sender. + /// Change the classifyAs field of an override as specified. You cannot use PATCH to change any other fields in an inferenceClassificationOverride instance. If an override exists for a sender and the sender changes his/her display name, you can use POST to force an update to the name field in the existing override. If an override exists for a sender and the sender changes his/her SMTP address, deleting the existing override and creating a new one withthe new SMTP address is the only way to 'update' the override for this sender. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/InferenceClassification/Overrides/OverridesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/InferenceClassification/Overrides/OverridesRequestBuilder.cs index 541c52a8c9f..06a38e0483f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/InferenceClassification/Overrides/OverridesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/InferenceClassification/Overrides/OverridesRequestBuilder.cs @@ -42,7 +42,7 @@ public OverridesRequestBuilder(Dictionary pathParameters, IReque public OverridesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/inferenceClassification/overrides{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get the overrides that a user has set up to always classify messages from certain senders in specific ways. Each override corresponds to an SMTP address of a sender. Initially, a user does not have any overrides. + /// Get the overrides that a user has set up to always classify messages from certain senders in specific ways. Each override corresponds to an SMTP address of a sender. Initially, a user does not have any overrides. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Ac return await RequestAdapter.SendAsync(requestInfo, InferenceClassificationOverrideCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an override for a sender identified by an SMTP address. Future messages from that SMTP address will be consistently classifiedas specified in the override. Note + /// Create an override for a sender identified by an SMTP address. Future messages from that SMTP address will be consistently classifiedas specified in the override. Note This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(InferenceClassifica return await RequestAdapter.SendAsync(requestInfo, InferenceClassificationOverride.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the overrides that a user has set up to always classify messages from certain senders in specific ways. Each override corresponds to an SMTP address of a sender. Initially, a user does not have any overrides. + /// Get the overrides that a user has set up to always classify messages from certain senders in specific ways. Each override corresponds to an SMTP address of a sender. Initially, a user does not have any overrides. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an override for a sender identified by an SMTP address. Future messages from that SMTP address will be consistently classifiedas specified in the override. Note + /// Create an override for a sender identified by an SMTP address. Future messages from that SMTP address will be consistently classifiedas specified in the override. Note This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public OverridesRequestBuilder WithUrl(string rawUrl) { return new OverridesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the overrides that a user has set up to always classify messages from certain senders in specific ways. Each override corresponds to an SMTP address of a sender. Initially, a user does not have any overrides. + /// Get the overrides that a user has set up to always classify messages from certain senders in specific ways. Each override corresponds to an SMTP address of a sender. Initially, a user does not have any overrides. This API is supported in the following national cloud deployments. /// public class OverridesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Insights/Shared/SharedRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Insights/Shared/SharedRequestBuilder.cs index da03d9095cc..12198d62e68 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Insights/Shared/SharedRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Insights/Shared/SharedRequestBuilder.cs @@ -42,7 +42,7 @@ public SharedRequestBuilder(Dictionary pathParameters, IRequestA public SharedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/insights/shared{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Calculated insight that includes the list of documents shared with a user. This insight includes documents hosted on OneDrive/SharePoint in the user's Microsoft 365 tenant that are shared with the user, and documents that are attached as files and sent to the user. + /// Calculated insight that includes the list of documents shared with a user. This insight includes documents hosted on OneDrive/SharePoint in the user's Microsoft 365 tenant that are shared with the user, and documents that are attached as files and sent to the user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(SharedInsight body, Action(requestInfo, SharedInsight.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Calculated insight that includes the list of documents shared with a user. This insight includes documents hosted on OneDrive/SharePoint in the user's Microsoft 365 tenant that are shared with the user, and documents that are attached as files and sent to the user. + /// Calculated insight that includes the list of documents shared with a user. This insight includes documents hosted on OneDrive/SharePoint in the user's Microsoft 365 tenant that are shared with the user, and documents that are attached as files and sent to the user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SharedRequestBuilder WithUrl(string rawUrl) { return new SharedRequestBuilder(rawUrl, RequestAdapter); } /// - /// Calculated insight that includes the list of documents shared with a user. This insight includes documents hosted on OneDrive/SharePoint in the user's Microsoft 365 tenant that are shared with the user, and documents that are attached as files and sent to the user. + /// Calculated insight that includes the list of documents shared with a user. This insight includes documents hosted on OneDrive/SharePoint in the user's Microsoft 365 tenant that are shared with the user, and documents that are attached as files and sent to the user. This API is supported in the following national cloud deployments. /// public class SharedRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Insights/Trending/TrendingRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Insights/Trending/TrendingRequestBuilder.cs index f8e9d5990bd..8a6d4c90888 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Insights/Trending/TrendingRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Insights/Trending/TrendingRequestBuilder.cs @@ -42,7 +42,7 @@ public TrendingRequestBuilder(Dictionary pathParameters, IReques public TrendingRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/insights/trending{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Calculated insight that includes a list of documents trending around the user. + /// Calculated insight that includes a list of documents trending around the user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Trending.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Calculated insight that includes a list of documents trending around the user. + /// Calculated insight that includes a list of documents trending around the user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public TrendingRequestBuilder WithUrl(string rawUrl) { return new TrendingRequestBuilder(rawUrl, RequestAdapter); } /// - /// Calculated insight that includes a list of documents trending around the user. + /// Calculated insight that includes a list of documents trending around the user. This API is supported in the following national cloud deployments. /// public class TrendingRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Insights/Used/UsedRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Insights/Used/UsedRequestBuilder.cs index 96d51cc209b..fc769cb050d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Insights/Used/UsedRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Insights/Used/UsedRequestBuilder.cs @@ -42,7 +42,7 @@ public UsedRequestBuilder(Dictionary pathParameters, IRequestAda public UsedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/insights/used{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Calculate and list the documents that a user has viewed or modified. For the signed-in user:- This method includes documents that the user has modified; see example 1. - Using an $orderby query parameter on the lastAccessedDateTime property returns the most recently viewed documents that the user might or might not not have modified; see example 2. For other users, this method includes only documents that the user has modified. + /// Calculate and list the documents that a user has viewed or modified. For the signed-in user:- This method includes documents that the user has modified; see example 1. - Using an $orderby query parameter on the lastAccessedDateTime property returns the most recently viewed documents that the user might or might not not have modified; see example 2. For other users, this method includes only documents that the user has modified. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(UsedInsight body, Action(requestInfo, UsedInsight.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Calculate and list the documents that a user has viewed or modified. For the signed-in user:- This method includes documents that the user has modified; see example 1. - Using an $orderby query parameter on the lastAccessedDateTime property returns the most recently viewed documents that the user might or might not not have modified; see example 2. For other users, this method includes only documents that the user has modified. + /// Calculate and list the documents that a user has viewed or modified. For the signed-in user:- This method includes documents that the user has modified; see example 1. - Using an $orderby query parameter on the lastAccessedDateTime property returns the most recently viewed documents that the user might or might not not have modified; see example 2. For other users, this method includes only documents that the user has modified. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public UsedRequestBuilder WithUrl(string rawUrl) { return new UsedRequestBuilder(rawUrl, RequestAdapter); } /// - /// Calculate and list the documents that a user has viewed or modified. For the signed-in user:- This method includes documents that the user has modified; see example 1. - Using an $orderby query parameter on the lastAccessedDateTime property returns the most recently viewed documents that the user might or might not not have modified; see example 2. For other users, this method includes only documents that the user has modified. + /// Calculate and list the documents that a user has viewed or modified. For the signed-in user:- This method includes documents that the user has modified; see example 1. - Using an $orderby query parameter on the lastAccessedDateTime property returns the most recently viewed documents that the user might or might not not have modified; see example 2. For other users, this method includes only documents that the user has modified. This API is supported in the following national cloud deployments. /// public class UsedRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/GetAllMessages/GetAllMessagesGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/GetAllMessages/GetAllMessagesGetResponse.cs new file mode 100644 index 00000000000..b89734882ae --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/GetAllMessages/GetAllMessagesGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.JoinedTeams.GetAllMessages { + public class GetAllMessagesGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAllMessagesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAllMessagesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/GetAllMessages/GetAllMessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/GetAllMessages/GetAllMessagesRequestBuilder.cs index 12b4d0f3925..7bbc52cc68b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/GetAllMessages/GetAllMessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/GetAllMessages/GetAllMessagesRequestBuilder.cs @@ -33,6 +33,26 @@ public GetAllMessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetAllMessagesGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetAllMessagesGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAllMessagesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getAllMessages + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetAllMessagesGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/GetAllMessages/GetAllMessagesResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/GetAllMessages/GetAllMessagesResponse.cs index 6531549b156..0f5b7aa4933 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/GetAllMessages/GetAllMessagesResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/GetAllMessages/GetAllMessagesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.JoinedTeams.GetAllMessages { - public class GetAllMessagesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAllMessagesGetResponse instead.")] + public class GetAllMessagesResponse : GetAllMessagesGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAllMessagesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/AllChannels/AllChannelsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/AllChannels/AllChannelsRequestBuilder.cs index 932e031b5e2..f6147397554 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/AllChannels/AllChannelsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/AllChannels/AllChannelsRequestBuilder.cs @@ -42,7 +42,7 @@ public AllChannelsRequestBuilder(Dictionary pathParameters, IReq public AllChannelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/allChannels{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of channels either in this team or shared with this team (incoming channels). + /// Get the list of channels either in this team or shared with this team (incoming channels). This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ChannelCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of channels either in this team or shared with this team (incoming channels). + /// Get the list of channels either in this team or shared with this team (incoming channels). This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public AllChannelsRequestBuilder WithUrl(string rawUrl) { return new AllChannelsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of channels either in this team or shared with this team (incoming channels). + /// Get the list of channels either in this team or shared with this team (incoming channels). This API is supported in the following national cloud deployments. /// public class AllChannelsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Archive/ArchiveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Archive/ArchiveRequestBuilder.cs index 6d0664fef7d..065ed34de71 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Archive/ArchiveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Archive/ArchiveRequestBuilder.cs @@ -28,7 +28,7 @@ public ArchiveRequestBuilder(Dictionary pathParameters, IRequest public ArchiveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/archive", rawUrl) { } /// - /// Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. + /// Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ArchivePostRequestBody body, Action - /// Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. + /// Archive the specified team. When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team.Membership changes to the team continue to be allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which may occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/ChannelsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/ChannelsRequestBuilder.cs index 1ba10575700..d12be3020df 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/ChannelsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/ChannelsRequestBuilder.cs @@ -47,7 +47,7 @@ public ChannelsRequestBuilder(Dictionary pathParameters, IReques public ChannelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of channels in this team. + /// Retrieve the list of channels in this team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ChannelCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This is the name that appears to the user in Microsoft Teams. If you're creating a private channel, you can add a maximum of 200 members. + /// Create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This is the name that appears to the user in Microsoft Teams. If you're creating a private channel, you can add a maximum of 200 members. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Channel body, Action(requestInfo, Channel.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of channels in this team. + /// Retrieve the list of channels in this team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This is the name that appears to the user in Microsoft Teams. If you're creating a private channel, you can add a maximum of 200 members. + /// Create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This is the name that appears to the user in Microsoft Teams. If you're creating a private channel, you can add a maximum of 200 members. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public ChannelsRequestBuilder WithUrl(string rawUrl) { return new ChannelsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of channels in this team. + /// Retrieve the list of channels in this team. This API is supported in the following national cloud deployments. /// public class ChannelsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesGetResponse.cs new file mode 100644 index 00000000000..3e676795705 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.Channels.GetAllMessages { + public class GetAllMessagesGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAllMessagesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAllMessagesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs index a4b110b99ee..a2d92ae9879 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs @@ -33,6 +33,26 @@ public GetAllMessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetAllMessagesGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetAllMessagesGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAllMessagesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getAllMessages + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetAllMessagesGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesResponse.cs index e1352c857ca..5a6b6095a0f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.Channels.GetAllMessages { - public class GetAllMessagesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAllMessagesGetResponse instead.")] + public class GetAllMessagesResponse : GetAllMessagesGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAllMessagesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/ChannelItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/ChannelItemRequestBuilder.cs index bbd24ba127a..10e1013452f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/ChannelItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/ChannelItemRequestBuilder.cs @@ -74,7 +74,7 @@ public ChannelItemRequestBuilder(Dictionary pathParameters, IReq public ChannelItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete the channel. + /// Delete the channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -94,7 +94,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information. + /// Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public async Task GetAsync(Action(requestInfo, Channel.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of the specified channel. + /// Update the properties of the specified channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -136,7 +136,7 @@ public async Task PatchAsync(Channel body, Action(requestInfo, Channel.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete the channel. + /// Delete the channel. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -160,7 +160,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information. + /// Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -186,7 +186,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of the specified channel. + /// Update the properties of the specified channel. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -237,7 +237,7 @@ public ChannelItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information. + /// Retrieve the properties and relationships of a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve channel information. This API is supported in the following national cloud deployments. /// public class ChannelItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs index 70b92622b6f..163674cf9de 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs @@ -28,7 +28,7 @@ public CompleteMigrationRequestBuilder(Dictionary pathParameters public CompleteMigrationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/completeMigration", rawUrl) { } /// - /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs new file mode 100644 index 00000000000..2a22ff4ffcb --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.Channels.Item.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName { + public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public bool? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse and sets the default values. + /// + public DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs index 9bf3eebda21..200179f443d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs @@ -33,6 +33,26 @@ public DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrinci /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function doesUserHaveAccess + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs index 7e8fe1df758..ef9494c8454 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.Channels.Item.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName { - public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public bool? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse and sets the default values. - /// - public DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse instead.")] + public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse : DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs index 61abfa11df3..e887310bac6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs @@ -34,7 +34,7 @@ public FilesFolderRequestBuilder(Dictionary pathParameters, IReq public FilesFolderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/filesFolder{?%24select,%24expand}", rawUrl) { } /// - /// Get the metadata for the location where the files of a channel are stored. + /// Get the metadata for the location where the files of a channel are stored. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public FilesFolderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the metadata for the location where the files of a channel are stored. + /// Get the metadata for the location where the files of a channel are stored. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,7 +87,7 @@ public FilesFolderRequestBuilder WithUrl(string rawUrl) { return new FilesFolderRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the metadata for the location where the files of a channel are stored. + /// Get the metadata for the location where the files of a channel are stored. This API is supported in the following national cloud deployments. /// public class FilesFolderRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Add/AddPostResponse.cs new file mode 100644 index 00000000000..7a690c49cd8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Add/AddPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.Channels.Item.Members.Add { + public class AddPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AddPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AddPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Add/AddRequestBuilder.cs index 853c11e15aa..0760e3580c5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Add/AddRequestBuilder.cs @@ -28,13 +28,36 @@ public AddRequestBuilder(Dictionary pathParameters, IRequestAdap public AddRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/members/add", rawUrl) { } /// - /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AddPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsAddPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(AddPostRequestBody body, Action(requestInfo, AddResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Add/AddResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Add/AddResponse.cs index 18922069494..e61746ddcb2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Add/AddResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Add/AddResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.Channels.Item.Members.Add { - public class AddResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use addPostResponse instead.")] + public class AddResponse : AddPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index f90292dd2b1..f251e402368 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -29,8 +29,8 @@ public ConversationMemberItemRequestBuilder(Dictionary pathParam public ConversationMemberItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/members/{conversationMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. - /// Find more info here + /// Delete a conversationMember from a channel. This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get a conversationMember from a channel. + /// Get a conversationMember from a channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a team or channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(ConversationMember body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Delete a conversationMember from a channel. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a conversationMember from a channel. + /// Get a conversationMember from a channel. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a team or channel. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public ConversationMemberItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a conversationMember from a channel. + /// Get a conversationMember from a channel. This API is supported in the following national cloud deployments. /// public class ConversationMemberItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs index 71cb6440f89..4898cca669f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs @@ -47,7 +47,7 @@ public MembersRequestBuilder(Dictionary pathParameters, IRequest public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/members{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a conversationMember to a channel. + /// Add a conversationMember to a channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(ConversationMember body, Action< return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a conversationMember to a channel. + /// Add a conversationMember to a channel. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public MembersRequestBuilder WithUrl(string rawUrl) { return new MembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. This API is supported in the following national cloud deployments. /// public class MembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..ba3db50335f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.Channels.Item.Messages.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs index dd43aec7c05..bf37f9ce0ef 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaResponse.cs index 72e08954ae0..b6148c7fb44 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.Channels.Item.Messages.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs index 84144b2b780..4f1a5c3f134 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs @@ -78,7 +78,7 @@ public async Task DeleteAsync(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -98,7 +98,7 @@ public async Task GetAsync(Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. + /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -144,7 +144,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,7 +170,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. + /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -221,7 +221,7 @@ public ChatMessageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// public class ChatMessageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs index 2538d960794..a85b2b01f00 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -42,7 +42,7 @@ public HostedContentsRequestBuilder(Dictionary pathParameters, I public HostedContentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ChatMessageHostedContent b return await RequestAdapter.SendAsync(requestInfo, ChatMessageHostedContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public HostedContentsRequestBuilder WithUrl(string rawUrl) { return new HostedContentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// public class HostedContentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 745513d80b2..e2460bcbc3b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public ChatMessageHostedContentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..06161c3f198 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.Channels.Item.Messages.Item.Replies.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs index f88b11b47fb..95a0683621a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs index 06563781c06..03bbcba5959 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.Channels.Item.Messages.Item.Replies.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs index f85693dfb4e..17cd9009756 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs @@ -73,7 +73,7 @@ public async Task DeleteAsync(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -138,7 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -215,7 +215,7 @@ public ChatMessageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// public class ChatMessageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs index d6a714ed324..bce559cdfd0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -42,7 +42,7 @@ public HostedContentsRequestBuilder(Dictionary pathParameters, I public HostedContentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ChatMessageHostedContent b return await RequestAdapter.SendAsync(requestInfo, ChatMessageHostedContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public HostedContentsRequestBuilder WithUrl(string rawUrl) { return new HostedContentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// public class HostedContentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 6018ad2e8ab..8b4fcc4d5b5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public ChatMessageHostedContentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs index d9cfd5f35a1..45d14491125 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public SoftDeleteRequestBuilder(Dictionary pathParameters, IRequ public SoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/softDelete", rawUrl) { } /// - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index e4388eefcf0..e955e5724da 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public UndoSoftDeleteRequestBuilder(Dictionary pathParameters, I public UndoSoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/undoSoftDelete", rawUrl) { } /// - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs index 61e13ba6b5a..76045f6c1c3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -47,7 +47,7 @@ public RepliesRequestBuilder(Dictionary pathParameters, IRequest public RepliesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public RepliesRequestBuilder WithUrl(string rawUrl) { return new RepliesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// public class RepliesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs index e8912400cb9..a882f136a28 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public SoftDeleteRequestBuilder(Dictionary pathParameters, IRequ public SoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/softDelete", rawUrl) { } /// - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index 76cc6a9c5c4..3b8fd92f150 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public UndoSoftDeleteRequestBuilder(Dictionary pathParameters, I public UndoSoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/undoSoftDelete", rawUrl) { } /// - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs index 35915bdcadc..8e51f461a37 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs @@ -47,7 +47,7 @@ public MessagesRequestBuilder(Dictionary pathParameters, IReques public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/messages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified channel. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public MessagesRequestBuilder WithUrl(string rawUrl) { return new MessagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// public class MessagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs index 633028889d9..0c45c2e1b78 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs @@ -29,7 +29,7 @@ public ProvisionEmailRequestBuilder(Dictionary pathParameters, I public ProvisionEmailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/provisionEmail", rawUrl) { } /// - /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. + /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, ProvisionChannelEmailResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. + /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs index 904000c391d..4bee221a263 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs @@ -28,7 +28,7 @@ public RemoveEmailRequestBuilder(Dictionary pathParameters, IReq public RemoveEmailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/removeEmail", rawUrl) { } /// - /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. + /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. + /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs index 75d88b4a3a1..7f2854cff4f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs @@ -42,7 +42,7 @@ public AllowedMembersRequestBuilder(Dictionary pathParameters, I public AllowedMembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public AllowedMembersRequestBuilder WithUrl(string rawUrl) { return new AllowedMembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant This API is supported in the following national cloud deployments. /// public class AllowedMembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs index 8f4fa444075..7e1f4d2f5b3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs @@ -39,7 +39,7 @@ public SharedWithChannelTeamInfoItemRequestBuilder(Dictionary pa public SharedWithChannelTeamInfoItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. + /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -59,7 +59,7 @@ public async Task DeleteAsync(Action - /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -100,7 +100,7 @@ public async Task PatchAsync(SharedWithChannelTeamInf return await RequestAdapter.SendAsync(requestInfo, SharedWithChannelTeamInfo.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. + /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -124,7 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -201,7 +201,7 @@ public SharedWithChannelTeamInfoItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// public class SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs index 9119452315a..ffb908e66aa 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs @@ -42,7 +42,7 @@ public SharedWithTeamsRequestBuilder(Dictionary pathParameters, public SharedWithTeamsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/sharedWithTeams{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(SharedWithChannelTeamInfo return await RequestAdapter.SendAsync(requestInfo, SharedWithChannelTeamInfo.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SharedWithTeamsRequestBuilder WithUrl(string rawUrl) { return new SharedWithTeamsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// public class SharedWithTeamsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs index b07a5c5967e..db5b7bf7941 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs @@ -29,7 +29,7 @@ public TeamsAppRequestBuilder(Dictionary pathParameters, IReques public TeamsAppRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/tabs/{teamsTab%2Did}/teamsApp{?%24select,%24expand}", rawUrl) { } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -48,7 +48,7 @@ public TeamsAppRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.TeamsApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +81,7 @@ public TeamsAppRequestBuilder WithUrl(string rawUrl) { return new TeamsAppRequestBuilder(rawUrl, RequestAdapter); } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// public class TeamsAppRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs index 7f0cf343c2e..a76319ce895 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs @@ -34,7 +34,7 @@ public TeamsTabItemRequestBuilder(Dictionary pathParameters, IRe public TeamsTabItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/tabs/{teamsTab%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Removes (unpins) a tab from the specified channel within a team. + /// Removes (unpins) a tab from the specified channel within a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of the specified tab in a channel within a team. + /// Retrieve the properties and relationships of the specified tab in a channel within a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of the specified tab.This can be used to configure the content of the tab. + /// Update the properties of the specified tab.This can be used to configure the content of the tab. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(TeamsTab body, Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Removes (unpins) a tab from the specified channel within a team. + /// Removes (unpins) a tab from the specified channel within a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of the specified tab in a channel within a team. + /// Retrieve the properties and relationships of the specified tab in a channel within a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of the specified tab.This can be used to configure the content of the tab. + /// Update the properties of the specified tab.This can be used to configure the content of the tab. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public TeamsTabItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of the specified tab in a channel within a team. + /// Retrieve the properties and relationships of the specified tab in a channel within a team. This API is supported in the following national cloud deployments. /// public class TeamsTabItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/TabsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/TabsRequestBuilder.cs index 81682f5c506..74fd9a78d22 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/TabsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/TabsRequestBuilder.cs @@ -42,7 +42,7 @@ public TabsRequestBuilder(Dictionary pathParameters, IRequestAda public TabsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/tabs{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of tabs in the specified channel within a team. + /// Retrieve the list of tabs in the specified channel within a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TeamsTabCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TeamsTab body, Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of tabs in the specified channel within a team. + /// Retrieve the list of tabs in the specified channel within a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public TabsRequestBuilder WithUrl(string rawUrl) { return new TabsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of tabs in the specified channel within a team. + /// Retrieve the list of tabs in the specified channel within a team. This API is supported in the following national cloud deployments. /// public class TabsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Clone/CloneRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Clone/CloneRequestBuilder.cs index 345790e7593..e3a010499e7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Clone/CloneRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Clone/CloneRequestBuilder.cs @@ -28,7 +28,7 @@ public CloneRequestBuilder(Dictionary pathParameters, IRequestAd public CloneRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/clone", rawUrl) { } /// - /// Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they aren't configured. The tabs are displayed on the tab bar in Microsoft Teams, and the first time a user opens them, they must go through the configuration screen. If the user who opens the tab doesn't have permission to configure apps, they'll see a message that says that the tab isn't configured. Cloning is a long-running operation. After the POST clone returns, you need to GET the operation returned by the Location: header to see if it's running, succeeded, or failed. You should continue to GET until the status isn't running. The recommended delay between GETs is 5 seconds. + /// Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they aren't configured. The tabs are displayed on the tab bar in Microsoft Teams, and the first time a user opens them, they must go through the configuration screen. If the user who opens the tab doesn't have permission to configure apps, they'll see a message that says that the tab isn't configured. Cloning is a long-running operation. After the POST clone returns, you need to GET the operation returned by the Location: header to see if it's running, succeeded, or failed. You should continue to GET until the status isn't running. The recommended delay between GETs is 5 seconds. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ClonePostRequestBody body, Action - /// Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they aren't configured. The tabs are displayed on the tab bar in Microsoft Teams, and the first time a user opens them, they must go through the configuration screen. If the user who opens the tab doesn't have permission to configure apps, they'll see a message that says that the tab isn't configured. Cloning is a long-running operation. After the POST clone returns, you need to GET the operation returned by the Location: header to see if it's running, succeeded, or failed. You should continue to GET until the status isn't running. The recommended delay between GETs is 5 seconds. + /// Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they aren't configured. The tabs are displayed on the tab bar in Microsoft Teams, and the first time a user opens them, they must go through the configuration screen. If the user who opens the tab doesn't have permission to configure apps, they'll see a message that says that the tab isn't configured. Cloning is a long-running operation. After the POST clone returns, you need to GET the operation returned by the Location: header to see if it's running, succeeded, or failed. You should continue to GET until the status isn't running. The recommended delay between GETs is 5 seconds. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs index 93985c08b5b..0af7e472682 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs @@ -28,7 +28,7 @@ public CompleteMigrationRequestBuilder(Dictionary pathParameters public CompleteMigrationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/completeMigration", rawUrl) { } /// - /// Complete the message migration process by removing migration mode from a team. Migration mode is a special state where certain operations are barred, like message POST and membership operations during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + /// Complete the message migration process by removing migration mode from a team. Migration mode is a special state where certain operations are barred, like message POST and membership operations during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Complete the message migration process by removing migration mode from a team. Migration mode is a special state where certain operations are barred, like message POST and membership operations during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + /// Complete the message migration process by removing migration mode from a team. Migration mode is a special state where certain operations are barred, like message POST and membership operations during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Group/GroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Group/GroupRequestBuilder.cs index 8cfcd4525ee..a5fe3afabbd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Group/GroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Group/GroupRequestBuilder.cs @@ -1,6 +1,7 @@ // using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; +using Microsoft.Graph.Users.Item.JoinedTeams.Item.Group.ServiceProvisioningErrors; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -14,6 +15,10 @@ namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.Group { /// Provides operations to manage the group property of the microsoft.graph.team entity. /// public class GroupRequestBuilder : BaseRequestBuilder { + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new GroupRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..695f3df3367 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.Group.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/group/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/group/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..a978d955881 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Users.Item.JoinedTeams.Item.Group.ServiceProvisioningErrors.Count; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.Group.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \users\{user-id}\joinedTeams\{team-id}\group\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/group/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/group/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/IncomingChannels/IncomingChannelsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/IncomingChannels/IncomingChannelsRequestBuilder.cs index 6c3b6502d37..ef3ff71d76f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/IncomingChannels/IncomingChannelsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/IncomingChannels/IncomingChannelsRequestBuilder.cs @@ -42,7 +42,7 @@ public IncomingChannelsRequestBuilder(Dictionary pathParameters, public IncomingChannelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/incomingChannels{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of incoming channels (channels shared with a team). + /// Get the list of incoming channels (channels shared with a team). This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ChannelCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of incoming channels (channels shared with a team). + /// Get the list of incoming channels (channels shared with a team). This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public IncomingChannelsRequestBuilder WithUrl(string rawUrl) { return new IncomingChannelsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of incoming channels (channels shared with a team). + /// Get the list of incoming channels (channels shared with a team). This API is supported in the following national cloud deployments. /// public class IncomingChannelsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/InstalledAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/InstalledAppsRequestBuilder.cs index e552c792ba9..6bc08c7d781 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/InstalledAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/InstalledAppsRequestBuilder.cs @@ -42,7 +42,7 @@ public InstalledAppsRequestBuilder(Dictionary pathParameters, IR public InstalledAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/installedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of apps installed in the specified team. + /// Retrieve a list of apps installed in the specified team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TeamsAppInstallationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Install an app to the specified team. + /// Install an app to the specified team. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TeamsAppInstallation body, Act return await RequestAdapter.SendAsync(requestInfo, TeamsAppInstallation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of apps installed in the specified team. + /// Retrieve a list of apps installed in the specified team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Install an app to the specified team. + /// Install an app to the specified team. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public InstalledAppsRequestBuilder WithUrl(string rawUrl) { return new InstalledAppsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of apps installed in the specified team. + /// Retrieve a list of apps installed in the specified team. This API is supported in the following national cloud deployments. /// public class InstalledAppsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs index 24da38e18da..6a7a7767b40 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs @@ -44,7 +44,7 @@ public TeamsAppInstallationItemRequestBuilder(Dictionary pathPar public TeamsAppInstallationItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/installedApps/{teamsAppInstallation%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Uninstalls an app from the specified team. + /// Uninstalls an app from the specified team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -64,7 +64,7 @@ public async Task DeleteAsync(Action - /// Retrieve the app installed in the specified team. + /// Retrieve the app installed in the specified team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -105,7 +105,7 @@ public async Task PatchAsync(TeamsAppInstallation body, Ac return await RequestAdapter.SendAsync(requestInfo, TeamsAppInstallation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Uninstalls an app from the specified team. + /// Uninstalls an app from the specified team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,7 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the app installed in the specified team. + /// Retrieve the app installed in the specified team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -206,7 +206,7 @@ public TeamsAppInstallationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the app installed in the specified team. + /// Retrieve the app installed in the specified team. This API is supported in the following national cloud deployments. /// public class TeamsAppInstallationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs index 94b877fd75d..101a80b6c92 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs @@ -28,7 +28,7 @@ public UpgradeRequestBuilder(Dictionary pathParameters, IRequest public UpgradeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/installedApps/{teamsAppInstallation%2Did}/upgrade", rawUrl) { } /// - /// Upgrade an app installation within a chat. + /// Upgrade an app installation within a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(UpgradePostRequestBody body, Action - /// Upgrade an app installation within a chat. + /// Upgrade an app installation within a chat. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Add/AddPostResponse.cs new file mode 100644 index 00000000000..17dc3d89caf --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Add/AddPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.Members.Add { + public class AddPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AddPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AddPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Add/AddRequestBuilder.cs index 60739422c5a..1a5cb23cdad 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Add/AddRequestBuilder.cs @@ -28,13 +28,36 @@ public AddRequestBuilder(Dictionary pathParameters, IRequestAdap public AddRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/members/add", rawUrl) { } /// - /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AddPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsAddPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(AddPostRequestBody body, Action(requestInfo, AddResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Add/AddResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Add/AddResponse.cs index 76b0c35a058..7cdbb83cdd6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Add/AddResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Add/AddResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.Members.Add { - public class AddResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use addPostResponse instead.")] + public class AddResponse : AddPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index 10ac7fda7c7..436bd4e57d6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -29,7 +29,7 @@ public ConversationMemberItemRequestBuilder(Dictionary pathParam public ConversationMemberItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/members/{conversationMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Remove a conversationMember from a team. + /// Remove a conversationMember from a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get a conversationMember from a team. + /// Get a conversationMember from a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team. + /// Update the role of a conversationMember in a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(ConversationMember body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Remove a conversationMember from a team. + /// Remove a conversationMember from a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a conversationMember from a team. + /// Get a conversationMember from a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team. + /// Update the role of a conversationMember in a team. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public ConversationMemberItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a conversationMember from a team. + /// Get a conversationMember from a team. This API is supported in the following national cloud deployments. /// public class ConversationMemberItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/MembersRequestBuilder.cs index 96962e976c0..359a64313c0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/MembersRequestBuilder.cs @@ -47,7 +47,7 @@ public MembersRequestBuilder(Dictionary pathParameters, IRequest public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/members{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the conversationMember collection of a team. + /// Get the conversationMember collection of a team. The membership IDs returned by the server must be treated as opaque strings. The client should not try to parse or make assumptions about these resource IDs. In the future, membership results may include users from various tenants, as indicated in the response. Clients should avoid assuming that all members exclusively belong to the current tenant. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a new conversationMember to a team. + /// Add a new conversationMember to a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(ConversationMember body, Action< return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the conversationMember collection of a team. + /// Get the conversationMember collection of a team. The membership IDs returned by the server must be treated as opaque strings. The client should not try to parse or make assumptions about these resource IDs. In the future, membership results may include users from various tenants, as indicated in the response. Clients should avoid assuming that all members exclusively belong to the current tenant. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a new conversationMember to a team. + /// Add a new conversationMember to a team. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public MembersRequestBuilder WithUrl(string rawUrl) { return new MembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the conversationMember collection of a team. + /// Get the conversationMember collection of a team. The membership IDs returned by the server must be treated as opaque strings. The client should not try to parse or make assumptions about these resource IDs. In the future, membership results may include users from various tenants, as indicated in the response. Clients should avoid assuming that all members exclusively belong to the current tenant. This API is supported in the following national cloud deployments. /// public class MembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..b9a599adfcf --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.PermissionGrants.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Delta/DeltaRequestBuilder.cs index 0a2a90fb8bf..ae5fd6ab1b9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Delta/DeltaResponse.cs index e1ac5befde4..70ea90ad4e1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.PermissionGrants.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs new file mode 100644 index 00000000000..76cba1e6c50 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.PermissionGrants.GetAvailableExtensionProperties { + public class GetAvailableExtensionPropertiesPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetAvailableExtensionPropertiesPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index ba72e032aba..ea58cf5bd01 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -28,13 +28,36 @@ public GetAvailableExtensionPropertiesRequestBuilder(Dictionary public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/permissionGrants/getAvailableExtensionProperties", rawUrl) { } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetAvailableExtensionPropertiesPostResponseAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetAvailableExtensionPropertiesPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetAvailableExtensionPropertiesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetAvailabl return await RequestAdapter.SendAsync(requestInfo, GetAvailableExtensionPropertiesResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:+ user+ group+ administrativeUnit+ application+ device+ organization + /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs index 4b4320d4d8a..9983c1d5dd4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.PermissionGrants.GetAvailableExtensionProperties { - public class GetAvailableExtensionPropertiesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getAvailableExtensionPropertiesPostResponse instead.")] + public class GetAvailableExtensionPropertiesResponse : GetAvailableExtensionPropertiesPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetAvailableExtensionPropertiesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/GetByIds/GetByIdsPostResponse.cs new file mode 100644 index 00000000000..86e9971265c --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/GetByIds/GetByIdsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.PermissionGrants.GetByIds { + public class GetByIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetByIdsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs index b573fdbde5c..a05aadb2afd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetByIdsRequestBuilder(Dictionary pathParameters, IReques public GetByIdsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/permissionGrants/getByIds", rawUrl) { } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetByIdsPostResponseAsync(GetByIdsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetByIdsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetByIdsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetByIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetByIdsPostRequestBody body, Acti return await RequestAdapter.SendAsync(requestInfo, GetByIdsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/GetByIds/GetByIdsResponse.cs index 95461608ee9..01cb3f6ae63 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/GetByIds/GetByIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/GetByIds/GetByIdsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.PermissionGrants.GetByIds { - public class GetByIdsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getByIdsPostResponse instead.")] + public class GetByIdsResponse : GetByIdsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetByIdsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..923fa49a763 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.PermissionGrants.Item.CheckMemberGroups { + public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index 18e3684d36d..af762946938 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberGroupsPostResponseAsync(CheckMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs index 504c011a2f1..af54714604e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.PermissionGrants.Item.CheckMemberGroups { - public class CheckMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberGroupsPostResponse instead.")] + public class CheckMemberGroupsResponse : CheckMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..01372103066 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.PermissionGrants.Item.CheckMemberObjects { + public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CheckMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index a1f9a9e0574..58bee7a7d48 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -34,6 +34,28 @@ public CheckMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAd /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCheckMemberObjectsPostResponseAsync(CheckMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CheckMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action checkMemberObjects + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCheckMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(CheckMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs index 26cb6568b9e..c6eecf65689 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.PermissionGrants.Item.CheckMemberObjects { - public class CheckMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use checkMemberObjectsPostResponse instead.")] + public class CheckMemberObjectsResponse : CheckMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CheckMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs new file mode 100644 index 00000000000..7f8a5ec9cd9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.PermissionGrants.Item.GetMemberGroups { + public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberGroupsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index 8e2b5ce3df9..88dbd216e03 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberGroupsRequestBuilder(Dictionary pathParameters, public GetMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/getMemberGroups", rawUrl) { } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberGroupsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberGroupsPostRequestB return await RequestAdapter.SendAsync(requestInfo, GetMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs index 303f4c8ea05..4409801411d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.PermissionGrants.Item.GetMemberGroups { - public class GetMemberGroupsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberGroupsPostResponse instead.")] + public class GetMemberGroupsResponse : GetMemberGroupsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberGroupsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs new file mode 100644 index 00000000000..907e6131ef9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.PermissionGrants.Item.GetMemberObjects { + public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetMemberObjectsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index e6ec0053776..526151cff5a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -28,13 +28,36 @@ public GetMemberObjectsRequestBuilder(Dictionary pathParameters, public GetMemberObjectsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/getMemberObjects", rawUrl) { } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsGetMemberObjectsPostResponseAsync(GetMemberObjectsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsGetMemberObjectsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(GetMemberObjectsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(GetMemberObjectsPostReques return await RequestAdapter.SendAsync(requestInfo, GetMemberObjectsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs index 22d9eb1d498..8aeb1371dd8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.PermissionGrants.Item.GetMemberObjects { - public class GetMemberObjectsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getMemberObjectsPostResponse instead.")] + public class GetMemberObjectsResponse : GetMemberObjectsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetMemberObjectsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfPrimitiveValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs index a9747a4621e..8228801796a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs @@ -29,7 +29,7 @@ public RestoreRequestBuilder(Dictionary pathParameters, IRequest public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs index 90a250f3b66..52b41d8335f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs @@ -62,7 +62,7 @@ public PermissionGrantsRequestBuilder(Dictionary pathParameters, public PermissionGrantsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/permissionGrants{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. + /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -103,7 +103,7 @@ public async Task PostAsync(ResourceSpecificPer return await RequestAdapter.SendAsync(requestInfo, ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. + /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,7 +164,7 @@ public PermissionGrantsRequestBuilder WithUrl(string rawUrl) { return new PermissionGrantsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. + /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is supported in the following national cloud deployments. /// public class PermissionGrantsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs index 54347ba8c39..10af93b803a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -28,7 +28,7 @@ public ValidatePropertiesRequestBuilder(Dictionary pathParameter public ValidatePropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/permissionGrants/validateProperties", rawUrl) { } /// - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ValidatePropertiesPostRequestBody body, Action - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Photo/PhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Photo/PhotoRequestBuilder.cs index 76d8c48ddf6..cb9cc8a0bc8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Photo/PhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Photo/PhotoRequestBuilder.cs @@ -34,7 +34,7 @@ public PhotoRequestBuilder(Dictionary pathParameters, IRequestAd public PhotoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/photo{?%24select,%24expand}", rawUrl) { } /// - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -75,7 +75,7 @@ public async Task PatchAsync(ProfilePhoto body, Action(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -136,7 +136,7 @@ public PhotoRequestBuilder WithUrl(string rawUrl) { return new PhotoRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is supported in the following national cloud deployments. /// public class PhotoRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.cs index 8a4d0e8cbb2..220d892e0fd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.cs @@ -28,7 +28,7 @@ public CompleteMigrationRequestBuilder(Dictionary pathParameters public CompleteMigrationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/completeMigration", rawUrl) { } /// - /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response. + /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs new file mode 100644 index 00000000000..7dcc1677ad1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.PrimaryChannel.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName { + public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public bool? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse and sets the default values. + /// + public DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs index 9449ee0f2a4..495dd8face7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs @@ -33,6 +33,26 @@ public DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrinci /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function doesUserHaveAccess + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs index e8366494c73..ce3f82a0434 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.PrimaryChannel.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName { - public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public bool? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse and sets the default values. - /// - public DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse instead.")] + public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse : DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs index 22c5f5fd4fa..151c943f8ec 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs @@ -34,7 +34,7 @@ public FilesFolderRequestBuilder(Dictionary pathParameters, IReq public FilesFolderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/filesFolder{?%24select,%24expand}", rawUrl) { } /// - /// Get the metadata for the location where the files of a channel are stored. + /// Get the metadata for the location where the files of a channel are stored. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public FilesFolderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the metadata for the location where the files of a channel are stored. + /// Get the metadata for the location where the files of a channel are stored. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,7 +87,7 @@ public FilesFolderRequestBuilder WithUrl(string rawUrl) { return new FilesFolderRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the metadata for the location where the files of a channel are stored. + /// Get the metadata for the location where the files of a channel are stored. This API is supported in the following national cloud deployments. /// public class FilesFolderRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Add/AddPostResponse.cs new file mode 100644 index 00000000000..17a29460f88 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Add/AddPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.PrimaryChannel.Members.Add { + public class AddPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AddPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AddPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Add/AddRequestBuilder.cs index ab1e76d325e..e4e25c01e45 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Add/AddRequestBuilder.cs @@ -28,13 +28,36 @@ public AddRequestBuilder(Dictionary pathParameters, IRequestAdap public AddRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/members/add", rawUrl) { } /// - /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsAddPostResponseAsync(AddPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AddPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsAddPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(AddPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(AddPostRequestBody body, Action(requestInfo, AddResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Add/AddResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Add/AddResponse.cs index 59e9876bf1e..29e97a52d7e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Add/AddResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Add/AddResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.PrimaryChannel.Members.Add { - public class AddResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use addPostResponse instead.")] + public class AddResponse : AddPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs index a14b302c80c..b8bf91f6667 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -29,8 +29,8 @@ public ConversationMemberItemRequestBuilder(Dictionary pathParam public ConversationMemberItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/members/{conversationMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. - /// Find more info here + /// Delete a conversationMember from a channel. This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get a conversationMember from a channel. + /// Get a conversationMember from a channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a team or channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(ConversationMember body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Delete a conversationMember from a channel. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a conversationMember from a channel. + /// Get a conversationMember from a channel. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a team or channel. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public ConversationMemberItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a conversationMember from a channel. + /// Get a conversationMember from a channel. This API is supported in the following national cloud deployments. /// public class ConversationMemberItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs index 48ba55eb335..baf4b305874 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs @@ -47,7 +47,7 @@ public MembersRequestBuilder(Dictionary pathParameters, IRequest public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/members{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a conversationMember to a channel. + /// Add a conversationMember to a channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(ConversationMember body, Action< return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a conversationMember to a channel. + /// Add a conversationMember to a channel. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public MembersRequestBuilder WithUrl(string rawUrl) { return new MembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. + /// Retrieve a list of conversationMembers from a channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list. This API is supported in the following national cloud deployments. /// public class MembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..c23510588cd --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.PrimaryChannel.Messages.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.cs index 715b8bbcd43..fd94855392b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaResponse.cs index f4e5255204b..682c7ffb17b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.PrimaryChannel.Messages.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs index 2aaaa136793..c362988cf60 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs @@ -78,7 +78,7 @@ public async Task DeleteAsync(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -98,7 +98,7 @@ public async Task GetAsync(Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. + /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -144,7 +144,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,7 +170,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. + /// Update a chatMessage object. With the exception of the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.Only the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation will fail. This method does not support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -221,7 +221,7 @@ public ChatMessageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// public class ChatMessageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs index 5596b70e6a5..edec31cf3e5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -42,7 +42,7 @@ public HostedContentsRequestBuilder(Dictionary pathParameters, I public HostedContentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/messages/{chatMessage%2Did}/hostedContents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ChatMessageHostedContent b return await RequestAdapter.SendAsync(requestInfo, ChatMessageHostedContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public HostedContentsRequestBuilder WithUrl(string rawUrl) { return new HostedContentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// public class HostedContentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 7a6853dbf09..ecc8d5650e7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public ChatMessageHostedContentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..d39cb9d6732 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.PrimaryChannel.Messages.Item.Replies.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs index 90b891ec5a0..b1e30e4ba38 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaResponse.cs index a7cc042a8a1..1f71798c9ca 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.JoinedTeams.Item.PrimaryChannel.Messages.Item.Replies.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs index 1260c536798..1bfac245deb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs @@ -73,7 +73,7 @@ public async Task DeleteAsync(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -138,7 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -215,7 +215,7 @@ public ChatMessageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a single message or a message reply in a channel or a chat. + /// Retrieve a single message or a message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// public class ChatMessageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs index 79a5885229c..c1611e8549a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -42,7 +42,7 @@ public HostedContentsRequestBuilder(Dictionary pathParameters, I public HostedContentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ChatMessageHostedContent b return await RequestAdapter.SendAsync(requestInfo, ChatMessageHostedContent.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public HostedContentsRequestBuilder WithUrl(string rawUrl) { return new HostedContentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content This API is supported in the following national cloud deployments. /// public class HostedContentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 7abb966324e..761fc023d37 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public ChatMessageHostedContentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of chatMessageHostedContent object. + /// Retrieve the properties and relationships of chatMessageHostedContent object. This API is supported in the following national cloud deployments. /// public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs index 1010222eed8..119ec706611 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public SoftDeleteRequestBuilder(Dictionary pathParameters, IRequ public SoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/softDelete", rawUrl) { } /// - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index e03053e048b..70dc3316eb5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public UndoSoftDeleteRequestBuilder(Dictionary pathParameters, I public UndoSoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/undoSoftDelete", rawUrl) { } /// - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs index c25da7a707e..ca629641ee6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -47,7 +47,7 @@ public RepliesRequestBuilder(Dictionary pathParameters, IRequest public RepliesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/messages/{chatMessage%2Did}/replies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public RepliesRequestBuilder WithUrl(string rawUrl) { return new RepliesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. This API is supported in the following national cloud deployments. /// public class RepliesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs index af2e28c00f9..fdc6fadc7ec 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public SoftDeleteRequestBuilder(Dictionary pathParameters, IRequ public SoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/messages/{chatMessage%2Did}/softDelete", rawUrl) { } /// - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Delete a single chatMessage or a chat message reply in a channel or a chat. + /// Delete a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index a2da395a4e9..809c508828c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -28,7 +28,7 @@ public UndoSoftDeleteRequestBuilder(Dictionary pathParameters, I public UndoSoftDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/messages/{chatMessage%2Did}/undoSoftDelete", rawUrl) { } /// - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. + /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs index 3b1bfbac32c..f9fda34863d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs @@ -47,7 +47,7 @@ public MessagesRequestBuilder(Dictionary pathParameters, IReques public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/messages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified channel. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public MessagesRequestBuilder WithUrl(string rawUrl) { return new MessagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). + /// Retrieve the list of messages (without the replies) in a channel of a team. To get the replies for a message, call the list message replies or the get message reply API. This method supports federation. To list channel messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). This API is supported in the following national cloud deployments. /// public class MessagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.cs index ecbd5c6e6e9..30119806c97 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.cs @@ -93,7 +93,7 @@ public async Task DeleteAsync(Action - /// Get the default channel, General, of a team. + /// Get the default channel, General, of a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -158,7 +158,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the default channel, General, of a team. + /// Get the default channel, General, of a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -235,7 +235,7 @@ public PrimaryChannelRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the default channel, General, of a team. + /// Get the default channel, General, of a team. This API is supported in the following national cloud deployments. /// public class PrimaryChannelRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.cs index b27c347b9b9..b2e2d89fd9e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.cs @@ -29,7 +29,7 @@ public ProvisionEmailRequestBuilder(Dictionary pathParameters, I public ProvisionEmailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/provisionEmail", rawUrl) { } /// - /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. + /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, ProvisionChannelEmailResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. + /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.cs index f088c4e5655..9a6e3b37c8b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.cs @@ -28,7 +28,7 @@ public RemoveEmailRequestBuilder(Dictionary pathParameters, IReq public RemoveEmailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/removeEmail", rawUrl) { } /// - /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. + /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. + /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs index 29458fd2cf2..80495e567bb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs @@ -42,7 +42,7 @@ public AllowedMembersRequestBuilder(Dictionary pathParameters, I public AllowedMembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public AllowedMembersRequestBuilder WithUrl(string rawUrl) { return new AllowedMembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant + /// Get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant This API is supported in the following national cloud deployments. /// public class AllowedMembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs index d44b74940db..ea385c6c469 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs @@ -39,7 +39,7 @@ public SharedWithChannelTeamInfoItemRequestBuilder(Dictionary pa public SharedWithChannelTeamInfoItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. + /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -59,7 +59,7 @@ public async Task DeleteAsync(Action - /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -100,7 +100,7 @@ public async Task PatchAsync(SharedWithChannelTeamInf return await RequestAdapter.SendAsync(requestInfo, SharedWithChannelTeamInfo.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. + /// Unshare a channel with a team by deleting the corresponding sharedWithChannelTeamInfo resource. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -124,7 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -201,7 +201,7 @@ public SharedWithChannelTeamInfoItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get a team that has been shared with a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// public class SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs index 215576a5e72..6171791b466 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs @@ -42,7 +42,7 @@ public SharedWithTeamsRequestBuilder(Dictionary pathParameters, public SharedWithTeamsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/sharedWithTeams{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(SharedWithChannelTeamInfo return await RequestAdapter.SendAsync(requestInfo, SharedWithChannelTeamInfo.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SharedWithTeamsRequestBuilder WithUrl(string rawUrl) { return new SharedWithTeamsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. + /// Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared. This API is supported in the following national cloud deployments. /// public class SharedWithTeamsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs index 7ba08176907..a836c9b853d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs @@ -29,7 +29,7 @@ public TeamsAppRequestBuilder(Dictionary pathParameters, IReques public TeamsAppRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/tabs/{teamsTab%2Did}/teamsApp{?%24select,%24expand}", rawUrl) { } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -48,7 +48,7 @@ public TeamsAppRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.TeamsApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +81,7 @@ public TeamsAppRequestBuilder WithUrl(string rawUrl) { return new TeamsAppRequestBuilder(rawUrl, RequestAdapter); } /// - /// The application that is linked to the tab. This cannot be changed after tab creation. + /// The application that is linked to the tab. This can't be changed after tab creation. /// public class TeamsAppRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs index 1a84a6f33b7..cd1d657d63e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs @@ -34,7 +34,7 @@ public TeamsTabItemRequestBuilder(Dictionary pathParameters, IRe public TeamsTabItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/tabs/{teamsTab%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Removes (unpins) a tab from the specified channel within a team. + /// Removes (unpins) a tab from the specified channel within a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of the specified tab in a channel within a team. + /// Retrieve the properties and relationships of the specified tab in a channel within a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of the specified tab.This can be used to configure the content of the tab. + /// Update the properties of the specified tab.This can be used to configure the content of the tab. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(TeamsTab body, Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Removes (unpins) a tab from the specified channel within a team. + /// Removes (unpins) a tab from the specified channel within a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of the specified tab in a channel within a team. + /// Retrieve the properties and relationships of the specified tab in a channel within a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of the specified tab.This can be used to configure the content of the tab. + /// Update the properties of the specified tab.This can be used to configure the content of the tab. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public TeamsTabItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of the specified tab in a channel within a team. + /// Retrieve the properties and relationships of the specified tab in a channel within a team. This API is supported in the following national cloud deployments. /// public class TeamsTabItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/TabsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/TabsRequestBuilder.cs index 3624a6368f5..ed8af92cb97 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/TabsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/TabsRequestBuilder.cs @@ -42,7 +42,7 @@ public TabsRequestBuilder(Dictionary pathParameters, IRequestAda public TabsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/tabs{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of tabs in the specified channel within a team. + /// Retrieve the list of tabs in the specified channel within a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TeamsTabCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TeamsTab body, Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of tabs in the specified channel within a team. + /// Retrieve the list of tabs in the specified channel within a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. + /// Adds (pins) a tab to the specified channel within a team. The corresponding app must already be installed in the team. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public TabsRequestBuilder WithUrl(string rawUrl) { return new TabsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of tabs in the specified channel within a team. + /// Retrieve the list of tabs in the specified channel within a team. This API is supported in the following national cloud deployments. /// public class TabsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.cs index 35f04bf40cd..d64e17773d8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of an offerShiftRequest object. + /// Retrieve the properties and relationships of an offerShiftRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of an offerShiftRequest object. + /// Retrieve the properties and relationships of an offerShiftRequest object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public OfferShiftRequestItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of an offerShiftRequest object. + /// Retrieve the properties and relationships of an offerShiftRequest object. This API is supported in the following national cloud deployments. /// public class OfferShiftRequestItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs index 93a75e1f446..ba47c837478 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs @@ -42,7 +42,7 @@ public OfferShiftRequestsRequestBuilder(Dictionary pathParameter public OfferShiftRequestsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/schedule/offerShiftRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the properties and relationships of all offerShiftRequest objects in a team. + /// Retrieve the properties and relationships of all offerShiftRequest objects in a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OfferShiftRequestCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an instance of an offerShiftRequest. + /// Create an instance of an offerShiftRequest. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OfferShiftRequest body, Action(requestInfo, OfferShiftRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the properties and relationships of all offerShiftRequest objects in a team. + /// Retrieve the properties and relationships of all offerShiftRequest objects in a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an instance of an offerShiftRequest. + /// Create an instance of an offerShiftRequest. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public OfferShiftRequestsRequestBuilder WithUrl(string rawUrl) { return new OfferShiftRequestsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the properties and relationships of all offerShiftRequest objects in a team. + /// Retrieve the properties and relationships of all offerShiftRequest objects in a team. This API is supported in the following national cloud deployments. /// public class OfferShiftRequestsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs index b853f52701b..992a0fe8469 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of an openShiftChangeRequest object. + /// Retrieve the properties and relationships of an openShiftChangeRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of an openShiftChangeRequest object. + /// Retrieve the properties and relationships of an openShiftChangeRequest object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public OpenShiftChangeRequestItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of an openShiftChangeRequest object. + /// Retrieve the properties and relationships of an openShiftChangeRequest object. This API is supported in the following national cloud deployments. /// public class OpenShiftChangeRequestItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs index fc4ea96c664..198acc40fc7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs @@ -42,7 +42,7 @@ public OpenShiftChangeRequestsRequestBuilder(Dictionary pathPara public OpenShiftChangeRequestsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/schedule/openShiftChangeRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of openShiftChangeRequest objects in a team. + /// Retrieve a list of openShiftChangeRequest objects in a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OpenShiftChangeRequestCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create instance of an openShiftChangeRequest object. + /// Create instance of an openShiftChangeRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OpenShiftChangeRequest body, return await RequestAdapter.SendAsync(requestInfo, OpenShiftChangeRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of openShiftChangeRequest objects in a team. + /// Retrieve a list of openShiftChangeRequest objects in a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create instance of an openShiftChangeRequest object. + /// Create instance of an openShiftChangeRequest object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public OpenShiftChangeRequestsRequestBuilder WithUrl(string rawUrl) { return new OpenShiftChangeRequestsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of openShiftChangeRequest objects in a team. + /// Retrieve a list of openShiftChangeRequest objects in a team. This API is supported in the following national cloud deployments. /// public class OpenShiftChangeRequestsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs index 53a464060f6..69d911e1931 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs @@ -29,7 +29,7 @@ public OpenShiftItemRequestBuilder(Dictionary pathParameters, IR public OpenShiftItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/schedule/openShifts/{openShift%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an openShift object. + /// Delete an openShift object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of an openshift object. + /// Retrieve the properties and relationships of an openshift object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -91,7 +91,7 @@ public async Task PatchAsync(OpenShift body, Action(requestInfo, OpenShift.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an openShift object. + /// Delete an openShift object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of an openshift object. + /// Retrieve the properties and relationships of an openshift object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -192,7 +192,7 @@ public OpenShiftItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of an openshift object. + /// Retrieve the properties and relationships of an openshift object. This API is supported in the following national cloud deployments. /// public class OpenShiftItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs index 587473f8ae2..dc8911664f7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs @@ -42,7 +42,7 @@ public OpenShiftsRequestBuilder(Dictionary pathParameters, IRequ public OpenShiftsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/schedule/openShifts{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List openShift objects in a team. + /// List openShift objects in a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OpenShiftCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an instance of an openShift object. + /// Create an instance of an openShift object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OpenShift body, Action(requestInfo, OpenShift.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List openShift objects in a team. + /// List openShift objects in a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an instance of an openShift object. + /// Create an instance of an openShift object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public OpenShiftsRequestBuilder WithUrl(string rawUrl) { return new OpenShiftsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List openShift objects in a team. + /// List openShift objects in a team. This API is supported in the following national cloud deployments. /// public class OpenShiftsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/ScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/ScheduleRequestBuilder.cs index 3abc4fe39b8..b0f2475af8a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/ScheduleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/ScheduleRequestBuilder.cs @@ -98,7 +98,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule. + /// Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -163,7 +163,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule. + /// Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -240,7 +240,7 @@ public ScheduleRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule. + /// Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule. This API is supported in the following national cloud deployments. /// public class ScheduleRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.cs index 2291b6985dc..1b096a9dbca 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.cs @@ -29,7 +29,7 @@ public SchedulingGroupItemRequestBuilder(Dictionary pathParamete public SchedulingGroupItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/schedule/schedulingGroups/{schedulingGroup%2Did}{?%24select}", rawUrl) { } /// - /// Mark a schedulingGroup as inactive by setting its isActive property.This method does not remove the schedulingGroup from the schedule. Existing shift instances assigned to the scheduling group remain part of the group. + /// Mark a schedulingGroup as inactive by setting its isActive property.This method does not remove the schedulingGroup from the schedule. Existing shift instances assigned to the scheduling group remain part of the group. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a schedulingGroup by ID. + /// Retrieve the properties and relationships of a schedulingGroup by ID. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -91,7 +91,7 @@ public async Task PatchAsync(SchedulingGroup body, Action(requestInfo, SchedulingGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Mark a schedulingGroup as inactive by setting its isActive property.This method does not remove the schedulingGroup from the schedule. Existing shift instances assigned to the scheduling group remain part of the group. + /// Mark a schedulingGroup as inactive by setting its isActive property.This method does not remove the schedulingGroup from the schedule. Existing shift instances assigned to the scheduling group remain part of the group. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a schedulingGroup by ID. + /// Retrieve the properties and relationships of a schedulingGroup by ID. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -192,7 +192,7 @@ public SchedulingGroupItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a schedulingGroup by ID. + /// Retrieve the properties and relationships of a schedulingGroup by ID. This API is supported in the following national cloud deployments. /// public class SchedulingGroupItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs index 5723a5971fb..8de56c50bf7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs @@ -42,7 +42,7 @@ public SchedulingGroupsRequestBuilder(Dictionary pathParameters, public SchedulingGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/schedule/schedulingGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get the list of schedulingGroups in this schedule. + /// Get the list of schedulingGroups in this schedule. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, SchedulingGroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new schedulingGroup. + /// Create a new schedulingGroup. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(SchedulingGroup body, Action(requestInfo, SchedulingGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of schedulingGroups in this schedule. + /// Get the list of schedulingGroups in this schedule. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new schedulingGroup. + /// Create a new schedulingGroup. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SchedulingGroupsRequestBuilder WithUrl(string rawUrl) { return new SchedulingGroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of schedulingGroups in this schedule. + /// Get the list of schedulingGroups in this schedule. This API is supported in the following national cloud deployments. /// public class SchedulingGroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/Share/ShareRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/Share/ShareRequestBuilder.cs index 0d7e9f37aa2..0a77ca7919b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/Share/ShareRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/Share/ShareRequestBuilder.cs @@ -28,7 +28,7 @@ public ShareRequestBuilder(Dictionary pathParameters, IRequestAd public ShareRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/schedule/share", rawUrl) { } /// - /// Share a schedule time range with schedule members.Make the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers.Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. + /// Share a schedule time range with schedule members.Make the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers.Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SharePostRequestBody body, Action - /// Share a schedule time range with schedule members.Make the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers.Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. + /// Share a schedule time range with schedule members.Make the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers.Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs index 500ff857d9c..687470d6bb7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs @@ -29,7 +29,7 @@ public ShiftItemRequestBuilder(Dictionary pathParameters, IReque public ShiftItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/schedule/shifts/{shift%2Did}{?%24select}", rawUrl) { } /// - /// Delete a shift from the schedule. + /// Delete a shift from the schedule. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a shift object by ID. + /// Retrieve the properties and relationships of a shift object by ID. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -91,7 +91,7 @@ public async Task PatchAsync(Shift body, Action(requestInfo, Shift.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a shift from the schedule. + /// Delete a shift from the schedule. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a shift object by ID. + /// Retrieve the properties and relationships of a shift object by ID. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -192,7 +192,7 @@ public ShiftItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a shift object by ID. + /// Retrieve the properties and relationships of a shift object by ID. This API is supported in the following national cloud deployments. /// public class ShiftItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/Shifts/ShiftsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/Shifts/ShiftsRequestBuilder.cs index 437cbaae72e..9d12de78fee 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/Shifts/ShiftsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/Shifts/ShiftsRequestBuilder.cs @@ -42,7 +42,7 @@ public ShiftsRequestBuilder(Dictionary pathParameters, IRequestA public ShiftsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/schedule/shifts{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get the list of shift instances in a schedule. + /// Get the list of shift instances in a schedule. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ShiftCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new shift instance in a schedule. The duration of a shift cannot be less than 1 minute or longer than 24 hours. + /// Create a new shift instance in a schedule. The duration of a shift cannot be less than 1 minute or longer than 24 hours. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(Shift body, Action(requestInfo, Shift.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of shift instances in a schedule. + /// Get the list of shift instances in a schedule. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new shift instance in a schedule. The duration of a shift cannot be less than 1 minute or longer than 24 hours. + /// Create a new shift instance in a schedule. The duration of a shift cannot be less than 1 minute or longer than 24 hours. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ShiftsRequestBuilder WithUrl(string rawUrl) { return new ShiftsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of shift instances in a schedule. + /// Get the list of shift instances in a schedule. This API is supported in the following national cloud deployments. /// public class ShiftsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.cs index cd491cd8ca6..da355371eaa 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a swapShiftsChangeRequest object. + /// Retrieve the properties and relationships of a swapShiftsChangeRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a swapShiftsChangeRequest object. + /// Retrieve the properties and relationships of a swapShiftsChangeRequest object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public SwapShiftsChangeRequestItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a swapShiftsChangeRequest object. + /// Retrieve the properties and relationships of a swapShiftsChangeRequest object. This API is supported in the following national cloud deployments. /// public class SwapShiftsChangeRequestItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs index b1596d79978..2270e0538e3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs @@ -42,7 +42,7 @@ public SwapShiftsChangeRequestsRequestBuilder(Dictionary pathPar public SwapShiftsChangeRequestsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/schedule/swapShiftsChangeRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of swapShiftsChangeRequest objects in the team. + /// Retrieve a list of swapShiftsChangeRequest objects in the team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, SwapShiftsChangeRequestCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an instance of a swapShiftsChangeRequest object. + /// Create an instance of a swapShiftsChangeRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(SwapShiftsChangeRequest bod return await RequestAdapter.SendAsync(requestInfo, SwapShiftsChangeRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of swapShiftsChangeRequest objects in the team. + /// Retrieve a list of swapShiftsChangeRequest objects in the team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an instance of a swapShiftsChangeRequest object. + /// Create an instance of a swapShiftsChangeRequest object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SwapShiftsChangeRequestsRequestBuilder WithUrl(string rawUrl) { return new SwapShiftsChangeRequestsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of swapShiftsChangeRequest objects in the team. + /// Retrieve a list of swapShiftsChangeRequest objects in the team. This API is supported in the following national cloud deployments. /// public class SwapShiftsChangeRequestsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.cs index 28fc8858d60..3919de2eabd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.cs @@ -29,7 +29,7 @@ public TimeOffReasonItemRequestBuilder(Dictionary pathParameters public TimeOffReasonItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/schedule/timeOffReasons/{timeOffReason%2Did}{?%24select}", rawUrl) { } /// - /// Mark a timeOffReason as inactive by setting the isActive property. Every team must include at least one timeoff reason. This method does not remove the specified timeOffReason instance. timeOffItem instances that have been assigned this reason remain assigned to this reason. + /// Mark a timeOffReason as inactive by setting the isActive property. Every team must include at least one timeoff reason. This method doesn't remove the specified timeOffReason instance. timeOffItem instances that have been assigned this reason remain assigned to this reason. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a timeOffReason object by ID. + /// Retrieve the properties and relationships of a timeOffReason object by ID. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -91,7 +91,7 @@ public async Task PatchAsync(TimeOffReason body, Action(requestInfo, TimeOffReason.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Mark a timeOffReason as inactive by setting the isActive property. Every team must include at least one timeoff reason. This method does not remove the specified timeOffReason instance. timeOffItem instances that have been assigned this reason remain assigned to this reason. + /// Mark a timeOffReason as inactive by setting the isActive property. Every team must include at least one timeoff reason. This method doesn't remove the specified timeOffReason instance. timeOffItem instances that have been assigned this reason remain assigned to this reason. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a timeOffReason object by ID. + /// Retrieve the properties and relationships of a timeOffReason object by ID. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -192,7 +192,7 @@ public TimeOffReasonItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a timeOffReason object by ID. + /// Retrieve the properties and relationships of a timeOffReason object by ID. This API is supported in the following national cloud deployments. /// public class TimeOffReasonItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs index 17dff220976..ff603b83c36 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs @@ -42,7 +42,7 @@ public TimeOffReasonsRequestBuilder(Dictionary pathParameters, I public TimeOffReasonsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/schedule/timeOffReasons{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get the list of timeOffReasons in a schedule. + /// Get the list of timeOffReasons in a schedule. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TimeOffReasonCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new timeOffReason. + /// Create a new timeOffReason. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TimeOffReason body, Action(requestInfo, TimeOffReason.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of timeOffReasons in a schedule. + /// Get the list of timeOffReasons in a schedule. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new timeOffReason. + /// Create a new timeOffReason. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public TimeOffReasonsRequestBuilder WithUrl(string rawUrl) { return new TimeOffReasonsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of timeOffReasons in a schedule. + /// Get the list of timeOffReasons in a schedule. This API is supported in the following national cloud deployments. /// public class TimeOffReasonsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.cs index 4110729d87d..fbca58508f9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.cs @@ -29,7 +29,7 @@ public TimeOffRequestItemRequestBuilder(Dictionary pathParameter public TimeOffRequestItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/schedule/timeOffRequests/{timeOffRequest%2Did}{?%24select}", rawUrl) { } /// - /// Delete a timeOffRequest object. + /// Delete a timeOffRequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a timeoffrequest object. + /// Retrieve the properties and relationships of a timeoffrequest object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(TimeOffRequest body, Action(requestInfo, TimeOffRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a timeOffRequest object. + /// Delete a timeOffRequest object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a timeoffrequest object. + /// Retrieve the properties and relationships of a timeoffrequest object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public TimeOffRequestItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a timeoffrequest object. + /// Retrieve the properties and relationships of a timeoffrequest object. This API is supported in the following national cloud deployments. /// public class TimeOffRequestItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs index 8c8998a5fcd..565ec8cabe6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs @@ -42,7 +42,7 @@ public TimeOffRequestsRequestBuilder(Dictionary pathParameters, public TimeOffRequestsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/schedule/timeOffRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Retrieve a list of timeOffRequest objects in the team. + /// Retrieve a list of timeOffRequest objects in the team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(TimeOffRequest body, Action(requestInfo, TimeOffRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of timeOffRequest objects in the team. + /// Retrieve a list of timeOffRequest objects in the team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public TimeOffRequestsRequestBuilder WithUrl(string rawUrl) { return new TimeOffRequestsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of timeOffRequest objects in the team. + /// Retrieve a list of timeOffRequest objects in the team. This API is supported in the following national cloud deployments. /// public class TimeOffRequestsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.cs index cf355627ce9..3521722deea 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.cs @@ -29,7 +29,7 @@ public TimeOffItemRequestBuilder(Dictionary pathParameters, IReq public TimeOffItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/schedule/timesOff/{timeOff%2Did}{?%24select}", rawUrl) { } /// - /// Delete a timeOff instance from a schedule. + /// Delete a timeOff instance from a schedule. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a timeOff object by ID. + /// Retrieve the properties and relationships of a timeOff object by ID. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -91,7 +91,7 @@ public async Task PatchAsync(TimeOff body, Action(requestInfo, TimeOff.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a timeOff instance from a schedule. + /// Delete a timeOff instance from a schedule. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a timeOff object by ID. + /// Retrieve the properties and relationships of a timeOff object by ID. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -192,7 +192,7 @@ public TimeOffItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a timeOff object by ID. + /// Retrieve the properties and relationships of a timeOff object by ID. This API is supported in the following national cloud deployments. /// public class TimeOffItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimesOff/TimesOffRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimesOff/TimesOffRequestBuilder.cs index 7a2df8317c0..33452a73a8d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimesOff/TimesOffRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimesOff/TimesOffRequestBuilder.cs @@ -42,7 +42,7 @@ public TimesOffRequestBuilder(Dictionary pathParameters, IReques public TimesOffRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/schedule/timesOff{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get the list of timeOff instances in a schedule. + /// Get the list of timeOff instances in a schedule. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TimeOffCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new timeOff instance in a schedule. + /// Create a new timeOff instance in a schedule. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TimeOff body, Action(requestInfo, TimeOff.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of timeOff instances in a schedule. + /// Get the list of timeOff instances in a schedule. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new timeOff instance in a schedule. + /// Create a new timeOff instance in a schedule. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public TimesOffRequestBuilder WithUrl(string rawUrl) { return new TimesOffRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of timeOff instances in a schedule. + /// Get the list of timeOff instances in a schedule. This API is supported in the following national cloud deployments. /// public class TimesOffRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs index 903fe8ed1a0..fdf9b3e6a55 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs @@ -28,7 +28,7 @@ public SendActivityNotificationRequestBuilder(Dictionary pathPar public SendActivityNotificationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/sendActivityNotification", rawUrl) { } /// - /// Send an activity feed notification in the scope of a team. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. + /// Send an activity feed notification in the scope of a team. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SendActivityNotificationPostRequestBody body, Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send an activity feed notification in the scope of a team. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. + /// Send an activity feed notification in the scope of a team. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs index 3ca09135843..1fefef1c157 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs @@ -29,7 +29,7 @@ public TeamworkTagMemberItemRequestBuilder(Dictionary pathParame public TeamworkTagMemberItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/tags/{teamworkTag%2Did}/members/{teamworkTagMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a member from a standard tag in a team. + /// Delete a member from a standard tag in a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get the properties and relationships of a member of a standard tag in a team. + /// Get the properties and relationships of a member of a standard tag in a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(TeamworkTagMember body, Action(requestInfo, TeamworkTagMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a member from a standard tag in a team. + /// Delete a member from a standard tag in a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties and relationships of a member of a standard tag in a team. + /// Get the properties and relationships of a member of a standard tag in a team. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public TeamworkTagMemberItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the properties and relationships of a member of a standard tag in a team. + /// Get the properties and relationships of a member of a standard tag in a team. This API is supported in the following national cloud deployments. /// public class TeamworkTagMemberItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/MembersRequestBuilder.cs index ed1a3023ba9..89c5e4310fc 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/MembersRequestBuilder.cs @@ -42,7 +42,7 @@ public MembersRequestBuilder(Dictionary pathParameters, IRequest public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/tags/{teamworkTag%2Did}/members{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the members of a standard tag in a team and their properties. + /// Get a list of the members of a standard tag in a team and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TeamworkTagMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new teamworkTagMember object in a team. + /// Create a new teamworkTagMember object in a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TeamworkTagMember body, Action(requestInfo, TeamworkTagMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the members of a standard tag in a team and their properties. + /// Get a list of the members of a standard tag in a team and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new teamworkTagMember object in a team. + /// Create a new teamworkTagMember object in a team. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public MembersRequestBuilder WithUrl(string rawUrl) { return new MembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the members of a standard tag in a team and their properties. + /// Get a list of the members of a standard tag in a team and their properties. This API is supported in the following national cloud deployments. /// public class MembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs index 1a0ace5e810..1cb32e76d43 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs @@ -34,7 +34,7 @@ public TeamworkTagItemRequestBuilder(Dictionary pathParameters, public TeamworkTagItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/tags/{teamworkTag%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a tag object permanently. + /// Delete a tag object permanently. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a tag object. + /// Read the properties and relationships of a tag object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, TeamworkTag.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a tag object. + /// Update the properties of a tag object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(TeamworkTag body, Action(requestInfo, TeamworkTag.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a tag object permanently. + /// Delete a tag object permanently. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a tag object. + /// Read the properties and relationships of a tag object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a tag object. + /// Update the properties of a tag object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public TeamworkTagItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a tag object. + /// Read the properties and relationships of a tag object. This API is supported in the following national cloud deployments. /// public class TeamworkTagItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/TagsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/TagsRequestBuilder.cs index 5d60350cf16..fb1b68724b0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/TagsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/TagsRequestBuilder.cs @@ -42,7 +42,7 @@ public TagsRequestBuilder(Dictionary pathParameters, IRequestAda public TagsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/tags{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the tag objects and their properties. + /// Get a list of the tag objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, TeamworkTagCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a standard tag for members in a team. + /// Create a standard tag for members in a team. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(TeamworkTag body, Action(requestInfo, TeamworkTag.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the tag objects and their properties. + /// Get a list of the tag objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a standard tag for members in a team. + /// Create a standard tag for members in a team. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public TagsRequestBuilder WithUrl(string rawUrl) { return new TagsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the tag objects and their properties. + /// Get a list of the tag objects and their properties. This API is supported in the following national cloud deployments. /// public class TagsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Unarchive/UnarchiveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Unarchive/UnarchiveRequestBuilder.cs index 3259ba4926f..f88ff7a5394 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Unarchive/UnarchiveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Unarchive/UnarchiveRequestBuilder.cs @@ -28,7 +28,7 @@ public UnarchiveRequestBuilder(Dictionary pathParameters, IReque public UnarchiveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/unarchive", rawUrl) { } /// - /// Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. + /// Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. + /// Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/JoinedTeamsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/JoinedTeamsRequestBuilder.cs index 63da0bc5b16..442c8e0b4e9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/JoinedTeamsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/JoinedTeamsRequestBuilder.cs @@ -47,7 +47,7 @@ public JoinedTeamsRequestBuilder(Dictionary pathParameters, IReq public JoinedTeamsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the teams in Microsoft Teams that the user is a direct member of. + /// Get the teams in Microsoft Teams that the user is a direct member of. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -88,7 +88,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Team.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the teams in Microsoft Teams that the user is a direct member of. + /// Get the teams in Microsoft Teams that the user is a direct member of. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -149,7 +149,7 @@ public JoinedTeamsRequestBuilder WithUrl(string rawUrl) { return new JoinedTeamsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the teams in Microsoft Teams that the user is a direct member of. + /// Get the teams in Microsoft Teams that the user is a direct member of. This API is supported in the following national cloud deployments. /// public class JoinedTeamsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/LicenseDetails/LicenseDetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/LicenseDetails/LicenseDetailsRequestBuilder.cs index 221641f05a3..1c512a18f7c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/LicenseDetails/LicenseDetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/LicenseDetails/LicenseDetailsRequestBuilder.cs @@ -42,7 +42,7 @@ public LicenseDetailsRequestBuilder(Dictionary pathParameters, I public LicenseDetailsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/licenseDetails{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of licenseDetails objects for enterprise users. This API returns details for licenses that are directly assigned and those transitively assigned through memberships in licensed groups. + /// Retrieve a list of licenseDetails objects for enterprise users. This API returns details for licenses that are directly assigned and those transitively assigned through memberships in licensed groups. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.LicenseDetails.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of licenseDetails objects for enterprise users. This API returns details for licenses that are directly assigned and those transitively assigned through memberships in licensed groups. + /// Retrieve a list of licenseDetails objects for enterprise users. This API returns details for licenses that are directly assigned and those transitively assigned through memberships in licensed groups. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public LicenseDetailsRequestBuilder WithUrl(string rawUrl) { return new LicenseDetailsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of licenseDetails objects for enterprise users. This API returns details for licenses that are directly assigned and those transitively assigned through memberships in licensed groups. + /// Retrieve a list of licenseDetails objects for enterprise users. This API returns details for licenses that are directly assigned and those transitively assigned through memberships in licensed groups. This API is supported in the following national cloud deployments. /// public class LicenseDetailsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..a10a68ad184 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.MailFolders.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(MailFolder.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Delta/DeltaRequestBuilder.cs index 616767ad308..ad64885e833 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. + /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. + /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. + /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Delta/DeltaResponse.cs index 36a54922ee0..f89ead42e40 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.MailFolders.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(MailFolder.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs index 893fbac3b7a..7f451079c4a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, MailFolderCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. - /// Find more info here + /// Create a new mailSearchFolder in the specified user's mailbox. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. + /// Create a new mailSearchFolder in the specified user's mailbox. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..3ea929f61d1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.MailFolders.Item.ChildFolders.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(MailFolder.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs index b0a16255b1e..f85881e306e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. + /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. + /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. + /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Delta/DeltaResponse.cs index 4219820f4b2..18380b9c062 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.MailFolders.Item.ChildFolders.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(MailFolder.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Copy/CopyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Copy/CopyRequestBuilder.cs index 46cf04c5c8d..7471ded174d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Copy/CopyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Copy/CopyRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyRequestBuilder(Dictionary pathParameters, IRequestAda public CopyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/copy", rawUrl) { } /// - /// Copy a mailfolder and its contents to another mailfolder. + /// Copy a mailfolder and its contents to another mailfolder. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyPostRequestBody body, Action(requestInfo, MailFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a mailfolder and its contents to another mailfolder. + /// Copy a mailfolder and its contents to another mailfolder. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs index 8eb8453d1a2..0affe99b33c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs @@ -29,7 +29,7 @@ public MessageRuleItemRequestBuilder(Dictionary pathParameters, public MessageRuleItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messageRules/{messageRule%2Did}{?%24select}", rawUrl) { } /// - /// Delete the specified messageRule object. + /// Delete the specified messageRule object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get the properties and relationships of a messageRule object. + /// Get the properties and relationships of a messageRule object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, MessageRule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Change writable properties on a messageRule object and save the changes. + /// Change writable properties on a messageRule object and save the changes. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(MessageRule body, Action(requestInfo, MessageRule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete the specified messageRule object. + /// Delete the specified messageRule object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties and relationships of a messageRule object. + /// Get the properties and relationships of a messageRule object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Change writable properties on a messageRule object and save the changes. + /// Change writable properties on a messageRule object and save the changes. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public MessageRuleItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the properties and relationships of a messageRule object. + /// Get the properties and relationships of a messageRule object. This API is supported in the following national cloud deployments. /// public class MessageRuleItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/MessageRulesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/MessageRulesRequestBuilder.cs index a9d54bdeb74..4a00531133a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/MessageRulesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/MessageRulesRequestBuilder.cs @@ -42,7 +42,7 @@ public MessageRulesRequestBuilder(Dictionary pathParameters, IRe public MessageRulesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messageRules{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get all the messageRule objects defined for the user's inbox. + /// Get all the messageRule objects defined for the user's inbox. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, MessageRuleCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. + /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(MessageRule body, Action(requestInfo, MessageRule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get all the messageRule objects defined for the user's inbox. + /// Get all the messageRule objects defined for the user's inbox. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. + /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public MessageRulesRequestBuilder WithUrl(string rawUrl) { return new MessageRulesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get all the messageRule objects defined for the user's inbox. + /// Get all the messageRule objects defined for the user's inbox. This API is supported in the following national cloud deployments. /// public class MessageRulesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..89423a6ed9d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaRequestBuilder.cs index 14a222dd084..fd519a288e2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaResponse.cs index 89fe8e86f8c..d3f55b9b753 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index 317cc474252..c8b1f90d9c4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/attachments{?%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects attached to a message. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects attached to a message. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects attached to a message. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 05980fc360d..07198d21f41 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 620d664921f..bf0c36cc1f6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public AttachmentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. This API is supported in the following national cloud deployments. /// public class AttachmentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Copy/CopyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Copy/CopyRequestBuilder.cs index bca244751d0..267019f6b00 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Copy/CopyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Copy/CopyRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyRequestBuilder(Dictionary pathParameters, IRequestAda public CopyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/copy", rawUrl) { } /// - /// Copy a message to a folder within the user's mailbox. + /// Copy a message to a folder within the user's mailbox. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public CopyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a message to a folder within the user's mailbox. + /// Copy a message to a folder within the user's mailbox. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs index a1fb6efe2ee..da32d782ff4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateForwardRequestBuilder(Dictionary pathParameters, IR public CreateForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/createForward", rawUrl) { } /// - /// Create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. + /// Create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public CreateForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. + /// Create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs index caa30b60176..159de5632b5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateReplyRequestBuilder(Dictionary pathParameters, IReq public CreateReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/createReply", rawUrl) { } /// - /// Create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. + /// Create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public CreateReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. + /// Create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs index c445d6570bf..e339a4a1c1a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateReplyAllRequestBuilder(Dictionary pathParameters, I public CreateReplyAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/createReplyAll", rawUrl) { } /// - /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. + /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public CreateReplyAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapte return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. + /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs index 63aaa832b8d..1a10d29c74f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index aba8e7665bb..26bfac981f3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -29,7 +29,7 @@ public ExtensionItemRequestBuilder(Dictionary pathParameters, IR public ExtensionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/extensions/{extension%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an open extension (openTypeExtension object) from the specified instance of a resource. For the list of resources that support open extensions, see the table in the Permissions section. + /// Delete an open extension (openTypeExtension object) from the specified instance of a resource. For the list of resources that support open extensions, see the table in the Permissions section. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an open extension (openTypeExtension object) from the specified instance of a resource. For the list of resources that support open extensions, see the table in the Permissions section. + /// Delete an open extension (openTypeExtension object) from the specified instance of a resource. For the list of resources that support open extensions, see the table in the Permissions section. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.cs index f357f0dcd12..beb0b1762df 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/forward", rawUrl) { } /// - /// Forward a message using either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to forward a message, and send it later. + /// Forward a message using either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to forward a message, and send it later. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// Forward a message using either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to forward a message, and send it later. + /// Forward a message using either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to forward a message, and send it later. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Move/MoveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Move/MoveRequestBuilder.cs index dfa97af7668..71f613cf5de 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Move/MoveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Move/MoveRequestBuilder.cs @@ -29,7 +29,7 @@ public MoveRequestBuilder(Dictionary pathParameters, IRequestAda public MoveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/move", rawUrl) { } /// - /// Move a message to another folder within the specified user's mailbox. This creates a new copy of the message in the destination folder and removes the original message. + /// Move a message to another folder within the specified user's mailbox. This creates a new copy of the message in the destination folder and removes the original message. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public MoveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Move a message to another folder within the specified user's mailbox. This creates a new copy of the message in the destination folder and removes the original message. + /// Move a message to another folder within the specified user's mailbox. This creates a new copy of the message in the destination folder and removes the original message. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.cs index 705167247b5..b1cd27b3ad6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.cs @@ -28,7 +28,7 @@ public ReplyRequestBuilder(Dictionary pathParameters, IRequestAd public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/reply", rawUrl) { } /// - /// Reply to the sender of a message using either JSON or MIME format. When using JSON format:* Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.* If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply to an existing message and send it later. + /// Reply to the sender of a message using either JSON or MIME format. When using JSON format:* Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.* If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply to an existing message and send it later. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ReplyPostRequestBody body, Action - /// Reply to the sender of a message using either JSON or MIME format. When using JSON format:* Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.* If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply to an existing message and send it later. + /// Reply to the sender of a message using either JSON or MIME format. When using JSON format:* Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.* If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply to an existing message and send it later. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs index 48a7cce46a3..791033d4d63 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs @@ -28,7 +28,7 @@ public ReplyAllRequestBuilder(Dictionary pathParameters, IReques public ReplyAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/replyAll", rawUrl) { } /// - /// Reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message and send it later. + /// Reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message and send it later. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ReplyAllPostRequestBody body, Action - /// Reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message and send it later. + /// Reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message and send it later. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Send/SendRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Send/SendRequestBuilder.cs index b11c03977fd..470b3fdb2d3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Send/SendRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Send/SendRequestBuilder.cs @@ -28,7 +28,7 @@ public SendRequestBuilder(Dictionary pathParameters, IRequestAda public SendRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/send", rawUrl) { } /// - /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. + /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action r await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. + /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/MessagesRequestBuilder.cs index 389526cff95..61664d92473 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/MessagesRequestBuilder.cs @@ -47,7 +47,7 @@ public MessagesRequestBuilder(Dictionary pathParameters, IReques public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get all the messages in the specified user's mailbox, or those messages in a specified folder in the mailbox. + /// Get all the messages in the specified user's mailbox, or those messages in a specified folder in the mailbox. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, MessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to create a new Message in a mailfolder. + /// Use this API to create a new Message in a mailfolder. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get all the messages in the specified user's mailbox, or those messages in a specified folder in the mailbox. + /// Get all the messages in the specified user's mailbox, or those messages in a specified folder in the mailbox. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Message in a mailfolder. + /// Use this API to create a new Message in a mailfolder. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public MessagesRequestBuilder WithUrl(string rawUrl) { return new MessagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get all the messages in the specified user's mailbox, or those messages in a specified folder in the mailbox. + /// Get all the messages in the specified user's mailbox, or those messages in a specified folder in the mailbox. This API is supported in the following national cloud deployments. /// public class MessagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Move/MoveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Move/MoveRequestBuilder.cs index acdae55975e..eb220013c60 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Move/MoveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Move/MoveRequestBuilder.cs @@ -29,7 +29,7 @@ public MoveRequestBuilder(Dictionary pathParameters, IRequestAda public MoveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/move", rawUrl) { } /// - /// Move a mailfolder and its contents to another mailfolder. + /// Move a mailfolder and its contents to another mailfolder. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(MovePostRequestBody body, Action(requestInfo, MailFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Move a mailfolder and its contents to another mailfolder. + /// Move a mailfolder and its contents to another mailfolder. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Copy/CopyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Copy/CopyRequestBuilder.cs index fcd8b4a6032..ddf45559502 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Copy/CopyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Copy/CopyRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyRequestBuilder(Dictionary pathParameters, IRequestAda public CopyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/copy", rawUrl) { } /// - /// Copy a mailfolder and its contents to another mailfolder. + /// Copy a mailfolder and its contents to another mailfolder. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyPostRequestBody body, Action(requestInfo, MailFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a mailfolder and its contents to another mailfolder. + /// Copy a mailfolder and its contents to another mailfolder. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.cs index 38028906776..d16255750f0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.cs @@ -54,7 +54,7 @@ public MailFolderItemRequestBuilder(Dictionary pathParameters, I public MailFolderItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}{?includeHiddenFolders*,%24select,%24expand}", rawUrl) { } /// - /// Delete the specified mailFolder. The folder can be a mailSearchFolder. You can specify a mail folder by its folder ID, or by its well-known folder name, if one exists. + /// Delete the specified mailFolder. The folder can be a mailSearchFolder. You can specify a mail folder by its folder ID, or by its well-known folder name, if one exists. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -94,7 +94,7 @@ public async Task GetAsync(Action(requestInfo, MailFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the writable properties of a mailSearchFolder object. + /// Update the writable properties of a mailSearchFolder object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -116,7 +116,7 @@ public async Task PatchAsync(MailFolder body, Action(requestInfo, MailFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete the specified mailFolder. The folder can be a mailSearchFolder. You can specify a mail folder by its folder ID, or by its well-known folder name, if one exists. + /// Delete the specified mailFolder. The folder can be a mailSearchFolder. You can specify a mail folder by its folder ID, or by its well-known folder name, if one exists. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -166,7 +166,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the writable properties of a mailSearchFolder object. + /// Update the writable properties of a mailSearchFolder object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs index b7eadf2c408..d6a7c47b8ef 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs @@ -29,7 +29,7 @@ public MessageRuleItemRequestBuilder(Dictionary pathParameters, public MessageRuleItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messageRules/{messageRule%2Did}{?%24select}", rawUrl) { } /// - /// Delete the specified messageRule object. + /// Delete the specified messageRule object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get the properties and relationships of a messageRule object. + /// Get the properties and relationships of a messageRule object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, MessageRule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Change writable properties on a messageRule object and save the changes. + /// Change writable properties on a messageRule object and save the changes. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(MessageRule body, Action(requestInfo, MessageRule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete the specified messageRule object. + /// Delete the specified messageRule object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties and relationships of a messageRule object. + /// Get the properties and relationships of a messageRule object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Change writable properties on a messageRule object and save the changes. + /// Change writable properties on a messageRule object and save the changes. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public MessageRuleItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the properties and relationships of a messageRule object. + /// Get the properties and relationships of a messageRule object. This API is supported in the following national cloud deployments. /// public class MessageRuleItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MessageRules/MessageRulesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MessageRules/MessageRulesRequestBuilder.cs index f3ca488d33d..c7f9b55f5ca 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MessageRules/MessageRulesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MessageRules/MessageRulesRequestBuilder.cs @@ -42,7 +42,7 @@ public MessageRulesRequestBuilder(Dictionary pathParameters, IRe public MessageRulesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messageRules{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get all the messageRule objects defined for the user's inbox. + /// Get all the messageRule objects defined for the user's inbox. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, MessageRuleCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. + /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(MessageRule body, Action(requestInfo, MessageRule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get all the messageRule objects defined for the user's inbox. + /// Get all the messageRule objects defined for the user's inbox. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. + /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public MessageRulesRequestBuilder WithUrl(string rawUrl) { return new MessageRulesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get all the messageRule objects defined for the user's inbox. + /// Get all the messageRule objects defined for the user's inbox. This API is supported in the following national cloud deployments. /// public class MessageRulesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..a45e591cd77 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.MailFolders.Item.Messages.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Delta/DeltaRequestBuilder.cs index 1e1e4e726e1..47e786e765f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Delta/DeltaResponse.cs index 6d13d5ed243..3e5094af128 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.MailFolders.Item.Messages.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index f43ec569458..c54351bc090 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/attachments{?%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects attached to a message. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects attached to a message. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects attached to a message. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 2bdff2f3ca7..2b3415a83b6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 5e9ec167955..6f67ddcccff 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public AttachmentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. This API is supported in the following national cloud deployments. /// public class AttachmentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Copy/CopyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Copy/CopyRequestBuilder.cs index 57d518f0341..6384a8d98d2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Copy/CopyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Copy/CopyRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyRequestBuilder(Dictionary pathParameters, IRequestAda public CopyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/copy", rawUrl) { } /// - /// Copy a message to a folder within the user's mailbox. + /// Copy a message to a folder within the user's mailbox. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public CopyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a message to a folder within the user's mailbox. + /// Copy a message to a folder within the user's mailbox. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs index 82ebf37238f..05b03e9d4e2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateForwardRequestBuilder(Dictionary pathParameters, IR public CreateForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/createForward", rawUrl) { } /// - /// Create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. + /// Create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public CreateForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. + /// Create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs index 4b1d7139a2e..c99b2a6c1fb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateReplyRequestBuilder(Dictionary pathParameters, IReq public CreateReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/createReply", rawUrl) { } /// - /// Create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. + /// Create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public CreateReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. + /// Create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs index 9d340a5a3d0..94dee4f84ce 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateReplyAllRequestBuilder(Dictionary pathParameters, I public CreateReplyAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/createReplyAll", rawUrl) { } /// - /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. + /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public CreateReplyAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapte return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. + /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs index d3ee31f09c8..b9db860e69b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 0eb7da4a34e..f97fd8462e5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -29,7 +29,7 @@ public ExtensionItemRequestBuilder(Dictionary pathParameters, IR public ExtensionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/extensions/{extension%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an open extension (openTypeExtension object) from the specified instance of a resource. For the list of resources that support open extensions, see the table in the Permissions section. + /// Delete an open extension (openTypeExtension object) from the specified instance of a resource. For the list of resources that support open extensions, see the table in the Permissions section. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an open extension (openTypeExtension object) from the specified instance of a resource. For the list of resources that support open extensions, see the table in the Permissions section. + /// Delete an open extension (openTypeExtension object) from the specified instance of a resource. For the list of resources that support open extensions, see the table in the Permissions section. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.cs index 745bf675cb5..2bf913212b6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/forward", rawUrl) { } /// - /// Forward a message using either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to forward a message, and send it later. + /// Forward a message using either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to forward a message, and send it later. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// Forward a message using either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to forward a message, and send it later. + /// Forward a message using either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to forward a message, and send it later. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Move/MoveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Move/MoveRequestBuilder.cs index 5d09d374395..ff313361c58 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Move/MoveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Move/MoveRequestBuilder.cs @@ -29,7 +29,7 @@ public MoveRequestBuilder(Dictionary pathParameters, IRequestAda public MoveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/move", rawUrl) { } /// - /// Move a message to another folder within the specified user's mailbox. This creates a new copy of the message in the destination folder and removes the original message. + /// Move a message to another folder within the specified user's mailbox. This creates a new copy of the message in the destination folder and removes the original message. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public MoveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Move a message to another folder within the specified user's mailbox. This creates a new copy of the message in the destination folder and removes the original message. + /// Move a message to another folder within the specified user's mailbox. This creates a new copy of the message in the destination folder and removes the original message. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.cs index 499a8353e8b..e9e9055ffd0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.cs @@ -28,7 +28,7 @@ public ReplyRequestBuilder(Dictionary pathParameters, IRequestAd public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/reply", rawUrl) { } /// - /// Reply to the sender of a message using either JSON or MIME format. When using JSON format:* Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.* If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply to an existing message and send it later. + /// Reply to the sender of a message using either JSON or MIME format. When using JSON format:* Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.* If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply to an existing message and send it later. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ReplyPostRequestBody body, Action - /// Reply to the sender of a message using either JSON or MIME format. When using JSON format:* Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.* If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply to an existing message and send it later. + /// Reply to the sender of a message using either JSON or MIME format. When using JSON format:* Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.* If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply to an existing message and send it later. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs index b3bf2f28f8d..7dd6c8c728a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs @@ -28,7 +28,7 @@ public ReplyAllRequestBuilder(Dictionary pathParameters, IReques public ReplyAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/replyAll", rawUrl) { } /// - /// Reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message and send it later. + /// Reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message and send it later. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ReplyAllPostRequestBody body, Action - /// Reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message and send it later. + /// Reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message and send it later. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Send/SendRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Send/SendRequestBuilder.cs index f9b02b45ed5..55f7d110d7f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Send/SendRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Send/SendRequestBuilder.cs @@ -28,7 +28,7 @@ public SendRequestBuilder(Dictionary pathParameters, IRequestAda public SendRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/send", rawUrl) { } /// - /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. + /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action r await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. + /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/MessagesRequestBuilder.cs index 24b623e50c7..f85c33c4c4c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/MessagesRequestBuilder.cs @@ -47,7 +47,7 @@ public MessagesRequestBuilder(Dictionary pathParameters, IReques public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get all the messages in the specified user's mailbox, or those messages in a specified folder in the mailbox. + /// Get all the messages in the specified user's mailbox, or those messages in a specified folder in the mailbox. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, MessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to create a new Message in a mailfolder. + /// Use this API to create a new Message in a mailfolder. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get all the messages in the specified user's mailbox, or those messages in a specified folder in the mailbox. + /// Get all the messages in the specified user's mailbox, or those messages in a specified folder in the mailbox. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Message in a mailfolder. + /// Use this API to create a new Message in a mailfolder. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public MessagesRequestBuilder WithUrl(string rawUrl) { return new MessagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get all the messages in the specified user's mailbox, or those messages in a specified folder in the mailbox. + /// Get all the messages in the specified user's mailbox, or those messages in a specified folder in the mailbox. This API is supported in the following national cloud deployments. /// public class MessagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Move/MoveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Move/MoveRequestBuilder.cs index 4b6a9df3ad9..d2eee1a7415 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Move/MoveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Move/MoveRequestBuilder.cs @@ -29,7 +29,7 @@ public MoveRequestBuilder(Dictionary pathParameters, IRequestAda public MoveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/move", rawUrl) { } /// - /// Move a mailfolder and its contents to another mailfolder. + /// Move a mailfolder and its contents to another mailfolder. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(MovePostRequestBody body, Action(requestInfo, MailFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Move a mailfolder and its contents to another mailfolder. + /// Move a mailfolder and its contents to another mailfolder. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/MailFoldersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/MailFoldersRequestBuilder.cs index 517207dc8e3..b5dc3694296 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/MailFoldersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/MailFoldersRequestBuilder.cs @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, MailFolderCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to create a new mail folder in the root folder of the user's mailbox. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. + /// Use this API to create a new mail folder in the root folder of the user's mailbox. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new mail folder in the root folder of the user's mailbox. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. + /// Use this API to create a new mail folder in the root folder of the user's mailbox. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlPostResponse.cs new file mode 100644 index 00000000000..e23da684cd3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlPostResponse.cs @@ -0,0 +1,64 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.ManagedDevices.Item.LogCollectionRequests.Item.CreateDownloadUrl { + public class CreateDownloadUrlPostResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public string Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Instantiates a new createDownloadUrlPostResponse and sets the default values. + /// + public CreateDownloadUrlPostResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static CreateDownloadUrlPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CreateDownloadUrlPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.cs index 2b1da17ed86..b1bfc3f0620 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.cs @@ -33,6 +33,26 @@ public CreateDownloadUrlRequestBuilder(string rawUrl, IRequestAdapter requestAda /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsCreateDownloadUrlPostResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsCreateDownloadUrlPostResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CreateDownloadUrlPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action createDownloadUrl + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsCreateDownloadUrlPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlResponse.cs index fdb2c9febe5..ae9cdc914ff 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlResponse.cs @@ -1,64 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.ManagedDevices.Item.LogCollectionRequests.Item.CreateDownloadUrl { - public class CreateDownloadUrlResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public string Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } -#endif - /// - /// Instantiates a new createDownloadUrlResponse and sets the default values. - /// - public CreateDownloadUrlResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use createDownloadUrlPostResponse instead.")] + public class CreateDownloadUrlResponse : CreateDownloadUrlPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static CreateDownloadUrlResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CreateDownloadUrlResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CreateDownloadUrlResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Manager/ManagerRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Manager/ManagerRequestBuilder.cs index 958b6211291..9c95ac9f56f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Manager/ManagerRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Manager/ManagerRequestBuilder.cs @@ -34,7 +34,7 @@ public ManagerRequestBuilder(Dictionary pathParameters, IRequest public ManagerRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/manager{?%24select,%24expand}", rawUrl) { } /// - /// Remove a user's manager. + /// Remove a user's manager. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. + /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Remove a user's manager. + /// Remove a user's manager. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -98,7 +98,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. + /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,7 +147,7 @@ public ManagerRequestBuilderDeleteRequestConfiguration() { } } /// - /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. + /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. This API is supported in the following national cloud deployments. /// public class ManagerRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Manager/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Manager/Ref/RefRequestBuilder.cs index 2afbf59dba5..f6a8d84d1b8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Manager/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Manager/Ref/RefRequestBuilder.cs @@ -29,7 +29,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/manager/$ref", rawUrl) { } /// - /// Remove a user's manager. + /// Remove a user's manager. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. + /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Assign a user's manager. + /// Assign a user's manager. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PutAsync(ReferenceUpdate body, Action - /// Remove a user's manager. + /// Remove a user's manager. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. + /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Assign a user's manager. + /// Assign a user's manager. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..9dfc9b85f89 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.Messages.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Delta/DeltaRequestBuilder.cs index e1d038c3617..5dafb4494a3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Delta/DeltaRequestBuilder.cs @@ -28,12 +28,33 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/messages/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. This API is supported in the following national cloud deployments. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Delta/DeltaResponse.cs index 8fbcb784c89..7c6fed6e0bb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.Messages.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index 48667fee716..759d471b78f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/attachments{?%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects attached to a message. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects attached to a message. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects attached to a message. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index b64ac07d8b1..ed19e1949de 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index f2833e1a5a9..861934ae1e6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public AttachmentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. This API is supported in the following national cloud deployments. /// public class AttachmentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Copy/CopyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Copy/CopyRequestBuilder.cs index e8c23d2a419..81c6ca4b8e3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Copy/CopyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Copy/CopyRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyRequestBuilder(Dictionary pathParameters, IRequestAda public CopyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/copy", rawUrl) { } /// - /// Copy a message to a folder within the user's mailbox. + /// Copy a message to a folder within the user's mailbox. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public CopyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a message to a folder within the user's mailbox. + /// Copy a message to a folder within the user's mailbox. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs index 7c67bf9a0f1..78b9eeae880 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateForwardRequestBuilder(Dictionary pathParameters, IR public CreateForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/createForward", rawUrl) { } /// - /// Create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. + /// Create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public CreateForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. + /// Create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs index 51d75da4724..1041ff1f174 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateReplyRequestBuilder(Dictionary pathParameters, IReq public CreateReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/createReply", rawUrl) { } /// - /// Create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. + /// Create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public CreateReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. + /// Create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs index 9ac465117f6..b2f2f8afbb6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateReplyAllRequestBuilder(Dictionary pathParameters, I public CreateReplyAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/createReplyAll", rawUrl) { } /// - /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. + /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public CreateReplyAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapte return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. + /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs index d40cd2f058d..1a9460ea518 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs @@ -42,7 +42,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/extensions{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -83,7 +83,7 @@ public async Task PostAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public ExtensionsRequestBuilder WithUrl(string rawUrl) { return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index e0c77642e68..6a3fc74bf75 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -29,7 +29,7 @@ public ExtensionItemRequestBuilder(Dictionary pathParameters, IR public ExtensionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/extensions/{extension%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an open extension (openTypeExtension object) from the specified instance of a resource. For the list of resources that support open extensions, see the table in the Permissions section. + /// Delete an open extension (openTypeExtension object) from the specified instance of a resource. For the list of resources that support open extensions, see the table in the Permissions section. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(Extension body, Action(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an open extension (openTypeExtension object) from the specified instance of a resource. For the list of resources that support open extensions, see the table in the Permissions section. + /// Delete an open extension (openTypeExtension object) from the specified instance of a resource. For the list of resources that support open extensions, see the table in the Permissions section. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public ExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. This API is supported in the following national cloud deployments. /// public class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Forward/ForwardRequestBuilder.cs index 09a486c082a..761715c1329 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Forward/ForwardRequestBuilder.cs @@ -28,7 +28,7 @@ public ForwardRequestBuilder(Dictionary pathParameters, IRequest public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/forward", rawUrl) { } /// - /// Forward a message using either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to forward a message, and send it later. + /// Forward a message using either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to forward a message, and send it later. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ForwardPostRequestBody body, Action - /// Forward a message using either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to forward a message, and send it later. + /// Forward a message using either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to forward a message, and send it later. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs index 5e7ebead962..a7dcff313a0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs @@ -89,8 +89,8 @@ public MessageItemRequestBuilder(Dictionary pathParameters, IReq public MessageItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}{?includeHiddenMessages*,%24select,%24expand}", rawUrl) { } /// - /// Delete eventMessage. - /// Find more info here + /// Delete a message in the specified user's mailbox, or delete a relationship of the message. This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -110,7 +110,7 @@ public async Task DeleteAsync(Action /// The messages in a mailbox or folder. Read-only. Nullable. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -129,7 +129,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a message object. + /// Update the properties of a message object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -151,7 +151,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete eventMessage. + /// Delete a message in the specified user's mailbox, or delete a relationship of the message. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -201,7 +201,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a message object. + /// Update the properties of a message object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Move/MoveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Move/MoveRequestBuilder.cs index abdd63fa311..641eec5914b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Move/MoveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Move/MoveRequestBuilder.cs @@ -29,7 +29,7 @@ public MoveRequestBuilder(Dictionary pathParameters, IRequestAda public MoveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/move", rawUrl) { } /// - /// Move a message to another folder within the specified user's mailbox. This creates a new copy of the message in the destination folder and removes the original message. + /// Move a message to another folder within the specified user's mailbox. This creates a new copy of the message in the destination folder and removes the original message. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public MoveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Move a message to another folder within the specified user's mailbox. This creates a new copy of the message in the destination folder and removes the original message. + /// Move a message to another folder within the specified user's mailbox. This creates a new copy of the message in the destination folder and removes the original message. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Reply/ReplyRequestBuilder.cs index e53caaa47c2..e8e4c49f791 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Reply/ReplyRequestBuilder.cs @@ -28,7 +28,7 @@ public ReplyRequestBuilder(Dictionary pathParameters, IRequestAd public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/reply", rawUrl) { } /// - /// Reply to the sender of a message using either JSON or MIME format. When using JSON format:* Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.* If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply to an existing message and send it later. + /// Reply to the sender of a message using either JSON or MIME format. When using JSON format:* Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.* If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply to an existing message and send it later. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ReplyPostRequestBody body, Action - /// Reply to the sender of a message using either JSON or MIME format. When using JSON format:* Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.* If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply to an existing message and send it later. + /// Reply to the sender of a message using either JSON or MIME format. When using JSON format:* Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.* If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply to an existing message and send it later. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs index 4482c2adf69..83a5da78868 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs @@ -28,7 +28,7 @@ public ReplyAllRequestBuilder(Dictionary pathParameters, IReques public ReplyAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/replyAll", rawUrl) { } /// - /// Reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message and send it later. + /// Reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message and send it later. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ReplyAllPostRequestBody body, Action - /// Reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message and send it later. + /// Reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message and send it later. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Send/SendRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Send/SendRequestBuilder.cs index 84752f95176..6aa49b2f3c4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Send/SendRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Send/SendRequestBuilder.cs @@ -28,7 +28,7 @@ public SendRequestBuilder(Dictionary pathParameters, IRequestAda public SendRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/send", rawUrl) { } /// - /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. + /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action r await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. + /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs index f39225de88e..5d1950382a2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs @@ -29,7 +29,7 @@ public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } /// /// Get media content for the navigation property messages from users - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs index fe1db6f93f0..3608b8ca408 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs @@ -48,7 +48,7 @@ public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b } /// /// The messages in a mailbox or folder. Read-only. Nullable. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, MessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. - /// Find more info here + /// Create a draft of a new message in either JSON or MIME format. When using JSON format, you can:- Include an attachment to the message.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- /* Add any attachments and S/MIME properties to the MIME content. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single operation, or create a draft to forward, reply and reply-all to an existing message. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create a draft of a new message in either JSON or MIME format. When using JSON format, you can:- Include an attachment to the message.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- /* Add any attachments and S/MIME properties to the MIME content. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single operation, or create a draft to forward, reply and reply-all to an existing message. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.cs index 34e79f3af70..14d5bf1db39 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.cs @@ -42,7 +42,7 @@ public Oauth2PermissionGrantsRequestBuilder(Dictionary pathParam public Oauth2PermissionGrantsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/oauth2PermissionGrants{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of oAuth2PermissionGrant entities, which represent delegated permissions granted to enable a client application to access an API on behalf of the user. + /// Retrieve a list of oAuth2PermissionGrant entities, which represent delegated permissions granted to enable a client application to access an API on behalf of the user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OAuth2PermissionGrantCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of oAuth2PermissionGrant entities, which represent delegated permissions granted to enable a client application to access an API on behalf of the user. + /// Retrieve a list of oAuth2PermissionGrant entities, which represent delegated permissions granted to enable a client application to access an API on behalf of the user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public Oauth2PermissionGrantsRequestBuilder WithUrl(string rawUrl) { return new Oauth2PermissionGrantsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of oAuth2PermissionGrant entities, which represent delegated permissions granted to enable a client application to access an API on behalf of the user. + /// Retrieve a list of oAuth2PermissionGrant entities, which represent delegated permissions granted to enable a client application to access an API on behalf of the user. This API is supported in the following national cloud deployments. /// public class Oauth2PermissionGrantsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs index 23d32cce917..80fa29dd890 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs @@ -29,7 +29,7 @@ public GetNotebookFromWebUrlRequestBuilder(Dictionary pathParame public GetNotebookFromWebUrlRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/notebooks/getNotebookFromWebUrl", rawUrl) { } /// - /// Retrieve the properties and relationships of a notebook object by using its URL path. The location can be user notebooks on Microsoft 365, group notebooks, or SharePoint site-hosted team notebooks on Microsoft 365. + /// Retrieve the properties and relationships of a notebook object by using its URL path. The location can be user notebooks on Microsoft 365, group notebooks, or SharePoint site-hosted team notebooks on Microsoft 365. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(GetNotebookFromWebUrlPostRequestB return await RequestAdapter.SendAsync(requestInfo, CopyNotebookModel.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the properties and relationships of a notebook object by using its URL path. The location can be user notebooks on Microsoft 365, group notebooks, or SharePoint site-hosted team notebooks on Microsoft 365. + /// Retrieve the properties and relationships of a notebook object by using its URL path. The location can be user notebooks on Microsoft 365, group notebooks, or SharePoint site-hosted team notebooks on Microsoft 365. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs new file mode 100644 index 00000000000..ce0178e4a1f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.Onenote.Notebooks.GetRecentNotebooksWithIncludePersonalNotebooks { + public class GetRecentNotebooksWithIncludePersonalNotebooksGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GetRecentNotebooksWithIncludePersonalNotebooksGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetRecentNotebooksWithIncludePersonalNotebooksGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(RecentNotebook.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs index f3aaf3141f5..a792a1bd05b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs @@ -35,6 +35,26 @@ public GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder(string rawUr /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetRecentNotebooksWithIncludePersonalNotebooksGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetRecentNotebooksWithIncludePersonalNotebooksGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getRecentNotebooks + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetRecentNotebooksWithIncludePersonalNotebooksGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs index b51fa0e5bdb..2d9d66f5920 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.Onenote.Notebooks.GetRecentNotebooksWithIncludePersonalNotebooks { - public class GetRecentNotebooksWithIncludePersonalNotebooksResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use getRecentNotebooksWithIncludePersonalNotebooksGetResponse instead.")] + public class GetRecentNotebooksWithIncludePersonalNotebooksResponse : GetRecentNotebooksWithIncludePersonalNotebooksGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetRecentNotebooksWithIncludePersonalNotebooksResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(RecentNotebook.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs index bd876113a8b..e84394b57c5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyNotebookRequestBuilder(Dictionary pathParameters, IRe public CopyNotebookRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/notebooks/{notebook%2Did}/copyNotebook", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyNotebookPostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs index 21568aabb00..01533e6f5b5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs @@ -63,7 +63,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a notebook object. + /// Retrieve the properties and relationships of a notebook object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -128,7 +128,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a notebook object. + /// Retrieve the properties and relationships of a notebook object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -205,7 +205,7 @@ public NotebookItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a notebook object. + /// Retrieve the properties and relationships of a notebook object. This API is supported in the following national cloud deployments. /// public class NotebookItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs index 1ebde6c435f..673f1820013 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionGroupsRequestBuilder(Dictionary pathParameters, IR public SectionGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sectionGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of section groups from the specified section group. + /// Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, SectionGroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of section groups from the specified section group. + /// Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public SectionGroupsRequestBuilder WithUrl(string rawUrl) { return new SectionGroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of section groups from the specified section group. + /// Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. /// public class SectionGroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index c829966b1b6..daecddeda07 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToNotebookRequestBuilder(Dictionary pathParameters, I public CopyToNotebookRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToNotebook", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToNotebookPostRequestBody body return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index 4f6dd1baf5f..01ca62e13ee 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionGroupRequestBuilder(Dictionary pathParameter public CopyToSectionGroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionGroupPostRequestBody return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 5751d38473d..3200b403867 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionRequestBuilder(Dictionary pathParameters, IR public CopyToSectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", rawUrl) { } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionPostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs index d490d5744db..7d387011801 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs @@ -42,7 +42,7 @@ public PagesRequestBuilder(Dictionary pathParameters, IRequestAd public PagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenotePageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenotePage body, Action(requestInfo, OnenotePage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PagesRequestBuilder WithUrl(string rawUrl) { return new PagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// public class PagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs index 747f9d09f20..315ff1f38de 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionsRequestBuilder(Dictionary pathParameters, IReques public SectionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of onenoteSection objects from the specified section group. + /// Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenoteSectionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new onenoteSection in the specified section group. + /// Create a new onenoteSection in the specified section group. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenoteSection body, Action(requestInfo, OnenoteSection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of onenoteSection objects from the specified section group. + /// Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new onenoteSection in the specified section group. + /// Create a new onenoteSection in the specified section group. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SectionsRequestBuilder WithUrl(string rawUrl) { return new SectionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of onenoteSection objects from the specified section group. + /// Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. /// public class SectionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs index 8a871c33838..c0df07da5ef 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionGroupsRequestBuilder(Dictionary pathParameters, IR public SectionGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of section groups from the specified notebook. + /// Retrieve a list of section groups from the specified notebook. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, SectionGroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new section group in the specified notebook. + /// Create a new section group in the specified notebook. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(SectionGroup body, Action(requestInfo, SectionGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of section groups from the specified notebook. + /// Retrieve a list of section groups from the specified notebook. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new section group in the specified notebook. + /// Create a new section group in the specified notebook. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SectionGroupsRequestBuilder WithUrl(string rawUrl) { return new SectionGroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of section groups from the specified notebook. + /// Retrieve a list of section groups from the specified notebook. This API is supported in the following national cloud deployments. /// public class SectionGroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index 94d45f07984..963df1fa258 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToNotebookRequestBuilder(Dictionary pathParameters, I public CopyToNotebookRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/copyToNotebook", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToNotebookPostRequestBody body return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index ffad5f4a90e..fe747dbed6c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionGroupRequestBuilder(Dictionary pathParameter public CopyToSectionGroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionGroupPostRequestBody return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 8cdc8916fbb..9b07d8413a0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionRequestBuilder(Dictionary pathParameters, IR public CopyToSectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", rawUrl) { } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionPostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs index 63a8eeafb88..6cc73ec43b4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs @@ -42,7 +42,7 @@ public PagesRequestBuilder(Dictionary pathParameters, IRequestAd public PagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenotePageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenotePage body, Action(requestInfo, OnenotePage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PagesRequestBuilder WithUrl(string rawUrl) { return new PagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// public class PagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs index dde70cdc383..8f723929b2f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionsRequestBuilder(Dictionary pathParameters, IReques public SectionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/notebooks/{notebook%2Did}/sections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of onenoteSection objects from the specified notebook. + /// Retrieve a list of onenoteSection objects from the specified notebook. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenoteSectionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new onenoteSection in the specified notebook. + /// Create a new onenoteSection in the specified notebook. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenoteSection body, Action(requestInfo, OnenoteSection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of onenoteSection objects from the specified notebook. + /// Retrieve a list of onenoteSection objects from the specified notebook. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new onenoteSection in the specified notebook. + /// Create a new onenoteSection in the specified notebook. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SectionsRequestBuilder WithUrl(string rawUrl) { return new SectionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of onenoteSection objects from the specified notebook. + /// Retrieve a list of onenoteSection objects from the specified notebook. This API is supported in the following national cloud deployments. /// public class SectionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs index 5180db65c22..52609743517 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs @@ -48,7 +48,7 @@ public NotebooksRequestBuilder(Dictionary pathParameters, IReque public NotebooksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/notebooks{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of notebook objects. + /// Retrieve a list of notebook objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -76,7 +76,7 @@ public GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder GetRecentNot return new GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder(PathParameters, RequestAdapter, includePersonalNotebooks); } /// - /// Create a new OneNote notebook. + /// Create a new OneNote notebook. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -98,7 +98,7 @@ public async Task PostAsync(Notebook body, Action(requestInfo, Notebook.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of notebook objects. + /// Retrieve a list of notebook objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -124,7 +124,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new OneNote notebook. + /// Create a new OneNote notebook. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -159,7 +159,7 @@ public NotebooksRequestBuilder WithUrl(string rawUrl) { return new NotebooksRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of notebook objects. + /// Retrieve a list of notebook objects. This API is supported in the following national cloud deployments. /// public class NotebooksRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs index 8e65ffb10c4..66bbda14969 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -190,7 +190,7 @@ public OnenoteOperationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. /// public class OnenoteOperationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Operations/OperationsRequestBuilder.cs index 24b97174972..c64f1f956bd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Operations/OperationsRequestBuilder.cs @@ -42,7 +42,7 @@ public OperationsRequestBuilder(Dictionary pathParameters, IRequ public OperationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/operations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(OnenoteOperation body, Action(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public OperationsRequestBuilder WithUrl(string rawUrl) { return new OperationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. + /// Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information. This API is supported in the following national cloud deployments. /// public class OperationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index d75d8d67c79..b77e17e69e4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionRequestBuilder(Dictionary pathParameters, IR public CopyToSectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/pages/{onenotePage%2Did}/copyToSection", rawUrl) { } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionPostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs index 20e27f106d9..0a63e5bed18 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -59,7 +59,7 @@ public OnenotePageItemRequestBuilder(Dictionary pathParameters, public OnenotePageItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/pages/{onenotePage%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a OneNote page. + /// Delete a OneNote page. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -79,7 +79,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. + /// Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -120,7 +120,7 @@ public async Task PatchAsync(OnenotePage body, Action(requestInfo, OnenotePage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a OneNote page. + /// Delete a OneNote page. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. + /// Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -221,7 +221,7 @@ public OnenotePageItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. + /// Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages. This API is supported in the following national cloud deployments. /// public class OnenotePageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/PagesRequestBuilder.cs index bf19e91635e..2f14652b993 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/PagesRequestBuilder.cs @@ -42,7 +42,7 @@ public PagesRequestBuilder(Dictionary pathParameters, IRequestAd public PagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/pages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of page objects. + /// Retrieve a list of page objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenotePageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new OneNote page in the default section of the default notebook. To create a page in a different section in the default notebook, you can use the sectionName query parameter. Example: ../onenote/pages?sectionName=My%20section The POST /onenote/pages operation is used only to create pages in the current user's default notebook. If you're targeting other notebooks, you can create pages in a specified section. + /// Create a new OneNote page in the default section of the default notebook. To create a page in a different section in the default notebook, you can use the sectionName query parameter. Example: ../onenote/pages?sectionName=My%20section The POST /onenote/pages operation is used only to create pages in the current user's default notebook. If you're targeting other notebooks, you can create pages in a specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenotePage body, Action(requestInfo, OnenotePage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of page objects. + /// Retrieve a list of page objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new OneNote page in the default section of the default notebook. To create a page in a different section in the default notebook, you can use the sectionName query parameter. Example: ../onenote/pages?sectionName=My%20section The POST /onenote/pages operation is used only to create pages in the current user's default notebook. If you're targeting other notebooks, you can create pages in a specified section. + /// Create a new OneNote page in the default section of the default notebook. To create a page in a different section in the default notebook, you can use the sectionName query parameter. Example: ../onenote/pages?sectionName=My%20section The POST /onenote/pages operation is used only to create pages in the current user's default notebook. If you're targeting other notebooks, you can create pages in a specified section. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PagesRequestBuilder WithUrl(string rawUrl) { return new PagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of page objects. + /// Retrieve a list of page objects. This API is supported in the following national cloud deployments. /// public class PagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs index 5ca9afe09b9..d434ca6fa3e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + /// The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -117,7 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + /// The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -194,7 +194,7 @@ public OnenoteResourceItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + /// The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. /// public class OnenoteResourceItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Resources/ResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Resources/ResourcesRequestBuilder.cs index 23d8352ed62..06ef1e5f942 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Resources/ResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Resources/ResourcesRequestBuilder.cs @@ -42,7 +42,7 @@ public ResourcesRequestBuilder(Dictionary pathParameters, IReque public ResourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/resources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + /// The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(OnenoteResource body, Action(requestInfo, OnenoteResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + /// The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +143,7 @@ public ResourcesRequestBuilder WithUrl(string rawUrl) { return new ResourcesRequestBuilder(rawUrl, RequestAdapter); } /// - /// The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable. + /// The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. /// public class ResourcesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs index 75309573348..fa025a760dc 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs @@ -68,7 +68,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a sectionGroup object. + /// Retrieve the properties and relationships of a sectionGroup object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -133,7 +133,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a sectionGroup object. + /// Retrieve the properties and relationships of a sectionGroup object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -210,7 +210,7 @@ public SectionGroupItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a sectionGroup object. + /// Retrieve the properties and relationships of a sectionGroup object. This API is supported in the following national cloud deployments. /// public class SectionGroupItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs index e42a7f898ec..ab85937e7b6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionGroupsRequestBuilder(Dictionary pathParameters, IR public SectionGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sectionGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of section groups from the specified section group. + /// Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, SectionGroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of section groups from the specified section group. + /// Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public SectionGroupsRequestBuilder WithUrl(string rawUrl) { return new SectionGroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of section groups from the specified section group. + /// Retrieve a list of section groups from the specified section group. This API is supported in the following national cloud deployments. /// public class SectionGroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index 9110ba281f0..78cea7fa1d8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToNotebookRequestBuilder(Dictionary pathParameters, I public CopyToNotebookRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToNotebook", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToNotebookPostRequestBody body return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index 21c3a5f1a15..c0ee6a12351 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionGroupRequestBuilder(Dictionary pathParameter public CopyToSectionGroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionGroupPostRequestBody return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 1fe9d9cadd8..12508c9d6f4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionRequestBuilder(Dictionary pathParameters, IR public CopyToSectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", rawUrl) { } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionPostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs index 319432cdcda..43ee7d74f62 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs @@ -42,7 +42,7 @@ public PagesRequestBuilder(Dictionary pathParameters, IRequestAd public PagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenotePageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenotePage body, Action(requestInfo, OnenotePage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PagesRequestBuilder WithUrl(string rawUrl) { return new PagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// public class PagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs index f9a7301d153..e4b684464c5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionsRequestBuilder(Dictionary pathParameters, IReques public SectionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of onenoteSection objects from the specified section group. + /// Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenoteSectionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new onenoteSection in the specified section group. + /// Create a new onenoteSection in the specified section group. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenoteSection body, Action(requestInfo, OnenoteSection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of onenoteSection objects from the specified section group. + /// Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new onenoteSection in the specified section group. + /// Create a new onenoteSection in the specified section group. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public SectionsRequestBuilder WithUrl(string rawUrl) { return new SectionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of onenoteSection objects from the specified section group. + /// Retrieve a list of onenoteSection objects from the specified section group. This API is supported in the following national cloud deployments. /// public class SectionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs index 48b30b25a4f..613d6b13fc6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionGroupsRequestBuilder(Dictionary pathParameters, IR public SectionGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/sectionGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of sectionGroup objects. + /// Retrieve a list of sectionGroup objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(SectionGroup body, Action(requestInfo, SectionGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of sectionGroup objects. + /// Retrieve a list of sectionGroup objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SectionGroupsRequestBuilder WithUrl(string rawUrl) { return new SectionGroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of sectionGroup objects. + /// Retrieve a list of sectionGroup objects. This API is supported in the following national cloud deployments. /// public class SectionGroupsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index d1180264d0f..e28b0860969 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToNotebookRequestBuilder(Dictionary pathParameters, I public CopyToNotebookRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/sections/{onenoteSection%2Did}/copyToNotebook", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToNotebookPostRequestBody body return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index c4a6b072840..9096a5b3579 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionGroupRequestBuilder(Dictionary pathParameter public CopyToSectionGroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/sections/{onenoteSection%2Did}/copyToSectionGroup", rawUrl) { } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionGroupPostRequestBody return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs index 189b9d267b6..00df6a91eb7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs @@ -73,7 +73,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a onenoteSection object. + /// Retrieve the properties and relationships of a onenoteSection object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -138,7 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a onenoteSection object. + /// Retrieve the properties and relationships of a onenoteSection object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -215,7 +215,7 @@ public OnenoteSectionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a onenoteSection object. + /// Retrieve the properties and relationships of a onenoteSection object. This API is supported in the following national cloud deployments. /// public class OnenoteSectionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 291ae1f7393..0e27b304176 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -29,7 +29,7 @@ public CopyToSectionRequestBuilder(Dictionary pathParameters, IR public CopyToSectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", rawUrl) { } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CopyToSectionPostRequestBody body, return await RequestAdapter.SendAsync(requestInfo, OnenoteOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. + /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs index 1c706ed4e42..7fd86dc2829 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs @@ -42,7 +42,7 @@ public PagesRequestBuilder(Dictionary pathParameters, IRequestAd public PagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/sections/{onenoteSection%2Did}/pages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OnenotePageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OnenotePage body, Action(requestInfo, OnenotePage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new page in the specified section. + /// Create a new page in the specified section. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public PagesRequestBuilder WithUrl(string rawUrl) { return new PagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of page objects from the specified section. + /// Retrieve a list of page objects from the specified section. This API is supported in the following national cloud deployments. /// public class PagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/SectionsRequestBuilder.cs index e64d52e4967..41d9e8af6bd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/SectionsRequestBuilder.cs @@ -42,7 +42,7 @@ public SectionsRequestBuilder(Dictionary pathParameters, IReques public SectionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onenote/sections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of onenoteSection objects. + /// Retrieve a list of onenoteSection objects. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(OnenoteSection body, Action(requestInfo, OnenoteSection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of onenoteSection objects. + /// Retrieve a list of onenoteSection objects. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public SectionsRequestBuilder WithUrl(string rawUrl) { return new SectionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of onenoteSection objects. + /// Retrieve a list of onenoteSection objects. This API is supported in the following national cloud deployments. /// public class SectionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.cs index b35e352542c..c2efd8a9c9f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateOrGetRequestBuilder(Dictionary pathParameters, IReq public CreateOrGetRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onlineMeetings/createOrGet", rawUrl) { } /// - /// Create an onlineMeeting object with a custom specified external ID. If the external ID already exists, this API will return the onlineMeeting object with that external ID. + /// Create an onlineMeeting object with a custom specified external ID. If the external ID already exists, this API will return the onlineMeeting object with that external ID. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateOrGetPostRequestBody body, Acti return await RequestAdapter.SendAsync(requestInfo, OnlineMeeting.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an onlineMeeting object with a custom specified external ID. If the external ID already exists, this API will return the onlineMeeting object with that external ID. + /// Create an onlineMeeting object with a custom specified external ID. If the external ID already exists, this API will return the onlineMeeting object with that external ID. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.cs index 746f330381f..5d10c50249e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.cs @@ -42,7 +42,7 @@ public AttendanceReportsRequestBuilder(Dictionary pathParameters public AttendanceReportsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onlineMeetings/{onlineMeeting%2Did}/attendanceReports{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of meetingAttendanceReport objects for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. + /// Get a list of meetingAttendanceReport objects for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(MeetingAttendanceReport bod return await RequestAdapter.SendAsync(requestInfo, MeetingAttendanceReport.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of meetingAttendanceReport objects for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. + /// Get a list of meetingAttendanceReport objects for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public AttendanceReportsRequestBuilder WithUrl(string rawUrl) { return new AttendanceReportsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of meetingAttendanceReport objects for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. + /// Get a list of meetingAttendanceReport objects for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session. This API is supported in the following national cloud deployments. /// public class AttendanceReportsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.cs index 92b797c461b..0d24e043b28 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.cs @@ -42,7 +42,7 @@ public AttendanceRecordsRequestBuilder(Dictionary pathParameters public AttendanceRecordsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onlineMeetings/{onlineMeeting%2Did}/attendanceReports/{meetingAttendanceReport%2Did}/attendanceRecords{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of attendanceRecord objects and their properties. + /// Get a list of attendanceRecord objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(AttendanceRecord body, Action(requestInfo, AttendanceRecord.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of attendanceRecord objects and their properties. + /// Get a list of attendanceRecord objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public AttendanceRecordsRequestBuilder WithUrl(string rawUrl) { return new AttendanceRecordsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of attendanceRecord objects and their properties. + /// Get a list of attendanceRecord objects and their properties. This API is supported in the following national cloud deployments. /// public class AttendanceRecordsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.cs index 859218e0d83..64e3d4d7d08 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report will be generated for that session. + /// Get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report will be generated for that session. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report will be generated for that session. + /// Get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report will be generated for that session. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public MeetingAttendanceReportItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report will be generated for that session. + /// Get the meetingAttendanceReport for an onlineMeeting. Each time an online meeting ends, an attendance report will be generated for that session. This API is supported in the following national cloud deployments. /// public class MeetingAttendanceReportItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlGetResponse.cs new file mode 100644 index 00000000000..b6fcf54c1c6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlGetResponse.cs @@ -0,0 +1,64 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.OnlineMeetings.Item.GetVirtualAppointmentJoinWebUrl { + public class GetVirtualAppointmentJoinWebUrlGetResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public string Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Instantiates a new getVirtualAppointmentJoinWebUrlGetResponse and sets the default values. + /// + public GetVirtualAppointmentJoinWebUrlGetResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static GetVirtualAppointmentJoinWebUrlGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetVirtualAppointmentJoinWebUrlGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.cs index 775b971eaa9..0c8654507a4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.cs @@ -33,6 +33,26 @@ public GetVirtualAppointmentJoinWebUrlRequestBuilder(string rawUrl, IRequestAdap /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsGetVirtualAppointmentJoinWebUrlGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsGetVirtualAppointmentJoinWebUrlGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, GetVirtualAppointmentJoinWebUrlGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function getVirtualAppointmentJoinWebUrl + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsGetVirtualAppointmentJoinWebUrlGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlResponse.cs index 5dcb1b8efdd..274c3b4b58c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlResponse.cs @@ -1,64 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.OnlineMeetings.Item.GetVirtualAppointmentJoinWebUrl { - public class GetVirtualAppointmentJoinWebUrlResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public string Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } -#endif - /// - /// Instantiates a new getVirtualAppointmentJoinWebUrlResponse and sets the default values. - /// - public GetVirtualAppointmentJoinWebUrlResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use getVirtualAppointmentJoinWebUrlGetResponse instead.")] + public class GetVirtualAppointmentJoinWebUrlResponse : GetVirtualAppointmentJoinWebUrlGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static GetVirtualAppointmentJoinWebUrlResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new GetVirtualAppointmentJoinWebUrlResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GetVirtualAppointmentJoinWebUrlResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.cs index 14d3617a88a..48811f2719a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.cs @@ -4,6 +4,7 @@ using Microsoft.Graph.Users.Item.OnlineMeetings.Item.AttendanceReports; using Microsoft.Graph.Users.Item.OnlineMeetings.Item.AttendeeReport; using Microsoft.Graph.Users.Item.OnlineMeetings.Item.GetVirtualAppointmentJoinWebUrl; +using Microsoft.Graph.Users.Item.OnlineMeetings.Item.Transcripts; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -29,6 +30,10 @@ public class OnlineMeetingItemRequestBuilder : BaseRequestBuilder { public GetVirtualAppointmentJoinWebUrlRequestBuilder GetVirtualAppointmentJoinWebUrl { get => new GetVirtualAppointmentJoinWebUrlRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the transcripts property of the microsoft.graph.onlineMeeting entity. + public TranscriptsRequestBuilder Transcripts { get => + new TranscriptsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new OnlineMeetingItemRequestBuilder and sets the default values. /// @@ -44,7 +49,7 @@ public OnlineMeetingItemRequestBuilder(Dictionary pathParameters public OnlineMeetingItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onlineMeetings/{onlineMeeting%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an onlineMeeting object. + /// Delete an onlineMeeting object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -64,7 +69,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. + /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +89,7 @@ public async Task GetAsync(Action(requestInfo, OnlineMeeting.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of the specified onlineMeeting object. Please see Request body section for the list of properties that support updating. + /// Update the properties of the specified onlineMeeting object. Please see Request body section for the list of properties that support updating. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -106,7 +111,7 @@ public async Task PatchAsync(OnlineMeeting body, Action(requestInfo, OnlineMeeting.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an onlineMeeting object. + /// Delete an onlineMeeting object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -130,7 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. + /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -156,7 +161,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of the specified onlineMeeting object. Please see Request body section for the list of properties that support updating. + /// Update the properties of the specified onlineMeeting object. Please see Request body section for the list of properties that support updating. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -207,7 +212,7 @@ public OnlineMeetingItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. + /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. This API is supported in the following national cloud deployments. /// public class OnlineMeetingItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..fc7ce763126 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Users.Item.OnlineMeetings.Item.Transcripts.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onlineMeetings/{onlineMeeting%2Did}/transcripts/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onlineMeetings/{onlineMeeting%2Did}/transcripts/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.cs new file mode 100644 index 00000000000..d61f141a2bd --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.cs @@ -0,0 +1,261 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Users.Item.OnlineMeetings.Item.Transcripts.Item.Content; +using Microsoft.Graph.Users.Item.OnlineMeetings.Item.Transcripts.Item.MetadataContent; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Users.Item.OnlineMeetings.Item.Transcripts.Item { + /// + /// Provides operations to manage the transcripts property of the microsoft.graph.onlineMeeting entity. + /// + public class CallTranscriptItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the media for the user entity. + public ContentRequestBuilder Content { get => + new ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the media for the user entity. + public MetadataContentRequestBuilder MetadataContent { get => + new MetadataContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new CallTranscriptItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CallTranscriptItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onlineMeetings/{onlineMeeting%2Did}/transcripts/{callTranscript%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new CallTranscriptItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CallTranscriptItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onlineMeetings/{onlineMeeting%2Did}/transcripts/{callTranscript%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property transcripts for users + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get transcripts from users + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CallTranscript.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property transcripts in users + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(CallTranscript body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(CallTranscript body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CallTranscript.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property transcripts for users + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new CallTranscriptItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get transcripts from users + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new CallTranscriptItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property transcripts in users + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(CallTranscript body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(CallTranscript body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new CallTranscriptItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CallTranscriptItemRequestBuilder WithUrl(string rawUrl) { + return new CallTranscriptItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CallTranscriptItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new CallTranscriptItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public CallTranscriptItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get transcripts from users + /// + public class CallTranscriptItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CallTranscriptItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CallTranscriptItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CallTranscriptItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CallTranscriptItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CallTranscriptItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CallTranscriptItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new CallTranscriptItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public CallTranscriptItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.cs new file mode 100644 index 00000000000..e8c5e9ddc07 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.cs @@ -0,0 +1,163 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Users.Item.OnlineMeetings.Item.Transcripts.Item.Content { + /// + /// Provides operations to manage the media for the user entity. + /// + public class ContentRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new ContentRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onlineMeetings/{onlineMeeting%2Did}/transcripts/{callTranscript%2Did}/content", pathParameters) { + } + /// + /// Instantiates a new ContentRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onlineMeetings/{onlineMeeting%2Did}/transcripts/{callTranscript%2Did}/content", rawUrl) { + } + /// + /// Get content for the navigation property transcripts from users + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update content for the navigation property transcripts in users + /// + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PutAsync(Stream body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CallTranscript.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get content for the navigation property transcripts from users + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new ContentRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update content for the navigation property transcripts in users + /// + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PUT, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetStreamContent(body); + if (requestConfiguration != null) { + var requestConfig = new ContentRequestBuilderPutRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ContentRequestBuilder WithUrl(string rawUrl) { + return new ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContentRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new contentRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ContentRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ContentRequestBuilderPutRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new contentRequestBuilderPutRequestConfiguration and sets the default values. + /// + public ContentRequestBuilderPutRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilder.cs new file mode 100644 index 00000000000..10ffd1924a3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilder.cs @@ -0,0 +1,161 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Users.Item.OnlineMeetings.Item.Transcripts.Item.MetadataContent { + /// + /// Provides operations to manage the media for the user entity. + /// + public class MetadataContentRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MetadataContentRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MetadataContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onlineMeetings/{onlineMeeting%2Did}/transcripts/{callTranscript%2Did}/metadataContent", pathParameters) { + } + /// + /// Instantiates a new MetadataContentRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MetadataContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onlineMeetings/{onlineMeeting%2Did}/transcripts/{callTranscript%2Did}/metadataContent", rawUrl) { + } + /// + /// Get metadataContent for the navigation property transcripts from users + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update metadataContent for the navigation property transcripts in users + /// + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PutAsync(Stream body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get metadataContent for the navigation property transcripts from users + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new MetadataContentRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update metadataContent for the navigation property transcripts in users + /// + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PUT, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.SetStreamContent(body); + if (requestConfiguration != null) { + var requestConfig = new MetadataContentRequestBuilderPutRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MetadataContentRequestBuilder WithUrl(string rawUrl) { + return new MetadataContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MetadataContentRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new metadataContentRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MetadataContentRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MetadataContentRequestBuilderPutRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new metadataContentRequestBuilderPutRequestConfiguration and sets the default values. + /// + public MetadataContentRequestBuilderPutRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilder.cs new file mode 100644 index 00000000000..57f9a8b4598 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Users.Item.OnlineMeetings.Item.Transcripts.Count; +using Microsoft.Graph.Users.Item.OnlineMeetings.Item.Transcripts.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Users.Item.OnlineMeetings.Item.Transcripts { + /// + /// Provides operations to manage the transcripts property of the microsoft.graph.onlineMeeting entity. + /// + public class TranscriptsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the transcripts property of the microsoft.graph.onlineMeeting entity. + /// The unique identifier of callTranscript + public CallTranscriptItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("callTranscript%2Did", position); + return new CallTranscriptItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new TranscriptsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public TranscriptsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onlineMeetings/{onlineMeeting%2Did}/transcripts{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new TranscriptsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public TranscriptsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onlineMeetings/{onlineMeeting%2Did}/transcripts{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get transcripts from users + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CallTranscriptCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to transcripts for users + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(CallTranscript body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(CallTranscript body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CallTranscript.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get transcripts from users + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new TranscriptsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to transcripts for users + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(CallTranscript body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(CallTranscript body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new TranscriptsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public TranscriptsRequestBuilder WithUrl(string rawUrl) { + return new TranscriptsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get transcripts from users + /// + public class TranscriptsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class TranscriptsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public TranscriptsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new TranscriptsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new transcriptsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public TranscriptsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class TranscriptsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new transcriptsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public TranscriptsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/OnlineMeetingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/OnlineMeetingsRequestBuilder.cs index fce51753b6b..933c3e3baa4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/OnlineMeetingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/OnlineMeetingsRequestBuilder.cs @@ -47,7 +47,7 @@ public OnlineMeetingsRequestBuilder(Dictionary pathParameters, I public OnlineMeetingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onlineMeetings{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. + /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, OnlineMeetingCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an online meeting on behalf of a user. + /// >- userId is the object ID of a user in Azure user management portal. For more information, see Allow applications to access online meetings on behalf of a user. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(OnlineMeeting body, Action(requestInfo, OnlineMeeting.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. + /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an online meeting on behalf of a user. + /// >- userId is the object ID of a user in Azure user management portal. For more information, see Allow applications to access online meetings on behalf of a user. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public OnlineMeetingsRequestBuilder WithUrl(string rawUrl) { return new OnlineMeetingsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. + /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report is an online meeting artifact. For details, see Online meeting artifacts and permissions. This API is supported in the following national cloud deployments. /// public class OnlineMeetingsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.cs index 6c6dad738f9..716fac061a5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.cs @@ -29,7 +29,7 @@ public OutlookCategoryItemRequestBuilder(Dictionary pathParamete public OutlookCategoryItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/outlook/masterCategories/{outlookCategory%2Did}{?%24select}", rawUrl) { } /// - /// Delete the specified outlookCategory object. + /// Delete the specified outlookCategory object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get the properties and relationships of the specified outlookCategory object. + /// Get the properties and relationships of the specified outlookCategory object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, OutlookCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the writable property, color, of the specified outlookCategory object. You cannot modify the displayName propertyonce you have created the category. + /// Update the writable property, color, of the specified outlookCategory object. You can't modify the displayName propertyonce you have created the category. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(OutlookCategory body, Action(requestInfo, OutlookCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete the specified outlookCategory object. + /// Delete the specified outlookCategory object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties and relationships of the specified outlookCategory object. + /// Get the properties and relationships of the specified outlookCategory object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the writable property, color, of the specified outlookCategory object. You cannot modify the displayName propertyonce you have created the category. + /// Update the writable property, color, of the specified outlookCategory object. You can't modify the displayName propertyonce you have created the category. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public OutlookCategoryItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the properties and relationships of the specified outlookCategory object. + /// Get the properties and relationships of the specified outlookCategory object. This API is supported in the following national cloud deployments. /// public class OutlookCategoryItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Users/Item/Outlook/MasterCategories/MasterCategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Outlook/MasterCategories/MasterCategoriesRequestBuilder.cs index a5f502de8ab..dabf6a45707 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Outlook/MasterCategories/MasterCategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Outlook/MasterCategories/MasterCategoriesRequestBuilder.cs @@ -42,7 +42,7 @@ public MasterCategoriesRequestBuilder(Dictionary pathParameters, public MasterCategoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/outlook/masterCategories{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get all the categories that have been defined for the user. + /// Get all the categories that have been defined for the user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, OutlookCategoryCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an outlookCategory object in the user's master list of categories. + /// Create an outlookCategory object in the user's master list of categories. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(OutlookCategory body, Action(requestInfo, OutlookCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get all the categories that have been defined for the user. + /// Get all the categories that have been defined for the user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an outlookCategory object in the user's master list of categories. + /// Create an outlookCategory object in the user's master list of categories. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public MasterCategoriesRequestBuilder WithUrl(string rawUrl) { return new MasterCategoriesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get all the categories that have been defined for the user. + /// Get all the categories that have been defined for the user. This API is supported in the following national cloud deployments. /// public class MasterCategoriesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedLanguages/SupportedLanguagesGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedLanguages/SupportedLanguagesGetResponse.cs new file mode 100644 index 00000000000..4abaa1196fd --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedLanguages/SupportedLanguagesGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.Outlook.SupportedLanguages { + public class SupportedLanguagesGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new SupportedLanguagesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new SupportedLanguagesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(LocaleInfo.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedLanguages/SupportedLanguagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedLanguages/SupportedLanguagesRequestBuilder.cs index b465ad8fc9c..fb02c7ff31f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedLanguages/SupportedLanguagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedLanguages/SupportedLanguagesRequestBuilder.cs @@ -28,12 +28,33 @@ public SupportedLanguagesRequestBuilder(Dictionary pathParameter public SupportedLanguagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/outlook/supportedLanguages(){?%24top,%24skip,%24search,%24filter,%24count}", rawUrl) { } /// - /// Get the list of locales and languages that are supported for the user, as configured on the user's mailbox server. When setting up an Outlook client, the user selects the preferred language from this supported list. You can subsequently get the preferred language bygetting the user's mailbox settings. + /// Get the list of locales and languages that are supported for the user, as configured on the user's mailbox server. When setting up an Outlook client, the user selects the preferred language from this supported list. You can subsequently get the preferred language bygetting the user's mailbox settings. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsSupportedLanguagesGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsSupportedLanguagesGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, SupportedLanguagesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the list of locales and languages that are supported for the user, as configured on the user's mailbox server. When setting up an Outlook client, the user selects the preferred language from this supported list. You can subsequently get the preferred language bygetting the user's mailbox settings. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsSupportedLanguagesGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, SupportedLanguagesResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of locales and languages that are supported for the user, as configured on the user's mailbox server. When setting up an Outlook client, the user selects the preferred language from this supported list. You can subsequently get the preferred language bygetting the user's mailbox settings. + /// Get the list of locales and languages that are supported for the user, as configured on the user's mailbox server. When setting up an Outlook client, the user selects the preferred language from this supported list. You can subsequently get the preferred language bygetting the user's mailbox settings. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +102,7 @@ public SupportedLanguagesRequestBuilder WithUrl(string rawUrl) { return new SupportedLanguagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of locales and languages that are supported for the user, as configured on the user's mailbox server. When setting up an Outlook client, the user selects the preferred language from this supported list. You can subsequently get the preferred language bygetting the user's mailbox settings. + /// Get the list of locales and languages that are supported for the user, as configured on the user's mailbox server. When setting up an Outlook client, the user selects the preferred language from this supported list. You can subsequently get the preferred language bygetting the user's mailbox settings. This API is supported in the following national cloud deployments. /// public class SupportedLanguagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedLanguages/SupportedLanguagesResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedLanguages/SupportedLanguagesResponse.cs index 1241b91a64d..2ae5472f655 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedLanguages/SupportedLanguagesResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedLanguages/SupportedLanguagesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.Outlook.SupportedLanguages { - public class SupportedLanguagesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use supportedLanguagesGetResponse instead.")] + public class SupportedLanguagesResponse : SupportedLanguagesGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SupportedLanguagesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(LocaleInfo.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZones/SupportedTimeZonesGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZones/SupportedTimeZonesGetResponse.cs new file mode 100644 index 00000000000..bc5bcf27400 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZones/SupportedTimeZonesGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.Outlook.SupportedTimeZones { + public class SupportedTimeZonesGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new SupportedTimeZonesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new SupportedTimeZonesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(TimeZoneInformation.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZones/SupportedTimeZonesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZones/SupportedTimeZonesRequestBuilder.cs index 04e11374958..6ff12dbe5c1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZones/SupportedTimeZonesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZones/SupportedTimeZonesRequestBuilder.cs @@ -33,6 +33,26 @@ public SupportedTimeZonesRequestBuilder(string rawUrl, IRequestAdapter requestAd /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsSupportedTimeZonesGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsSupportedTimeZonesGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, SupportedTimeZonesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function supportedTimeZones + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsSupportedTimeZonesGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZones/SupportedTimeZonesResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZones/SupportedTimeZonesResponse.cs index 52fd29fd931..825dba6a575 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZones/SupportedTimeZonesResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZones/SupportedTimeZonesResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.Outlook.SupportedTimeZones { - public class SupportedTimeZonesResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use supportedTimeZonesGetResponse instead.")] + public class SupportedTimeZonesResponse : SupportedTimeZonesGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SupportedTimeZonesResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(TimeZoneInformation.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardGetResponse.cs new file mode 100644 index 00000000000..b44e138e11b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.Outlook.SupportedTimeZonesWithTimeZoneStandard { + public class SupportedTimeZonesWithTimeZoneStandardGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new SupportedTimeZonesWithTimeZoneStandardGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new SupportedTimeZonesWithTimeZoneStandardGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(TimeZoneInformation.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardRequestBuilder.cs index 9a61725d9b7..523bbc23293 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardRequestBuilder.cs @@ -35,6 +35,26 @@ public SupportedTimeZonesWithTimeZoneStandardRequestBuilder(string rawUrl, IRequ /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsSupportedTimeZonesWithTimeZoneStandardGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsSupportedTimeZonesWithTimeZoneStandardGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, SupportedTimeZonesWithTimeZoneStandardGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function supportedTimeZones + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsSupportedTimeZonesWithTimeZoneStandardGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardResponse.cs index 535140f3852..b2e75f7bb13 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.Outlook.SupportedTimeZonesWithTimeZoneStandard { - public class SupportedTimeZonesWithTimeZoneStandardResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use supportedTimeZonesWithTimeZoneStandardGetResponse instead.")] + public class SupportedTimeZonesWithTimeZoneStandardResponse : SupportedTimeZonesWithTimeZoneStandardGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SupportedTimeZonesWithTimeZoneStandardResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(TimeZoneInformation.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/People/PeopleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/People/PeopleRequestBuilder.cs index 833b26d5b75..d2c917d8a5d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/People/PeopleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/People/PeopleRequestBuilder.cs @@ -42,7 +42,7 @@ public PeopleRequestBuilder(Dictionary pathParameters, IRequestA public PeopleRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/people{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Retrieve a collection of person objects ordered by their relevance to the user, which is determined by the user's communication and collaboration patterns, and business relationships. You can get this information via the People API. For examples, see the Examples section and the article Use the People API to get information about the people most relevant to you. + /// Retrieve a collection of person objects ordered by their relevance to the user, which is determined by the user's communication and collaboration patterns, and business relationships. You can get this information via the People API. For examples, see the Examples section and the article Use the People API to get information about the people most relevant to you. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, PersonCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a collection of person objects ordered by their relevance to the user, which is determined by the user's communication and collaboration patterns, and business relationships. You can get this information via the People API. For examples, see the Examples section and the article Use the People API to get information about the people most relevant to you. + /// Retrieve a collection of person objects ordered by their relevance to the user, which is determined by the user's communication and collaboration patterns, and business relationships. You can get this information via the People API. For examples, see the Examples section and the article Use the People API to get information about the people most relevant to you. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public PeopleRequestBuilder WithUrl(string rawUrl) { return new PeopleRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a collection of person objects ordered by their relevance to the user, which is determined by the user's communication and collaboration patterns, and business relationships. You can get this information via the People API. For examples, see the Examples section and the article Use the People API to get information about the people most relevant to you. + /// Retrieve a collection of person objects ordered by their relevance to the user, which is determined by the user's communication and collaboration patterns, and business relationships. You can get this information via the People API. For examples, see the Examples section and the article Use the People API to get information about the people most relevant to you. This API is supported in the following national cloud deployments. /// public class PeopleRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Photo/PhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Photo/PhotoRequestBuilder.cs index 7086f18f353..6aa58b6e013 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Photo/PhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Photo/PhotoRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,7 +195,7 @@ public PhotoRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is supported in the following national cloud deployments. /// public class PhotoRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs index b0b7472890b..32fa04a4a66 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs @@ -42,7 +42,7 @@ public BucketsRequestBuilder(Dictionary pathParameters, IRequest public BucketsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/planner/plans/{plannerPlan%2Did}/buckets{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of plannerBucket objects contained by a plannerPlan object. + /// Retrieve a list of plannerBucket objects contained by a plannerPlan object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(PlannerBucket body, Action(requestInfo, PlannerBucket.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of plannerBucket objects contained by a plannerPlan object. + /// Retrieve a list of plannerBucket objects contained by a plannerPlan object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public BucketsRequestBuilder WithUrl(string rawUrl) { return new BucketsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of plannerBucket objects contained by a plannerPlan object. + /// Retrieve a list of plannerBucket objects contained by a plannerPlan object. This API is supported in the following national cloud deployments. /// public class BucketsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs index 19aa23504b4..11175959239 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public AssignedToTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class AssignedToTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs index 8384ed1fc9b..84a7b60d013 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public BucketTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class BucketTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs index 9df40412b46..818338caac4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public DetailsRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// public class DetailsRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs index 2590c11fb27..7063e58421a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public ProgressTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class ProgressTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs index 3fbe403dd7d..d5a84bd94cc 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs @@ -42,7 +42,7 @@ public TasksRequestBuilder(Dictionary pathParameters, IRequestAd public TasksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%2Did}/tasks{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of plannerTask objects associated to a plannerBucket object. + /// Retrieve a list of plannerTask objects associated to a plannerBucket object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(PlannerTask body, Action(requestInfo, PlannerTask.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of plannerTask objects associated to a plannerBucket object. + /// Retrieve a list of plannerTask objects associated to a plannerBucket object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public TasksRequestBuilder WithUrl(string rawUrl) { return new TasksRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of plannerTask objects associated to a plannerBucket object. + /// Retrieve a list of plannerTask objects associated to a plannerBucket object. This API is supported in the following national cloud deployments. /// public class TasksRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Details/DetailsRequestBuilder.cs index de0c41a316f..b4687a49485 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Details/DetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Details/DetailsRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a plannerPlanDetails object. + /// Retrieve the properties and relationships of a plannerPlanDetails object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a plannerPlanDetails object. + /// Retrieve the properties and relationships of a plannerPlanDetails object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public DetailsRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a plannerPlanDetails object. + /// Retrieve the properties and relationships of a plannerPlanDetails object. This API is supported in the following national cloud deployments. /// public class DetailsRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs index 042eb0e0d9d..7e4c0a4cab9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public AssignedToTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class AssignedToTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs index 822d438c431..2507c976bc4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public BucketTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class BucketTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.cs index ff9bf81ffa1..fa1b01e88e2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public DetailsRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// public class DetailsRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs index 1ea78a4a3d8..423f44df37f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public ProgressTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class ProgressTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs index dc3cc6bf549..ed1174ea01f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs @@ -42,7 +42,7 @@ public TasksRequestBuilder(Dictionary pathParameters, IRequestAd public TasksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/planner/plans/{plannerPlan%2Did}/tasks{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of plannerTask objects associated with a plannerPlan object. + /// Retrieve a list of plannerTask objects associated with a plannerPlan object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(PlannerTask body, Action(requestInfo, PlannerTask.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of plannerTask objects associated with a plannerPlan object. + /// Retrieve a list of plannerTask objects associated with a plannerPlan object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public TasksRequestBuilder WithUrl(string rawUrl) { return new TasksRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of plannerTask objects associated with a plannerPlan object. + /// Retrieve a list of plannerTask objects associated with a plannerPlan object. This API is supported in the following national cloud deployments. /// public class TasksRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/PlansRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/PlansRequestBuilder.cs index b365e556a99..87fcbdd8df2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/PlansRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/PlansRequestBuilder.cs @@ -42,7 +42,7 @@ public PlansRequestBuilder(Dictionary pathParameters, IRequestAd public PlansRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/planner/plans{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of plannerplan objects shared with a user object. + /// Retrieve a list of plannerplan objects shared with a user object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(PlannerPlan body, Action(requestInfo, PlannerPlan.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of plannerplan objects shared with a user object. + /// Retrieve a list of plannerplan objects shared with a user object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public PlansRequestBuilder WithUrl(string rawUrl) { return new PlansRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of plannerplan objects shared with a user object. + /// Retrieve a list of plannerplan objects shared with a user object. This API is supported in the following national cloud deployments. /// public class PlansRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs index d839b3227b5..1c987746df6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public AssignedToTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of a plannerAssignedToTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class AssignedToTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs index d653c137a22..a31de162b4a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public BucketTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerBucketTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class BucketTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/Details/DetailsRequestBuilder.cs index bd2a02c7c40..6226bfa41ca 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/Details/DetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/Details/DetailsRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public DetailsRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a plannerTaskDetails object. + /// Retrieve the properties and relationships of a plannerTaskDetails object. This API is supported in the following national cloud deployments. /// public class DetailsRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs index 668b2aaa0a5..6678627bad6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -191,7 +191,7 @@ public ProgressTaskBoardFormatRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. + /// Retrieve the properties and relationships of plannerProgressTaskBoardTaskFormat object. This API is supported in the following national cloud deployments. /// public class ProgressTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/TasksRequestBuilder.cs index 05d56233e03..c29cbdf361a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/TasksRequestBuilder.cs @@ -42,7 +42,7 @@ public TasksRequestBuilder(Dictionary pathParameters, IRequestAd public TasksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/planner/tasks{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of plannertask objects assigned to a User. + /// Retrieve a list of plannertask objects assigned to a User. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(PlannerTask body, Action(requestInfo, PlannerTask.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of plannertask objects assigned to a User. + /// Retrieve a list of plannertask objects assigned to a User. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public TasksRequestBuilder WithUrl(string rawUrl) { return new TasksRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of plannertask objects assigned to a User. + /// Retrieve a list of plannertask objects assigned to a User. This API is supported in the following national cloud deployments. /// public class TasksRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Presence/ClearPresence/ClearPresenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Presence/ClearPresence/ClearPresenceRequestBuilder.cs index 45bb8122c19..24a27392ce5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Presence/ClearPresence/ClearPresenceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Presence/ClearPresence/ClearPresenceRequestBuilder.cs @@ -28,7 +28,7 @@ public ClearPresenceRequestBuilder(Dictionary pathParameters, IR public ClearPresenceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/presence/clearPresence", rawUrl) { } /// - /// Clear the application's presence session for a user. If it is the user's only presence session, the user's presence will change to Offline/Offline. For details about presences sessions, see presence: setPresence. + /// Clear the application's presence session for a user. If it is the user's only presence session, the user's presence will change to Offline/Offline. For details about presences sessions, see presence: setPresence. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ClearPresencePostRequestBody body, Action - /// Clear the application's presence session for a user. If it is the user's only presence session, the user's presence will change to Offline/Offline. For details about presences sessions, see presence: setPresence. + /// Clear the application's presence session for a user. If it is the user's only presence session, the user's presence will change to Offline/Offline. For details about presences sessions, see presence: setPresence. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Presence/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Presence/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.cs index 92e2f0feb0d..79b0116a09a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Presence/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Presence/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.cs @@ -28,7 +28,7 @@ public ClearUserPreferredPresenceRequestBuilder(Dictionary pathP public ClearUserPreferredPresenceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/presence/clearUserPreferredPresence", rawUrl) { } /// - /// Clear the preferred availability and activity status for a user. + /// Clear the preferred availability and activity status for a user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// Clear the preferred availability and activity status for a user. + /// Clear the preferred availability and activity status for a user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/Presence/PresenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Presence/PresenceRequestBuilder.cs index dcbcc597995..11f3ed48ecb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Presence/PresenceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Presence/PresenceRequestBuilder.cs @@ -73,7 +73,7 @@ public async Task DeleteAsync(Action - /// Get a user's presence information. + /// Get a user's presence information. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -138,7 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a user's presence information. + /// Get a user's presence information. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -215,7 +215,7 @@ public PresenceRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a user's presence information. + /// Get a user's presence information. This API is supported in the following national cloud deployments. /// public class PresenceRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Presence/SetPresence/SetPresenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Presence/SetPresence/SetPresenceRequestBuilder.cs index 9cd3444a136..8db98b7c294 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Presence/SetPresence/SetPresenceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Presence/SetPresence/SetPresenceRequestBuilder.cs @@ -28,7 +28,7 @@ public SetPresenceRequestBuilder(Dictionary pathParameters, IReq public SetPresenceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/presence/setPresence", rawUrl) { } /// - /// Set the state of a user's presence session as an application. + /// Set the state of a user's presence session as an application. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SetPresencePostRequestBody body, Action - /// Set the state of a user's presence session as an application. + /// Set the state of a user's presence session as an application. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Presence/SetStatusMessage/SetStatusMessageRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Presence/SetStatusMessage/SetStatusMessageRequestBuilder.cs index 76a2c8112d3..97f10cc3a79 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Presence/SetStatusMessage/SetStatusMessageRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Presence/SetStatusMessage/SetStatusMessageRequestBuilder.cs @@ -28,7 +28,8 @@ public SetStatusMessageRequestBuilder(Dictionary pathParameters, public SetStatusMessageRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/presence/setStatusMessage", rawUrl) { } /// - /// Invoke action setStatusMessage + /// Set a presence status message for a user. An optional expiration date and time can be supplied. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -49,7 +50,7 @@ public async Task PostAsync(SetStatusMessagePostRequestBody body, Action - /// Invoke action setStatusMessage + /// Set a presence status message for a user. An optional expiration date and time can be supplied. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Presence/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Presence/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.cs index 4c980425339..999e9b6dc31 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Presence/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Presence/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.cs @@ -28,7 +28,7 @@ public SetUserPreferredPresenceRequestBuilder(Dictionary pathPar public SetUserPreferredPresenceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/presence/setUserPreferredPresence", rawUrl) { } /// - /// Set the preferred availability and activity status for a user. If the preferred presence of a user is set, the user's presence shows as the preferred status. Preferred presence takes effect only when at least one presence session exists for the user. Otherwise, the user's presence shows as Offline. A presence session is created as a result of a successful setPresence operation, or if the user is signed in on a Microsoft Teams client. For more details, see presence sessions and time-out and expiration. + /// Set the preferred availability and activity status for a user. If the preferred presence of a user is set, the user's presence shows as the preferred status. Preferred presence takes effect only when at least one presence session exists for the user. Otherwise, the user's presence shows as Offline. A presence session is created as a result of a successful setPresence operation, or if the user is signed in on a Microsoft Teams client. For more details, see presence sessions and time-out and expiration. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SetUserPreferredPresencePostRequestBody body, Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Set the preferred availability and activity status for a user. If the preferred presence of a user is set, the user's presence shows as the preferred status. Preferred presence takes effect only when at least one presence session exists for the user. Otherwise, the user's presence shows as Offline. A presence session is created as a result of a successful setPresence operation, or if the user is signed in on a Microsoft Teams client. For more details, see presence sessions and time-out and expiration. + /// Set the preferred availability and activity status for a user. If the preferred presence of a user is set, the user's presence shows as the preferred status. Preferred presence takes effect only when at least one presence session exists for the user. Otherwise, the user's presence shows as Offline. A presence session is created as a result of a successful setPresence operation, or if the user is signed in on a Microsoft Teams client. For more details, see presence sessions and time-out and expiration. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/Item/DirectoryObjectItemRequestBuilder.cs index 344e07f415a..af81352db1a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/Item/DirectoryObjectItemRequestBuilder.cs @@ -44,7 +44,7 @@ public DirectoryObjectItemRequestBuilder(Dictionary pathParamete public DirectoryObjectItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/registeredDevices/{directoryObject%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Devices that are registered for the user. Read-only. Nullable. Supports $expand. + /// Devices that are registered for the user. Read-only. Nullable. Supports $expand and returns up to 100 objects. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -63,7 +63,7 @@ public async Task GetAsync(Action(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Devices that are registered for the user. Read-only. Nullable. Supports $expand. + /// Devices that are registered for the user. Read-only. Nullable. Supports $expand and returns up to 100 objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -96,7 +96,7 @@ public DirectoryObjectItemRequestBuilder WithUrl(string rawUrl) { return new DirectoryObjectItemRequestBuilder(rawUrl, RequestAdapter); } /// - /// Devices that are registered for the user. Read-only. Nullable. Supports $expand. + /// Devices that are registered for the user. Read-only. Nullable. Supports $expand and returns up to 100 objects. /// public class DirectoryObjectItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/RegisteredDevicesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/RegisteredDevicesRequestBuilder.cs index 7b084293643..44e15ac4991 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/RegisteredDevicesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/RegisteredDevicesRequestBuilder.cs @@ -57,7 +57,7 @@ public RegisteredDevicesRequestBuilder(Dictionary pathParameters public RegisteredDevicesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/registeredDevices{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Devices that are registered for the user. Read-only. Nullable. Supports $expand. + /// Devices that are registered for the user. Read-only. Nullable. Supports $expand and returns up to 100 objects. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -77,7 +77,7 @@ public async Task GetAsync(Action(requestInfo, DirectoryObjectCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Devices that are registered for the user. Read-only. Nullable. Supports $expand. + /// Devices that are registered for the user. Read-only. Nullable. Supports $expand and returns up to 100 objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RegisteredDevicesRequestBuilder WithUrl(string rawUrl) { return new RegisteredDevicesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Devices that are registered for the user. Read-only. Nullable. Supports $expand. + /// Devices that are registered for the user. Read-only. Nullable. Supports $expand and returns up to 100 objects. /// public class RegisteredDevicesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeGetResponse.cs new file mode 100644 index 00000000000..1c71e4dbb8f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.ReminderViewWithStartDateTimeWithEndDateTime { + public class ReminderViewWithStartDateTimeWithEndDateTimeGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new ReminderViewWithStartDateTimeWithEndDateTimeGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new ReminderViewWithStartDateTimeWithEndDateTimeGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Reminder.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder.cs index fa2930c0cf0..1a86e5cfae9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder.cs @@ -37,6 +37,26 @@ public ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder(string rawUrl, /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsReminderViewWithStartDateTimeWithEndDateTimeGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsReminderViewWithStartDateTimeWithEndDateTimeGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ReminderViewWithStartDateTimeWithEndDateTimeGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function reminderView + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsReminderViewWithStartDateTimeWithEndDateTimeGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Users/Item/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeResponse.cs index a16f479e9c1..4c922c88cc3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.ReminderViewWithStartDateTimeWithEndDateTime { - public class ReminderViewWithStartDateTimeWithEndDateTimeResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use reminderViewWithStartDateTimeWithEndDateTimeGetResponse instead.")] + public class ReminderViewWithStartDateTimeWithEndDateTimeResponse : ReminderViewWithStartDateTimeWithEndDateTimeGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ReminderViewWithStartDateTimeWithEndDateTimeResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(Reminder.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/ReprocessLicenseAssignment/ReprocessLicenseAssignmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ReprocessLicenseAssignment/ReprocessLicenseAssignmentRequestBuilder.cs index 415d54b6d70..0954217f27a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ReprocessLicenseAssignment/ReprocessLicenseAssignmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ReprocessLicenseAssignment/ReprocessLicenseAssignmentRequestBuilder.cs @@ -29,7 +29,7 @@ public ReprocessLicenseAssignmentRequestBuilder(Dictionary pathP public ReprocessLicenseAssignmentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/reprocessLicenseAssignment", rawUrl) { } /// - /// Reprocess all group-based license assignments for the user. To learn more about group-based licensing, see What is group-based licensing in Azure Active Directory. Also see Identify and resolve license assignment problems for a group in Azure Active Directory for more details. + /// Reprocess all group-based license assignments for the user. To learn more about group-based licensing, see What is group-based licensing in Azure Active Directory. Also see Identify and resolve license assignment problems for a group in Azure Active Directory for more details. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public ReprocessLicenseAssignmentRequestBuilder(string rawUrl, IRequestAdapter r return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Reprocess all group-based license assignments for the user. To learn more about group-based licensing, see What is group-based licensing in Azure Active Directory. Also see Identify and resolve license assignment problems for a group in Azure Active Directory for more details. + /// Reprocess all group-based license assignments for the user. To learn more about group-based licensing, see What is group-based licensing in Azure Active Directory. Also see Identify and resolve license assignment problems for a group in Azure Active Directory for more details. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Restore/RestoreRequestBuilder.cs index 3974982d976..69986c9e538 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Restore/RestoreRequestBuilder.cs @@ -29,7 +29,7 @@ public RestoreRequestBuilder(Dictionary pathParameters, IRequest public RestoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This is not applicable to security groups, which are deleted permanently. A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/RevokeSignInSessions/RevokeSignInSessionsPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/RevokeSignInSessions/RevokeSignInSessionsPostResponse.cs new file mode 100644 index 00000000000..28d92439f25 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/RevokeSignInSessions/RevokeSignInSessionsPostResponse.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.RevokeSignInSessions { + public class RevokeSignInSessionsPostResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public bool? Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new revokeSignInSessionsPostResponse and sets the default values. + /// + public RevokeSignInSessionsPostResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static RevokeSignInSessionsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new RevokeSignInSessionsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/RevokeSignInSessions/RevokeSignInSessionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/RevokeSignInSessions/RevokeSignInSessionsRequestBuilder.cs index 5f5185d01bd..be7a97ae7b7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/RevokeSignInSessions/RevokeSignInSessionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/RevokeSignInSessions/RevokeSignInSessionsRequestBuilder.cs @@ -28,12 +28,33 @@ public RevokeSignInSessionsRequestBuilder(Dictionary pathParamet public RevokeSignInSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/revokeSignInSessions", rawUrl) { } /// - /// Invalidates all the refresh tokens issued to applications for a user (as well as session cookies in a user's browser), by resetting the signInSessionsValidFromDateTime user property to the current date-time. Typically, this operation is performed (by the user or an administrator) if the user has a lost or stolen device. This operation prevents access to the organization's data through applications on the device by requiring the user to sign in again to all applications that they have previously consented to, independent of device. + /// Invalidates all the refresh tokens issued to applications for a user (as well as session cookies in a user's browser), by resetting the signInSessionsValidFromDateTime user property to the current date-time. Typically, this operation is performed (by the user or an administrator) if the user has a lost or stolen device. This operation prevents access to the organization's data through applications on the device by requiring the user to sign in again to all applications that they have previously consented to, independent of device. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsRevokeSignInSessionsPostResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsRevokeSignInSessionsPostResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, RevokeSignInSessionsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invalidates all the refresh tokens issued to applications for a user (as well as session cookies in a user's browser), by resetting the signInSessionsValidFromDateTime user property to the current date-time. Typically, this operation is performed (by the user or an administrator) if the user has a lost or stolen device. This operation prevents access to the organization's data through applications on the device by requiring the user to sign in again to all applications that they have previously consented to, independent of device. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsRevokeSignInSessionsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -48,7 +69,7 @@ public async Task PostAsync(Action(requestInfo, RevokeSignInSessionsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Invalidates all the refresh tokens issued to applications for a user (as well as session cookies in a user's browser), by resetting the signInSessionsValidFromDateTime user property to the current date-time. Typically, this operation is performed (by the user or an administrator) if the user has a lost or stolen device. This operation prevents access to the organization's data through applications on the device by requiring the user to sign in again to all applications that they have previously consented to, independent of device. + /// Invalidates all the refresh tokens issued to applications for a user (as well as session cookies in a user's browser), by resetting the signInSessionsValidFromDateTime user property to the current date-time. Typically, this operation is performed (by the user or an administrator) if the user has a lost or stolen device. This operation prevents access to the organization's data through applications on the device by requiring the user to sign in again to all applications that they have previously consented to, independent of device. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/RevokeSignInSessions/RevokeSignInSessionsResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/RevokeSignInSessions/RevokeSignInSessionsResponse.cs index 93b3ece1664..7294df0baa2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/RevokeSignInSessions/RevokeSignInSessionsResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/RevokeSignInSessions/RevokeSignInSessionsResponse.cs @@ -1,55 +1,19 @@ // using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.RevokeSignInSessions { - public class RevokeSignInSessionsResponse : IAdditionalDataHolder, IBackedModel, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { - get { return BackingStore?.Get>("additionalData"); } - set { BackingStore?.Set("additionalData", value); } - } - /// Stores model information. - public IBackingStore BackingStore { get; private set; } - /// The value property - public bool? Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Instantiates a new revokeSignInSessionsResponse and sets the default values. - /// - public RevokeSignInSessionsResponse() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - AdditionalData = new Dictionary(); - } + [Obsolete("This class is obsolete. Use revokeSignInSessionsPostResponse instead.")] + public class RevokeSignInSessionsResponse : RevokeSignInSessionsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static RevokeSignInSessionsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new RevokeSignInSessionsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RevokeSignInSessionsResponse(); } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"value", n => { Value = n.GetBoolValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/SendMail/SendMailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/SendMail/SendMailRequestBuilder.cs index 9b36116fc4b..b872c693b84 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/SendMail/SendMailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/SendMail/SendMailRequestBuilder.cs @@ -28,7 +28,7 @@ public SendMailRequestBuilder(Dictionary pathParameters, IReques public SendMailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/sendMail", rawUrl) { } /// - /// Send the message specified in the request body using either JSON or MIME format. When using JSON format, you can include a file attachment in the same sendMail action call. When using MIME format: This method saves the message in the Sent Items folder. Alternatively, create a draft message to send later. To learn more about the steps involved in the backend before a mail is delivered to recipients, see here. + /// Send the message specified in the request body using either JSON or MIME format. When using JSON format, you can include a file attachment in the same sendMail action call. When using MIME format: This method saves the message in the Sent Items folder. Alternatively, create a draft message to send later. To learn more about the steps involved in the backend before a mail is delivered to recipients, see here. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SendMailPostRequestBody body, Action - /// Send the message specified in the request body using either JSON or MIME format. When using JSON format, you can include a file attachment in the same sendMail action call. When using MIME format: This method saves the message in the Sent Items folder. Alternatively, create a draft message to send later. To learn more about the steps involved in the backend before a mail is delivered to recipients, see here. + /// Send the message specified in the request body using either JSON or MIME format. When using JSON format, you can include a file attachment in the same sendMail action call. When using MIME format: This method saves the message in the Sent Items folder. Alternatively, create a draft message to send later. To learn more about the steps involved in the backend before a mail is delivered to recipients, see here. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..83b4e0273b9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Users.Item.ServiceProvisioningErrors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/serviceProvisioningErrors/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..69c1acdf6ce --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,171 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Users.Item.ServiceProvisioningErrors.Count; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Users.Item.ServiceProvisioningErrors { + /// + /// Builds and executes requests for operations under \users\{user-id}\serviceProvisioningErrors + /// + public class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProvisioningErrors property value + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) { + return new ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get serviceProvisioningErrors property value + /// + public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServiceProvisioningErrorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServiceProvisioningErrorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new serviceProvisioningErrorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Settings/SettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Settings/SettingsRequestBuilder.cs index aaae0ecb0d6..ead1e253bfb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Settings/SettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Settings/SettingsRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Read the user and organization userSettings object.To learn how to update the properties of the userSettings object, see update user settings. + /// Read the user and organization userSettings object.To learn how to update the properties of the userSettings object, see update user settings. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -73,7 +73,7 @@ public async Task GetAsync(Action(requestInfo, UserSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of the userSettings object. Users in the same organization can have different settings based on their preference or on the organization policies. To get the user current settings, see current user settings. + /// Update the properties of the userSettings object. Users in the same organization can have different settings based on their preference or on the organization policies. To get the user current settings, see current user settings. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -119,7 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the user and organization userSettings object.To learn how to update the properties of the userSettings object, see update user settings. + /// Read the user and organization userSettings object.To learn how to update the properties of the userSettings object, see update user settings. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -145,7 +145,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of the userSettings object. Users in the same organization can have different settings based on their preference or on the organization policies. To get the user current settings, see current user settings. + /// Update the properties of the userSettings object. Users in the same organization can have different settings based on their preference or on the organization policies. To get the user current settings, see current user settings. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -196,7 +196,7 @@ public SettingsRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the user and organization userSettings object.To learn how to update the properties of the userSettings object, see update user settings. + /// Read the user and organization userSettings object.To learn how to update the properties of the userSettings object, see update user settings. This API is supported in the following national cloud deployments. /// public class SettingsRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Settings/ShiftPreferences/ShiftPreferencesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Settings/ShiftPreferences/ShiftPreferencesRequestBuilder.cs index 00e44b81246..5220c829b5b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Settings/ShiftPreferences/ShiftPreferencesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Settings/ShiftPreferences/ShiftPreferencesRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a shiftPreferences object by ID. + /// Retrieve the properties and relationships of a shiftPreferences object by ID. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.ShiftPreferences.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties and relationships of a shiftPreferences object. + /// Update the properties and relationships of a shiftPreferences object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a shiftPreferences object by ID. + /// Retrieve the properties and relationships of a shiftPreferences object by ID. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties and relationships of a shiftPreferences object. + /// Update the properties and relationships of a shiftPreferences object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -191,7 +191,7 @@ public ShiftPreferencesRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a shiftPreferences object by ID. + /// Retrieve the properties and relationships of a shiftPreferences object by ID. This API is supported in the following national cloud deployments. /// public class ShiftPreferencesRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/AssociatedTeams/AssociatedTeamsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/AssociatedTeams/AssociatedTeamsRequestBuilder.cs index 8946c229593..57f2e9b5647 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/AssociatedTeams/AssociatedTeamsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/AssociatedTeams/AssociatedTeamsRequestBuilder.cs @@ -42,7 +42,7 @@ public AssociatedTeamsRequestBuilder(Dictionary pathParameters, public AssociatedTeamsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/teamwork/associatedTeams{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of teams in Microsoft Teams that a user is associated with.Currently, a user can be associated with a team in two different ways:* A user can be a direct member of a team.* A user can be a member of a shared channel that is hosted inside a team. + /// Get the list of teams in Microsoft Teams that a user is associated with.Currently, a user can be associated with a team in two different ways: This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(AssociatedTeamInfo body, Action< return await RequestAdapter.SendAsync(requestInfo, AssociatedTeamInfo.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of teams in Microsoft Teams that a user is associated with.Currently, a user can be associated with a team in two different ways:* A user can be a direct member of a team.* A user can be a member of a shared channel that is hosted inside a team. + /// Get the list of teams in Microsoft Teams that a user is associated with.Currently, a user can be associated with a team in two different ways: This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public AssociatedTeamsRequestBuilder WithUrl(string rawUrl) { return new AssociatedTeamsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of teams in Microsoft Teams that a user is associated with.Currently, a user can be associated with a team in two different ways:* A user can be a direct member of a team.* A user can be a member of a shared channel that is hosted inside a team. + /// Get the list of teams in Microsoft Teams that a user is associated with.Currently, a user can be associated with a team in two different ways: This API is supported in the following national cloud deployments. /// public class AssociatedTeamsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/InstalledAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/InstalledAppsRequestBuilder.cs index ca10ec63784..4717cbf8614 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/InstalledAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/InstalledAppsRequestBuilder.cs @@ -42,7 +42,7 @@ public InstalledAppsRequestBuilder(Dictionary pathParameters, IR public InstalledAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/teamwork/installedApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of apps installed in the personal scope of the specified user. + /// Retrieve the list of apps installed in the personal scope of the specified user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Acti return await RequestAdapter.SendAsync(requestInfo, UserScopeTeamsAppInstallationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Install an app in the personal scope of the specified user. + /// Install an app in the personal scope of the specified user. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(UserScopeTeamsAppInst return await RequestAdapter.SendAsync(requestInfo, UserScopeTeamsAppInstallation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the list of apps installed in the personal scope of the specified user. + /// Retrieve the list of apps installed in the personal scope of the specified user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Install an app in the personal scope of the specified user. + /// Install an app in the personal scope of the specified user. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public InstalledAppsRequestBuilder WithUrl(string rawUrl) { return new InstalledAppsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the list of apps installed in the personal scope of the specified user. + /// Retrieve the list of apps installed in the personal scope of the specified user. This API is supported in the following national cloud deployments. /// public class InstalledAppsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/Item/Chat/ChatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/Item/Chat/ChatRequestBuilder.cs index c9b23085cb9..23dcc878223 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/Item/Chat/ChatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/Item/Chat/ChatRequestBuilder.cs @@ -29,7 +29,7 @@ public ChatRequestBuilder(Dictionary pathParameters, IRequestAda public ChatRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/teamwork/installedApps/{userScopeTeamsAppInstallation%2Did}/chat{?%24select,%24expand}", rawUrl) { } /// - /// Retrieve the chat of the specified user and Teams app. + /// Retrieve the chat of the specified user and Teams app. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public ChatRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Chat.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the chat of the specified user and Teams app. + /// Retrieve the chat of the specified user and Teams app. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -82,7 +82,7 @@ public ChatRequestBuilder WithUrl(string rawUrl) { return new ChatRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the chat of the specified user and Teams app. + /// Retrieve the chat of the specified user and Teams app. This API is supported in the following national cloud deployments. /// public class ChatRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/Item/UserScopeTeamsAppInstallationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/Item/UserScopeTeamsAppInstallationItemRequestBuilder.cs index 8e7ffe9e008..95989a3ce14 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/Item/UserScopeTeamsAppInstallationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/Item/UserScopeTeamsAppInstallationItemRequestBuilder.cs @@ -44,7 +44,7 @@ public UserScopeTeamsAppInstallationItemRequestBuilder(Dictionary - /// Uninstall an app from the personal scope of the specified user. + /// Uninstall an app from the personal scope of the specified user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -64,7 +64,7 @@ public async Task DeleteAsync(Action - /// Retrieve the app installed in the personal scope of the specified user. + /// Retrieve the app installed in the personal scope of the specified user. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -105,7 +105,7 @@ public async Task PatchAsync(UserScopeTeamsAppIns return await RequestAdapter.SendAsync(requestInfo, UserScopeTeamsAppInstallation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Uninstall an app from the personal scope of the specified user. + /// Uninstall an app from the personal scope of the specified user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,7 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the app installed in the personal scope of the specified user. + /// Retrieve the app installed in the personal scope of the specified user. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -206,7 +206,7 @@ public UserScopeTeamsAppInstallationItemRequestBuilderDeleteRequestConfiguration } } /// - /// Retrieve the app installed in the personal scope of the specified user. + /// Retrieve the app installed in the personal scope of the specified user. This API is supported in the following national cloud deployments. /// public class UserScopeTeamsAppInstallationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/SendActivityNotification/SendActivityNotificationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/SendActivityNotification/SendActivityNotificationRequestBuilder.cs index ec58ce12e54..0e803d3c8d5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/SendActivityNotification/SendActivityNotificationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/SendActivityNotification/SendActivityNotificationRequestBuilder.cs @@ -28,7 +28,7 @@ public SendActivityNotificationRequestBuilder(Dictionary pathPar public SendActivityNotificationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/teamwork/sendActivityNotification", rawUrl) { } /// - /// Send an activity feed notification to a user. For more details about sending notifications and the requirements for doing so, see sending Teams activity notifications. + /// Send an activity feed notification to a user. For more details about sending notifications and the requirements for doing so, see sending Teams activity notifications. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SendActivityNotificationPostRequestBody body, Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send an activity feed notification to a user. For more details about sending notifications and the requirements for doing so, see sending Teams activity notifications. + /// Send an activity feed notification to a user. For more details about sending notifications and the requirements for doing so, see sending Teams activity notifications. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..655ea9c00c0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.Todo.Lists.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(TodoTaskList.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Delta/DeltaRequestBuilder.cs index 5e42561fc88..df64e1e4467 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Delta/DeltaResponse.cs index ac13cb07a09..bb841c9035f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.Todo.Lists.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(TodoTaskList.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..cd25bd9bbc0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.Todo.Lists.Item.Tasks.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(TodoTask.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Delta/DeltaRequestBuilder.cs index 29f3477fa2e..73e7614127d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Delta/DeltaRequestBuilder.cs @@ -33,6 +33,26 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Delta/DeltaResponse.cs index abe91ca817f..3e6e74cfaa2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Delta/DeltaResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Delta/DeltaResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.Todo.Lists.Item.Tasks.Delta { - public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new DeltaResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(TodoTask.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/AttachmentsRequestBuilder.cs index 3a1294dbd54..cb1018c877c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/todo/lists/{todoTaskList%2Did}/tasks/{todoTask%2Did}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get a list of the taskFileAttachment objects and their properties. The contentBytes property will not be returned in the response. Use the Get attachment API to view the contentBytes. + /// Get a list of the taskFileAttachment objects and their properties. The contentBytes property will not be returned in the response. Use the Get attachment API to view the contentBytes. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentBaseCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add a new taskFileAttachment object to a todoTask. This operation limits the size of the attachment you can add to under 3 MB. If the size of the file attachments is more than 3 MB, create an upload session to upload the attachments. + /// Add a new taskFileAttachment object to a todoTask. This operation limits the size of the attachment you can add to under 3 MB. If the size of the file attachments is more than 3 MB, create an upload session to upload the attachments. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(AttachmentBase body, Action(requestInfo, AttachmentBase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the taskFileAttachment objects and their properties. The contentBytes property will not be returned in the response. Use the Get attachment API to view the contentBytes. + /// Get a list of the taskFileAttachment objects and their properties. The contentBytes property will not be returned in the response. Use the Get attachment API to view the contentBytes. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a new taskFileAttachment object to a todoTask. This operation limits the size of the attachment you can add to under 3 MB. If the size of the file attachments is more than 3 MB, create an upload session to upload the attachments. + /// Add a new taskFileAttachment object to a todoTask. This operation limits the size of the attachment you can add to under 3 MB. If the size of the file attachments is more than 3 MB, create an upload session to upload the attachments. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the taskFileAttachment objects and their properties. The contentBytes property will not be returned in the response. Use the Get attachment API to view the contentBytes. + /// Get a list of the taskFileAttachment objects and their properties. The contentBytes property will not be returned in the response. Use the Get attachment API to view the contentBytes. This API is supported in the following national cloud deployments. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 0215c5ac5c7..b6608a078cf 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/todo/lists/{todoTaskList%2Did}/tasks/{todoTask%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session to iteratively upload ranges of a file as an attachment to a todoTask. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. The request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows the transfer to be resumed, in case the network connection is dropped during the upload. The following are the steps to attach a file to a Microsoft To Do task using an upload session: For an example that describes the end-to-end attachment process, see attach files to a To Do task. + /// Create an upload session to iteratively upload ranges of a file as an attachment to a todoTask. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. The request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows the transfer to be resumed, in case the network connection is dropped during the upload. The following are the steps to attach a file to a Microsoft To Do task using an upload session: For an example that describes the end-to-end attachment process, see attach files to a To Do task. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an upload session to iteratively upload ranges of a file as an attachment to a todoTask. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. The request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows the transfer to be resumed, in case the network connection is dropped during the upload. The following are the steps to attach a file to a Microsoft To Do task using an upload session: For an example that describes the end-to-end attachment process, see attach files to a To Do task. + /// Create an upload session to iteratively upload ranges of a file as an attachment to a todoTask. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. The request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows the transfer to be resumed, in case the network connection is dropped during the upload. The following are the steps to attach a file to a Microsoft To Do task using an upload session: For an example that describes the end-to-end attachment process, see attach files to a To Do task. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/Item/AttachmentBaseItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/Item/AttachmentBaseItemRequestBuilder.cs index 168fcc00410..d6733d35928 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/Item/AttachmentBaseItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/Item/AttachmentBaseItemRequestBuilder.cs @@ -34,7 +34,7 @@ public AttachmentBaseItemRequestBuilder(Dictionary pathParameter public AttachmentBaseItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/todo/lists/{todoTaskList%2Did}/tasks/{todoTask%2Did}/attachments/{attachmentBase%2Did}{?%24select}", rawUrl) { } /// - /// Delete a taskFileAttachment object from a todoTask resource. + /// Delete a taskFileAttachment object from a todoTask resource. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a taskFileAttachment object. + /// Read the properties and relationships of a taskFileAttachment object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentBase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a taskFileAttachment object from a todoTask resource. + /// Delete a taskFileAttachment object from a todoTask resource. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -98,7 +98,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a taskFileAttachment object. + /// Read the properties and relationships of a taskFileAttachment object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,7 +147,7 @@ public AttachmentBaseItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a taskFileAttachment object. + /// Read the properties and relationships of a taskFileAttachment object. This API is supported in the following national cloud deployments. /// public class AttachmentBaseItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/ChecklistItemsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/ChecklistItemsRequestBuilder.cs index 55338b9bc3f..f5162d109c8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/ChecklistItemsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/ChecklistItemsRequestBuilder.cs @@ -42,7 +42,7 @@ public ChecklistItemsRequestBuilder(Dictionary pathParameters, I public ChecklistItemsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/todo/lists/{todoTaskList%2Did}/tasks/{todoTask%2Did}/checklistItems{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the checklistItem resources associated to a todoTask from the checklistItems navigation property. + /// Get the checklistItem resources associated to a todoTask from the checklistItems navigation property. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ChecklistItemCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new checklistItem object. + /// Create a new checklistItem object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(ChecklistItem body, Action(requestInfo, ChecklistItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the checklistItem resources associated to a todoTask from the checklistItems navigation property. + /// Get the checklistItem resources associated to a todoTask from the checklistItems navigation property. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new checklistItem object. + /// Create a new checklistItem object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public ChecklistItemsRequestBuilder WithUrl(string rawUrl) { return new ChecklistItemsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the checklistItem resources associated to a todoTask from the checklistItems navigation property. + /// Get the checklistItem resources associated to a todoTask from the checklistItems navigation property. This API is supported in the following national cloud deployments. /// public class ChecklistItemsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/Item/ChecklistItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/Item/ChecklistItemItemRequestBuilder.cs index 56a37640b3d..4df2aa8dd0f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/Item/ChecklistItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/Item/ChecklistItemItemRequestBuilder.cs @@ -29,7 +29,7 @@ public ChecklistItemItemRequestBuilder(Dictionary pathParameters public ChecklistItemItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/todo/lists/{todoTaskList%2Did}/tasks/{todoTask%2Did}/checklistItems/{checklistItem%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a checklistItem object. + /// Delete a checklistItem object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a checklistItem object. + /// Read the properties and relationships of a checklistItem object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, ChecklistItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a checklistItem object. + /// Update the properties of a checklistItem object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(ChecklistItem body, Action(requestInfo, ChecklistItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a checklistItem object. + /// Delete a checklistItem object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a checklistItem object. + /// Read the properties and relationships of a checklistItem object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a checklistItem object. + /// Update the properties of a checklistItem object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public ChecklistItemItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a checklistItem object. + /// Read the properties and relationships of a checklistItem object. This API is supported in the following national cloud deployments. /// public class ChecklistItemItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/LinkedResources/Item/LinkedResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/LinkedResources/Item/LinkedResourceItemRequestBuilder.cs index f56e7a7063d..788f521aacd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/LinkedResources/Item/LinkedResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/LinkedResources/Item/LinkedResourceItemRequestBuilder.cs @@ -29,7 +29,7 @@ public LinkedResourceItemRequestBuilder(Dictionary pathParameter public LinkedResourceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/todo/lists/{todoTaskList%2Did}/tasks/{todoTask%2Did}/linkedResources/{linkedResource%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a linkedResource object. + /// Deletes a linkedResource object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a linkedResource object. + /// Read the properties and relationships of a linkedResource object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, LinkedResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a linkedResource object. + /// Update the properties of a linkedResource object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(LinkedResource body, Action(requestInfo, LinkedResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a linkedResource object. + /// Deletes a linkedResource object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a linkedResource object. + /// Read the properties and relationships of a linkedResource object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a linkedResource object. + /// Update the properties of a linkedResource object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public LinkedResourceItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a linkedResource object. + /// Read the properties and relationships of a linkedResource object. This API is supported in the following national cloud deployments. /// public class LinkedResourceItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/LinkedResources/LinkedResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/LinkedResources/LinkedResourcesRequestBuilder.cs index 69f8bd4a8b8..3ba2012a52d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/LinkedResources/LinkedResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/LinkedResources/LinkedResourcesRequestBuilder.cs @@ -42,7 +42,7 @@ public LinkedResourcesRequestBuilder(Dictionary pathParameters, public LinkedResourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/todo/lists/{todoTaskList%2Did}/tasks/{todoTask%2Did}/linkedResources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get information of one or more items in a partner application, based on which a specified task was created. The information is represented in a linkedResource object for each item. It includes an external ID for the item in the partner application, and if applicable, a deep link to that item in the application. + /// Get information of one or more items in a partner application, based on which a specified task was created. The information is represented in a linkedResource object for each item. It includes an external ID for the item in the partner application, and if applicable, a deep link to that item in the application. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, LinkedResourceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a linkedResource object to associate a specified task with an item in a partner application. For example, you can associate a task with an email item in Outlook that spurred the task, and you can create a linkedResource object to track its association. You can also create a linkedResource object while creating a task. + /// Create a linkedResource object to associate a specified task with an item in a partner application. For example, you can associate a task with an email item in Outlook that spurred the task, and you can create a linkedResource object to track its association. You can also create a linkedResource object while creating a task. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(LinkedResource body, Action(requestInfo, LinkedResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get information of one or more items in a partner application, based on which a specified task was created. The information is represented in a linkedResource object for each item. It includes an external ID for the item in the partner application, and if applicable, a deep link to that item in the application. + /// Get information of one or more items in a partner application, based on which a specified task was created. The information is represented in a linkedResource object for each item. It includes an external ID for the item in the partner application, and if applicable, a deep link to that item in the application. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a linkedResource object to associate a specified task with an item in a partner application. For example, you can associate a task with an email item in Outlook that spurred the task, and you can create a linkedResource object to track its association. You can also create a linkedResource object while creating a task. + /// Create a linkedResource object to associate a specified task with an item in a partner application. For example, you can associate a task with an email item in Outlook that spurred the task, and you can create a linkedResource object to track its association. You can also create a linkedResource object while creating a task. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public LinkedResourcesRequestBuilder WithUrl(string rawUrl) { return new LinkedResourcesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get information of one or more items in a partner application, based on which a specified task was created. The information is represented in a linkedResource object for each item. It includes an external ID for the item in the partner application, and if applicable, a deep link to that item in the application. + /// Get information of one or more items in a partner application, based on which a specified task was created. The information is represented in a linkedResource object for each item. It includes an external ID for the item in the partner application, and if applicable, a deep link to that item in the application. This API is supported in the following national cloud deployments. /// public class LinkedResourcesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/TodoTaskItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/TodoTaskItemRequestBuilder.cs index b85a0380ebb..1692db989b1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/TodoTaskItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/TodoTaskItemRequestBuilder.cs @@ -54,7 +54,7 @@ public TodoTaskItemRequestBuilder(Dictionary pathParameters, IRe public TodoTaskItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/todo/lists/{todoTaskList%2Did}/tasks/{todoTask%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a todoTask object. + /// Deletes a todoTask object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a todoTask object. + /// Read the properties and relationships of a todoTask object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -94,7 +94,7 @@ public async Task GetAsync(Action(requestInfo, TodoTask.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a todoTask object. + /// Update the properties of a todoTask object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -116,7 +116,7 @@ public async Task PatchAsync(TodoTask body, Action(requestInfo, TodoTask.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a todoTask object. + /// Deletes a todoTask object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a todoTask object. + /// Read the properties and relationships of a todoTask object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -166,7 +166,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a todoTask object. + /// Update the properties of a todoTask object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -217,7 +217,7 @@ public TodoTaskItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a todoTask object. + /// Read the properties and relationships of a todoTask object. This API is supported in the following national cloud deployments. /// public class TodoTaskItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/TasksRequestBuilder.cs index 40f1c037069..d4c9ce68d38 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/TasksRequestBuilder.cs @@ -47,7 +47,7 @@ public TasksRequestBuilder(Dictionary pathParameters, IRequestAd public TasksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/todo/lists/{todoTaskList%2Did}/tasks{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the todoTask resources from the tasks navigation property of a specified todoTaskList. + /// Get the todoTask resources from the tasks navigation property of a specified todoTaskList. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, TodoTaskCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new task object in a specified todoTaskList. + /// Create a new task object in a specified todoTaskList. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(TodoTask body, Action(requestInfo, TodoTask.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the todoTask resources from the tasks navigation property of a specified todoTaskList. + /// Get the todoTask resources from the tasks navigation property of a specified todoTaskList. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new task object in a specified todoTaskList. + /// Create a new task object in a specified todoTaskList. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public TasksRequestBuilder WithUrl(string rawUrl) { return new TasksRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the todoTask resources from the tasks navigation property of a specified todoTaskList. + /// Get the todoTask resources from the tasks navigation property of a specified todoTaskList. This API is supported in the following national cloud deployments. /// public class TasksRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/TodoTaskListItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/TodoTaskListItemRequestBuilder.cs index 4f296b62f4f..6f9c034f3c0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/TodoTaskListItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/TodoTaskListItemRequestBuilder.cs @@ -39,7 +39,7 @@ public TodoTaskListItemRequestBuilder(Dictionary pathParameters, public TodoTaskListItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/todo/lists/{todoTaskList%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a todoTaskList object. + /// Deletes a todoTaskList object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -59,7 +59,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a todoTaskList object. + /// Read the properties and relationships of a todoTaskList object. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -79,7 +79,7 @@ public async Task GetAsync(Action(requestInfo, TodoTaskList.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a todoTaskList object. + /// Update the properties of a todoTaskList object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -101,7 +101,7 @@ public async Task PatchAsync(TodoTaskList body, Action(requestInfo, TodoTaskList.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a todoTaskList object. + /// Deletes a todoTaskList object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -125,7 +125,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a todoTaskList object. + /// Read the properties and relationships of a todoTaskList object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -151,7 +151,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a todoTaskList object. + /// Update the properties of a todoTaskList object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -202,7 +202,7 @@ public TodoTaskListItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of a todoTaskList object. + /// Read the properties and relationships of a todoTaskList object. This API is supported in the following national cloud deployments. /// public class TodoTaskListItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/ListsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/ListsRequestBuilder.cs index 6c01fadd3d4..85d1826ee3d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/ListsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/ListsRequestBuilder.cs @@ -47,7 +47,7 @@ public ListsRequestBuilder(Dictionary pathParameters, IRequestAd public ListsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/todo/lists{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the todoTaskList objects and their properties. + /// Get a list of the todoTaskList objects and their properties. This API is supported in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, TodoTaskListCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new lists object. + /// Create a new lists object. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(TodoTaskList body, Action(requestInfo, TodoTaskList.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the todoTaskList objects and their properties. + /// Get a list of the todoTaskList objects and their properties. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -115,7 +115,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new lists object. + /// Create a new lists object. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public ListsRequestBuilder WithUrl(string rawUrl) { return new ListsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the todoTaskList objects and their properties. + /// Get a list of the todoTaskList objects and their properties. This API is supported in the following national cloud deployments. /// public class ListsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/TranslateExchangeIds/TranslateExchangeIdsPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/TranslateExchangeIds/TranslateExchangeIdsPostResponse.cs new file mode 100644 index 00000000000..4a2e3ff338c --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/TranslateExchangeIds/TranslateExchangeIdsPostResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.TranslateExchangeIds { + public class TranslateExchangeIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new TranslateExchangeIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new TranslateExchangeIdsPostResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ConvertIdResult.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/TranslateExchangeIds/TranslateExchangeIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/TranslateExchangeIds/TranslateExchangeIdsRequestBuilder.cs index fbfa27085d1..230bd717363 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/TranslateExchangeIds/TranslateExchangeIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/TranslateExchangeIds/TranslateExchangeIdsRequestBuilder.cs @@ -28,13 +28,36 @@ public TranslateExchangeIdsRequestBuilder(Dictionary pathParamet public TranslateExchangeIdsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/translateExchangeIds", rawUrl) { } /// - /// Translate identifiers of Outlook-related resources between formats. + /// Translate identifiers of Outlook-related resources between formats. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsTranslateExchangeIdsPostResponseAsync(TranslateExchangeIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsTranslateExchangeIdsPostResponseAsync(TranslateExchangeIdsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, TranslateExchangeIdsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Translate identifiers of Outlook-related resources between formats. This API is supported in the following national cloud deployments. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use PostAsTranslateExchangeIdsPostResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(TranslateExchangeIdsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore @@ -50,7 +73,7 @@ public async Task PostAsync(TranslateExchangeIdsPo return await RequestAdapter.SendAsync(requestInfo, TranslateExchangeIdsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Translate identifiers of Outlook-related resources between formats. + /// Translate identifiers of Outlook-related resources between formats. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/TranslateExchangeIds/TranslateExchangeIdsResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/TranslateExchangeIds/TranslateExchangeIdsResponse.cs index 9523a36f406..28ea9dca637 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/TranslateExchangeIds/TranslateExchangeIdsResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/TranslateExchangeIds/TranslateExchangeIdsResponse.cs @@ -1,26 +1,12 @@ // -using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Users.Item.TranslateExchangeIds { - public class TranslateExchangeIdsResponse : BaseCollectionPaginationCountResponse, IParsable { - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Value { - get { return BackingStore?.Get?>("value"); } - set { BackingStore?.Set("value", value); } - } -#nullable restore -#else - public List Value { - get { return BackingStore?.Get>("value"); } - set { BackingStore?.Set("value", value); } - } -#endif + [Obsolete("This class is obsolete. Use translateExchangeIdsPostResponse instead.")] + public class TranslateExchangeIdsResponse : TranslateExchangeIdsPostResponse, IParsable { /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -29,22 +15,5 @@ public List Value { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new TranslateExchangeIdsResponse(); } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(ConvertIdResult.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); - } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs index 4659f1ae1e8..41019e95ffa 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs @@ -66,6 +66,7 @@ using Microsoft.Graph.Users.Item.RevokeSignInSessions; using Microsoft.Graph.Users.Item.ScopedRoleMemberOf; using Microsoft.Graph.Users.Item.SendMail; +using Microsoft.Graph.Users.Item.ServiceProvisioningErrors; using Microsoft.Graph.Users.Item.Settings; using Microsoft.Graph.Users.Item.Teamwork; using Microsoft.Graph.Users.Item.Todo; @@ -337,6 +338,10 @@ public class UserItemRequestBuilder : BaseRequestBuilder { public SendMailRequestBuilder SendMail { get => new SendMailRequestBuilder(PathParameters, RequestAdapter); } + /// The serviceProvisioningErrors property + public ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors { get => + new ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to manage the settings property of the microsoft.graph.user entity. public SettingsRequestBuilder Settings { get => new SettingsRequestBuilder(PathParameters, RequestAdapter); @@ -376,8 +381,8 @@ public UserItemRequestBuilder(Dictionary pathParameters, IReques public UserItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a user. - /// Find more info here + /// Delete user. When deleted, user resources are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. To learn more, see deletedItems. This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -406,8 +411,8 @@ public ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder ExportDevic return new ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder(PathParameters, RequestAdapter, skip, top); } /// - /// Retrieve the properties and relationships of user object. - /// Find more info here + /// Read properties and relationships of the user object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -426,8 +431,8 @@ public ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder ExportDevic return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a user object. - /// Find more info here + /// Update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage. This API is supported in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -458,7 +463,7 @@ public ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder ReminderViewWi return new ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder(PathParameters, RequestAdapter, endDateTime, startDateTime); } /// - /// Deletes a user. + /// Delete user. When deleted, user resources are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. To learn more, see deletedItems. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -482,7 +487,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of user object. + /// Read properties and relationships of the user object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -508,7 +513,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a user object. + /// Update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -559,7 +564,7 @@ public UserItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of user object. + /// Read properties and relationships of the user object. /// public class UserItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/UsersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/UsersRequestBuilder.cs index d9e03b04697..2b8563bcecd 100644 --- a/src/Microsoft.Graph/Generated/Users/UsersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/UsersRequestBuilder.cs @@ -62,8 +62,8 @@ public UsersRequestBuilder(Dictionary pathParameters, IRequestAd public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users{?%24top,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of user objects. - /// Find more info here + /// List properties and relationships of the user objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,8 +82,8 @@ public async Task GetAsync(Action(requestInfo, UserCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new user.The request body contains the user to create. At a minimum, you must specify the required properties for the user. You can optionally specify any other writable properties. - /// Find more info here + /// Create a new user object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of user objects. + /// List properties and relationships of the user objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -130,7 +130,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new user.The request body contains the user to create. At a minimum, you must specify the required properties for the user. You can optionally specify any other writable properties. + /// Create a new user object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -165,7 +165,7 @@ public UsersRequestBuilder WithUrl(string rawUrl) { return new UsersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of user objects. + /// List properties and relationships of the user objects. /// public class UsersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/ValidateProperties/ValidatePropertiesRequestBuilder.cs index 68e6f47e3a4..6ef2983702c 100644 --- a/src/Microsoft.Graph/Generated/Users/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -28,7 +28,7 @@ public ValidatePropertiesRequestBuilder(Dictionary pathParameter public ValidatePropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/validateProperties", rawUrl) { } /// - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ValidatePropertiesPostRequestBody body, Action - /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/kiota-lock.json b/src/Microsoft.Graph/Generated/kiota-lock.json index 40c07e4826c..ed8e119752e 100644 --- a/src/Microsoft.Graph/Generated/kiota-lock.json +++ b/src/Microsoft.Graph/Generated/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "B1FAB0B1196D62E40988BB0FF390FCC63760941731E6B1FBE61CC79525D05B947BBCE4EEF2413BE999BFBD094F04E3329406ED49061CD609231079D0EA158EA4", + "descriptionHash": "3450C894B2C173D60C1379906A53D7E612E6E8CD6FD9216971872F6604473BE01FE4C1EA3447522501E42D657AD584079A0005B063CF0D7DC262E8714A3C9F9D", "descriptionLocation": "/mnt/vss/_work/1/s/msgraph-metadata/clean_v10_openapi/openapi.yaml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.7.0", @@ -7,6 +7,7 @@ "clientNamespaceName": "Microsoft.Graph", "language": "CSharp", "usesBackingStore": true, + "excludeBackwardCompatible": false, "includeAdditionalData": true, "serializers": [ "Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Add/AddRequestBuilder.cs index 90738bbff34..4855a562a87 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Add/AddRequestBuilder.cs @@ -29,7 +29,7 @@ public AddRequestBuilder(Dictionary pathParameters, IRequestAdap public AddRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/add", rawUrl) { } /// - /// Adds a new name to the collection of the given scope using the user's locale for the formula. + /// Adds a new name to the collection of the given scope using the user's locale for the formula. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(AddPostRequestBody body, Action(requestInfo, WorkbookNamedItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Adds a new name to the collection of the given scope using the user's locale for the formula. + /// Adds a new name to the collection of the given scope using the user's locale for the formula. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/AddFormulaLocal/AddFormulaLocalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/AddFormulaLocal/AddFormulaLocalRequestBuilder.cs index d068612dc58..a5642a9f4a8 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/AddFormulaLocal/AddFormulaLocalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/AddFormulaLocal/AddFormulaLocalRequestBuilder.cs @@ -29,7 +29,7 @@ public AddFormulaLocalRequestBuilder(Dictionary pathParameters, public AddFormulaLocalRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/addFormulaLocal", rawUrl) { } /// - /// Adds a new name to the collection of the given scope using the user's locale for the formula. + /// Adds a new name to the collection of the given scope using the user's locale for the formula. This API is supported in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(AddFormulaLocalPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, WorkbookNamedItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Adds a new name to the collection of the given scope using the user's locale for the formula. + /// Adds a new name to the collection of the given scope using the user's locale for the formula. This API is supported in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RangeRequestBuilder.cs index 63cba8b1b35..f95e149ec8b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RangeRequestBuilder.cs @@ -29,8 +29,8 @@ public RangeRequestBuilder(Dictionary pathParameters, IRequestAd public RangeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()", rawUrl) { } /// - /// Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. - /// Find more info here + /// Retrieve the properties and relationships of range object. This API is supported in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookRange.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. + /// Retrieve the properties and relationships of range object. This API is supported in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Item/WorkbookNamedItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Item/WorkbookNamedItemItemRequestBuilder.cs index fedeff8935e..328a5a1f75d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Item/WorkbookNamedItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Item/WorkbookNamedItemItemRequestBuilder.cs @@ -58,7 +58,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of nameditem object. + /// Retrieve the properties and relationships of nameditem object. This API is supported in the following national cloud deployments. /// Find more info here ///